web-sys-0.3.55/.gitignore000064400000000000000000000000120072674642500133200ustar 00000000000000/features web-sys-0.3.55/Cargo.toml0000644000001332470000000000100105270ustar # 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 = "2018" name = "web-sys" version = "0.3.55" authors = ["The wasm-bindgen Developers"] description = "Bindings for all Web APIs, a procedurally generated crate from WebIDL\n" homepage = "https://rustwasm.github.io/wasm-bindgen/web-sys/index.html" documentation = "https://rustwasm.github.io/wasm-bindgen/api/web_sys/" readme = "./README.md" license = "MIT/Apache-2.0" repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/web-sys" [package.metadata.docs.rs] all-features = true rustdoc-args = ["--cfg=web_sys_unstable_apis"] [lib] test = false doctest = false [dependencies.js-sys] version = "0.3.55" [dependencies.wasm-bindgen] version = "0.2.78" [features] AbortController = [] AbortSignal = ["EventTarget"] AddEventListenerOptions = [] AesCbcParams = [] AesCtrParams = [] AesDerivedKeyParams = [] AesGcmParams = [] AesKeyAlgorithm = [] AesKeyGenParams = [] Algorithm = [] AlignSetting = [] AllowedBluetoothDevice = [] AllowedUsbDevice = [] 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"] AudioContextOptions = [] AudioContextState = [] AudioDestinationNode = ["AudioNode", "EventTarget"] AudioListener = [] AudioNode = ["EventTarget"] AudioNodeOptions = [] AudioParam = [] AudioParamMap = [] AudioProcessingEvent = ["Event"] AudioScheduledSourceNode = ["AudioNode", "EventTarget"] AudioStreamTrack = ["EventTarget", "MediaStreamTrack"] AudioTrack = [] AudioTrackList = ["EventTarget"] AudioWorklet = ["Worklet"] AudioWorkletGlobalScope = ["WorkletGlobalScope"] AudioWorkletNode = ["AudioNode", "EventTarget"] AudioWorkletNodeOptions = [] AudioWorkletProcessor = [] AuthenticationExtensionsClientInputs = [] AuthenticationExtensionsClientOutputs = [] AuthenticatorAssertionResponse = ["AuthenticatorResponse"] AuthenticatorAttachment = [] AuthenticatorAttestationResponse = ["AuthenticatorResponse"] 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 = [] Cache = [] CacheBatchOperation = [] CacheQueryOptions = [] CacheStorage = [] CacheStorageNamespace = [] CanvasCaptureMediaStream = ["EventTarget", "MediaStream"] CanvasGradient = [] CanvasPattern = [] CanvasRenderingContext2d = [] CanvasWindingRule = [] CaretChangedReason = [] CaretPosition = [] CaretStateChangedEventInit = [] CdataSection = ["CharacterData", "EventTarget", "Node", "Text"] ChannelCountMode = [] ChannelInterpretation = [] ChannelMergerNode = ["AudioNode", "EventTarget"] ChannelMergerOptions = [] ChannelPixelLayout = [] ChannelPixelLayoutDataType = [] 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 = [] CloseEvent = ["Event"] CloseEventInit = [] CollectedClientData = [] Comment = ["CharacterData", "EventTarget", "Node"] CompositeOperation = [] CompositionEvent = ["Event", "UiEvent"] CompositionEventInit = [] 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 = [] Credential = [] CredentialCreationOptions = [] CredentialRequestOptions = [] CredentialsContainer = [] Crypto = [] CryptoKey = [] CryptoKeyPair = [] Csp = [] CspPolicies = [] CspReport = [] CspReportProperties = [] 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 = [] 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 = [] DisplayMediaStreamConstraints = [] DisplayNameOptions = [] DisplayNameResult = [] DistanceModelType = [] DnsCacheDict = [] DnsCacheEntry = [] DnsLookupDict = [] Document = ["EventTarget", "Node"] DocumentFragment = ["EventTarget", "Node"] DocumentTimeline = ["AnimationTimeline"] DocumentTimelineOptions = [] DocumentType = ["EventTarget", "Node"] DomError = [] DomException = [] DomImplementation = [] DomMatrix = ["DomMatrixReadOnly"] DomMatrixReadOnly = [] DomParser = [] DomPoint = ["DomPointReadOnly"] DomPointInit = [] DomPointReadOnly = [] DomQuad = [] DomQuadInit = [] DomQuadJson = [] DomRect = ["DomRectReadOnly"] DomRectInit = [] DomRectList = [] DomRectReadOnly = [] DomRequest = ["EventTarget"] DomRequestReadyState = [] DomStringList = [] DomStringMap = [] DomTokenList = [] DomWindowResizeEventDetail = [] DragEvent = ["Event", "MouseEvent", "UiEvent"] DragEventInit = [] DynamicsCompressorNode = ["AudioNode", "EventTarget"] DynamicsCompressorOptions = [] EcKeyAlgorithm = [] EcKeyGenParams = [] EcKeyImportParams = [] EcdhKeyDeriveParams = [] EcdsaParams = [] EffectTiming = [] Element = ["EventTarget", "Node"] ElementCreationOptions = [] ElementDefinitionOptions = [] EndingTypes = [] ErrorCallback = [] ErrorEvent = ["Event"] ErrorEventInit = [] Event = [] EventInit = [] EventListener = [] EventListenerOptions = [] EventModifierInit = [] EventSource = ["EventTarget"] EventSourceInit = [] EventTarget = [] Exception = [] ExtBlendMinmax = [] ExtColorBufferFloat = [] ExtColorBufferHalfFloat = [] ExtDisjointTimerQuery = [] ExtFragDepth = [] ExtSRgb = [] ExtShaderTextureLod = [] ExtTextureFilterAnisotropic = [] ExtendableEvent = ["Event"] ExtendableEventInit = [] ExtendableMessageEvent = ["Event", "ExtendableEvent"] ExtendableMessageEventInit = [] External = [] FakePluginMimeEntry = [] FakePluginTagInit = [] FetchEvent = ["Event", "ExtendableEvent"] FetchEventInit = [] FetchObserver = ["EventTarget"] FetchReadableStreamReadDataArray = [] FetchReadableStreamReadDataDone = [] FetchState = [] File = ["Blob"] FileCallback = [] FileList = [] FilePropertyBag = [] FileReader = ["EventTarget"] FileReaderSync = [] FileSystem = [] FileSystemDirectoryEntry = ["FileSystemEntry"] FileSystemDirectoryReader = [] FileSystemEntriesCallback = [] FileSystemEntry = [] FileSystemEntryCallback = [] FileSystemFileEntry = ["FileSystemEntry"] FileSystemFlags = [] FillMode = [] FlashClassification = [] FlexLineGrowthState = [] FocusEvent = ["Event", "UiEvent"] FocusEventInit = [] FontFace = [] FontFaceDescriptors = [] FontFaceLoadStatus = [] FontFaceSet = ["EventTarget"] FontFaceSetIterator = [] FontFaceSetIteratorResult = [] FontFaceSetLoadEvent = ["Event"] FontFaceSetLoadEventInit = [] FontFaceSetLoadStatus = [] FormData = [] FrameType = [] FuzzingFunctions = [] GainNode = ["AudioNode", "EventTarget"] GainOptions = [] Gamepad = [] GamepadAxisMoveEvent = ["Event", "GamepadEvent"] GamepadAxisMoveEventInit = [] GamepadButton = [] GamepadButtonEvent = ["Event", "GamepadEvent"] GamepadButtonEventInit = [] GamepadEvent = ["Event"] GamepadEventInit = [] GamepadHand = [] GamepadHapticActuator = [] GamepadHapticActuatorType = [] GamepadMappingType = [] GamepadPose = [] GamepadServiceTest = [] Geolocation = [] GetNotificationOptions = [] GetRootNodeOptions = [] GetUserMediaRequest = [] Gpu = [] GpuAdapter = [] GpuAddressMode = [] GpuBindGroup = [] GpuBindGroupDescriptor = [] GpuBindGroupEntry = [] GpuBindGroupLayout = [] GpuBindGroupLayoutDescriptor = [] GpuBindGroupLayoutEntry = [] GpuBlendComponent = [] GpuBlendFactor = [] GpuBlendOperation = [] GpuBlendState = [] GpuBuffer = [] GpuBufferBinding = [] GpuBufferBindingLayout = [] GpuBufferBindingType = [] GpuBufferDescriptor = [] GpuBufferUsage = [] GpuCanvasCompositingAlphaMode = [] GpuCanvasConfiguration = [] GpuCanvasContext = [] GpuColorDict = [] GpuColorTargetState = [] GpuColorWrite = [] GpuCommandBuffer = [] GpuCommandBufferDescriptor = [] GpuCommandEncoder = [] GpuCommandEncoderDescriptor = [] GpuCompareFunction = [] GpuCompilationInfo = [] GpuCompilationMessage = [] GpuCompilationMessageType = [] GpuComputePassDescriptor = [] GpuComputePassEncoder = [] GpuComputePipeline = [] GpuComputePipelineDescriptor = [] GpuCullMode = [] GpuDepthStencilState = [] GpuDevice = ["EventTarget"] GpuDeviceDescriptor = [] GpuDeviceLostInfo = [] GpuDeviceLostReason = [] GpuErrorFilter = [] GpuExtent3dDict = [] GpuExternalTexture = [] GpuExternalTextureBindingLayout = [] GpuExternalTextureDescriptor = [] GpuFeatureName = [] GpuFilterMode = [] GpuFragmentState = [] GpuFrontFace = [] GpuImageCopyBuffer = [] GpuImageCopyExternalImage = [] GpuImageCopyTexture = [] GpuImageCopyTextureTagged = [] GpuImageDataLayout = [] GpuIndexFormat = [] GpuLoadOp = [] GpuMapMode = [] GpuMultisampleState = [] GpuObjectDescriptorBase = [] GpuOrigin2dDict = [] GpuOrigin3dDict = [] GpuOutOfMemoryError = [] GpuPipelineDescriptorBase = [] GpuPipelineLayout = [] GpuPipelineLayoutDescriptor = [] GpuPipelineStatisticName = [] GpuPowerPreference = [] GpuPredefinedColorSpace = [] GpuPrimitiveState = [] GpuPrimitiveTopology = [] GpuProgrammableStage = [] GpuQuerySet = [] GpuQuerySetDescriptor = [] GpuQueryType = [] GpuQueue = [] GpuRenderBundle = [] GpuRenderBundleDescriptor = [] GpuRenderBundleEncoder = [] GpuRenderBundleEncoderDescriptor = [] GpuRenderPassColorAttachment = [] GpuRenderPassDepthStencilAttachment = [] GpuRenderPassDescriptor = [] GpuRenderPassEncoder = [] GpuRenderPassLayout = [] GpuRenderPipeline = [] GpuRenderPipelineDescriptor = [] GpuRequestAdapterOptions = [] GpuSampler = [] GpuSamplerBindingLayout = [] GpuSamplerBindingType = [] GpuSamplerDescriptor = [] GpuShaderModule = [] GpuShaderModuleDescriptor = [] GpuShaderStage = [] GpuStencilFaceState = [] GpuStencilOperation = [] GpuStorageTextureAccess = [] GpuStorageTextureBindingLayout = [] GpuStoreOp = [] GpuSupportedFeatures = [] GpuSupportedLimits = [] GpuTexture = [] GpuTextureAspect = [] GpuTextureBindingLayout = [] GpuTextureDescriptor = [] GpuTextureDimension = [] GpuTextureFormat = [] GpuTextureSampleType = [] GpuTextureUsage = [] GpuTextureView = [] GpuTextureViewDescriptor = [] GpuTextureViewDimension = [] GpuUncapturedErrorEvent = ["Event"] GpuUncapturedErrorEventInit = [] GpuValidationError = [] GpuVertexAttribute = [] GpuVertexBufferLayout = [] GpuVertexFormat = [] GpuVertexState = [] GpuVertexStepMode = [] GridDeclaration = [] GridTrackState = [] GroupedHistoryEventInit = [] HalfOpenInfoDict = [] 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"] IdbTransactionMode = [] IdbVersionChangeEvent = ["Event"] IdbVersionChangeEventInit = [] IdleDeadline = [] IdleRequestOptions = [] IirFilterNode = ["AudioNode", "EventTarget"] IirFilterOptions = [] ImageBitmap = [] ImageBitmapFormat = [] ImageBitmapRenderingContext = [] ImageCapture = [] ImageCaptureError = [] ImageCaptureErrorEvent = ["Event"] ImageCaptureErrorEventInit = [] ImageData = [] InputEvent = ["Event", "UiEvent"] InputEventInit = [] InstallTriggerData = [] IntersectionObserver = [] IntersectionObserverEntry = [] IntersectionObserverEntryInit = [] IntersectionObserverInit = [] IntlUtils = [] IterableKeyAndValueResult = [] IterableKeyOrValueResult = [] IterationCompositeOperation = [] JsonWebKey = [] KeyAlgorithm = [] KeyEvent = [] KeyIdsInitData = [] KeyboardEvent = ["Event", "UiEvent"] KeyboardEventInit = [] KeyframeEffect = ["AnimationEffect"] KeyframeEffectOptions = [] L10nElement = [] L10nValue = [] LifecycleCallbacks = [] LineAlignSetting = [] ListBoxObject = [] LocalMediaStream = ["EventTarget", "MediaStream"] LocaleInfo = [] Location = [] MediaCapabilities = [] MediaCapabilitiesInfo = [] MediaConfiguration = [] MediaDecodingConfiguration = [] MediaDecodingType = [] MediaDeviceInfo = [] MediaDeviceKind = [] MediaDevices = ["EventTarget"] MediaElementAudioSourceNode = ["AudioNode", "EventTarget"] MediaElementAudioSourceOptions = [] MediaEncodingConfiguration = [] MediaEncodingType = [] MediaEncryptedEvent = ["Event"] MediaError = [] MediaKeyError = ["Event"] MediaKeyMessageEvent = ["Event"] MediaKeyMessageEventInit = [] MediaKeyMessageType = [] MediaKeyNeededEventInit = [] MediaKeySession = ["EventTarget"] MediaKeySessionType = [] MediaKeyStatus = [] MediaKeyStatusMap = [] MediaKeySystemAccess = [] MediaKeySystemConfiguration = [] MediaKeySystemMediaCapability = [] MediaKeySystemStatus = [] MediaKeys = [] MediaKeysPolicy = [] MediaKeysRequirement = [] MediaList = [] MediaQueryList = ["EventTarget"] MediaQueryListEvent = ["Event"] MediaQueryListEventInit = [] MediaRecorder = ["EventTarget"] MediaRecorderErrorEvent = ["Event"] MediaRecorderErrorEventInit = [] MediaRecorderOptions = [] MediaSource = ["EventTarget"] MediaSourceEndOfStreamError = [] MediaSourceEnum = [] MediaSourceReadyState = [] MediaStream = ["EventTarget"] MediaStreamAudioDestinationNode = ["AudioNode", "EventTarget"] MediaStreamAudioSourceNode = ["AudioNode", "EventTarget"] MediaStreamAudioSourceOptions = [] MediaStreamConstraints = [] MediaStreamError = [] MediaStreamEvent = ["Event"] MediaStreamEventInit = [] MediaStreamTrack = ["EventTarget"] MediaStreamTrackEvent = ["Event"] MediaStreamTrackEventInit = [] MediaStreamTrackState = [] MediaTrackConstraintSet = [] MediaTrackConstraints = [] MediaTrackSettings = [] MediaTrackSupportedConstraints = [] 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 = [] NetworkCommandOptions = [] NetworkInformation = ["EventTarget"] NetworkResultOptions = [] Node = ["EventTarget"] NodeFilter = [] NodeIterator = [] NodeList = [] Notification = ["EventTarget"] NotificationBehavior = [] 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"] OpenWindowEventDetail = [] OptionalEffectTiming = [] OrientationLockType = [] OrientationType = [] OscillatorNode = ["AudioNode", "AudioScheduledSourceNode", "EventTarget"] OscillatorOptions = [] OscillatorType = [] OverSampleType = [] PageTransitionEvent = ["Event"] PageTransitionEventInit = [] PaintRequest = [] PaintRequestList = [] PaintWorkletGlobalScope = ["WorkletGlobalScope"] PannerNode = ["AudioNode", "EventTarget"] PannerOptions = [] PanningModelType = [] 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 = [] PlaybackDirection = [] Plugin = [] PluginArray = [] PluginCrashedEventInit = [] PointerEvent = ["Event", "MouseEvent", "UiEvent"] PointerEventInit = [] PopStateEvent = ["Event"] PopStateEventInit = [] PopupBlockedEvent = ["Event"] PopupBlockedEventInit = [] Position = [] PositionAlignSetting = [] PositionError = [] PositionOptions = [] 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 = [] PublicKeyCredentialDescriptor = [] PublicKeyCredentialEntity = [] PublicKeyCredentialParameters = [] PublicKeyCredentialRequestOptions = [] PublicKeyCredentialRpEntity = [] PublicKeyCredentialType = [] PublicKeyCredentialUserEntity = [] PushEncryptionKeyName = [] PushEvent = ["Event", "ExtendableEvent"] PushEventInit = [] PushManager = [] PushMessageData = [] PushPermissionState = [] PushSubscription = [] PushSubscriptionInit = [] PushSubscriptionJson = [] PushSubscriptionKeys = [] PushSubscriptionOptions = [] PushSubscriptionOptionsInit = [] QueuingStrategy = [] RadioNodeList = ["NodeList"] Range = [] RcwnPerfStats = [] RcwnStatus = [] ReadableStream = [] ReadableStreamByobReadResult = [] ReadableStreamByobReader = [] ReadableStreamDefaultReadResult = [] ReadableStreamDefaultReader = [] ReadableStreamGetReaderOptions = [] ReadableStreamIteratorOptions = [] ReadableStreamReaderMode = [] ReadableWritablePair = [] RecordingState = [] ReferrerPolicy = [] RegisterRequest = [] RegisterResponse = [] RegisteredKey = [] RegistrationOptions = [] Request = [] RequestCache = [] RequestCredentials = [] RequestDestination = [] RequestDeviceOptions = [] RequestInit = [] RequestMediaKeySystemAccessNotification = [] RequestMode = [] RequestRedirect = [] Response = [] ResponseInit = [] ResponseType = [] RsaHashedImportParams = [] RsaOaepParams = [] RsaOtherPrimesInfo = [] RsaPssParams = [] RtcAnswerOptions = [] RtcBundlePolicy = [] RtcCertificate = [] RtcCertificateExpiration = [] RtcCodecStats = [] RtcConfiguration = [] RtcDataChannel = ["EventTarget"] RtcDataChannelEvent = ["Event"] RtcDataChannelEventInit = [] RtcDataChannelInit = [] RtcDataChannelState = [] RtcDataChannelType = [] RtcDegradationPreference = [] RtcFecParameters = [] RtcIceCandidate = [] RtcIceCandidateInit = [] RtcIceCandidatePairStats = [] RtcIceCandidateStats = [] RtcIceComponentStats = [] RtcIceConnectionState = [] RtcIceCredentialType = [] RtcIceGatheringState = [] RtcIceServer = [] RtcIceTransportPolicy = [] RtcIdentityAssertion = [] RtcIdentityAssertionResult = [] RtcIdentityProvider = [] RtcIdentityProviderDetails = [] RtcIdentityProviderOptions = [] RtcIdentityProviderRegistrar = [] RtcIdentityValidationResult = [] RtcInboundRtpStreamStats = [] RtcLifecycleEvent = [] RtcMediaStreamStats = [] RtcMediaStreamTrackStats = [] RtcOfferAnswerOptions = [] RtcOfferOptions = [] RtcOutboundRtpStreamStats = [] RtcPeerConnection = ["EventTarget"] RtcPeerConnectionIceEvent = ["Event"] RtcPeerConnectionIceEventInit = [] RtcPriorityType = [] RtcRtcpParameters = [] RtcRtpCodecParameters = [] RtcRtpContributingSource = [] RtcRtpEncodingParameters = [] RtcRtpHeaderExtensionParameters = [] RtcRtpParameters = [] RtcRtpReceiver = [] RtcRtpSender = [] RtcRtpSourceEntry = [] RtcRtpSourceEntryType = [] RtcRtpSynchronizationSource = [] RtcRtpTransceiver = [] RtcRtpTransceiverDirection = [] RtcRtpTransceiverInit = [] RtcRtxParameters = [] RtcSdpType = [] RtcSessionDescription = [] RtcSessionDescriptionInit = [] RtcSignalingState = [] RtcStats = [] RtcStatsIceCandidatePairState = [] RtcStatsIceCandidateType = [] RtcStatsReport = [] RtcStatsReportInternal = [] RtcStatsType = [] RtcTrackEvent = ["Event"] RtcTrackEventInit = [] RtcTransportStats = [] RtcdtmfSender = ["EventTarget"] RtcdtmfToneChangeEvent = ["Event"] RtcdtmfToneChangeEventInit = [] RtcrtpContributingSourceStats = [] RtcrtpStreamStats = [] 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 = [] ServerSocketOptions = [] ServiceWorker = ["EventTarget"] ServiceWorkerContainer = ["EventTarget"] ServiceWorkerGlobalScope = ["EventTarget", "WorkerGlobalScope"] ServiceWorkerRegistration = ["EventTarget"] ServiceWorkerState = [] ServiceWorkerUpdateViaCache = [] ShadowRoot = ["DocumentFragment", "EventTarget", "Node"] ShadowRootInit = [] ShadowRootMode = [] 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 = [] SubtleCrypto = [] SupportedType = [] 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"] 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 = [] Touch = [] TouchEvent = ["Event", "UiEvent"] TouchEventInit = [] TouchInit = [] TouchList = [] TrackEvent = ["Event"] TrackEventInit = [] TransformStream = [] TransitionEvent = ["Event"] TransitionEventInit = [] Transport = [] TreeBoxObject = [] TreeCellInfo = [] TreeView = [] TreeWalker = [] U2f = [] U2fClientData = [] UdpMessageEventInit = [] UdpOptions = [] UiEvent = ["Event"] UiEventInit = [] 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 = [] UserProximityEvent = ["Event"] UserProximityEventInit = [] UserVerificationRequirement = [] ValidityState = [] ValueEvent = ["Event"] ValueEventInit = [] VideoConfiguration = [] VideoFacingModeEnum = [] VideoPlaybackQuality = [] VideoStreamTrack = ["EventTarget", "MediaStreamTrack"] VideoTrack = [] VideoTrackList = ["EventTarget"] VisibilityState = [] 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 = [] WebglColorBufferFloat = [] WebglCompressedTextureAstc = [] WebglCompressedTextureAtc = [] WebglCompressedTextureEtc = [] WebglCompressedTextureEtc1 = [] WebglCompressedTexturePvrtc = [] WebglCompressedTextureS3tc = [] WebglCompressedTextureS3tcSrgb = [] WebglDebugRendererInfo = [] WebglDebugShaders = [] WebglDepthTexture = [] WebglDrawBuffers = [] WebglLoseContext = [] WebrtcGlobalStatisticsReport = [] WheelEvent = ["Event", "MouseEvent", "UiEvent"] WheelEventInit = [] WidevineCdmManifest = [] Window = ["EventTarget"] WindowClient = ["Client"] Worker = ["EventTarget"] WorkerDebuggerGlobalScope = ["EventTarget"] WorkerGlobalScope = ["EventTarget"] WorkerLocation = [] WorkerNavigator = [] WorkerOptions = [] WorkerType = [] Worklet = [] WorkletGlobalScope = [] WorkletOptions = [] WritableStream = [] WritableStreamDefaultWriter = [] XPathExpression = [] XPathNsResolver = [] XPathResult = [] XmlDocument = ["Document", "EventTarget", "Node"] XmlHttpRequest = ["EventTarget", "XmlHttpRequestEventTarget"] XmlHttpRequestEventTarget = ["EventTarget"] XmlHttpRequestResponseType = [] XmlHttpRequestUpload = ["EventTarget", "XmlHttpRequestEventTarget"] XmlSerializer = [] Xr = ["EventTarget"] XrBoundedReferenceSpace = ["EventTarget", "XrReferenceSpace", "XrSpace"] XrEye = [] XrFrame = [] XrHandedness = [] XrInputSource = [] XrInputSourceArray = [] XrInputSourceEvent = ["Event"] XrInputSourceEventInit = [] XrInputSourcesChangeEvent = ["Event"] XrInputSourcesChangeEventInit = [] XrPose = [] XrReferenceSpace = ["EventTarget", "XrSpace"] XrReferenceSpaceEvent = ["Event"] XrReferenceSpaceEventInit = [] XrReferenceSpaceType = [] XrRenderState = [] XrRenderStateInit = [] XrRigidTransform = [] XrSession = ["EventTarget"] XrSessionEvent = ["Event"] XrSessionEventInit = [] XrSessionInit = [] XrSessionMode = [] XrSpace = ["EventTarget"] XrTargetRayMode = [] XrView = [] XrViewerPose = ["XrPose"] XrViewport = [] XrVisibilityState = [] XrWebGlLayer = [] XrWebGlLayerInit = [] XsltProcessor = [] console = [] css = [] [target."cfg(target_arch = \"wasm32\")".dev-dependencies.wasm-bindgen-futures] version = "0.4.28" [target."cfg(target_arch = \"wasm32\")".dev-dependencies.wasm-bindgen-test] version = "0.3.28" web-sys-0.3.55/Cargo.toml.orig000064400000000000000000001324620072674642500142360ustar 00000000000000[package] name = "web-sys" version = "0.3.55" authors = ["The wasm-bindgen Developers"] readme = "./README.md" homepage = "https://rustwasm.github.io/wasm-bindgen/web-sys/index.html" documentation = "https://rustwasm.github.io/wasm-bindgen/api/web_sys/" repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/web-sys" description = """ Bindings for all Web APIs, a procedurally generated crate from WebIDL """ license = "MIT/Apache-2.0" edition = "2018" [package.metadata.docs.rs] all-features = true rustdoc-args = ["--cfg=web_sys_unstable_apis"] [lib] doctest = false test = false [dependencies] wasm-bindgen = { path = "../..", version = "0.2.78" } js-sys = { path = '../js-sys', version = '0.3.55' } [target.'cfg(target_arch = "wasm32")'.dev-dependencies] wasm-bindgen-test = { path = '../test', version = '0.3.28' } wasm-bindgen-futures = { path = '../futures', version = '0.4.28' } # This list is auto-generated by the wasm-bindgen-webidl program [features] AbortController = [] AbortSignal = ["EventTarget"] AddEventListenerOptions = [] AesCbcParams = [] AesCtrParams = [] AesDerivedKeyParams = [] AesGcmParams = [] AesKeyAlgorithm = [] AesKeyGenParams = [] Algorithm = [] AlignSetting = [] AllowedBluetoothDevice = [] AllowedUsbDevice = [] 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"] AudioContextOptions = [] AudioContextState = [] AudioDestinationNode = ["AudioNode", "EventTarget"] AudioListener = [] AudioNode = ["EventTarget"] AudioNodeOptions = [] AudioParam = [] AudioParamMap = [] AudioProcessingEvent = ["Event"] AudioScheduledSourceNode = ["AudioNode", "EventTarget"] AudioStreamTrack = ["EventTarget", "MediaStreamTrack"] AudioTrack = [] AudioTrackList = ["EventTarget"] AudioWorklet = ["Worklet"] AudioWorkletGlobalScope = ["WorkletGlobalScope"] AudioWorkletNode = ["AudioNode", "EventTarget"] AudioWorkletNodeOptions = [] AudioWorkletProcessor = [] AuthenticationExtensionsClientInputs = [] AuthenticationExtensionsClientOutputs = [] AuthenticatorAssertionResponse = ["AuthenticatorResponse"] AuthenticatorAttachment = [] AuthenticatorAttestationResponse = ["AuthenticatorResponse"] 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 = [] Cache = [] CacheBatchOperation = [] CacheQueryOptions = [] CacheStorage = [] CacheStorageNamespace = [] CanvasCaptureMediaStream = ["EventTarget", "MediaStream"] CanvasGradient = [] CanvasPattern = [] CanvasRenderingContext2d = [] CanvasWindingRule = [] CaretChangedReason = [] CaretPosition = [] CaretStateChangedEventInit = [] CdataSection = ["CharacterData", "EventTarget", "Node", "Text"] ChannelCountMode = [] ChannelInterpretation = [] ChannelMergerNode = ["AudioNode", "EventTarget"] ChannelMergerOptions = [] ChannelPixelLayout = [] ChannelPixelLayoutDataType = [] 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 = [] CloseEvent = ["Event"] CloseEventInit = [] CollectedClientData = [] Comment = ["CharacterData", "EventTarget", "Node"] CompositeOperation = [] CompositionEvent = ["Event", "UiEvent"] CompositionEventInit = [] 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 = [] Credential = [] CredentialCreationOptions = [] CredentialRequestOptions = [] CredentialsContainer = [] Crypto = [] CryptoKey = [] CryptoKeyPair = [] Csp = [] CspPolicies = [] CspReport = [] CspReportProperties = [] 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 = [] 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 = [] DisplayMediaStreamConstraints = [] DisplayNameOptions = [] DisplayNameResult = [] DistanceModelType = [] DnsCacheDict = [] DnsCacheEntry = [] DnsLookupDict = [] Document = ["EventTarget", "Node"] DocumentFragment = ["EventTarget", "Node"] DocumentTimeline = ["AnimationTimeline"] DocumentTimelineOptions = [] DocumentType = ["EventTarget", "Node"] DomError = [] DomException = [] DomImplementation = [] DomMatrix = ["DomMatrixReadOnly"] DomMatrixReadOnly = [] DomParser = [] DomPoint = ["DomPointReadOnly"] DomPointInit = [] DomPointReadOnly = [] DomQuad = [] DomQuadInit = [] DomQuadJson = [] DomRect = ["DomRectReadOnly"] DomRectInit = [] DomRectList = [] DomRectReadOnly = [] DomRequest = ["EventTarget"] DomRequestReadyState = [] DomStringList = [] DomStringMap = [] DomTokenList = [] DomWindowResizeEventDetail = [] DragEvent = ["Event", "MouseEvent", "UiEvent"] DragEventInit = [] DynamicsCompressorNode = ["AudioNode", "EventTarget"] DynamicsCompressorOptions = [] EcKeyAlgorithm = [] EcKeyGenParams = [] EcKeyImportParams = [] EcdhKeyDeriveParams = [] EcdsaParams = [] EffectTiming = [] Element = ["EventTarget", "Node"] ElementCreationOptions = [] ElementDefinitionOptions = [] EndingTypes = [] ErrorCallback = [] ErrorEvent = ["Event"] ErrorEventInit = [] Event = [] EventInit = [] EventListener = [] EventListenerOptions = [] EventModifierInit = [] EventSource = ["EventTarget"] EventSourceInit = [] EventTarget = [] Exception = [] ExtBlendMinmax = [] ExtColorBufferFloat = [] ExtColorBufferHalfFloat = [] ExtDisjointTimerQuery = [] ExtFragDepth = [] ExtSRgb = [] ExtShaderTextureLod = [] ExtTextureFilterAnisotropic = [] ExtendableEvent = ["Event"] ExtendableEventInit = [] ExtendableMessageEvent = ["Event", "ExtendableEvent"] ExtendableMessageEventInit = [] External = [] FakePluginMimeEntry = [] FakePluginTagInit = [] FetchEvent = ["Event", "ExtendableEvent"] FetchEventInit = [] FetchObserver = ["EventTarget"] FetchReadableStreamReadDataArray = [] FetchReadableStreamReadDataDone = [] FetchState = [] File = ["Blob"] FileCallback = [] FileList = [] FilePropertyBag = [] FileReader = ["EventTarget"] FileReaderSync = [] FileSystem = [] FileSystemDirectoryEntry = ["FileSystemEntry"] FileSystemDirectoryReader = [] FileSystemEntriesCallback = [] FileSystemEntry = [] FileSystemEntryCallback = [] FileSystemFileEntry = ["FileSystemEntry"] FileSystemFlags = [] FillMode = [] FlashClassification = [] FlexLineGrowthState = [] FocusEvent = ["Event", "UiEvent"] FocusEventInit = [] FontFace = [] FontFaceDescriptors = [] FontFaceLoadStatus = [] FontFaceSet = ["EventTarget"] FontFaceSetIterator = [] FontFaceSetIteratorResult = [] FontFaceSetLoadEvent = ["Event"] FontFaceSetLoadEventInit = [] FontFaceSetLoadStatus = [] FormData = [] FrameType = [] FuzzingFunctions = [] GainNode = ["AudioNode", "EventTarget"] GainOptions = [] Gamepad = [] GamepadAxisMoveEvent = ["Event", "GamepadEvent"] GamepadAxisMoveEventInit = [] GamepadButton = [] GamepadButtonEvent = ["Event", "GamepadEvent"] GamepadButtonEventInit = [] GamepadEvent = ["Event"] GamepadEventInit = [] GamepadHand = [] GamepadHapticActuator = [] GamepadHapticActuatorType = [] GamepadMappingType = [] GamepadPose = [] GamepadServiceTest = [] Geolocation = [] GetNotificationOptions = [] GetRootNodeOptions = [] GetUserMediaRequest = [] Gpu = [] GpuAdapter = [] GpuAddressMode = [] GpuBindGroup = [] GpuBindGroupDescriptor = [] GpuBindGroupEntry = [] GpuBindGroupLayout = [] GpuBindGroupLayoutDescriptor = [] GpuBindGroupLayoutEntry = [] GpuBlendComponent = [] GpuBlendFactor = [] GpuBlendOperation = [] GpuBlendState = [] GpuBuffer = [] GpuBufferBinding = [] GpuBufferBindingLayout = [] GpuBufferBindingType = [] GpuBufferDescriptor = [] GpuBufferUsage = [] GpuCanvasCompositingAlphaMode = [] GpuCanvasConfiguration = [] GpuCanvasContext = [] GpuColorDict = [] GpuColorTargetState = [] GpuColorWrite = [] GpuCommandBuffer = [] GpuCommandBufferDescriptor = [] GpuCommandEncoder = [] GpuCommandEncoderDescriptor = [] GpuCompareFunction = [] GpuCompilationInfo = [] GpuCompilationMessage = [] GpuCompilationMessageType = [] GpuComputePassDescriptor = [] GpuComputePassEncoder = [] GpuComputePipeline = [] GpuComputePipelineDescriptor = [] GpuCullMode = [] GpuDepthStencilState = [] GpuDevice = ["EventTarget"] GpuDeviceDescriptor = [] GpuDeviceLostInfo = [] GpuDeviceLostReason = [] GpuErrorFilter = [] GpuExtent3dDict = [] GpuExternalTexture = [] GpuExternalTextureBindingLayout = [] GpuExternalTextureDescriptor = [] GpuFeatureName = [] GpuFilterMode = [] GpuFragmentState = [] GpuFrontFace = [] GpuImageCopyBuffer = [] GpuImageCopyExternalImage = [] GpuImageCopyTexture = [] GpuImageCopyTextureTagged = [] GpuImageDataLayout = [] GpuIndexFormat = [] GpuLoadOp = [] GpuMapMode = [] GpuMultisampleState = [] GpuObjectDescriptorBase = [] GpuOrigin2dDict = [] GpuOrigin3dDict = [] GpuOutOfMemoryError = [] GpuPipelineDescriptorBase = [] GpuPipelineLayout = [] GpuPipelineLayoutDescriptor = [] GpuPipelineStatisticName = [] GpuPowerPreference = [] GpuPredefinedColorSpace = [] GpuPrimitiveState = [] GpuPrimitiveTopology = [] GpuProgrammableStage = [] GpuQuerySet = [] GpuQuerySetDescriptor = [] GpuQueryType = [] GpuQueue = [] GpuRenderBundle = [] GpuRenderBundleDescriptor = [] GpuRenderBundleEncoder = [] GpuRenderBundleEncoderDescriptor = [] GpuRenderPassColorAttachment = [] GpuRenderPassDepthStencilAttachment = [] GpuRenderPassDescriptor = [] GpuRenderPassEncoder = [] GpuRenderPassLayout = [] GpuRenderPipeline = [] GpuRenderPipelineDescriptor = [] GpuRequestAdapterOptions = [] GpuSampler = [] GpuSamplerBindingLayout = [] GpuSamplerBindingType = [] GpuSamplerDescriptor = [] GpuShaderModule = [] GpuShaderModuleDescriptor = [] GpuShaderStage = [] GpuStencilFaceState = [] GpuStencilOperation = [] GpuStorageTextureAccess = [] GpuStorageTextureBindingLayout = [] GpuStoreOp = [] GpuSupportedFeatures = [] GpuSupportedLimits = [] GpuTexture = [] GpuTextureAspect = [] GpuTextureBindingLayout = [] GpuTextureDescriptor = [] GpuTextureDimension = [] GpuTextureFormat = [] GpuTextureSampleType = [] GpuTextureUsage = [] GpuTextureView = [] GpuTextureViewDescriptor = [] GpuTextureViewDimension = [] GpuUncapturedErrorEvent = ["Event"] GpuUncapturedErrorEventInit = [] GpuValidationError = [] GpuVertexAttribute = [] GpuVertexBufferLayout = [] GpuVertexFormat = [] GpuVertexState = [] GpuVertexStepMode = [] GridDeclaration = [] GridTrackState = [] GroupedHistoryEventInit = [] HalfOpenInfoDict = [] 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"] IdbTransactionMode = [] IdbVersionChangeEvent = ["Event"] IdbVersionChangeEventInit = [] IdleDeadline = [] IdleRequestOptions = [] IirFilterNode = ["AudioNode", "EventTarget"] IirFilterOptions = [] ImageBitmap = [] ImageBitmapFormat = [] ImageBitmapRenderingContext = [] ImageCapture = [] ImageCaptureError = [] ImageCaptureErrorEvent = ["Event"] ImageCaptureErrorEventInit = [] ImageData = [] InputEvent = ["Event", "UiEvent"] InputEventInit = [] InstallTriggerData = [] IntersectionObserver = [] IntersectionObserverEntry = [] IntersectionObserverEntryInit = [] IntersectionObserverInit = [] IntlUtils = [] IterableKeyAndValueResult = [] IterableKeyOrValueResult = [] IterationCompositeOperation = [] JsonWebKey = [] KeyAlgorithm = [] KeyEvent = [] KeyIdsInitData = [] KeyboardEvent = ["Event", "UiEvent"] KeyboardEventInit = [] KeyframeEffect = ["AnimationEffect"] KeyframeEffectOptions = [] L10nElement = [] L10nValue = [] LifecycleCallbacks = [] LineAlignSetting = [] ListBoxObject = [] LocalMediaStream = ["EventTarget", "MediaStream"] LocaleInfo = [] Location = [] MediaCapabilities = [] MediaCapabilitiesInfo = [] MediaConfiguration = [] MediaDecodingConfiguration = [] MediaDecodingType = [] MediaDeviceInfo = [] MediaDeviceKind = [] MediaDevices = ["EventTarget"] MediaElementAudioSourceNode = ["AudioNode", "EventTarget"] MediaElementAudioSourceOptions = [] MediaEncodingConfiguration = [] MediaEncodingType = [] MediaEncryptedEvent = ["Event"] MediaError = [] MediaKeyError = ["Event"] MediaKeyMessageEvent = ["Event"] MediaKeyMessageEventInit = [] MediaKeyMessageType = [] MediaKeyNeededEventInit = [] MediaKeySession = ["EventTarget"] MediaKeySessionType = [] MediaKeyStatus = [] MediaKeyStatusMap = [] MediaKeySystemAccess = [] MediaKeySystemConfiguration = [] MediaKeySystemMediaCapability = [] MediaKeySystemStatus = [] MediaKeys = [] MediaKeysPolicy = [] MediaKeysRequirement = [] MediaList = [] MediaQueryList = ["EventTarget"] MediaQueryListEvent = ["Event"] MediaQueryListEventInit = [] MediaRecorder = ["EventTarget"] MediaRecorderErrorEvent = ["Event"] MediaRecorderErrorEventInit = [] MediaRecorderOptions = [] MediaSource = ["EventTarget"] MediaSourceEndOfStreamError = [] MediaSourceEnum = [] MediaSourceReadyState = [] MediaStream = ["EventTarget"] MediaStreamAudioDestinationNode = ["AudioNode", "EventTarget"] MediaStreamAudioSourceNode = ["AudioNode", "EventTarget"] MediaStreamAudioSourceOptions = [] MediaStreamConstraints = [] MediaStreamError = [] MediaStreamEvent = ["Event"] MediaStreamEventInit = [] MediaStreamTrack = ["EventTarget"] MediaStreamTrackEvent = ["Event"] MediaStreamTrackEventInit = [] MediaStreamTrackState = [] MediaTrackConstraintSet = [] MediaTrackConstraints = [] MediaTrackSettings = [] MediaTrackSupportedConstraints = [] 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 = [] NetworkCommandOptions = [] NetworkInformation = ["EventTarget"] NetworkResultOptions = [] Node = ["EventTarget"] NodeFilter = [] NodeIterator = [] NodeList = [] Notification = ["EventTarget"] NotificationBehavior = [] 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"] OpenWindowEventDetail = [] OptionalEffectTiming = [] OrientationLockType = [] OrientationType = [] OscillatorNode = ["AudioNode", "AudioScheduledSourceNode", "EventTarget"] OscillatorOptions = [] OscillatorType = [] OverSampleType = [] PageTransitionEvent = ["Event"] PageTransitionEventInit = [] PaintRequest = [] PaintRequestList = [] PaintWorkletGlobalScope = ["WorkletGlobalScope"] PannerNode = ["AudioNode", "EventTarget"] PannerOptions = [] PanningModelType = [] 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 = [] PlaybackDirection = [] Plugin = [] PluginArray = [] PluginCrashedEventInit = [] PointerEvent = ["Event", "MouseEvent", "UiEvent"] PointerEventInit = [] PopStateEvent = ["Event"] PopStateEventInit = [] PopupBlockedEvent = ["Event"] PopupBlockedEventInit = [] Position = [] PositionAlignSetting = [] PositionError = [] PositionOptions = [] 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 = [] PublicKeyCredentialDescriptor = [] PublicKeyCredentialEntity = [] PublicKeyCredentialParameters = [] PublicKeyCredentialRequestOptions = [] PublicKeyCredentialRpEntity = [] PublicKeyCredentialType = [] PublicKeyCredentialUserEntity = [] PushEncryptionKeyName = [] PushEvent = ["Event", "ExtendableEvent"] PushEventInit = [] PushManager = [] PushMessageData = [] PushPermissionState = [] PushSubscription = [] PushSubscriptionInit = [] PushSubscriptionJson = [] PushSubscriptionKeys = [] PushSubscriptionOptions = [] PushSubscriptionOptionsInit = [] QueuingStrategy = [] RadioNodeList = ["NodeList"] Range = [] RcwnPerfStats = [] RcwnStatus = [] ReadableStream = [] ReadableStreamByobReadResult = [] ReadableStreamByobReader = [] ReadableStreamDefaultReadResult = [] ReadableStreamDefaultReader = [] ReadableStreamGetReaderOptions = [] ReadableStreamIteratorOptions = [] ReadableStreamReaderMode = [] ReadableWritablePair = [] RecordingState = [] ReferrerPolicy = [] RegisterRequest = [] RegisterResponse = [] RegisteredKey = [] RegistrationOptions = [] Request = [] RequestCache = [] RequestCredentials = [] RequestDestination = [] RequestDeviceOptions = [] RequestInit = [] RequestMediaKeySystemAccessNotification = [] RequestMode = [] RequestRedirect = [] Response = [] ResponseInit = [] ResponseType = [] RsaHashedImportParams = [] RsaOaepParams = [] RsaOtherPrimesInfo = [] RsaPssParams = [] RtcAnswerOptions = [] RtcBundlePolicy = [] RtcCertificate = [] RtcCertificateExpiration = [] RtcCodecStats = [] RtcConfiguration = [] RtcDataChannel = ["EventTarget"] RtcDataChannelEvent = ["Event"] RtcDataChannelEventInit = [] RtcDataChannelInit = [] RtcDataChannelState = [] RtcDataChannelType = [] RtcDegradationPreference = [] RtcFecParameters = [] RtcIceCandidate = [] RtcIceCandidateInit = [] RtcIceCandidatePairStats = [] RtcIceCandidateStats = [] RtcIceComponentStats = [] RtcIceConnectionState = [] RtcIceCredentialType = [] RtcIceGatheringState = [] RtcIceServer = [] RtcIceTransportPolicy = [] RtcIdentityAssertion = [] RtcIdentityAssertionResult = [] RtcIdentityProvider = [] RtcIdentityProviderDetails = [] RtcIdentityProviderOptions = [] RtcIdentityProviderRegistrar = [] RtcIdentityValidationResult = [] RtcInboundRtpStreamStats = [] RtcLifecycleEvent = [] RtcMediaStreamStats = [] RtcMediaStreamTrackStats = [] RtcOfferAnswerOptions = [] RtcOfferOptions = [] RtcOutboundRtpStreamStats = [] RtcPeerConnection = ["EventTarget"] RtcPeerConnectionIceEvent = ["Event"] RtcPeerConnectionIceEventInit = [] RtcPriorityType = [] RtcRtcpParameters = [] RtcRtpCodecParameters = [] RtcRtpContributingSource = [] RtcRtpEncodingParameters = [] RtcRtpHeaderExtensionParameters = [] RtcRtpParameters = [] RtcRtpReceiver = [] RtcRtpSender = [] RtcRtpSourceEntry = [] RtcRtpSourceEntryType = [] RtcRtpSynchronizationSource = [] RtcRtpTransceiver = [] RtcRtpTransceiverDirection = [] RtcRtpTransceiverInit = [] RtcRtxParameters = [] RtcSdpType = [] RtcSessionDescription = [] RtcSessionDescriptionInit = [] RtcSignalingState = [] RtcStats = [] RtcStatsIceCandidatePairState = [] RtcStatsIceCandidateType = [] RtcStatsReport = [] RtcStatsReportInternal = [] RtcStatsType = [] RtcTrackEvent = ["Event"] RtcTrackEventInit = [] RtcTransportStats = [] RtcdtmfSender = ["EventTarget"] RtcdtmfToneChangeEvent = ["Event"] RtcdtmfToneChangeEventInit = [] RtcrtpContributingSourceStats = [] RtcrtpStreamStats = [] 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 = [] ServerSocketOptions = [] ServiceWorker = ["EventTarget"] ServiceWorkerContainer = ["EventTarget"] ServiceWorkerGlobalScope = ["EventTarget", "WorkerGlobalScope"] ServiceWorkerRegistration = ["EventTarget"] ServiceWorkerState = [] ServiceWorkerUpdateViaCache = [] ShadowRoot = ["DocumentFragment", "EventTarget", "Node"] ShadowRootInit = [] ShadowRootMode = [] 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 = [] SubtleCrypto = [] SupportedType = [] 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"] 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 = [] Touch = [] TouchEvent = ["Event", "UiEvent"] TouchEventInit = [] TouchInit = [] TouchList = [] TrackEvent = ["Event"] TrackEventInit = [] TransformStream = [] TransitionEvent = ["Event"] TransitionEventInit = [] Transport = [] TreeBoxObject = [] TreeCellInfo = [] TreeView = [] TreeWalker = [] U2f = [] U2fClientData = [] UdpMessageEventInit = [] UdpOptions = [] UiEvent = ["Event"] UiEventInit = [] 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 = [] UserProximityEvent = ["Event"] UserProximityEventInit = [] UserVerificationRequirement = [] ValidityState = [] ValueEvent = ["Event"] ValueEventInit = [] VideoConfiguration = [] VideoFacingModeEnum = [] VideoPlaybackQuality = [] VideoStreamTrack = ["EventTarget", "MediaStreamTrack"] VideoTrack = [] VideoTrackList = ["EventTarget"] VisibilityState = [] 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 = [] WebglColorBufferFloat = [] WebglCompressedTextureAstc = [] WebglCompressedTextureAtc = [] WebglCompressedTextureEtc = [] WebglCompressedTextureEtc1 = [] WebglCompressedTexturePvrtc = [] WebglCompressedTextureS3tc = [] WebglCompressedTextureS3tcSrgb = [] WebglDebugRendererInfo = [] WebglDebugShaders = [] WebglDepthTexture = [] WebglDrawBuffers = [] WebglLoseContext = [] WebrtcGlobalStatisticsReport = [] WheelEvent = ["Event", "MouseEvent", "UiEvent"] WheelEventInit = [] WidevineCdmManifest = [] Window = ["EventTarget"] WindowClient = ["Client"] Worker = ["EventTarget"] WorkerDebuggerGlobalScope = ["EventTarget"] WorkerGlobalScope = ["EventTarget"] WorkerLocation = [] WorkerNavigator = [] WorkerOptions = [] WorkerType = [] Worklet = [] WorkletGlobalScope = [] WorkletOptions = [] WritableStream = [] WritableStreamDefaultWriter = [] XPathExpression = [] XPathNsResolver = [] XPathResult = [] XmlDocument = ["Document", "EventTarget", "Node"] XmlHttpRequest = ["EventTarget", "XmlHttpRequestEventTarget"] XmlHttpRequestEventTarget = ["EventTarget"] XmlHttpRequestResponseType = [] XmlHttpRequestUpload = ["EventTarget", "XmlHttpRequestEventTarget"] XmlSerializer = [] Xr = ["EventTarget"] XrBoundedReferenceSpace = ["EventTarget", "XrReferenceSpace", "XrSpace"] XrEye = [] XrFrame = [] XrHandedness = [] XrInputSource = [] XrInputSourceArray = [] XrInputSourceEvent = ["Event"] XrInputSourceEventInit = [] XrInputSourcesChangeEvent = ["Event"] XrInputSourcesChangeEventInit = [] XrPose = [] XrReferenceSpace = ["EventTarget", "XrSpace"] XrReferenceSpaceEvent = ["Event"] XrReferenceSpaceEventInit = [] XrReferenceSpaceType = [] XrRenderState = [] XrRenderStateInit = [] XrRigidTransform = [] XrSession = ["EventTarget"] XrSessionEvent = ["Event"] XrSessionEventInit = [] XrSessionInit = [] XrSessionMode = [] XrSpace = ["EventTarget"] XrTargetRayMode = [] XrView = [] XrViewerPose = ["XrPose"] XrViewport = [] XrVisibilityState = [] XrWebGlLayer = [] XrWebGlLayerInit = [] XsltProcessor = [] console = [] css = [] web-sys-0.3.55/LICENSE-APACHE000064400000000000000000000251370072674642500132730ustar 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.55/LICENSE-MIT000064400000000000000000000020410072674642500127700ustar 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.55/README.md000064400000000000000000000013370072674642500126220ustar 00000000000000# `web-sys` Raw bindings to Web APIs for projects using `wasm-bindgen`. * [The `web-sys` section of the `wasm-bindgen` guide](https://rustwasm.github.io/wasm-bindgen/web-sys/index.html) * [API Documentation](https://rustwasm.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. web-sys-0.3.55/src/features/gen_AbortController.rs000064400000000000000000000036550072674642500202670ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AbortController , typescript_type = "AbortController")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AbortController` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AbortController)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AbortController`*"] pub type AbortController; #[cfg(feature = "AbortSignal")] # [wasm_bindgen (structural , method , getter , js_class = "AbortController" , js_name = signal)] #[doc = "Getter for the `signal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/signal)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AbortController`, `AbortSignal`*"] pub fn signal(this: &AbortController) -> AbortSignal; #[wasm_bindgen(catch, constructor, js_class = "AbortController")] #[doc = "The `new AbortController(..)` constructor, creating a new instance of `AbortController`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/AbortController)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AbortController`*"] pub fn new() -> Result; # [wasm_bindgen (method , structural , js_class = "AbortController" , js_name = abort)] #[doc = "The `abort()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AbortController`*"] pub fn abort(this: &AbortController); } web-sys-0.3.55/src/features/gen_AbortSignal.rs000064400000000000000000000036320072674642500173540ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = AbortSignal , typescript_type = "AbortSignal")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AbortSignal` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AbortSignal`*"] pub type AbortSignal; # [wasm_bindgen (structural , method , getter , js_class = "AbortSignal" , js_name = aborted)] #[doc = "Getter for the `aborted` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal/aborted)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AbortSignal`*"] pub fn aborted(this: &AbortSignal) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "AbortSignal" , js_name = onabort)] #[doc = "Getter for the `onabort` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal/onabort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AbortSignal`*"] pub fn onabort(this: &AbortSignal) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "AbortSignal" , js_name = onabort)] #[doc = "Setter for the `onabort` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal/onabort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AbortSignal`*"] pub fn set_onabort(this: &AbortSignal, value: Option<&::js_sys::Function>); } web-sys-0.3.55/src/features/gen_AddEventListenerOptions.rs000064400000000000000000000051400072674642500217170ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AddEventListenerOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AddEventListenerOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AddEventListenerOptions`*"] pub type AddEventListenerOptions; } impl AddEventListenerOptions { #[doc = "Construct a new `AddEventListenerOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AddEventListenerOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `capture` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AddEventListenerOptions`*"] pub fn capture(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("capture"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `once` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AddEventListenerOptions`*"] pub fn once(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("once"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `passive` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AddEventListenerOptions`*"] pub fn passive(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("passive"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for AddEventListenerOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_AesCbcParams.rs000064400000000000000000000035450072674642500174360ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AesCbcParams)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AesCbcParams` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesCbcParams`*"] pub type AesCbcParams; } impl AesCbcParams { #[doc = "Construct a new `AesCbcParams`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesCbcParams`*"] pub fn new(name: &str, iv: &::js_sys::Object) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.name(name); ret.iv(iv); ret } #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesCbcParams`*"] pub fn name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `iv` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesCbcParams`*"] pub fn iv(&mut self, val: &::js_sys::Object) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("iv"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_AesCtrParams.rs000064400000000000000000000047710072674642500175010ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AesCtrParams)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AesCtrParams` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesCtrParams`*"] pub type AesCtrParams; } impl AesCtrParams { #[doc = "Construct a new `AesCtrParams`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesCtrParams`*"] pub fn new(name: &str, counter: &::js_sys::Object, length: u8) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.name(name); ret.counter(counter); ret.length(length); ret } #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesCtrParams`*"] pub fn name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `counter` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesCtrParams`*"] pub fn counter(&mut self, val: &::js_sys::Object) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("counter"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `length` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesCtrParams`*"] pub fn length(&mut self, val: u8) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("length"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_AesDerivedKeyParams.rs000064400000000000000000000036540072674642500210030ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AesDerivedKeyParams)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AesDerivedKeyParams` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesDerivedKeyParams`*"] pub type AesDerivedKeyParams; } impl AesDerivedKeyParams { #[doc = "Construct a new `AesDerivedKeyParams`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesDerivedKeyParams`*"] pub fn new(name: &str, length: u32) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.name(name); ret.length(length); ret } #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesDerivedKeyParams`*"] pub fn name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `length` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesDerivedKeyParams`*"] pub fn length(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("length"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_AesGcmParams.rs000064400000000000000000000060330072674642500174500ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AesGcmParams)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AesGcmParams` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesGcmParams`*"] pub type AesGcmParams; } impl AesGcmParams { #[doc = "Construct a new `AesGcmParams`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesGcmParams`*"] pub fn new(name: &str, iv: &::js_sys::Object) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.name(name); ret.iv(iv); ret } #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesGcmParams`*"] pub fn name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `additionalData` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesGcmParams`*"] pub fn additional_data(&mut self, val: &::js_sys::Object) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("additionalData"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `iv` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesGcmParams`*"] pub fn iv(&mut self, val: &::js_sys::Object) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("iv"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `tagLength` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesGcmParams`*"] pub fn tag_length(&mut self, val: u8) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("tagLength"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_AesKeyAlgorithm.rs000064400000000000000000000036100072674642500201730ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AesKeyAlgorithm)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AesKeyAlgorithm` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesKeyAlgorithm`*"] pub type AesKeyAlgorithm; } impl AesKeyAlgorithm { #[doc = "Construct a new `AesKeyAlgorithm`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesKeyAlgorithm`*"] pub fn new(name: &str, length: u16) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.name(name); ret.length(length); ret } #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesKeyAlgorithm`*"] pub fn name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `length` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesKeyAlgorithm`*"] pub fn length(&mut self, val: u16) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("length"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_AesKeyGenParams.rs000064400000000000000000000036100072674642500201220ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AesKeyGenParams)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AesKeyGenParams` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesKeyGenParams`*"] pub type AesKeyGenParams; } impl AesKeyGenParams { #[doc = "Construct a new `AesKeyGenParams`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesKeyGenParams`*"] pub fn new(name: &str, length: u16) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.name(name); ret.length(length); ret } #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesKeyGenParams`*"] pub fn name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `length` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesKeyGenParams`*"] pub fn length(&mut self, val: u16) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("length"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_Algorithm.rs000064400000000000000000000024140072674642500170720ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Algorithm)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Algorithm` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Algorithm`*"] pub type Algorithm; } impl Algorithm { #[doc = "Construct a new `Algorithm`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Algorithm`*"] pub fn new(name: &str) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.name(name); ret } #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Algorithm`*"] pub fn name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_AlignSetting.rs000064400000000000000000000006000072674642500175270ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `AlignSetting` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AlignSetting`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum AlignSetting { Start = "start", Center = "center", End = "end", Left = "left", Right = "right", } web-sys-0.3.55/src/features/gen_AllowedBluetoothDevice.rs000064400000000000000000000102730072674642500215430ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type AllowedBluetoothDevice; } #[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://rustwasm.github.io/docs/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.allowed_services(allowed_services); ret.device_id(device_id); ret.may_use_gatt(may_use_gatt); ret } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn allowed_services(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("allowedServices"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn device_id(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("deviceId"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn may_use_gatt(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("mayUseGATT"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_AllowedUsbDevice.rs000064400000000000000000000077250072674642500203370ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type AllowedUsbDevice; } #[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://rustwasm.github.io/docs/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.product_id(product_id); ret.vendor_id(vendor_id); ret } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn product_id(&mut self, val: u8) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("productId"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn serial_number(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("serialNumber"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn vendor_id(&mut self, val: u8) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("vendorId"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_AnalyserNode.rs000064400000000000000000000174660072674642500175450ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = AnalyserNode , typescript_type = "AnalyserNode")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AnalyserNode` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"] pub type AnalyserNode; # [wasm_bindgen (structural , method , getter , js_class = "AnalyserNode" , js_name = fftSize)] #[doc = "Getter for the `fftSize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/fftSize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"] pub fn fft_size(this: &AnalyserNode) -> u32; # [wasm_bindgen (structural , method , setter , js_class = "AnalyserNode" , js_name = fftSize)] #[doc = "Setter for the `fftSize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/fftSize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"] pub fn set_fft_size(this: &AnalyserNode, value: u32); # [wasm_bindgen (structural , method , getter , js_class = "AnalyserNode" , js_name = frequencyBinCount)] #[doc = "Getter for the `frequencyBinCount` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/frequencyBinCount)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"] pub fn frequency_bin_count(this: &AnalyserNode) -> u32; # [wasm_bindgen (structural , method , getter , js_class = "AnalyserNode" , js_name = minDecibels)] #[doc = "Getter for the `minDecibels` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/minDecibels)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"] pub fn min_decibels(this: &AnalyserNode) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "AnalyserNode" , js_name = minDecibels)] #[doc = "Setter for the `minDecibels` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/minDecibels)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"] pub fn set_min_decibels(this: &AnalyserNode, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "AnalyserNode" , js_name = maxDecibels)] #[doc = "Getter for the `maxDecibels` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/maxDecibels)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"] pub fn max_decibels(this: &AnalyserNode) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "AnalyserNode" , js_name = maxDecibels)] #[doc = "Setter for the `maxDecibels` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/maxDecibels)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"] pub fn set_max_decibels(this: &AnalyserNode, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "AnalyserNode" , js_name = smoothingTimeConstant)] #[doc = "Getter for the `smoothingTimeConstant` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/smoothingTimeConstant)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"] pub fn smoothing_time_constant(this: &AnalyserNode) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "AnalyserNode" , js_name = smoothingTimeConstant)] #[doc = "Setter for the `smoothingTimeConstant` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/smoothingTimeConstant)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"] pub fn set_smoothing_time_constant(this: &AnalyserNode, value: f64); #[cfg(feature = "BaseAudioContext")] #[wasm_bindgen(catch, constructor, js_class = "AnalyserNode")] #[doc = "The `new AnalyserNode(..)` constructor, creating a new instance of `AnalyserNode`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/AnalyserNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnalyserNode`, `BaseAudioContext`*"] pub fn new(context: &BaseAudioContext) -> Result; #[cfg(all(feature = "AnalyserOptions", feature = "BaseAudioContext",))] #[wasm_bindgen(catch, constructor, js_class = "AnalyserNode")] #[doc = "The `new AnalyserNode(..)` constructor, creating a new instance of `AnalyserNode`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/AnalyserNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnalyserNode`, `AnalyserOptions`, `BaseAudioContext`*"] pub fn new_with_options( context: &BaseAudioContext, options: &AnalyserOptions, ) -> Result; # [wasm_bindgen (method , structural , js_class = "AnalyserNode" , js_name = getByteFrequencyData)] #[doc = "The `getByteFrequencyData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/getByteFrequencyData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"] pub fn get_byte_frequency_data(this: &AnalyserNode, array: &mut [u8]); # [wasm_bindgen (method , structural , js_class = "AnalyserNode" , js_name = getByteTimeDomainData)] #[doc = "The `getByteTimeDomainData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/getByteTimeDomainData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"] pub fn get_byte_time_domain_data(this: &AnalyserNode, array: &mut [u8]); # [wasm_bindgen (method , structural , js_class = "AnalyserNode" , js_name = getFloatFrequencyData)] #[doc = "The `getFloatFrequencyData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/getFloatFrequencyData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"] pub fn get_float_frequency_data(this: &AnalyserNode, array: &mut [f32]); # [wasm_bindgen (method , structural , js_class = "AnalyserNode" , js_name = getFloatTimeDomainData)] #[doc = "The `getFloatTimeDomainData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/getFloatTimeDomainData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"] pub fn get_float_time_domain_data(this: &AnalyserNode, array: &mut [f32]); } web-sys-0.3.55/src/features/gen_AnalyserOptions.rs000064400000000000000000000122430072674642500202770ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AnalyserOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AnalyserOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnalyserOptions`*"] pub type AnalyserOptions; } impl AnalyserOptions { #[doc = "Construct a new `AnalyserOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnalyserOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnalyserOptions`*"] pub fn channel_count(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("channelCount"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "ChannelCountMode")] #[doc = "Change the `channelCountMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnalyserOptions`, `ChannelCountMode`*"] pub fn channel_count_mode(&mut self, val: ChannelCountMode) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("channelCountMode"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "ChannelInterpretation")] #[doc = "Change the `channelInterpretation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnalyserOptions`, `ChannelInterpretation`*"] pub fn channel_interpretation(&mut self, val: ChannelInterpretation) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("channelInterpretation"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `fftSize` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnalyserOptions`*"] pub fn fft_size(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("fftSize"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `maxDecibels` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnalyserOptions`*"] pub fn max_decibels(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("maxDecibels"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `minDecibels` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnalyserOptions`*"] pub fn min_decibels(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("minDecibels"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `smoothingTimeConstant` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnalyserOptions`*"] pub fn smoothing_time_constant(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("smoothingTimeConstant"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for AnalyserOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_AngleInstancedArrays.rs000064400000000000000000000064670072674642500212210ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = ANGLE_instanced_arrays , typescript_type = "ANGLE_instanced_arrays")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AngleInstancedArrays` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ANGLE_instanced_arrays)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AngleInstancedArrays`*"] pub type AngleInstancedArrays; # [wasm_bindgen (method , structural , js_class = "ANGLE_instanced_arrays" , js_name = drawArraysInstancedANGLE)] #[doc = "The `drawArraysInstancedANGLE()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ANGLE_instanced_arrays/drawArraysInstancedANGLE)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AngleInstancedArrays`*"] pub fn draw_arrays_instanced_angle( this: &AngleInstancedArrays, mode: u32, first: i32, count: i32, primcount: i32, ); # [wasm_bindgen (method , structural , js_class = "ANGLE_instanced_arrays" , js_name = drawElementsInstancedANGLE)] #[doc = "The `drawElementsInstancedANGLE()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ANGLE_instanced_arrays/drawElementsInstancedANGLE)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AngleInstancedArrays`*"] pub fn draw_elements_instanced_angle_with_i32( this: &AngleInstancedArrays, mode: u32, count: i32, type_: u32, offset: i32, primcount: i32, ); # [wasm_bindgen (method , structural , js_class = "ANGLE_instanced_arrays" , js_name = drawElementsInstancedANGLE)] #[doc = "The `drawElementsInstancedANGLE()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ANGLE_instanced_arrays/drawElementsInstancedANGLE)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AngleInstancedArrays`*"] pub fn draw_elements_instanced_angle_with_f64( this: &AngleInstancedArrays, mode: u32, count: i32, type_: u32, offset: f64, primcount: i32, ); # [wasm_bindgen (method , structural , js_class = "ANGLE_instanced_arrays" , js_name = vertexAttribDivisorANGLE)] #[doc = "The `vertexAttribDivisorANGLE()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ANGLE_instanced_arrays/vertexAttribDivisorANGLE)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AngleInstancedArrays`*"] pub fn vertex_attrib_divisor_angle(this: &AngleInstancedArrays, index: u32, divisor: u32); } impl AngleInstancedArrays { #[doc = "The `ANGLE_instanced_arrays.VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AngleInstancedArrays`*"] pub const VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: u32 = 35070u64 as u32; } web-sys-0.3.55/src/features/gen_Animation.rs000064400000000000000000000334530072674642500170720ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = Animation , typescript_type = "Animation")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Animation` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`*"] pub type Animation; # [wasm_bindgen (structural , method , getter , js_class = "Animation" , js_name = id)] #[doc = "Getter for the `id` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/id)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`*"] pub fn id(this: &Animation) -> String; # [wasm_bindgen (structural , method , setter , js_class = "Animation" , js_name = id)] #[doc = "Setter for the `id` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/id)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`*"] pub fn set_id(this: &Animation, value: &str); #[cfg(feature = "AnimationEffect")] # [wasm_bindgen (structural , method , getter , js_class = "Animation" , js_name = effect)] #[doc = "Getter for the `effect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/effect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`, `AnimationEffect`*"] pub fn effect(this: &Animation) -> Option; #[cfg(feature = "AnimationEffect")] # [wasm_bindgen (structural , method , setter , js_class = "Animation" , js_name = effect)] #[doc = "Setter for the `effect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/effect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`, `AnimationEffect`*"] pub fn set_effect(this: &Animation, value: Option<&AnimationEffect>); #[cfg(feature = "AnimationTimeline")] # [wasm_bindgen (structural , method , getter , js_class = "Animation" , js_name = timeline)] #[doc = "Getter for the `timeline` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/timeline)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`, `AnimationTimeline`*"] pub fn timeline(this: &Animation) -> Option; #[cfg(feature = "AnimationTimeline")] # [wasm_bindgen (structural , method , setter , js_class = "Animation" , js_name = timeline)] #[doc = "Setter for the `timeline` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/timeline)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`, `AnimationTimeline`*"] pub fn set_timeline(this: &Animation, value: Option<&AnimationTimeline>); # [wasm_bindgen (structural , method , getter , js_class = "Animation" , js_name = startTime)] #[doc = "Getter for the `startTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/startTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`*"] pub fn start_time(this: &Animation) -> Option; # [wasm_bindgen (structural , method , setter , js_class = "Animation" , js_name = startTime)] #[doc = "Setter for the `startTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/startTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`*"] pub fn set_start_time(this: &Animation, value: Option); # [wasm_bindgen (structural , method , getter , js_class = "Animation" , js_name = currentTime)] #[doc = "Getter for the `currentTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/currentTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`*"] pub fn current_time(this: &Animation) -> Option; # [wasm_bindgen (structural , method , setter , js_class = "Animation" , js_name = currentTime)] #[doc = "Setter for the `currentTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/currentTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`*"] pub fn set_current_time(this: &Animation, value: Option); # [wasm_bindgen (structural , method , getter , js_class = "Animation" , js_name = playbackRate)] #[doc = "Getter for the `playbackRate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/playbackRate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`*"] pub fn playback_rate(this: &Animation) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "Animation" , js_name = playbackRate)] #[doc = "Setter for the `playbackRate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/playbackRate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`*"] pub fn set_playback_rate(this: &Animation, value: f64); #[cfg(feature = "AnimationPlayState")] # [wasm_bindgen (structural , method , getter , js_class = "Animation" , js_name = playState)] #[doc = "Getter for the `playState` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/playState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`, `AnimationPlayState`*"] pub fn play_state(this: &Animation) -> AnimationPlayState; # [wasm_bindgen (structural , method , getter , js_class = "Animation" , js_name = pending)] #[doc = "Getter for the `pending` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/pending)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`*"] pub fn pending(this: &Animation) -> bool; # [wasm_bindgen (structural , catch , method , getter , js_class = "Animation" , js_name = ready)] #[doc = "Getter for the `ready` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/ready)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`*"] pub fn ready(this: &Animation) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (structural , catch , method , getter , js_class = "Animation" , js_name = finished)] #[doc = "Getter for the `finished` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/finished)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`*"] pub fn finished(this: &Animation) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (structural , method , getter , js_class = "Animation" , js_name = onfinish)] #[doc = "Getter for the `onfinish` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/onfinish)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`*"] pub fn onfinish(this: &Animation) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Animation" , js_name = onfinish)] #[doc = "Setter for the `onfinish` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/onfinish)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`*"] pub fn set_onfinish(this: &Animation, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Animation" , js_name = oncancel)] #[doc = "Getter for the `oncancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/oncancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`*"] pub fn oncancel(this: &Animation) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Animation" , js_name = oncancel)] #[doc = "Setter for the `oncancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/oncancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`*"] pub fn set_oncancel(this: &Animation, value: Option<&::js_sys::Function>); #[wasm_bindgen(catch, constructor, js_class = "Animation")] #[doc = "The `new Animation(..)` constructor, creating a new instance of `Animation`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/Animation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`*"] pub fn new() -> Result; #[cfg(feature = "AnimationEffect")] #[wasm_bindgen(catch, constructor, js_class = "Animation")] #[doc = "The `new Animation(..)` constructor, creating a new instance of `Animation`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/Animation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`, `AnimationEffect`*"] pub fn new_with_effect(effect: Option<&AnimationEffect>) -> Result; #[cfg(all(feature = "AnimationEffect", feature = "AnimationTimeline",))] #[wasm_bindgen(catch, constructor, js_class = "Animation")] #[doc = "The `new Animation(..)` constructor, creating a new instance of `Animation`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/Animation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`, `AnimationEffect`, `AnimationTimeline`*"] pub fn new_with_effect_and_timeline( effect: Option<&AnimationEffect>, timeline: Option<&AnimationTimeline>, ) -> Result; # [wasm_bindgen (method , structural , js_class = "Animation" , js_name = cancel)] #[doc = "The `cancel()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/cancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`*"] pub fn cancel(this: &Animation); # [wasm_bindgen (catch , method , structural , js_class = "Animation" , js_name = finish)] #[doc = "The `finish()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/finish)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`*"] pub fn finish(this: &Animation) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Animation" , js_name = pause)] #[doc = "The `pause()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/pause)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`*"] pub fn pause(this: &Animation) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Animation" , js_name = play)] #[doc = "The `play()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/play)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`*"] pub fn play(this: &Animation) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Animation" , js_name = reverse)] #[doc = "The `reverse()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/reverse)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`*"] pub fn reverse(this: &Animation) -> Result<(), JsValue>; # [wasm_bindgen (method , structural , js_class = "Animation" , js_name = updatePlaybackRate)] #[doc = "The `updatePlaybackRate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/updatePlaybackRate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`*"] pub fn update_playback_rate(this: &Animation, playback_rate: f64); } web-sys-0.3.55/src/features/gen_AnimationEffect.rs000064400000000000000000000052010072674642500201750ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AnimationEffect , typescript_type = "AnimationEffect")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AnimationEffect` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEffect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationEffect`*"] pub type AnimationEffect; #[cfg(feature = "ComputedEffectTiming")] # [wasm_bindgen (method , structural , js_class = "AnimationEffect" , js_name = getComputedTiming)] #[doc = "The `getComputedTiming()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEffect/getComputedTiming)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationEffect`, `ComputedEffectTiming`*"] pub fn get_computed_timing(this: &AnimationEffect) -> ComputedEffectTiming; #[cfg(feature = "EffectTiming")] # [wasm_bindgen (method , structural , js_class = "AnimationEffect" , js_name = getTiming)] #[doc = "The `getTiming()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEffect/getTiming)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationEffect`, `EffectTiming`*"] pub fn get_timing(this: &AnimationEffect) -> EffectTiming; # [wasm_bindgen (catch , method , structural , js_class = "AnimationEffect" , js_name = updateTiming)] #[doc = "The `updateTiming()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEffect/updateTiming)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationEffect`*"] pub fn update_timing(this: &AnimationEffect) -> Result<(), JsValue>; #[cfg(feature = "OptionalEffectTiming")] # [wasm_bindgen (catch , method , structural , js_class = "AnimationEffect" , js_name = updateTiming)] #[doc = "The `updateTiming()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEffect/updateTiming)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationEffect`, `OptionalEffectTiming`*"] pub fn update_timing_with_timing( this: &AnimationEffect, timing: &OptionalEffectTiming, ) -> Result<(), JsValue>; } web-sys-0.3.55/src/features/gen_AnimationEvent.rs000064400000000000000000000060550072674642500200720ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = AnimationEvent , typescript_type = "AnimationEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AnimationEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationEvent`*"] pub type AnimationEvent; # [wasm_bindgen (structural , method , getter , js_class = "AnimationEvent" , js_name = animationName)] #[doc = "Getter for the `animationName` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent/animationName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationEvent`*"] pub fn animation_name(this: &AnimationEvent) -> String; # [wasm_bindgen (structural , method , getter , js_class = "AnimationEvent" , js_name = elapsedTime)] #[doc = "Getter for the `elapsedTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent/elapsedTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationEvent`*"] pub fn elapsed_time(this: &AnimationEvent) -> f32; # [wasm_bindgen (structural , method , getter , js_class = "AnimationEvent" , js_name = pseudoElement)] #[doc = "Getter for the `pseudoElement` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent/pseudoElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationEvent`*"] pub fn pseudo_element(this: &AnimationEvent) -> String; #[wasm_bindgen(catch, constructor, js_class = "AnimationEvent")] #[doc = "The `new AnimationEvent(..)` constructor, creating a new instance of `AnimationEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent/AnimationEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationEvent`*"] pub fn new(type_: &str) -> Result; #[cfg(feature = "AnimationEventInit")] #[wasm_bindgen(catch, constructor, js_class = "AnimationEvent")] #[doc = "The `new AnimationEvent(..)` constructor, creating a new instance of `AnimationEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent/AnimationEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationEvent`, `AnimationEventInit`*"] pub fn new_with_event_init_dict( type_: &str, event_init_dict: &AnimationEventInit, ) -> Result; } web-sys-0.3.55/src/features/gen_AnimationEventInit.rs000064400000000000000000000106060072674642500207130ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AnimationEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AnimationEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationEventInit`*"] pub type AnimationEventInit; } impl AnimationEventInit { #[doc = "Construct a new `AnimationEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `animationName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationEventInit`*"] pub fn animation_name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("animationName"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `elapsedTime` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationEventInit`*"] pub fn elapsed_time(&mut self, val: f32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("elapsedTime"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `pseudoElement` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationEventInit`*"] pub fn pseudo_element(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("pseudoElement"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for AnimationEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_AnimationPlayState.rs000064400000000000000000000006130072674642500207110ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `AnimationPlayState` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPlayState`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum AnimationPlayState { Idle = "idle", Running = "running", Paused = "paused", Finished = "finished", } web-sys-0.3.55/src/features/gen_AnimationPlaybackEvent.rs000064400000000000000000000055160072674642500215420ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = AnimationPlaybackEvent , typescript_type = "AnimationPlaybackEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AnimationPlaybackEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationPlaybackEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEvent`*"] pub type AnimationPlaybackEvent; # [wasm_bindgen (structural , method , getter , js_class = "AnimationPlaybackEvent" , js_name = currentTime)] #[doc = "Getter for the `currentTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationPlaybackEvent/currentTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEvent`*"] pub fn current_time(this: &AnimationPlaybackEvent) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "AnimationPlaybackEvent" , js_name = timelineTime)] #[doc = "Getter for the `timelineTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationPlaybackEvent/timelineTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEvent`*"] pub fn timeline_time(this: &AnimationPlaybackEvent) -> Option; #[wasm_bindgen(catch, constructor, js_class = "AnimationPlaybackEvent")] #[doc = "The `new AnimationPlaybackEvent(..)` constructor, creating a new instance of `AnimationPlaybackEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationPlaybackEvent/AnimationPlaybackEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEvent`*"] pub fn new(type_: &str) -> Result; #[cfg(feature = "AnimationPlaybackEventInit")] #[wasm_bindgen(catch, constructor, js_class = "AnimationPlaybackEvent")] #[doc = "The `new AnimationPlaybackEvent(..)` constructor, creating a new instance of `AnimationPlaybackEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationPlaybackEvent/AnimationPlaybackEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEvent`, `AnimationPlaybackEventInit`*"] pub fn new_with_event_init_dict( type_: &str, event_init_dict: &AnimationPlaybackEventInit, ) -> Result; } web-sys-0.3.55/src/features/gen_AnimationPlaybackEventInit.rs000064400000000000000000000076320072674642500223670ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AnimationPlaybackEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AnimationPlaybackEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEventInit`*"] pub type AnimationPlaybackEventInit; } impl AnimationPlaybackEventInit { #[doc = "Construct a new `AnimationPlaybackEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `currentTime` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEventInit`*"] pub fn current_time(&mut self, val: Option) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("currentTime"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `timelineTime` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEventInit`*"] pub fn timeline_time(&mut self, val: Option) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("timelineTime"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for AnimationPlaybackEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_AnimationPropertyDetails.rs000064400000000000000000000066140072674642500221440ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AnimationPropertyDetails)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AnimationPropertyDetails` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyDetails`*"] pub type AnimationPropertyDetails; } impl AnimationPropertyDetails { #[doc = "Construct a new `AnimationPropertyDetails`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyDetails`*"] pub fn new( property: &str, running_on_compositor: bool, values: &::wasm_bindgen::JsValue, ) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.property(property); ret.running_on_compositor(running_on_compositor); ret.values(values); ret } #[doc = "Change the `property` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyDetails`*"] pub fn property(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("property"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `runningOnCompositor` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyDetails`*"] pub fn running_on_compositor(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("runningOnCompositor"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `values` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyDetails`*"] pub fn values(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("values"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `warning` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyDetails`*"] pub fn warning(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("warning"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_AnimationPropertyValueDetails.rs000064400000000000000000000065060072674642500231410ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AnimationPropertyValueDetails)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AnimationPropertyValueDetails` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyValueDetails`*"] pub type AnimationPropertyValueDetails; } impl AnimationPropertyValueDetails { #[cfg(feature = "CompositeOperation")] #[doc = "Construct a new `AnimationPropertyValueDetails`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyValueDetails`, `CompositeOperation`*"] pub fn new(composite: CompositeOperation, offset: f64) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.composite(composite); ret.offset(offset); ret } #[cfg(feature = "CompositeOperation")] #[doc = "Change the `composite` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyValueDetails`, `CompositeOperation`*"] pub fn composite(&mut self, val: CompositeOperation) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composite"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `easing` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyValueDetails`*"] pub fn easing(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("easing"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `offset` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyValueDetails`*"] pub fn offset(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("offset"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `value` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyValueDetails`*"] pub fn value(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("value"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_AnimationTimeline.rs000064400000000000000000000020560072674642500205540ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AnimationTimeline , typescript_type = "AnimationTimeline")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AnimationTimeline` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationTimeline)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationTimeline`*"] pub type AnimationTimeline; # [wasm_bindgen (structural , method , getter , js_class = "AnimationTimeline" , js_name = currentTime)] #[doc = "Getter for the `currentTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationTimeline/currentTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationTimeline`*"] pub fn current_time(this: &AnimationTimeline) -> Option; } web-sys-0.3.55/src/features/gen_AssignedNodesOptions.rs000064400000000000000000000027310072674642500212500ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AssignedNodesOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AssignedNodesOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AssignedNodesOptions`*"] pub type AssignedNodesOptions; } impl AssignedNodesOptions { #[doc = "Construct a new `AssignedNodesOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AssignedNodesOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `flatten` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AssignedNodesOptions`*"] pub fn flatten(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("flatten"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for AssignedNodesOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_AttestationConveyancePreference.rs000064400000000000000000000006310072674642500234540ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `AttestationConveyancePreference` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AttestationConveyancePreference`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum AttestationConveyancePreference { None = "none", Indirect = "indirect", Direct = "direct", } web-sys-0.3.55/src/features/gen_Attr.rs000064400000000000000000000066240072674642500160650ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = Attr , typescript_type = "Attr")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Attr` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Attr)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Attr`*"] pub type Attr; # [wasm_bindgen (structural , method , getter , js_class = "Attr" , js_name = localName)] #[doc = "Getter for the `localName` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Attr/localName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Attr`*"] pub fn local_name(this: &Attr) -> String; # [wasm_bindgen (structural , method , getter , js_class = "Attr" , js_name = value)] #[doc = "Getter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Attr/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Attr`*"] pub fn value(this: &Attr) -> String; # [wasm_bindgen (structural , method , setter , js_class = "Attr" , js_name = value)] #[doc = "Setter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Attr/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Attr`*"] pub fn set_value(this: &Attr, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "Attr" , js_name = name)] #[doc = "Getter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Attr/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Attr`*"] pub fn name(this: &Attr) -> String; # [wasm_bindgen (structural , method , getter , js_class = "Attr" , js_name = namespaceURI)] #[doc = "Getter for the `namespaceURI` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Attr/namespaceURI)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Attr`*"] pub fn namespace_uri(this: &Attr) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "Attr" , js_name = prefix)] #[doc = "Getter for the `prefix` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Attr/prefix)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Attr`*"] pub fn prefix(this: &Attr) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "Attr" , js_name = specified)] #[doc = "Getter for the `specified` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Attr/specified)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Attr`*"] pub fn specified(this: &Attr) -> bool; } web-sys-0.3.55/src/features/gen_AttributeNameValue.rs000064400000000000000000000036230072674642500207100ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AttributeNameValue)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AttributeNameValue` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AttributeNameValue`*"] pub type AttributeNameValue; } impl AttributeNameValue { #[doc = "Construct a new `AttributeNameValue`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AttributeNameValue`*"] pub fn new(name: &str, value: &str) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.name(name); ret.value(value); ret } #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AttributeNameValue`*"] pub fn name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `value` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AttributeNameValue`*"] pub fn value(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("value"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_AudioBuffer.rs000064400000000000000000000127670072674642500173530ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioBuffer , typescript_type = "AudioBuffer")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioBuffer` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`*"] pub type AudioBuffer; # [wasm_bindgen (structural , method , getter , js_class = "AudioBuffer" , js_name = sampleRate)] #[doc = "Getter for the `sampleRate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/sampleRate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`*"] pub fn sample_rate(this: &AudioBuffer) -> f32; # [wasm_bindgen (structural , method , getter , js_class = "AudioBuffer" , js_name = length)] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`*"] pub fn length(this: &AudioBuffer) -> u32; # [wasm_bindgen (structural , method , getter , js_class = "AudioBuffer" , js_name = duration)] #[doc = "Getter for the `duration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/duration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`*"] pub fn duration(this: &AudioBuffer) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "AudioBuffer" , js_name = numberOfChannels)] #[doc = "Getter for the `numberOfChannels` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/numberOfChannels)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`*"] pub fn number_of_channels(this: &AudioBuffer) -> u32; #[cfg(feature = "AudioBufferOptions")] #[wasm_bindgen(catch, constructor, js_class = "AudioBuffer")] #[doc = "The `new AudioBuffer(..)` constructor, creating a new instance of `AudioBuffer`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/AudioBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`, `AudioBufferOptions`*"] pub fn new(options: &AudioBufferOptions) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "AudioBuffer" , js_name = copyFromChannel)] #[doc = "The `copyFromChannel()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/copyFromChannel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`*"] pub fn copy_from_channel( this: &AudioBuffer, destination: &mut [f32], channel_number: i32, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "AudioBuffer" , js_name = copyFromChannel)] #[doc = "The `copyFromChannel()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/copyFromChannel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`*"] pub fn copy_from_channel_with_start_in_channel( this: &AudioBuffer, destination: &mut [f32], channel_number: i32, start_in_channel: u32, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "AudioBuffer" , js_name = copyToChannel)] #[doc = "The `copyToChannel()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/copyToChannel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`*"] pub fn copy_to_channel( this: &AudioBuffer, source: &[f32], channel_number: i32, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "AudioBuffer" , js_name = copyToChannel)] #[doc = "The `copyToChannel()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/copyToChannel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`*"] pub fn copy_to_channel_with_start_in_channel( this: &AudioBuffer, source: &[f32], channel_number: i32, start_in_channel: u32, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "AudioBuffer" , js_name = getChannelData)] #[doc = "The `getChannelData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/getChannelData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`*"] pub fn get_channel_data(this: &AudioBuffer, channel: u32) -> Result, JsValue>; } web-sys-0.3.55/src/features/gen_AudioBufferOptions.rs000064400000000000000000000051410072674642500207130ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioBufferOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioBufferOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferOptions`*"] pub type AudioBufferOptions; } impl AudioBufferOptions { #[doc = "Construct a new `AudioBufferOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferOptions`*"] pub fn new(length: u32, sample_rate: f32) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.length(length); ret.sample_rate(sample_rate); ret } #[doc = "Change the `length` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferOptions`*"] pub fn length(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("length"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `numberOfChannels` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferOptions`*"] pub fn number_of_channels(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("numberOfChannels"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `sampleRate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferOptions`*"] pub fn sample_rate(&mut self, val: f32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("sampleRate"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_AudioBufferSourceNode.rs000064400000000000000000000256670072674642500213450ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = AudioScheduledSourceNode , extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = AudioBufferSourceNode , typescript_type = "AudioBufferSourceNode")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioBufferSourceNode` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`*"] pub type AudioBufferSourceNode; #[cfg(feature = "AudioBuffer")] # [wasm_bindgen (structural , method , getter , js_class = "AudioBufferSourceNode" , js_name = buffer)] #[doc = "Getter for the `buffer` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/buffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`, `AudioBufferSourceNode`*"] pub fn buffer(this: &AudioBufferSourceNode) -> Option; #[cfg(feature = "AudioBuffer")] # [wasm_bindgen (structural , method , setter , js_class = "AudioBufferSourceNode" , js_name = buffer)] #[doc = "Setter for the `buffer` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/buffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`, `AudioBufferSourceNode`*"] pub fn set_buffer(this: &AudioBufferSourceNode, value: Option<&AudioBuffer>); #[cfg(feature = "AudioParam")] # [wasm_bindgen (structural , method , getter , js_class = "AudioBufferSourceNode" , js_name = playbackRate)] #[doc = "Getter for the `playbackRate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/playbackRate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`, `AudioParam`*"] pub fn playback_rate(this: &AudioBufferSourceNode) -> AudioParam; #[cfg(feature = "AudioParam")] # [wasm_bindgen (structural , method , getter , js_class = "AudioBufferSourceNode" , js_name = detune)] #[doc = "Getter for the `detune` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/detune)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`, `AudioParam`*"] pub fn detune(this: &AudioBufferSourceNode) -> AudioParam; # [wasm_bindgen (structural , method , getter , js_class = "AudioBufferSourceNode" , js_name = loop)] #[doc = "Getter for the `loop` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/loop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`*"] pub fn loop_(this: &AudioBufferSourceNode) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "AudioBufferSourceNode" , js_name = loop)] #[doc = "Setter for the `loop` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/loop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`*"] pub fn set_loop(this: &AudioBufferSourceNode, value: bool); # [wasm_bindgen (structural , method , getter , js_class = "AudioBufferSourceNode" , js_name = loopStart)] #[doc = "Getter for the `loopStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/loopStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`*"] pub fn loop_start(this: &AudioBufferSourceNode) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "AudioBufferSourceNode" , js_name = loopStart)] #[doc = "Setter for the `loopStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/loopStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`*"] pub fn set_loop_start(this: &AudioBufferSourceNode, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "AudioBufferSourceNode" , js_name = loopEnd)] #[doc = "Getter for the `loopEnd` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/loopEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`*"] pub fn loop_end(this: &AudioBufferSourceNode) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "AudioBufferSourceNode" , js_name = loopEnd)] #[doc = "Setter for the `loopEnd` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/loopEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`*"] pub fn set_loop_end(this: &AudioBufferSourceNode, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "AudioBufferSourceNode" , js_name = onended)] #[doc = "Getter for the `onended` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/onended)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`*"] pub fn onended(this: &AudioBufferSourceNode) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "AudioBufferSourceNode" , js_name = onended)] #[doc = "Setter for the `onended` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/onended)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`*"] pub fn set_onended(this: &AudioBufferSourceNode, value: Option<&::js_sys::Function>); #[cfg(feature = "BaseAudioContext")] #[wasm_bindgen(catch, constructor, js_class = "AudioBufferSourceNode")] #[doc = "The `new AudioBufferSourceNode(..)` constructor, creating a new instance of `AudioBufferSourceNode`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/AudioBufferSourceNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`, `BaseAudioContext`*"] pub fn new(context: &BaseAudioContext) -> Result; #[cfg(all(feature = "AudioBufferSourceOptions", feature = "BaseAudioContext",))] #[wasm_bindgen(catch, constructor, js_class = "AudioBufferSourceNode")] #[doc = "The `new AudioBufferSourceNode(..)` constructor, creating a new instance of `AudioBufferSourceNode`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/AudioBufferSourceNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`, `AudioBufferSourceOptions`, `BaseAudioContext`*"] pub fn new_with_options( context: &BaseAudioContext, options: &AudioBufferSourceOptions, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "AudioBufferSourceNode" , js_name = start)] #[doc = "The `start()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/start)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`*"] pub fn start(this: &AudioBufferSourceNode) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "AudioBufferSourceNode" , js_name = start)] #[doc = "The `start()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/start)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`*"] pub fn start_with_when(this: &AudioBufferSourceNode, when: f64) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "AudioBufferSourceNode" , js_name = start)] #[doc = "The `start()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/start)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`*"] pub fn start_with_when_and_grain_offset( this: &AudioBufferSourceNode, when: f64, grain_offset: f64, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "AudioBufferSourceNode" , js_name = start)] #[doc = "The `start()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/start)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`*"] pub fn start_with_when_and_grain_offset_and_grain_duration( this: &AudioBufferSourceNode, when: f64, grain_offset: f64, grain_duration: f64, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "AudioBufferSourceNode" , js_name = stop)] #[doc = "The `stop()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/stop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`*"] pub fn stop(this: &AudioBufferSourceNode) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "AudioBufferSourceNode" , js_name = stop)] #[doc = "The `stop()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/stop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`*"] pub fn stop_with_when(this: &AudioBufferSourceNode, when: f64) -> Result<(), JsValue>; } web-sys-0.3.55/src/features/gen_AudioBufferSourceOptions.rs000064400000000000000000000105600072674642500220750ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioBufferSourceOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioBufferSourceOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceOptions`*"] pub type AudioBufferSourceOptions; } impl AudioBufferSourceOptions { #[doc = "Construct a new `AudioBufferSourceOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(feature = "AudioBuffer")] #[doc = "Change the `buffer` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`, `AudioBufferSourceOptions`*"] pub fn buffer(&mut self, val: Option<&AudioBuffer>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("buffer"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `detune` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceOptions`*"] pub fn detune(&mut self, val: f32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("detune"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `loop` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceOptions`*"] pub fn loop_(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("loop"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `loopEnd` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceOptions`*"] pub fn loop_end(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("loopEnd"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `loopStart` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceOptions`*"] pub fn loop_start(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("loopStart"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `playbackRate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceOptions`*"] pub fn playback_rate(&mut self, val: f32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("playbackRate"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for AudioBufferSourceOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_AudioConfiguration.rs000064400000000000000000000063050072674642500207400ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioConfiguration)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioConfiguration` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioConfiguration`*"] pub type AudioConfiguration; } impl AudioConfiguration { #[doc = "Construct a new `AudioConfiguration`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioConfiguration`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bitrate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioConfiguration`*"] pub fn bitrate(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bitrate"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `channels` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioConfiguration`*"] pub fn channels(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("channels"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `contentType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioConfiguration`*"] pub fn content_type(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("contentType"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `samplerate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioConfiguration`*"] pub fn samplerate(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("samplerate"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for AudioConfiguration { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_AudioContext.rs000064400000000000000000000623300072674642500175550ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (vendor_prefix = webkit , extends = BaseAudioContext , extends = EventTarget , extends = :: js_sys :: Object , js_name = AudioContext , typescript_type = "AudioContext")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioContext` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContext`*"] pub type AudioContext; #[cfg(feature = "AudioDestinationNode")] # [wasm_bindgen (structural , method , getter , js_class = "AudioContext" , js_name = destination)] #[doc = "Getter for the `destination` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/destination)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `AudioDestinationNode`*"] pub fn destination(this: &AudioContext) -> AudioDestinationNode; # [wasm_bindgen (structural , method , getter , js_class = "AudioContext" , js_name = sampleRate)] #[doc = "Getter for the `sampleRate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/sampleRate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContext`*"] pub fn sample_rate(this: &AudioContext) -> f32; # [wasm_bindgen (structural , method , getter , js_class = "AudioContext" , js_name = currentTime)] #[doc = "Getter for the `currentTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/currentTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContext`*"] pub fn current_time(this: &AudioContext) -> f64; #[cfg(feature = "AudioListener")] # [wasm_bindgen (structural , method , getter , js_class = "AudioContext" , js_name = listener)] #[doc = "Getter for the `listener` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/listener)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `AudioListener`*"] pub fn listener(this: &AudioContext) -> AudioListener; #[cfg(feature = "AudioContextState")] # [wasm_bindgen (structural , method , getter , js_class = "AudioContext" , js_name = state)] #[doc = "Getter for the `state` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/state)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `AudioContextState`*"] pub fn state(this: &AudioContext) -> AudioContextState; #[cfg(feature = "AudioWorklet")] # [wasm_bindgen (structural , catch , method , getter , js_class = "AudioContext" , js_name = audioWorklet)] #[doc = "Getter for the `audioWorklet` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/audioWorklet)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `AudioWorklet`*"] pub fn audio_worklet(this: &AudioContext) -> Result; # [wasm_bindgen (structural , method , getter , js_class = "AudioContext" , js_name = onstatechange)] #[doc = "Getter for the `onstatechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/onstatechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContext`*"] pub fn onstatechange(this: &AudioContext) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "AudioContext" , js_name = onstatechange)] #[doc = "Setter for the `onstatechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/onstatechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContext`*"] pub fn set_onstatechange(this: &AudioContext, value: Option<&::js_sys::Function>); #[wasm_bindgen(catch, constructor, js_class = "AudioContext")] #[doc = "The `new AudioContext(..)` constructor, creating a new instance of `AudioContext`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/AudioContext)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContext`*"] pub fn new() -> Result; #[cfg(feature = "AudioContextOptions")] #[wasm_bindgen(catch, constructor, js_class = "AudioContext")] #[doc = "The `new AudioContext(..)` constructor, creating a new instance of `AudioContext`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/AudioContext)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `AudioContextOptions`*"] pub fn new_with_context_options( context_options: &AudioContextOptions, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = close)] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContext`*"] pub fn close(this: &AudioContext) -> Result<::js_sys::Promise, JsValue>; #[cfg(all(feature = "HtmlMediaElement", feature = "MediaElementAudioSourceNode",))] # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createMediaElementSource)] #[doc = "The `createMediaElementSource()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createMediaElementSource)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `HtmlMediaElement`, `MediaElementAudioSourceNode`*"] pub fn create_media_element_source( this: &AudioContext, media_element: &HtmlMediaElement, ) -> Result; #[cfg(feature = "MediaStreamAudioDestinationNode")] # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createMediaStreamDestination)] #[doc = "The `createMediaStreamDestination()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createMediaStreamDestination)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `MediaStreamAudioDestinationNode`*"] pub fn create_media_stream_destination( this: &AudioContext, ) -> Result; #[cfg(all(feature = "MediaStream", feature = "MediaStreamAudioSourceNode",))] # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createMediaStreamSource)] #[doc = "The `createMediaStreamSource()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createMediaStreamSource)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `MediaStream`, `MediaStreamAudioSourceNode`*"] pub fn create_media_stream_source( this: &AudioContext, media_stream: &MediaStream, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = suspend)] #[doc = "The `suspend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/suspend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContext`*"] pub fn suspend(this: &AudioContext) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "AnalyserNode")] # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createAnalyser)] #[doc = "The `createAnalyser()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createAnalyser)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnalyserNode`, `AudioContext`*"] pub fn create_analyser(this: &AudioContext) -> Result; #[cfg(feature = "BiquadFilterNode")] # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createBiquadFilter)] #[doc = "The `createBiquadFilter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createBiquadFilter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `BiquadFilterNode`*"] pub fn create_biquad_filter(this: &AudioContext) -> Result; #[cfg(feature = "AudioBuffer")] # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createBuffer)] #[doc = "The `createBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`, `AudioContext`*"] pub fn create_buffer( this: &AudioContext, number_of_channels: u32, length: u32, sample_rate: f32, ) -> Result; #[cfg(feature = "AudioBufferSourceNode")] # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createBufferSource)] #[doc = "The `createBufferSource()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createBufferSource)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`, `AudioContext`*"] pub fn create_buffer_source(this: &AudioContext) -> Result; #[cfg(feature = "ChannelMergerNode")] # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createChannelMerger)] #[doc = "The `createChannelMerger()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createChannelMerger)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `ChannelMergerNode`*"] pub fn create_channel_merger(this: &AudioContext) -> Result; #[cfg(feature = "ChannelMergerNode")] # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createChannelMerger)] #[doc = "The `createChannelMerger()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createChannelMerger)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `ChannelMergerNode`*"] pub fn create_channel_merger_with_number_of_inputs( this: &AudioContext, number_of_inputs: u32, ) -> Result; #[cfg(feature = "ChannelSplitterNode")] # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createChannelSplitter)] #[doc = "The `createChannelSplitter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createChannelSplitter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `ChannelSplitterNode`*"] pub fn create_channel_splitter(this: &AudioContext) -> Result; #[cfg(feature = "ChannelSplitterNode")] # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createChannelSplitter)] #[doc = "The `createChannelSplitter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createChannelSplitter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `ChannelSplitterNode`*"] pub fn create_channel_splitter_with_number_of_outputs( this: &AudioContext, number_of_outputs: u32, ) -> Result; #[cfg(feature = "ConstantSourceNode")] # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createConstantSource)] #[doc = "The `createConstantSource()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createConstantSource)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `ConstantSourceNode`*"] pub fn create_constant_source(this: &AudioContext) -> Result; #[cfg(feature = "ConvolverNode")] # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createConvolver)] #[doc = "The `createConvolver()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createConvolver)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `ConvolverNode`*"] pub fn create_convolver(this: &AudioContext) -> Result; #[cfg(feature = "DelayNode")] # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createDelay)] #[doc = "The `createDelay()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createDelay)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `DelayNode`*"] pub fn create_delay(this: &AudioContext) -> Result; #[cfg(feature = "DelayNode")] # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createDelay)] #[doc = "The `createDelay()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createDelay)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `DelayNode`*"] pub fn create_delay_with_max_delay_time( this: &AudioContext, max_delay_time: f64, ) -> Result; #[cfg(feature = "DynamicsCompressorNode")] # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createDynamicsCompressor)] #[doc = "The `createDynamicsCompressor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createDynamicsCompressor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `DynamicsCompressorNode`*"] pub fn create_dynamics_compressor( this: &AudioContext, ) -> Result; #[cfg(feature = "GainNode")] # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createGain)] #[doc = "The `createGain()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createGain)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `GainNode`*"] pub fn create_gain(this: &AudioContext) -> Result; #[cfg(feature = "IirFilterNode")] # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createIIRFilter)] #[doc = "The `createIIRFilter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createIIRFilter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `IirFilterNode`*"] pub fn create_iir_filter( this: &AudioContext, feedforward: &::wasm_bindgen::JsValue, feedback: &::wasm_bindgen::JsValue, ) -> Result; #[cfg(feature = "OscillatorNode")] # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createOscillator)] #[doc = "The `createOscillator()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createOscillator)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `OscillatorNode`*"] pub fn create_oscillator(this: &AudioContext) -> Result; #[cfg(feature = "PannerNode")] # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createPanner)] #[doc = "The `createPanner()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createPanner)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `PannerNode`*"] pub fn create_panner(this: &AudioContext) -> Result; #[cfg(feature = "PeriodicWave")] # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createPeriodicWave)] #[doc = "The `createPeriodicWave()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createPeriodicWave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `PeriodicWave`*"] pub fn create_periodic_wave( this: &AudioContext, real: &mut [f32], imag: &mut [f32], ) -> Result; #[cfg(all(feature = "PeriodicWave", feature = "PeriodicWaveConstraints",))] # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createPeriodicWave)] #[doc = "The `createPeriodicWave()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createPeriodicWave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `PeriodicWave`, `PeriodicWaveConstraints`*"] pub fn create_periodic_wave_with_constraints( this: &AudioContext, real: &mut [f32], imag: &mut [f32], constraints: &PeriodicWaveConstraints, ) -> Result; #[cfg(feature = "ScriptProcessorNode")] # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createScriptProcessor)] #[doc = "The `createScriptProcessor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createScriptProcessor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `ScriptProcessorNode`*"] pub fn create_script_processor(this: &AudioContext) -> Result; #[cfg(feature = "ScriptProcessorNode")] # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createScriptProcessor)] #[doc = "The `createScriptProcessor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createScriptProcessor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `ScriptProcessorNode`*"] pub fn create_script_processor_with_buffer_size( this: &AudioContext, buffer_size: u32, ) -> Result; #[cfg(feature = "ScriptProcessorNode")] # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createScriptProcessor)] #[doc = "The `createScriptProcessor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createScriptProcessor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `ScriptProcessorNode`*"] pub fn create_script_processor_with_buffer_size_and_number_of_input_channels( this: &AudioContext, buffer_size: u32, number_of_input_channels: u32, ) -> Result; #[cfg(feature = "ScriptProcessorNode")] # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createScriptProcessor)] #[doc = "The `createScriptProcessor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createScriptProcessor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `ScriptProcessorNode`*"] pub fn create_script_processor_with_buffer_size_and_number_of_input_channels_and_number_of_output_channels( this: &AudioContext, buffer_size: u32, number_of_input_channels: u32, number_of_output_channels: u32, ) -> Result; #[cfg(feature = "StereoPannerNode")] # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createStereoPanner)] #[doc = "The `createStereoPanner()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createStereoPanner)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `StereoPannerNode`*"] pub fn create_stereo_panner(this: &AudioContext) -> Result; #[cfg(feature = "WaveShaperNode")] # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = createWaveShaper)] #[doc = "The `createWaveShaper()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createWaveShaper)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `WaveShaperNode`*"] pub fn create_wave_shaper(this: &AudioContext) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = decodeAudioData)] #[doc = "The `decodeAudioData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/decodeAudioData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContext`*"] pub fn decode_audio_data( this: &AudioContext, audio_data: &::js_sys::ArrayBuffer, ) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = decodeAudioData)] #[doc = "The `decodeAudioData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/decodeAudioData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContext`*"] pub fn decode_audio_data_with_success_callback( this: &AudioContext, audio_data: &::js_sys::ArrayBuffer, success_callback: &::js_sys::Function, ) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = decodeAudioData)] #[doc = "The `decodeAudioData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/decodeAudioData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContext`*"] pub fn decode_audio_data_with_success_callback_and_error_callback( this: &AudioContext, audio_data: &::js_sys::ArrayBuffer, success_callback: &::js_sys::Function, error_callback: &::js_sys::Function, ) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = resume)] #[doc = "The `resume()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/resume)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContext`*"] pub fn resume(this: &AudioContext) -> Result<::js_sys::Promise, JsValue>; } web-sys-0.3.55/src/features/gen_AudioContextOptions.rs000064400000000000000000000027310072674642500211300ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioContextOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioContextOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContextOptions`*"] pub type AudioContextOptions; } impl AudioContextOptions { #[doc = "Construct a new `AudioContextOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContextOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `sampleRate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContextOptions`*"] pub fn sample_rate(&mut self, val: f32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("sampleRate"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for AudioContextOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_AudioContextState.rs000064400000000000000000000005670072674642500205620ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `AudioContextState` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContextState`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum AudioContextState { Suspended = "suspended", Running = "running", Closed = "closed", } web-sys-0.3.55/src/features/gen_AudioDestinationNode.rs000064400000000000000000000022030072674642500212110ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = AudioDestinationNode , typescript_type = "AudioDestinationNode")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioDestinationNode` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioDestinationNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDestinationNode`*"] pub type AudioDestinationNode; # [wasm_bindgen (structural , method , getter , js_class = "AudioDestinationNode" , js_name = maxChannelCount)] #[doc = "Getter for the `maxChannelCount` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioDestinationNode/maxChannelCount)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDestinationNode`*"] pub fn max_channel_count(this: &AudioDestinationNode) -> u32; } web-sys-0.3.55/src/features/gen_AudioListener.rs000064400000000000000000000075170072674642500177240ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioListener , typescript_type = "AudioListener")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioListener` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioListener)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioListener`*"] pub type AudioListener; # [wasm_bindgen (structural , method , getter , js_class = "AudioListener" , js_name = dopplerFactor)] #[doc = "Getter for the `dopplerFactor` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/dopplerFactor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioListener`*"] pub fn doppler_factor(this: &AudioListener) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "AudioListener" , js_name = dopplerFactor)] #[doc = "Setter for the `dopplerFactor` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/dopplerFactor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioListener`*"] pub fn set_doppler_factor(this: &AudioListener, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "AudioListener" , js_name = speedOfSound)] #[doc = "Getter for the `speedOfSound` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/speedOfSound)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioListener`*"] pub fn speed_of_sound(this: &AudioListener) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "AudioListener" , js_name = speedOfSound)] #[doc = "Setter for the `speedOfSound` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/speedOfSound)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioListener`*"] pub fn set_speed_of_sound(this: &AudioListener, value: f64); # [wasm_bindgen (method , structural , js_class = "AudioListener" , js_name = setOrientation)] #[doc = "The `setOrientation()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/setOrientation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioListener`*"] pub fn set_orientation( this: &AudioListener, x: f64, y: f64, z: f64, x_up: f64, y_up: f64, z_up: f64, ); # [wasm_bindgen (method , structural , js_class = "AudioListener" , js_name = setPosition)] #[doc = "The `setPosition()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/setPosition)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioListener`*"] pub fn set_position(this: &AudioListener, x: f64, y: f64, z: f64); # [wasm_bindgen (method , structural , js_class = "AudioListener" , js_name = setVelocity)] #[doc = "The `setVelocity()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/setVelocity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioListener`*"] pub fn set_velocity(this: &AudioListener, x: f64, y: f64, z: f64); } web-sys-0.3.55/src/features/gen_AudioNode.rs000064400000000000000000000263320072674642500170200ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = AudioNode , typescript_type = "AudioNode")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioNode` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioNode`*"] pub type AudioNode; #[cfg(feature = "BaseAudioContext")] # [wasm_bindgen (structural , method , getter , js_class = "AudioNode" , js_name = context)] #[doc = "Getter for the `context` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/context)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioNode`, `BaseAudioContext`*"] pub fn context(this: &AudioNode) -> BaseAudioContext; # [wasm_bindgen (structural , method , getter , js_class = "AudioNode" , js_name = numberOfInputs)] #[doc = "Getter for the `numberOfInputs` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/numberOfInputs)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioNode`*"] pub fn number_of_inputs(this: &AudioNode) -> u32; # [wasm_bindgen (structural , method , getter , js_class = "AudioNode" , js_name = numberOfOutputs)] #[doc = "Getter for the `numberOfOutputs` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/numberOfOutputs)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioNode`*"] pub fn number_of_outputs(this: &AudioNode) -> u32; # [wasm_bindgen (structural , method , getter , js_class = "AudioNode" , js_name = channelCount)] #[doc = "Getter for the `channelCount` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/channelCount)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioNode`*"] pub fn channel_count(this: &AudioNode) -> u32; # [wasm_bindgen (structural , method , setter , js_class = "AudioNode" , js_name = channelCount)] #[doc = "Setter for the `channelCount` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/channelCount)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioNode`*"] pub fn set_channel_count(this: &AudioNode, value: u32); #[cfg(feature = "ChannelCountMode")] # [wasm_bindgen (structural , method , getter , js_class = "AudioNode" , js_name = channelCountMode)] #[doc = "Getter for the `channelCountMode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/channelCountMode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioNode`, `ChannelCountMode`*"] pub fn channel_count_mode(this: &AudioNode) -> ChannelCountMode; #[cfg(feature = "ChannelCountMode")] # [wasm_bindgen (structural , method , setter , js_class = "AudioNode" , js_name = channelCountMode)] #[doc = "Setter for the `channelCountMode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/channelCountMode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioNode`, `ChannelCountMode`*"] pub fn set_channel_count_mode(this: &AudioNode, value: ChannelCountMode); #[cfg(feature = "ChannelInterpretation")] # [wasm_bindgen (structural , method , getter , js_class = "AudioNode" , js_name = channelInterpretation)] #[doc = "Getter for the `channelInterpretation` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/channelInterpretation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioNode`, `ChannelInterpretation`*"] pub fn channel_interpretation(this: &AudioNode) -> ChannelInterpretation; #[cfg(feature = "ChannelInterpretation")] # [wasm_bindgen (structural , method , setter , js_class = "AudioNode" , js_name = channelInterpretation)] #[doc = "Setter for the `channelInterpretation` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/channelInterpretation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioNode`, `ChannelInterpretation`*"] pub fn set_channel_interpretation(this: &AudioNode, value: ChannelInterpretation); # [wasm_bindgen (catch , method , structural , js_class = "AudioNode" , js_name = connect)] #[doc = "The `connect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/connect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioNode`*"] pub fn connect_with_audio_node( this: &AudioNode, destination: &AudioNode, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "AudioNode" , js_name = connect)] #[doc = "The `connect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/connect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioNode`*"] pub fn connect_with_audio_node_and_output( this: &AudioNode, destination: &AudioNode, output: u32, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "AudioNode" , js_name = connect)] #[doc = "The `connect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/connect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioNode`*"] pub fn connect_with_audio_node_and_output_and_input( this: &AudioNode, destination: &AudioNode, output: u32, input: u32, ) -> Result; #[cfg(feature = "AudioParam")] # [wasm_bindgen (catch , method , structural , js_class = "AudioNode" , js_name = connect)] #[doc = "The `connect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/connect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioNode`, `AudioParam`*"] pub fn connect_with_audio_param( this: &AudioNode, destination: &AudioParam, ) -> Result<(), JsValue>; #[cfg(feature = "AudioParam")] # [wasm_bindgen (catch , method , structural , js_class = "AudioNode" , js_name = connect)] #[doc = "The `connect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/connect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioNode`, `AudioParam`*"] pub fn connect_with_audio_param_and_output( this: &AudioNode, destination: &AudioParam, output: u32, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "AudioNode" , js_name = disconnect)] #[doc = "The `disconnect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/disconnect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioNode`*"] pub fn disconnect(this: &AudioNode) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "AudioNode" , js_name = disconnect)] #[doc = "The `disconnect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/disconnect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioNode`*"] pub fn disconnect_with_output(this: &AudioNode, output: u32) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "AudioNode" , js_name = disconnect)] #[doc = "The `disconnect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/disconnect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioNode`*"] pub fn disconnect_with_audio_node( this: &AudioNode, destination: &AudioNode, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "AudioNode" , js_name = disconnect)] #[doc = "The `disconnect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/disconnect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioNode`*"] pub fn disconnect_with_audio_node_and_output( this: &AudioNode, destination: &AudioNode, output: u32, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "AudioNode" , js_name = disconnect)] #[doc = "The `disconnect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/disconnect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioNode`*"] pub fn disconnect_with_audio_node_and_output_and_input( this: &AudioNode, destination: &AudioNode, output: u32, input: u32, ) -> Result<(), JsValue>; #[cfg(feature = "AudioParam")] # [wasm_bindgen (catch , method , structural , js_class = "AudioNode" , js_name = disconnect)] #[doc = "The `disconnect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/disconnect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioNode`, `AudioParam`*"] pub fn disconnect_with_audio_param( this: &AudioNode, destination: &AudioParam, ) -> Result<(), JsValue>; #[cfg(feature = "AudioParam")] # [wasm_bindgen (catch , method , structural , js_class = "AudioNode" , js_name = disconnect)] #[doc = "The `disconnect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/disconnect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioNode`, `AudioParam`*"] pub fn disconnect_with_audio_param_and_output( this: &AudioNode, destination: &AudioParam, output: u32, ) -> Result<(), JsValue>; } web-sys-0.3.55/src/features/gen_AudioNodeOptions.rs000064400000000000000000000055030072674642500203710ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioNodeOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioNodeOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioNodeOptions`*"] pub type AudioNodeOptions; } impl AudioNodeOptions { #[doc = "Construct a new `AudioNodeOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioNodeOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioNodeOptions`*"] pub fn channel_count(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("channelCount"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "ChannelCountMode")] #[doc = "Change the `channelCountMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioNodeOptions`, `ChannelCountMode`*"] pub fn channel_count_mode(&mut self, val: ChannelCountMode) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("channelCountMode"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "ChannelInterpretation")] #[doc = "Change the `channelInterpretation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioNodeOptions`, `ChannelInterpretation`*"] pub fn channel_interpretation(&mut self, val: ChannelInterpretation) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("channelInterpretation"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for AudioNodeOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_AudioParam.rs000064400000000000000000000137110072674642500171700ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioParam , typescript_type = "AudioParam")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioParam` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioParam`*"] pub type AudioParam; # [wasm_bindgen (structural , method , getter , js_class = "AudioParam" , js_name = value)] #[doc = "Getter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioParam`*"] pub fn value(this: &AudioParam) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "AudioParam" , js_name = value)] #[doc = "Setter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioParam`*"] pub fn set_value(this: &AudioParam, value: f32); # [wasm_bindgen (structural , method , getter , js_class = "AudioParam" , js_name = defaultValue)] #[doc = "Getter for the `defaultValue` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam/defaultValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioParam`*"] pub fn default_value(this: &AudioParam) -> f32; # [wasm_bindgen (structural , method , getter , js_class = "AudioParam" , js_name = minValue)] #[doc = "Getter for the `minValue` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam/minValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioParam`*"] pub fn min_value(this: &AudioParam) -> f32; # [wasm_bindgen (structural , method , getter , js_class = "AudioParam" , js_name = maxValue)] #[doc = "Getter for the `maxValue` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam/maxValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioParam`*"] pub fn max_value(this: &AudioParam) -> f32; # [wasm_bindgen (catch , method , structural , js_class = "AudioParam" , js_name = cancelScheduledValues)] #[doc = "The `cancelScheduledValues()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam/cancelScheduledValues)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioParam`*"] pub fn cancel_scheduled_values( this: &AudioParam, start_time: f64, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "AudioParam" , js_name = exponentialRampToValueAtTime)] #[doc = "The `exponentialRampToValueAtTime()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam/exponentialRampToValueAtTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioParam`*"] pub fn exponential_ramp_to_value_at_time( this: &AudioParam, value: f32, end_time: f64, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "AudioParam" , js_name = linearRampToValueAtTime)] #[doc = "The `linearRampToValueAtTime()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam/linearRampToValueAtTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioParam`*"] pub fn linear_ramp_to_value_at_time( this: &AudioParam, value: f32, end_time: f64, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "AudioParam" , js_name = setTargetAtTime)] #[doc = "The `setTargetAtTime()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam/setTargetAtTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioParam`*"] pub fn set_target_at_time( this: &AudioParam, target: f32, start_time: f64, time_constant: f64, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "AudioParam" , js_name = setValueAtTime)] #[doc = "The `setValueAtTime()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam/setValueAtTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioParam`*"] pub fn set_value_at_time( this: &AudioParam, value: f32, start_time: f64, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "AudioParam" , js_name = setValueCurveAtTime)] #[doc = "The `setValueCurveAtTime()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam/setValueCurveAtTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioParam`*"] pub fn set_value_curve_at_time( this: &AudioParam, values: &mut [f32], start_time: f64, duration: f64, ) -> Result; } web-sys-0.3.55/src/features/gen_AudioParamMap.rs000064400000000000000000000010550072674642500176240ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioParamMap , typescript_type = "AudioParamMap")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioParamMap` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParamMap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioParamMap`*"] pub type AudioParamMap; } web-sys-0.3.55/src/features/gen_AudioProcessingEvent.rs000064400000000000000000000043400072674642500212440ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = AudioProcessingEvent , typescript_type = "AudioProcessingEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioProcessingEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioProcessingEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioProcessingEvent`*"] pub type AudioProcessingEvent; # [wasm_bindgen (structural , method , getter , js_class = "AudioProcessingEvent" , js_name = playbackTime)] #[doc = "Getter for the `playbackTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioProcessingEvent/playbackTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioProcessingEvent`*"] pub fn playback_time(this: &AudioProcessingEvent) -> f64; #[cfg(feature = "AudioBuffer")] # [wasm_bindgen (structural , catch , method , getter , js_class = "AudioProcessingEvent" , js_name = inputBuffer)] #[doc = "Getter for the `inputBuffer` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioProcessingEvent/inputBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`, `AudioProcessingEvent`*"] pub fn input_buffer(this: &AudioProcessingEvent) -> Result; #[cfg(feature = "AudioBuffer")] # [wasm_bindgen (structural , catch , method , getter , js_class = "AudioProcessingEvent" , js_name = outputBuffer)] #[doc = "Getter for the `outputBuffer` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioProcessingEvent/outputBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`, `AudioProcessingEvent`*"] pub fn output_buffer(this: &AudioProcessingEvent) -> Result; } web-sys-0.3.55/src/features/gen_AudioScheduledSourceNode.rs000064400000000000000000000102310072674642500220110ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = AudioScheduledSourceNode , typescript_type = "AudioScheduledSourceNode")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioScheduledSourceNode` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioScheduledSourceNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioScheduledSourceNode`*"] #[deprecated(note = "doesn't exist in Safari, use parent class methods instead")] pub type AudioScheduledSourceNode; #[deprecated(note = "doesn't exist in Safari, use parent class methods instead")] # [wasm_bindgen (structural , method , getter , js_class = "AudioScheduledSourceNode" , js_name = onended)] #[doc = "Getter for the `onended` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioScheduledSourceNode/onended)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioScheduledSourceNode`*"] pub fn onended(this: &AudioScheduledSourceNode) -> Option<::js_sys::Function>; #[deprecated(note = "doesn't exist in Safari, use parent class methods instead")] # [wasm_bindgen (structural , method , setter , js_class = "AudioScheduledSourceNode" , js_name = onended)] #[doc = "Setter for the `onended` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioScheduledSourceNode/onended)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioScheduledSourceNode`*"] pub fn set_onended(this: &AudioScheduledSourceNode, value: Option<&::js_sys::Function>); #[deprecated(note = "doesn't exist in Safari, use parent class methods instead")] # [wasm_bindgen (catch , method , structural , js_class = "AudioScheduledSourceNode" , js_name = start)] #[doc = "The `start()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioScheduledSourceNode/start)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioScheduledSourceNode`*"] pub fn start(this: &AudioScheduledSourceNode) -> Result<(), JsValue>; #[deprecated(note = "doesn't exist in Safari, use parent class methods instead")] # [wasm_bindgen (catch , method , structural , js_class = "AudioScheduledSourceNode" , js_name = start)] #[doc = "The `start()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioScheduledSourceNode/start)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioScheduledSourceNode`*"] pub fn start_with_when(this: &AudioScheduledSourceNode, when: f64) -> Result<(), JsValue>; #[deprecated(note = "doesn't exist in Safari, use parent class methods instead")] # [wasm_bindgen (catch , method , structural , js_class = "AudioScheduledSourceNode" , js_name = stop)] #[doc = "The `stop()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioScheduledSourceNode/stop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioScheduledSourceNode`*"] pub fn stop(this: &AudioScheduledSourceNode) -> Result<(), JsValue>; #[deprecated(note = "doesn't exist in Safari, use parent class methods instead")] # [wasm_bindgen (catch , method , structural , js_class = "AudioScheduledSourceNode" , js_name = stop)] #[doc = "The `stop()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioScheduledSourceNode/stop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioScheduledSourceNode`*"] pub fn stop_with_when(this: &AudioScheduledSourceNode, when: f64) -> Result<(), JsValue>; } web-sys-0.3.55/src/features/gen_AudioStreamTrack.rs000064400000000000000000000011640072674642500203470ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = MediaStreamTrack , extends = EventTarget , extends = :: js_sys :: Object , js_name = AudioStreamTrack , typescript_type = "AudioStreamTrack")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioStreamTrack` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioStreamTrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioStreamTrack`*"] pub type AudioStreamTrack; } web-sys-0.3.55/src/features/gen_AudioTrack.rs000064400000000000000000000061060072674642500171740ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioTrack , typescript_type = "AudioTrack")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioTrack` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioTrack`*"] pub type AudioTrack; # [wasm_bindgen (structural , method , getter , js_class = "AudioTrack" , js_name = id)] #[doc = "Getter for the `id` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrack/id)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioTrack`*"] pub fn id(this: &AudioTrack) -> String; # [wasm_bindgen (structural , method , getter , js_class = "AudioTrack" , js_name = kind)] #[doc = "Getter for the `kind` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrack/kind)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioTrack`*"] pub fn kind(this: &AudioTrack) -> String; # [wasm_bindgen (structural , method , getter , js_class = "AudioTrack" , js_name = label)] #[doc = "Getter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrack/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioTrack`*"] pub fn label(this: &AudioTrack) -> String; # [wasm_bindgen (structural , method , getter , js_class = "AudioTrack" , js_name = language)] #[doc = "Getter for the `language` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrack/language)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioTrack`*"] pub fn language(this: &AudioTrack) -> String; # [wasm_bindgen (structural , method , getter , js_class = "AudioTrack" , js_name = enabled)] #[doc = "Getter for the `enabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrack/enabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioTrack`*"] pub fn enabled(this: &AudioTrack) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "AudioTrack" , js_name = enabled)] #[doc = "Setter for the `enabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrack/enabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioTrack`*"] pub fn set_enabled(this: &AudioTrack, value: bool); } web-sys-0.3.55/src/features/gen_AudioTrackList.rs000064400000000000000000000114420072674642500200270ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = AudioTrackList , typescript_type = "AudioTrackList")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioTrackList` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrackList)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioTrackList`*"] pub type AudioTrackList; # [wasm_bindgen (structural , method , getter , js_class = "AudioTrackList" , js_name = length)] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrackList/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioTrackList`*"] pub fn length(this: &AudioTrackList) -> u32; # [wasm_bindgen (structural , method , getter , js_class = "AudioTrackList" , js_name = onchange)] #[doc = "Getter for the `onchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrackList/onchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioTrackList`*"] pub fn onchange(this: &AudioTrackList) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "AudioTrackList" , js_name = onchange)] #[doc = "Setter for the `onchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrackList/onchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioTrackList`*"] pub fn set_onchange(this: &AudioTrackList, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "AudioTrackList" , js_name = onaddtrack)] #[doc = "Getter for the `onaddtrack` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrackList/onaddtrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioTrackList`*"] pub fn onaddtrack(this: &AudioTrackList) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "AudioTrackList" , js_name = onaddtrack)] #[doc = "Setter for the `onaddtrack` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrackList/onaddtrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioTrackList`*"] pub fn set_onaddtrack(this: &AudioTrackList, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "AudioTrackList" , js_name = onremovetrack)] #[doc = "Getter for the `onremovetrack` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrackList/onremovetrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioTrackList`*"] pub fn onremovetrack(this: &AudioTrackList) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "AudioTrackList" , js_name = onremovetrack)] #[doc = "Setter for the `onremovetrack` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrackList/onremovetrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioTrackList`*"] pub fn set_onremovetrack(this: &AudioTrackList, value: Option<&::js_sys::Function>); #[cfg(feature = "AudioTrack")] # [wasm_bindgen (method , structural , js_class = "AudioTrackList" , js_name = getTrackById)] #[doc = "The `getTrackById()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrackList/getTrackById)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioTrack`, `AudioTrackList`*"] pub fn get_track_by_id(this: &AudioTrackList, id: &str) -> Option; #[cfg(feature = "AudioTrack")] #[wasm_bindgen(method, structural, js_class = "AudioTrackList", indexing_getter)] #[doc = "Indexing getter."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioTrack`, `AudioTrackList`*"] pub fn get(this: &AudioTrackList, index: u32) -> Option; } web-sys-0.3.55/src/features/gen_AudioWorklet.rs000064400000000000000000000010730072674642500175550ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Worklet , extends = :: js_sys :: Object , js_name = AudioWorklet , typescript_type = "AudioWorklet")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioWorklet` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorklet)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioWorklet`*"] pub type AudioWorklet; } web-sys-0.3.55/src/features/gen_AudioWorkletGlobalScope.rs000064400000000000000000000052550072674642500216760ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = WorkletGlobalScope , extends = :: js_sys :: Object , js_name = AudioWorkletGlobalScope , typescript_type = "AudioWorkletGlobalScope")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioWorkletGlobalScope` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletGlobalScope)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioWorkletGlobalScope`*"] pub type AudioWorkletGlobalScope; # [wasm_bindgen (structural , method , getter , js_class = "AudioWorkletGlobalScope" , js_name = currentFrame)] #[doc = "Getter for the `currentFrame` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletGlobalScope/currentFrame)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioWorkletGlobalScope`*"] pub fn current_frame(this: &AudioWorkletGlobalScope) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "AudioWorkletGlobalScope" , js_name = currentTime)] #[doc = "Getter for the `currentTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletGlobalScope/currentTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioWorkletGlobalScope`*"] pub fn current_time(this: &AudioWorkletGlobalScope) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "AudioWorkletGlobalScope" , js_name = sampleRate)] #[doc = "Getter for the `sampleRate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletGlobalScope/sampleRate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioWorkletGlobalScope`*"] pub fn sample_rate(this: &AudioWorkletGlobalScope) -> f32; # [wasm_bindgen (method , structural , js_class = "AudioWorkletGlobalScope" , js_name = registerProcessor)] #[doc = "The `registerProcessor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletGlobalScope/registerProcessor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioWorkletGlobalScope`*"] pub fn register_processor( this: &AudioWorkletGlobalScope, name: &str, processor_ctor: &::js_sys::Function, ); } web-sys-0.3.55/src/features/gen_AudioWorkletNode.rs000064400000000000000000000077540072674642500203770ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = AudioWorkletNode , typescript_type = "AudioWorkletNode")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioWorkletNode` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioWorkletNode`*"] pub type AudioWorkletNode; #[cfg(feature = "AudioParamMap")] # [wasm_bindgen (structural , catch , method , getter , js_class = "AudioWorkletNode" , js_name = parameters)] #[doc = "Getter for the `parameters` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletNode/parameters)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioParamMap`, `AudioWorkletNode`*"] pub fn parameters(this: &AudioWorkletNode) -> Result; #[cfg(feature = "MessagePort")] # [wasm_bindgen (structural , catch , method , getter , js_class = "AudioWorkletNode" , js_name = port)] #[doc = "Getter for the `port` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletNode/port)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioWorkletNode`, `MessagePort`*"] pub fn port(this: &AudioWorkletNode) -> Result; # [wasm_bindgen (structural , method , getter , js_class = "AudioWorkletNode" , js_name = onprocessorerror)] #[doc = "Getter for the `onprocessorerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletNode/onprocessorerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioWorkletNode`*"] pub fn onprocessorerror(this: &AudioWorkletNode) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "AudioWorkletNode" , js_name = onprocessorerror)] #[doc = "Setter for the `onprocessorerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletNode/onprocessorerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioWorkletNode`*"] pub fn set_onprocessorerror(this: &AudioWorkletNode, value: Option<&::js_sys::Function>); #[cfg(feature = "BaseAudioContext")] #[wasm_bindgen(catch, constructor, js_class = "AudioWorkletNode")] #[doc = "The `new AudioWorkletNode(..)` constructor, creating a new instance of `AudioWorkletNode`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletNode/AudioWorkletNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioWorkletNode`, `BaseAudioContext`*"] pub fn new(context: &BaseAudioContext, name: &str) -> Result; #[cfg(all(feature = "AudioWorkletNodeOptions", feature = "BaseAudioContext",))] #[wasm_bindgen(catch, constructor, js_class = "AudioWorkletNode")] #[doc = "The `new AudioWorkletNode(..)` constructor, creating a new instance of `AudioWorkletNode`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletNode/AudioWorkletNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioWorkletNode`, `AudioWorkletNodeOptions`, `BaseAudioContext`*"] pub fn new_with_options( context: &BaseAudioContext, name: &str, options: &AudioWorkletNodeOptions, ) -> Result; } web-sys-0.3.55/src/features/gen_AudioWorkletNodeOptions.rs000064400000000000000000000125570072674642500217500ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioWorkletNodeOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioWorkletNodeOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioWorkletNodeOptions`*"] pub type AudioWorkletNodeOptions; } impl AudioWorkletNodeOptions { #[doc = "Construct a new `AudioWorkletNodeOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioWorkletNodeOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioWorkletNodeOptions`*"] pub fn channel_count(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("channelCount"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "ChannelCountMode")] #[doc = "Change the `channelCountMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioWorkletNodeOptions`, `ChannelCountMode`*"] pub fn channel_count_mode(&mut self, val: ChannelCountMode) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("channelCountMode"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "ChannelInterpretation")] #[doc = "Change the `channelInterpretation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioWorkletNodeOptions`, `ChannelInterpretation`*"] pub fn channel_interpretation(&mut self, val: ChannelInterpretation) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("channelInterpretation"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `numberOfInputs` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioWorkletNodeOptions`*"] pub fn number_of_inputs(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("numberOfInputs"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `numberOfOutputs` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioWorkletNodeOptions`*"] pub fn number_of_outputs(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("numberOfOutputs"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `outputChannelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioWorkletNodeOptions`*"] pub fn output_channel_count(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("outputChannelCount"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `processorOptions` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioWorkletNodeOptions`*"] pub fn processor_options(&mut self, val: Option<&::js_sys::Object>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("processorOptions"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for AudioWorkletNodeOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_AudioWorkletProcessor.rs000064400000000000000000000044310072674642500214560ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioWorkletProcessor , typescript_type = "AudioWorkletProcessor")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioWorkletProcessor` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletProcessor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioWorkletProcessor`*"] pub type AudioWorkletProcessor; #[cfg(feature = "MessagePort")] # [wasm_bindgen (structural , catch , method , getter , js_class = "AudioWorkletProcessor" , js_name = port)] #[doc = "Getter for the `port` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletProcessor/port)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioWorkletProcessor`, `MessagePort`*"] pub fn port(this: &AudioWorkletProcessor) -> Result; #[wasm_bindgen(catch, constructor, js_class = "AudioWorkletProcessor")] #[doc = "The `new AudioWorkletProcessor(..)` constructor, creating a new instance of `AudioWorkletProcessor`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletProcessor/AudioWorkletProcessor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioWorkletProcessor`*"] pub fn new() -> Result; #[cfg(feature = "AudioWorkletNodeOptions")] #[wasm_bindgen(catch, constructor, js_class = "AudioWorkletProcessor")] #[doc = "The `new AudioWorkletProcessor(..)` constructor, creating a new instance of `AudioWorkletProcessor`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletProcessor/AudioWorkletProcessor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioWorkletNodeOptions`, `AudioWorkletProcessor`*"] pub fn new_with_options( options: &AudioWorkletNodeOptions, ) -> Result; } web-sys-0.3.55/src/features/gen_AuthenticationExtensionsClientInputs.rs000064400000000000000000000030640072674642500245470ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AuthenticationExtensionsClientInputs)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AuthenticationExtensionsClientInputs` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputs`*"] pub type AuthenticationExtensionsClientInputs; } impl AuthenticationExtensionsClientInputs { #[doc = "Construct a new `AuthenticationExtensionsClientInputs`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputs`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `appid` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputs`*"] pub fn appid(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("appid"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for AuthenticationExtensionsClientInputs { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_AuthenticationExtensionsClientOutputs.rs000064400000000000000000000030750072674642500247520ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AuthenticationExtensionsClientOutputs)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AuthenticationExtensionsClientOutputs` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputs`*"] pub type AuthenticationExtensionsClientOutputs; } impl AuthenticationExtensionsClientOutputs { #[doc = "Construct a new `AuthenticationExtensionsClientOutputs`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputs`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `appid` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputs`*"] pub fn appid(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("appid"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for AuthenticationExtensionsClientOutputs { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_AuthenticatorAssertionResponse.rs000064400000000000000000000044750072674642500233760ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = AuthenticatorResponse , extends = :: js_sys :: Object , js_name = AuthenticatorAssertionResponse , typescript_type = "AuthenticatorAssertionResponse")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AuthenticatorAssertionResponse` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorAssertionResponse)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAssertionResponse`*"] pub type AuthenticatorAssertionResponse; # [wasm_bindgen (structural , method , getter , js_class = "AuthenticatorAssertionResponse" , js_name = authenticatorData)] #[doc = "Getter for the `authenticatorData` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorAssertionResponse/authenticatorData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAssertionResponse`*"] pub fn authenticator_data(this: &AuthenticatorAssertionResponse) -> ::js_sys::ArrayBuffer; # [wasm_bindgen (structural , method , getter , js_class = "AuthenticatorAssertionResponse" , js_name = signature)] #[doc = "Getter for the `signature` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorAssertionResponse/signature)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAssertionResponse`*"] pub fn signature(this: &AuthenticatorAssertionResponse) -> ::js_sys::ArrayBuffer; # [wasm_bindgen (structural , method , getter , js_class = "AuthenticatorAssertionResponse" , js_name = userHandle)] #[doc = "Getter for the `userHandle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorAssertionResponse/userHandle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAssertionResponse`*"] pub fn user_handle(this: &AuthenticatorAssertionResponse) -> Option<::js_sys::ArrayBuffer>; } web-sys-0.3.55/src/features/gen_AuthenticatorAttachment.rs000064400000000000000000000005750072674642500217750ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `AuthenticatorAttachment` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttachment`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum AuthenticatorAttachment { Platform = "platform", CrossPlatform = "cross-platform", } web-sys-0.3.55/src/features/gen_AuthenticatorAttestationResponse.rs000064400000000000000000000024100072674642500237110ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = AuthenticatorResponse , extends = :: js_sys :: Object , js_name = AuthenticatorAttestationResponse , typescript_type = "AuthenticatorAttestationResponse")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AuthenticatorAttestationResponse` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorAttestationResponse)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttestationResponse`*"] pub type AuthenticatorAttestationResponse; # [wasm_bindgen (structural , method , getter , js_class = "AuthenticatorAttestationResponse" , js_name = attestationObject)] #[doc = "Getter for the `attestationObject` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorAttestationResponse/attestationObject)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttestationResponse`*"] pub fn attestation_object(this: &AuthenticatorAttestationResponse) -> ::js_sys::ArrayBuffer; } web-sys-0.3.55/src/features/gen_AuthenticatorResponse.rs000064400000000000000000000021550072674642500214770ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AuthenticatorResponse , typescript_type = "AuthenticatorResponse")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AuthenticatorResponse` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorResponse)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorResponse`*"] pub type AuthenticatorResponse; # [wasm_bindgen (structural , method , getter , js_class = "AuthenticatorResponse" , js_name = clientDataJSON)] #[doc = "Getter for the `clientDataJSON` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorResponse/clientDataJSON)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorResponse`*"] pub fn client_data_json(this: &AuthenticatorResponse) -> ::js_sys::ArrayBuffer; } web-sys-0.3.55/src/features/gen_AuthenticatorSelectionCriteria.rs000064400000000000000000000060350072674642500233120ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AuthenticatorSelectionCriteria)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AuthenticatorSelectionCriteria` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorSelectionCriteria`*"] pub type AuthenticatorSelectionCriteria; } impl AuthenticatorSelectionCriteria { #[doc = "Construct a new `AuthenticatorSelectionCriteria`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorSelectionCriteria`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(feature = "AuthenticatorAttachment")] #[doc = "Change the `authenticatorAttachment` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttachment`, `AuthenticatorSelectionCriteria`*"] pub fn authenticator_attachment(&mut self, val: AuthenticatorAttachment) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("authenticatorAttachment"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `requireResidentKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorSelectionCriteria`*"] pub fn require_resident_key(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("requireResidentKey"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "UserVerificationRequirement")] #[doc = "Change the `userVerification` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorSelectionCriteria`, `UserVerificationRequirement`*"] pub fn user_verification(&mut self, val: UserVerificationRequirement) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("userVerification"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for AuthenticatorSelectionCriteria { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_AuthenticatorTransport.rs000064400000000000000000000005540072674642500216760ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `AuthenticatorTransport` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorTransport`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum AuthenticatorTransport { Usb = "usb", Nfc = "nfc", Ble = "ble", } web-sys-0.3.55/src/features/gen_AutoKeyword.rs000064400000000000000000000004530072674642500174220ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `AutoKeyword` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AutoKeyword`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum AutoKeyword { Auto = "auto", } web-sys-0.3.55/src/features/gen_AutocompleteInfo.rs000064400000000000000000000062670072674642500204330ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AutocompleteInfo)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AutocompleteInfo` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AutocompleteInfo`*"] pub type AutocompleteInfo; } impl AutocompleteInfo { #[doc = "Construct a new `AutocompleteInfo`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AutocompleteInfo`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `addressType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AutocompleteInfo`*"] pub fn address_type(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("addressType"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `contactType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AutocompleteInfo`*"] pub fn contact_type(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("contactType"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `fieldName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AutocompleteInfo`*"] pub fn field_name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("fieldName"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `section` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AutocompleteInfo`*"] pub fn section(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("section"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for AutocompleteInfo { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_BarProp.rs000064400000000000000000000026340072674642500165150ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = BarProp , typescript_type = "BarProp")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BarProp` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BarProp)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BarProp`*"] pub type BarProp; # [wasm_bindgen (structural , catch , method , getter , js_class = "BarProp" , js_name = visible)] #[doc = "Getter for the `visible` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BarProp/visible)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BarProp`*"] pub fn visible(this: &BarProp) -> Result; # [wasm_bindgen (structural , catch , method , setter , js_class = "BarProp" , js_name = visible)] #[doc = "Setter for the `visible` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BarProp/visible)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BarProp`*"] pub fn set_visible(this: &BarProp, value: bool) -> Result<(), JsValue>; } web-sys-0.3.55/src/features/gen_BaseAudioContext.rs000064400000000000000000000617170072674642500203600ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = BaseAudioContext , typescript_type = "BaseAudioContext")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BaseAudioContext` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`*"] #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] pub type BaseAudioContext; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(feature = "AudioDestinationNode")] # [wasm_bindgen (structural , method , getter , js_class = "BaseAudioContext" , js_name = destination)] #[doc = "Getter for the `destination` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/destination)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDestinationNode`, `BaseAudioContext`*"] pub fn destination(this: &BaseAudioContext) -> AudioDestinationNode; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] # [wasm_bindgen (structural , method , getter , js_class = "BaseAudioContext" , js_name = sampleRate)] #[doc = "Getter for the `sampleRate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/sampleRate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`*"] pub fn sample_rate(this: &BaseAudioContext) -> f32; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] # [wasm_bindgen (structural , method , getter , js_class = "BaseAudioContext" , js_name = currentTime)] #[doc = "Getter for the `currentTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/currentTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`*"] pub fn current_time(this: &BaseAudioContext) -> f64; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(feature = "AudioListener")] # [wasm_bindgen (structural , method , getter , js_class = "BaseAudioContext" , js_name = listener)] #[doc = "Getter for the `listener` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/listener)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioListener`, `BaseAudioContext`*"] pub fn listener(this: &BaseAudioContext) -> AudioListener; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(feature = "AudioContextState")] # [wasm_bindgen (structural , method , getter , js_class = "BaseAudioContext" , js_name = state)] #[doc = "Getter for the `state` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/state)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContextState`, `BaseAudioContext`*"] pub fn state(this: &BaseAudioContext) -> AudioContextState; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(feature = "AudioWorklet")] # [wasm_bindgen (structural , catch , method , getter , js_class = "BaseAudioContext" , js_name = audioWorklet)] #[doc = "Getter for the `audioWorklet` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/audioWorklet)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioWorklet`, `BaseAudioContext`*"] pub fn audio_worklet(this: &BaseAudioContext) -> Result; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] # [wasm_bindgen (structural , method , getter , js_class = "BaseAudioContext" , js_name = onstatechange)] #[doc = "Getter for the `onstatechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/onstatechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`*"] pub fn onstatechange(this: &BaseAudioContext) -> Option<::js_sys::Function>; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] # [wasm_bindgen (structural , method , setter , js_class = "BaseAudioContext" , js_name = onstatechange)] #[doc = "Setter for the `onstatechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/onstatechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`*"] pub fn set_onstatechange(this: &BaseAudioContext, value: Option<&::js_sys::Function>); #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(feature = "AnalyserNode")] # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createAnalyser)] #[doc = "The `createAnalyser()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createAnalyser)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnalyserNode`, `BaseAudioContext`*"] pub fn create_analyser(this: &BaseAudioContext) -> Result; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(feature = "BiquadFilterNode")] # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createBiquadFilter)] #[doc = "The `createBiquadFilter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createBiquadFilter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `BiquadFilterNode`*"] pub fn create_biquad_filter(this: &BaseAudioContext) -> Result; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(feature = "AudioBuffer")] # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createBuffer)] #[doc = "The `createBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`, `BaseAudioContext`*"] pub fn create_buffer( this: &BaseAudioContext, number_of_channels: u32, length: u32, sample_rate: f32, ) -> Result; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(feature = "AudioBufferSourceNode")] # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createBufferSource)] #[doc = "The `createBufferSource()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createBufferSource)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`, `BaseAudioContext`*"] pub fn create_buffer_source(this: &BaseAudioContext) -> Result; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(feature = "ChannelMergerNode")] # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createChannelMerger)] #[doc = "The `createChannelMerger()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createChannelMerger)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ChannelMergerNode`*"] pub fn create_channel_merger(this: &BaseAudioContext) -> Result; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(feature = "ChannelMergerNode")] # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createChannelMerger)] #[doc = "The `createChannelMerger()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createChannelMerger)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ChannelMergerNode`*"] pub fn create_channel_merger_with_number_of_inputs( this: &BaseAudioContext, number_of_inputs: u32, ) -> Result; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(feature = "ChannelSplitterNode")] # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createChannelSplitter)] #[doc = "The `createChannelSplitter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createChannelSplitter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ChannelSplitterNode`*"] pub fn create_channel_splitter(this: &BaseAudioContext) -> Result; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(feature = "ChannelSplitterNode")] # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createChannelSplitter)] #[doc = "The `createChannelSplitter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createChannelSplitter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ChannelSplitterNode`*"] pub fn create_channel_splitter_with_number_of_outputs( this: &BaseAudioContext, number_of_outputs: u32, ) -> Result; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(feature = "ConstantSourceNode")] # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createConstantSource)] #[doc = "The `createConstantSource()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createConstantSource)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ConstantSourceNode`*"] pub fn create_constant_source(this: &BaseAudioContext) -> Result; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(feature = "ConvolverNode")] # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createConvolver)] #[doc = "The `createConvolver()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createConvolver)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ConvolverNode`*"] pub fn create_convolver(this: &BaseAudioContext) -> Result; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(feature = "DelayNode")] # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createDelay)] #[doc = "The `createDelay()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createDelay)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `DelayNode`*"] pub fn create_delay(this: &BaseAudioContext) -> Result; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(feature = "DelayNode")] # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createDelay)] #[doc = "The `createDelay()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createDelay)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `DelayNode`*"] pub fn create_delay_with_max_delay_time( this: &BaseAudioContext, max_delay_time: f64, ) -> Result; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(feature = "DynamicsCompressorNode")] # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createDynamicsCompressor)] #[doc = "The `createDynamicsCompressor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createDynamicsCompressor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `DynamicsCompressorNode`*"] pub fn create_dynamics_compressor( this: &BaseAudioContext, ) -> Result; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(feature = "GainNode")] # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createGain)] #[doc = "The `createGain()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createGain)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `GainNode`*"] pub fn create_gain(this: &BaseAudioContext) -> Result; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(feature = "IirFilterNode")] # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createIIRFilter)] #[doc = "The `createIIRFilter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createIIRFilter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `IirFilterNode`*"] pub fn create_iir_filter( this: &BaseAudioContext, feedforward: &::wasm_bindgen::JsValue, feedback: &::wasm_bindgen::JsValue, ) -> Result; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(feature = "OscillatorNode")] # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createOscillator)] #[doc = "The `createOscillator()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createOscillator)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `OscillatorNode`*"] pub fn create_oscillator(this: &BaseAudioContext) -> Result; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(feature = "PannerNode")] # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createPanner)] #[doc = "The `createPanner()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createPanner)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `PannerNode`*"] pub fn create_panner(this: &BaseAudioContext) -> Result; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(feature = "PeriodicWave")] # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createPeriodicWave)] #[doc = "The `createPeriodicWave()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createPeriodicWave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `PeriodicWave`*"] pub fn create_periodic_wave( this: &BaseAudioContext, real: &mut [f32], imag: &mut [f32], ) -> Result; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(all(feature = "PeriodicWave", feature = "PeriodicWaveConstraints",))] # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createPeriodicWave)] #[doc = "The `createPeriodicWave()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createPeriodicWave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `PeriodicWave`, `PeriodicWaveConstraints`*"] pub fn create_periodic_wave_with_constraints( this: &BaseAudioContext, real: &mut [f32], imag: &mut [f32], constraints: &PeriodicWaveConstraints, ) -> Result; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(feature = "ScriptProcessorNode")] # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createScriptProcessor)] #[doc = "The `createScriptProcessor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createScriptProcessor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ScriptProcessorNode`*"] pub fn create_script_processor(this: &BaseAudioContext) -> Result; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(feature = "ScriptProcessorNode")] # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createScriptProcessor)] #[doc = "The `createScriptProcessor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createScriptProcessor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ScriptProcessorNode`*"] pub fn create_script_processor_with_buffer_size( this: &BaseAudioContext, buffer_size: u32, ) -> Result; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(feature = "ScriptProcessorNode")] # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createScriptProcessor)] #[doc = "The `createScriptProcessor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createScriptProcessor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ScriptProcessorNode`*"] pub fn create_script_processor_with_buffer_size_and_number_of_input_channels( this: &BaseAudioContext, buffer_size: u32, number_of_input_channels: u32, ) -> Result; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(feature = "ScriptProcessorNode")] # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createScriptProcessor)] #[doc = "The `createScriptProcessor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createScriptProcessor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ScriptProcessorNode`*"] pub fn create_script_processor_with_buffer_size_and_number_of_input_channels_and_number_of_output_channels( this: &BaseAudioContext, buffer_size: u32, number_of_input_channels: u32, number_of_output_channels: u32, ) -> Result; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(feature = "StereoPannerNode")] # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createStereoPanner)] #[doc = "The `createStereoPanner()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createStereoPanner)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `StereoPannerNode`*"] pub fn create_stereo_panner(this: &BaseAudioContext) -> Result; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] #[cfg(feature = "WaveShaperNode")] # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createWaveShaper)] #[doc = "The `createWaveShaper()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createWaveShaper)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `WaveShaperNode`*"] pub fn create_wave_shaper(this: &BaseAudioContext) -> Result; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = decodeAudioData)] #[doc = "The `decodeAudioData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/decodeAudioData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`*"] pub fn decode_audio_data( this: &BaseAudioContext, audio_data: &::js_sys::ArrayBuffer, ) -> Result<::js_sys::Promise, JsValue>; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = decodeAudioData)] #[doc = "The `decodeAudioData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/decodeAudioData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`*"] pub fn decode_audio_data_with_success_callback( this: &BaseAudioContext, audio_data: &::js_sys::ArrayBuffer, success_callback: &::js_sys::Function, ) -> Result<::js_sys::Promise, JsValue>; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = decodeAudioData)] #[doc = "The `decodeAudioData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/decodeAudioData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`*"] pub fn decode_audio_data_with_success_callback_and_error_callback( this: &BaseAudioContext, audio_data: &::js_sys::ArrayBuffer, success_callback: &::js_sys::Function, error_callback: &::js_sys::Function, ) -> Result<::js_sys::Promise, JsValue>; #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = resume)] #[doc = "The `resume()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/resume)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`*"] pub fn resume(this: &BaseAudioContext) -> Result<::js_sys::Promise, JsValue>; } web-sys-0.3.55/src/features/gen_BaseComputedKeyframe.rs000064400000000000000000000076040072674642500212110ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = BaseComputedKeyframe)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BaseComputedKeyframe` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseComputedKeyframe`*"] pub type BaseComputedKeyframe; } impl BaseComputedKeyframe { #[doc = "Construct a new `BaseComputedKeyframe`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseComputedKeyframe`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(feature = "CompositeOperation")] #[doc = "Change the `composite` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseComputedKeyframe`, `CompositeOperation`*"] pub fn composite(&mut self, val: Option) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composite"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `easing` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseComputedKeyframe`*"] pub fn easing(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("easing"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `offset` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseComputedKeyframe`*"] pub fn offset(&mut self, val: Option) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("offset"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `simulateComputeValuesFailure` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseComputedKeyframe`*"] pub fn simulate_compute_values_failure(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("simulateComputeValuesFailure"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `computedOffset` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseComputedKeyframe`*"] pub fn computed_offset(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("computedOffset"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for BaseComputedKeyframe { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_BaseKeyframe.rs000064400000000000000000000063000072674642500175000ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = BaseKeyframe)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BaseKeyframe` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseKeyframe`*"] pub type BaseKeyframe; } impl BaseKeyframe { #[doc = "Construct a new `BaseKeyframe`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseKeyframe`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(feature = "CompositeOperation")] #[doc = "Change the `composite` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseKeyframe`, `CompositeOperation`*"] pub fn composite(&mut self, val: Option) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composite"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `easing` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseKeyframe`*"] pub fn easing(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("easing"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `offset` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseKeyframe`*"] pub fn offset(&mut self, val: Option) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("offset"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `simulateComputeValuesFailure` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseKeyframe`*"] pub fn simulate_compute_values_failure(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("simulateComputeValuesFailure"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for BaseKeyframe { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_BasePropertyIndexedKeyframe.rs000064400000000000000000000052720072674642500225550ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = BasePropertyIndexedKeyframe)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BasePropertyIndexedKeyframe` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BasePropertyIndexedKeyframe`*"] pub type BasePropertyIndexedKeyframe; } impl BasePropertyIndexedKeyframe { #[doc = "Construct a new `BasePropertyIndexedKeyframe`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BasePropertyIndexedKeyframe`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `composite` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BasePropertyIndexedKeyframe`*"] pub fn composite(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composite"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `easing` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BasePropertyIndexedKeyframe`*"] pub fn easing(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("easing"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `offset` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BasePropertyIndexedKeyframe`*"] pub fn offset(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("offset"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for BasePropertyIndexedKeyframe { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_BasicCardRequest.rs000064400000000000000000000041350072674642500203320ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = BasicCardRequest)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BasicCardRequest` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BasicCardRequest`*"] pub type BasicCardRequest; } impl BasicCardRequest { #[doc = "Construct a new `BasicCardRequest`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BasicCardRequest`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `supportedNetworks` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BasicCardRequest`*"] pub fn supported_networks(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("supportedNetworks"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `supportedTypes` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BasicCardRequest`*"] pub fn supported_types(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("supportedTypes"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for BasicCardRequest { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_BasicCardResponse.rs000064400000000000000000000107130072674642500204770ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = BasicCardResponse)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BasicCardResponse` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BasicCardResponse`*"] pub type BasicCardResponse; } impl BasicCardResponse { #[doc = "Construct a new `BasicCardResponse`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BasicCardResponse`*"] pub fn new(card_number: &str) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.card_number(card_number); ret } #[cfg(feature = "PaymentAddress")] #[doc = "Change the `billingAddress` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BasicCardResponse`, `PaymentAddress`*"] pub fn billing_address(&mut self, val: Option<&PaymentAddress>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("billingAddress"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cardNumber` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BasicCardResponse`*"] pub fn card_number(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cardNumber"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cardSecurityCode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BasicCardResponse`*"] pub fn card_security_code(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cardSecurityCode"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cardholderName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BasicCardResponse`*"] pub fn cardholder_name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cardholderName"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `expiryMonth` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BasicCardResponse`*"] pub fn expiry_month(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("expiryMonth"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `expiryYear` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BasicCardResponse`*"] pub fn expiry_year(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("expiryYear"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_BasicCardType.rs000064400000000000000000000005430072674642500176220ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `BasicCardType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BasicCardType`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum BasicCardType { Credit = "credit", Debit = "debit", Prepaid = "prepaid", } web-sys-0.3.55/src/features/gen_BatteryManager.rs000064400000000000000000000147560072674642500200650ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = BatteryManager , typescript_type = "BatteryManager")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BatteryManager` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BatteryManager`*"] pub type BatteryManager; # [wasm_bindgen (structural , method , getter , js_class = "BatteryManager" , js_name = charging)] #[doc = "Getter for the `charging` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager/charging)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BatteryManager`*"] pub fn charging(this: &BatteryManager) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "BatteryManager" , js_name = chargingTime)] #[doc = "Getter for the `chargingTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager/chargingTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BatteryManager`*"] pub fn charging_time(this: &BatteryManager) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "BatteryManager" , js_name = dischargingTime)] #[doc = "Getter for the `dischargingTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager/dischargingTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BatteryManager`*"] pub fn discharging_time(this: &BatteryManager) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "BatteryManager" , js_name = level)] #[doc = "Getter for the `level` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager/level)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BatteryManager`*"] pub fn level(this: &BatteryManager) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "BatteryManager" , js_name = onchargingchange)] #[doc = "Getter for the `onchargingchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager/onchargingchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BatteryManager`*"] pub fn onchargingchange(this: &BatteryManager) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "BatteryManager" , js_name = onchargingchange)] #[doc = "Setter for the `onchargingchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager/onchargingchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BatteryManager`*"] pub fn set_onchargingchange(this: &BatteryManager, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "BatteryManager" , js_name = onchargingtimechange)] #[doc = "Getter for the `onchargingtimechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager/onchargingtimechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BatteryManager`*"] pub fn onchargingtimechange(this: &BatteryManager) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "BatteryManager" , js_name = onchargingtimechange)] #[doc = "Setter for the `onchargingtimechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager/onchargingtimechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BatteryManager`*"] pub fn set_onchargingtimechange(this: &BatteryManager, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "BatteryManager" , js_name = ondischargingtimechange)] #[doc = "Getter for the `ondischargingtimechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager/ondischargingtimechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BatteryManager`*"] pub fn ondischargingtimechange(this: &BatteryManager) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "BatteryManager" , js_name = ondischargingtimechange)] #[doc = "Setter for the `ondischargingtimechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager/ondischargingtimechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BatteryManager`*"] pub fn set_ondischargingtimechange(this: &BatteryManager, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "BatteryManager" , js_name = onlevelchange)] #[doc = "Getter for the `onlevelchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager/onlevelchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BatteryManager`*"] pub fn onlevelchange(this: &BatteryManager) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "BatteryManager" , js_name = onlevelchange)] #[doc = "Setter for the `onlevelchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager/onlevelchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BatteryManager`*"] pub fn set_onlevelchange(this: &BatteryManager, value: Option<&::js_sys::Function>); } web-sys-0.3.55/src/features/gen_BeforeUnloadEvent.rs000064400000000000000000000030460072674642500205150ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = BeforeUnloadEvent , typescript_type = "BeforeUnloadEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BeforeUnloadEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BeforeUnloadEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BeforeUnloadEvent`*"] pub type BeforeUnloadEvent; # [wasm_bindgen (structural , method , getter , js_class = "BeforeUnloadEvent" , js_name = returnValue)] #[doc = "Getter for the `returnValue` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BeforeUnloadEvent/returnValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BeforeUnloadEvent`*"] pub fn return_value(this: &BeforeUnloadEvent) -> String; # [wasm_bindgen (structural , method , setter , js_class = "BeforeUnloadEvent" , js_name = returnValue)] #[doc = "Setter for the `returnValue` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BeforeUnloadEvent/returnValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BeforeUnloadEvent`*"] pub fn set_return_value(this: &BeforeUnloadEvent, value: &str); } web-sys-0.3.55/src/features/gen_BinaryType.rs000064400000000000000000000005110072674642500172260ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `BinaryType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BinaryType`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum BinaryType { Blob = "blob", Arraybuffer = "arraybuffer", } web-sys-0.3.55/src/features/gen_BiquadFilterNode.rs000064400000000000000000000127020072674642500203260ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = BiquadFilterNode , typescript_type = "BiquadFilterNode")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BiquadFilterNode` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BiquadFilterNode`*"] pub type BiquadFilterNode; #[cfg(feature = "BiquadFilterType")] # [wasm_bindgen (structural , method , getter , js_class = "BiquadFilterNode" , js_name = type)] #[doc = "Getter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BiquadFilterNode`, `BiquadFilterType`*"] pub fn type_(this: &BiquadFilterNode) -> BiquadFilterType; #[cfg(feature = "BiquadFilterType")] # [wasm_bindgen (structural , method , setter , js_class = "BiquadFilterNode" , js_name = type)] #[doc = "Setter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BiquadFilterNode`, `BiquadFilterType`*"] pub fn set_type(this: &BiquadFilterNode, value: BiquadFilterType); #[cfg(feature = "AudioParam")] # [wasm_bindgen (structural , method , getter , js_class = "BiquadFilterNode" , js_name = frequency)] #[doc = "Getter for the `frequency` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode/frequency)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `BiquadFilterNode`*"] pub fn frequency(this: &BiquadFilterNode) -> AudioParam; #[cfg(feature = "AudioParam")] # [wasm_bindgen (structural , method , getter , js_class = "BiquadFilterNode" , js_name = detune)] #[doc = "Getter for the `detune` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode/detune)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `BiquadFilterNode`*"] pub fn detune(this: &BiquadFilterNode) -> AudioParam; #[cfg(feature = "AudioParam")] # [wasm_bindgen (structural , method , getter , js_class = "BiquadFilterNode" , js_name = Q)] #[doc = "Getter for the `Q` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode/Q)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `BiquadFilterNode`*"] pub fn q(this: &BiquadFilterNode) -> AudioParam; #[cfg(feature = "AudioParam")] # [wasm_bindgen (structural , method , getter , js_class = "BiquadFilterNode" , js_name = gain)] #[doc = "Getter for the `gain` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode/gain)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `BiquadFilterNode`*"] pub fn gain(this: &BiquadFilterNode) -> AudioParam; #[cfg(feature = "BaseAudioContext")] #[wasm_bindgen(catch, constructor, js_class = "BiquadFilterNode")] #[doc = "The `new BiquadFilterNode(..)` constructor, creating a new instance of `BiquadFilterNode`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode/BiquadFilterNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `BiquadFilterNode`*"] pub fn new(context: &BaseAudioContext) -> Result; #[cfg(all(feature = "BaseAudioContext", feature = "BiquadFilterOptions",))] #[wasm_bindgen(catch, constructor, js_class = "BiquadFilterNode")] #[doc = "The `new BiquadFilterNode(..)` constructor, creating a new instance of `BiquadFilterNode`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode/BiquadFilterNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `BiquadFilterNode`, `BiquadFilterOptions`*"] pub fn new_with_options( context: &BaseAudioContext, options: &BiquadFilterOptions, ) -> Result; # [wasm_bindgen (method , structural , js_class = "BiquadFilterNode" , js_name = getFrequencyResponse)] #[doc = "The `getFrequencyResponse()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode/getFrequencyResponse)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BiquadFilterNode`*"] pub fn get_frequency_response( this: &BiquadFilterNode, frequency_hz: &mut [f32], mag_response: &mut [f32], phase_response: &mut [f32], ); } web-sys-0.3.55/src/features/gen_BiquadFilterOptions.rs000064400000000000000000000131370072674642500210770ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = BiquadFilterOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BiquadFilterOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BiquadFilterOptions`*"] pub type BiquadFilterOptions; } impl BiquadFilterOptions { #[doc = "Construct a new `BiquadFilterOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BiquadFilterOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BiquadFilterOptions`*"] pub fn channel_count(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("channelCount"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "ChannelCountMode")] #[doc = "Change the `channelCountMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BiquadFilterOptions`, `ChannelCountMode`*"] pub fn channel_count_mode(&mut self, val: ChannelCountMode) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("channelCountMode"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "ChannelInterpretation")] #[doc = "Change the `channelInterpretation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BiquadFilterOptions`, `ChannelInterpretation`*"] pub fn channel_interpretation(&mut self, val: ChannelInterpretation) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("channelInterpretation"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `Q` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BiquadFilterOptions`*"] pub fn q(&mut self, val: f32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("Q"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `detune` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BiquadFilterOptions`*"] pub fn detune(&mut self, val: f32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("detune"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `frequency` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BiquadFilterOptions`*"] pub fn frequency(&mut self, val: f32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("frequency"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `gain` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BiquadFilterOptions`*"] pub fn gain(&mut self, val: f32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("gain"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "BiquadFilterType")] #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BiquadFilterOptions`, `BiquadFilterType`*"] pub fn type_(&mut self, val: BiquadFilterType) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for BiquadFilterOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_BiquadFilterType.rs000064400000000000000000000007650072674642500203700ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `BiquadFilterType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BiquadFilterType`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum BiquadFilterType { Lowpass = "lowpass", Highpass = "highpass", Bandpass = "bandpass", Lowshelf = "lowshelf", Highshelf = "highshelf", Peaking = "peaking", Notch = "notch", Allpass = "allpass", } web-sys-0.3.55/src/features/gen_Blob.rs000064400000000000000000000275650072674642500160400ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Blob , typescript_type = "Blob")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Blob` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`*"] pub type Blob; # [wasm_bindgen (structural , method , getter , js_class = "Blob" , js_name = size)] #[doc = "Getter for the `size` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/size)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`*"] pub fn size(this: &Blob) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "Blob" , js_name = type)] #[doc = "Getter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`*"] pub fn type_(this: &Blob) -> String; #[wasm_bindgen(catch, constructor, js_class = "Blob")] #[doc = "The `new Blob(..)` constructor, creating a new instance of `Blob`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/Blob)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`*"] pub fn new() -> Result; #[wasm_bindgen(catch, constructor, js_class = "Blob")] #[doc = "The `new Blob(..)` constructor, creating a new instance of `Blob`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/Blob)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`*"] pub fn new_with_buffer_source_sequence( blob_parts: &::wasm_bindgen::JsValue, ) -> Result; #[wasm_bindgen(catch, constructor, js_class = "Blob")] #[doc = "The `new Blob(..)` constructor, creating a new instance of `Blob`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/Blob)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`*"] pub fn new_with_u8_array_sequence( blob_parts: &::wasm_bindgen::JsValue, ) -> Result; #[wasm_bindgen(catch, constructor, js_class = "Blob")] #[doc = "The `new Blob(..)` constructor, creating a new instance of `Blob`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/Blob)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`*"] pub fn new_with_blob_sequence(blob_parts: &::wasm_bindgen::JsValue) -> Result; #[wasm_bindgen(catch, constructor, js_class = "Blob")] #[doc = "The `new Blob(..)` constructor, creating a new instance of `Blob`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/Blob)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`*"] pub fn new_with_str_sequence(blob_parts: &::wasm_bindgen::JsValue) -> Result; #[cfg(feature = "BlobPropertyBag")] #[wasm_bindgen(catch, constructor, js_class = "Blob")] #[doc = "The `new Blob(..)` constructor, creating a new instance of `Blob`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/Blob)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`, `BlobPropertyBag`*"] pub fn new_with_buffer_source_sequence_and_options( blob_parts: &::wasm_bindgen::JsValue, options: &BlobPropertyBag, ) -> Result; #[cfg(feature = "BlobPropertyBag")] #[wasm_bindgen(catch, constructor, js_class = "Blob")] #[doc = "The `new Blob(..)` constructor, creating a new instance of `Blob`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/Blob)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`, `BlobPropertyBag`*"] pub fn new_with_u8_array_sequence_and_options( blob_parts: &::wasm_bindgen::JsValue, options: &BlobPropertyBag, ) -> Result; #[cfg(feature = "BlobPropertyBag")] #[wasm_bindgen(catch, constructor, js_class = "Blob")] #[doc = "The `new Blob(..)` constructor, creating a new instance of `Blob`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/Blob)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`, `BlobPropertyBag`*"] pub fn new_with_blob_sequence_and_options( blob_parts: &::wasm_bindgen::JsValue, options: &BlobPropertyBag, ) -> Result; #[cfg(feature = "BlobPropertyBag")] #[wasm_bindgen(catch, constructor, js_class = "Blob")] #[doc = "The `new Blob(..)` constructor, creating a new instance of `Blob`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/Blob)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`, `BlobPropertyBag`*"] pub fn new_with_str_sequence_and_options( blob_parts: &::wasm_bindgen::JsValue, options: &BlobPropertyBag, ) -> Result; # [wasm_bindgen (method , structural , js_class = "Blob" , js_name = arrayBuffer)] #[doc = "The `arrayBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/arrayBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`*"] pub fn array_buffer(this: &Blob) -> ::js_sys::Promise; # [wasm_bindgen (catch , method , structural , js_class = "Blob" , js_name = slice)] #[doc = "The `slice()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`*"] pub fn slice(this: &Blob) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Blob" , js_name = slice)] #[doc = "The `slice()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`*"] pub fn slice_with_i32(this: &Blob, start: i32) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Blob" , js_name = slice)] #[doc = "The `slice()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`*"] pub fn slice_with_f64(this: &Blob, start: f64) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Blob" , js_name = slice)] #[doc = "The `slice()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`*"] pub fn slice_with_i32_and_i32(this: &Blob, start: i32, end: i32) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Blob" , js_name = slice)] #[doc = "The `slice()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`*"] pub fn slice_with_f64_and_i32(this: &Blob, start: f64, end: i32) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Blob" , js_name = slice)] #[doc = "The `slice()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`*"] pub fn slice_with_i32_and_f64(this: &Blob, start: i32, end: f64) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Blob" , js_name = slice)] #[doc = "The `slice()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`*"] pub fn slice_with_f64_and_f64(this: &Blob, start: f64, end: f64) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Blob" , js_name = slice)] #[doc = "The `slice()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`*"] pub fn slice_with_i32_and_i32_and_content_type( this: &Blob, start: i32, end: i32, content_type: &str, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Blob" , js_name = slice)] #[doc = "The `slice()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`*"] pub fn slice_with_f64_and_i32_and_content_type( this: &Blob, start: f64, end: i32, content_type: &str, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Blob" , js_name = slice)] #[doc = "The `slice()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`*"] pub fn slice_with_i32_and_f64_and_content_type( this: &Blob, start: i32, end: f64, content_type: &str, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Blob" , js_name = slice)] #[doc = "The `slice()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`*"] pub fn slice_with_f64_and_f64_and_content_type( this: &Blob, start: f64, end: f64, content_type: &str, ) -> Result; #[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.55/src/features/gen_BlobEvent.rs000064400000000000000000000037670072674642500170400ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = BlobEvent , typescript_type = "BlobEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BlobEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BlobEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BlobEvent`*"] pub type BlobEvent; #[cfg(feature = "Blob")] # [wasm_bindgen (structural , method , getter , js_class = "BlobEvent" , js_name = data)] #[doc = "Getter for the `data` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BlobEvent/data)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`, `BlobEvent`*"] pub fn data(this: &BlobEvent) -> Option; #[wasm_bindgen(catch, constructor, js_class = "BlobEvent")] #[doc = "The `new BlobEvent(..)` constructor, creating a new instance of `BlobEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BlobEvent/BlobEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BlobEvent`*"] pub fn new(type_: &str) -> Result; #[cfg(feature = "BlobEventInit")] #[wasm_bindgen(catch, constructor, js_class = "BlobEvent")] #[doc = "The `new BlobEvent(..)` constructor, creating a new instance of `BlobEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BlobEvent/BlobEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BlobEvent`, `BlobEventInit`*"] pub fn new_with_event_init_dict( type_: &str, event_init_dict: &BlobEventInit, ) -> Result; } web-sys-0.3.55/src/features/gen_BlobEventInit.rs000064400000000000000000000061640072674642500176560ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = BlobEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BlobEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BlobEventInit`*"] pub type BlobEventInit; } impl BlobEventInit { #[doc = "Construct a new `BlobEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BlobEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BlobEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BlobEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BlobEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "Blob")] #[doc = "Change the `data` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`, `BlobEventInit`*"] pub fn data(&mut self, val: Option<&Blob>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("data"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for BlobEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_BlobPropertyBag.rs000064400000000000000000000037710072674642500202100ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = BlobPropertyBag)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BlobPropertyBag` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BlobPropertyBag`*"] pub type BlobPropertyBag; } impl BlobPropertyBag { #[doc = "Construct a new `BlobPropertyBag`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BlobPropertyBag`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(feature = "EndingTypes")] #[doc = "Change the `endings` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BlobPropertyBag`, `EndingTypes`*"] pub fn endings(&mut self, val: EndingTypes) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("endings"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BlobPropertyBag`*"] pub fn type_(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for BlobPropertyBag { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_BlockParsingOptions.rs000064400000000000000000000027630072674642500211050ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = BlockParsingOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BlockParsingOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BlockParsingOptions`*"] pub type BlockParsingOptions; } impl BlockParsingOptions { #[doc = "Construct a new `BlockParsingOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BlockParsingOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `blockScriptCreated` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BlockParsingOptions`*"] pub fn block_script_created(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("blockScriptCreated"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for BlockParsingOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_Bluetooth.rs000064400000000000000000000352240072674642500171160ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn request_device(this: &Bluetooth, options: &RequestDeviceOptions) -> ::js_sys::Promise; } web-sys-0.3.55/src/features/gen_BluetoothAdvertisingEvent.rs000064400000000000000000000164620072674642500223230ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn name(this: &BluetoothAdvertisingEvent) -> Option; #[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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn service_data(this: &BluetoothAdvertisingEvent) -> BluetoothServiceDataMap; } web-sys-0.3.55/src/features/gen_BluetoothAdvertisingEventInit.rs000064400000000000000000000261330072674642500231430ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type BluetoothAdvertisingEventInit; } #[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://rustwasm.github.io/docs/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.device(device); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn appearance(&mut self, val: u16) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("appearance"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn device(&mut self, val: &BluetoothDevice) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("device"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn manufacturer_data(&mut self, val: &BluetoothManufacturerDataMap) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("manufacturerData"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn rssi(&mut self, val: i8) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("rssi"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn service_data(&mut self, val: &BluetoothServiceDataMap) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("serviceData"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn tx_power(&mut self, val: i8) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("txPower"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn uuids(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("uuids"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_BluetoothCharacteristicProperties.rs000064400000000000000000000203360072674642500240420ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn writable_auxiliaries(this: &BluetoothCharacteristicProperties) -> bool; } web-sys-0.3.55/src/features/gen_BluetoothDataFilterInit.rs000064400000000000000000000062440072674642500217020ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type BluetoothDataFilterInit; } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn data_prefix(&mut self, val: &::js_sys::Object) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("dataPrefix"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn mask(&mut self, val: &::js_sys::Object) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("mask"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } #[cfg(web_sys_unstable_apis)] impl Default for BluetoothDataFilterInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_BluetoothDevice.rs000064400000000000000000000361270072674642500202410ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn id(this: &BluetoothDevice) -> 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn name(this: &BluetoothDevice) -> Option; #[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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn watch_advertisements_with_options( this: &BluetoothDevice, options: &WatchAdvertisementsOptions, ) -> ::js_sys::Promise; } web-sys-0.3.55/src/features/gen_BluetoothLeScanFilterInit.rs000064400000000000000000000134710072674642500221760ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type BluetoothLeScanFilterInit; } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn manufacturer_data(&mut self, val: &::js_sys::Object) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("manufacturerData"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn name_prefix(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("namePrefix"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn service_data(&mut self, val: &::js_sys::Object) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("serviceData"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn services(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("services"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } #[cfg(web_sys_unstable_apis)] impl Default for BluetoothLeScanFilterInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_BluetoothManufacturerDataMap.rs000064400000000000000000000016320072674642500227170ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type BluetoothManufacturerDataMap; } web-sys-0.3.55/src/features/gen_BluetoothPermissionDescriptor.rs000064400000000000000000000136200072674642500232220ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type BluetoothPermissionDescriptor; } #[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://rustwasm.github.io/docs/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.name(name); ret } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn name(&mut self, val: PermissionName) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn accept_all_devices(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("acceptAllDevices"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn device_id(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("deviceId"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn filters(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("filters"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn optional_services(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("optionalServices"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_BluetoothPermissionResult.rs000064400000000000000000000047650072674642500223740ustar 00000000000000#![allow(unused_imports)] 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_devices(this: &BluetoothPermissionResult, value: &::wasm_bindgen::JsValue); } web-sys-0.3.55/src/features/gen_BluetoothPermissionStorage.rs000064400000000000000000000045500072674642500225120ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type BluetoothPermissionStorage; } #[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://rustwasm.github.io/docs/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.allowed_devices(allowed_devices); ret } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn allowed_devices(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("allowedDevices"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_BluetoothRemoteGattCharacteristic.rs000064400000000000000000000440710072674642500237630ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn uuid(this: &BluetoothRemoteGattCharacteristic) -> 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn stop_notifications(this: &BluetoothRemoteGattCharacteristic) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_value_with_buffer_source( this: &BluetoothRemoteGattCharacteristic, value: &::js_sys::Object, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_value_with_u8_array( this: &BluetoothRemoteGattCharacteristic, value: &mut [u8], ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_value_with_response_with_buffer_source( this: &BluetoothRemoteGattCharacteristic, value: &::js_sys::Object, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_value_with_response_with_u8_array( this: &BluetoothRemoteGattCharacteristic, value: &mut [u8], ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_value_without_response_with_buffer_source( this: &BluetoothRemoteGattCharacteristic, value: &::js_sys::Object, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_value_without_response_with_u8_array( this: &BluetoothRemoteGattCharacteristic, value: &mut [u8], ) -> ::js_sys::Promise; } web-sys-0.3.55/src/features/gen_BluetoothRemoteGattDescriptor.rs000064400000000000000000000135000072674642500231420ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn uuid(this: &BluetoothRemoteGattDescriptor) -> 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn read_value(this: &BluetoothRemoteGattDescriptor) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_value_with_buffer_source( this: &BluetoothRemoteGattDescriptor, value: &::js_sys::Object, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_value_with_u8_array( this: &BluetoothRemoteGattDescriptor, value: &mut [u8], ) -> ::js_sys::Promise; } web-sys-0.3.55/src/features/gen_BluetoothRemoteGattServer.rs000064400000000000000000000200440072674642500222730ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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.55/src/features/gen_BluetoothRemoteGattService.rs000064400000000000000000000444630072674642500224400ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn uuid(this: &BluetoothRemoteGattService) -> 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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.55/src/features/gen_BluetoothServiceDataMap.rs000064400000000000000000000015740072674642500216700ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type BluetoothServiceDataMap; } web-sys-0.3.55/src/features/gen_BluetoothUuid.rs000064400000000000000000000135250072674642500177450ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/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)"] #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn canonical_uuid(alias: u32) -> 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)"] #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_characteristic_with_str(name: &str) -> 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)"] #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_characteristic_with_u32(name: u32) -> 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)"] #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_descriptor_with_str(name: &str) -> 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)"] #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_descriptor_with_u32(name: u32) -> 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)"] #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_service_with_str(name: &str) -> 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)"] #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_service_with_u32(name: u32) -> String; } web-sys-0.3.55/src/features/gen_BoxQuadOptions.rs000064400000000000000000000040000072674642500200540ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = BoxQuadOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BoxQuadOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BoxQuadOptions`*"] pub type BoxQuadOptions; } impl BoxQuadOptions { #[doc = "Construct a new `BoxQuadOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BoxQuadOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(feature = "CssBoxType")] #[doc = "Change the `box` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BoxQuadOptions`, `CssBoxType`*"] pub fn box_(&mut self, val: CssBoxType) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("box"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `relativeTo` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BoxQuadOptions`*"] pub fn relative_to(&mut self, val: &::js_sys::Object) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("relativeTo"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for BoxQuadOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_BroadcastChannel.rs000064400000000000000000000106360072674642500203440ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = BroadcastChannel , typescript_type = "BroadcastChannel")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BroadcastChannel` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BroadcastChannel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BroadcastChannel`*"] pub type BroadcastChannel; # [wasm_bindgen (structural , method , getter , js_class = "BroadcastChannel" , js_name = name)] #[doc = "Getter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BroadcastChannel/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BroadcastChannel`*"] pub fn name(this: &BroadcastChannel) -> String; # [wasm_bindgen (structural , method , getter , js_class = "BroadcastChannel" , js_name = onmessage)] #[doc = "Getter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BroadcastChannel/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BroadcastChannel`*"] pub fn onmessage(this: &BroadcastChannel) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "BroadcastChannel" , js_name = onmessage)] #[doc = "Setter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BroadcastChannel/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BroadcastChannel`*"] pub fn set_onmessage(this: &BroadcastChannel, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "BroadcastChannel" , js_name = onmessageerror)] #[doc = "Getter for the `onmessageerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BroadcastChannel/onmessageerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BroadcastChannel`*"] pub fn onmessageerror(this: &BroadcastChannel) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "BroadcastChannel" , js_name = onmessageerror)] #[doc = "Setter for the `onmessageerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BroadcastChannel/onmessageerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BroadcastChannel`*"] pub fn set_onmessageerror(this: &BroadcastChannel, value: Option<&::js_sys::Function>); #[wasm_bindgen(catch, constructor, js_class = "BroadcastChannel")] #[doc = "The `new BroadcastChannel(..)` constructor, creating a new instance of `BroadcastChannel`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BroadcastChannel/BroadcastChannel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BroadcastChannel`*"] pub fn new(channel: &str) -> Result; # [wasm_bindgen (method , structural , js_class = "BroadcastChannel" , js_name = close)] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BroadcastChannel/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BroadcastChannel`*"] pub fn close(this: &BroadcastChannel); # [wasm_bindgen (catch , method , structural , js_class = "BroadcastChannel" , js_name = postMessage)] #[doc = "The `postMessage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BroadcastChannel/postMessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BroadcastChannel`*"] pub fn post_message( this: &BroadcastChannel, message: &::wasm_bindgen::JsValue, ) -> Result<(), JsValue>; } web-sys-0.3.55/src/features/gen_BrowserElementDownloadOptions.rs000064400000000000000000000042300072674642500231430ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = BrowserElementDownloadOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BrowserElementDownloadOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BrowserElementDownloadOptions`*"] pub type BrowserElementDownloadOptions; } impl BrowserElementDownloadOptions { #[doc = "Construct a new `BrowserElementDownloadOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BrowserElementDownloadOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `filename` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BrowserElementDownloadOptions`*"] pub fn filename(&mut self, val: Option<&str>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("filename"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `referrer` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BrowserElementDownloadOptions`*"] pub fn referrer(&mut self, val: Option<&str>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("referrer"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for BrowserElementDownloadOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_BrowserElementExecuteScriptOptions.rs000064400000000000000000000041430072674642500241660ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = BrowserElementExecuteScriptOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BrowserElementExecuteScriptOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BrowserElementExecuteScriptOptions`*"] pub type BrowserElementExecuteScriptOptions; } impl BrowserElementExecuteScriptOptions { #[doc = "Construct a new `BrowserElementExecuteScriptOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BrowserElementExecuteScriptOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `origin` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BrowserElementExecuteScriptOptions`*"] pub fn origin(&mut self, val: Option<&str>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("origin"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `url` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BrowserElementExecuteScriptOptions`*"] pub fn url(&mut self, val: Option<&str>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("url"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for BrowserElementExecuteScriptOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_BrowserFeedWriter.rs000064400000000000000000000036160072674642500205550ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = BrowserFeedWriter , typescript_type = "BrowserFeedWriter")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BrowserFeedWriter` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BrowserFeedWriter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BrowserFeedWriter`*"] pub type BrowserFeedWriter; #[wasm_bindgen(catch, constructor, js_class = "BrowserFeedWriter")] #[doc = "The `new BrowserFeedWriter(..)` constructor, creating a new instance of `BrowserFeedWriter`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BrowserFeedWriter/BrowserFeedWriter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BrowserFeedWriter`*"] pub fn new() -> Result; # [wasm_bindgen (method , structural , js_class = "BrowserFeedWriter" , js_name = close)] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BrowserFeedWriter/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BrowserFeedWriter`*"] pub fn close(this: &BrowserFeedWriter); # [wasm_bindgen (method , structural , js_class = "BrowserFeedWriter" , js_name = writeContent)] #[doc = "The `writeContent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BrowserFeedWriter/writeContent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BrowserFeedWriter`*"] pub fn write_content(this: &BrowserFeedWriter); } web-sys-0.3.55/src/features/gen_BrowserFindCaseSensitivity.rs000064400000000000000000000006250072674642500224410ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `BrowserFindCaseSensitivity` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BrowserFindCaseSensitivity`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum BrowserFindCaseSensitivity { CaseSensitive = "case-sensitive", CaseInsensitive = "case-insensitive", } web-sys-0.3.55/src/features/gen_BrowserFindDirection.rs000064400000000000000000000005470072674642500212360ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `BrowserFindDirection` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BrowserFindDirection`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum BrowserFindDirection { Forward = "forward", Backward = "backward", } web-sys-0.3.55/src/features/gen_Cache.rs000064400000000000000000000277620072674642500161640ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Cache , typescript_type = "Cache")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Cache` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Cache`*"] pub type Cache; #[cfg(feature = "Request")] # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = add)] #[doc = "The `add()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/add)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Cache`, `Request`*"] pub fn add_with_request(this: &Cache, request: &Request) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = add)] #[doc = "The `add()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/add)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Cache`*"] pub fn add_with_str(this: &Cache, request: &str) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = addAll)] #[doc = "The `addAll()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/addAll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Cache`*"] pub fn add_all_with_request_sequence( this: &Cache, requests: &::wasm_bindgen::JsValue, ) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = addAll)] #[doc = "The `addAll()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/addAll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Cache`*"] pub fn add_all_with_str_sequence( this: &Cache, requests: &::wasm_bindgen::JsValue, ) -> ::js_sys::Promise; #[cfg(feature = "Request")] # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = delete)] #[doc = "The `delete()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/delete)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Cache`, `Request`*"] pub fn delete_with_request(this: &Cache, request: &Request) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = delete)] #[doc = "The `delete()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/delete)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Cache`*"] pub fn delete_with_str(this: &Cache, request: &str) -> ::js_sys::Promise; #[cfg(all(feature = "CacheQueryOptions", feature = "Request",))] # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = delete)] #[doc = "The `delete()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/delete)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Cache`, `CacheQueryOptions`, `Request`*"] pub fn delete_with_request_and_options( this: &Cache, request: &Request, options: &CacheQueryOptions, ) -> ::js_sys::Promise; #[cfg(feature = "CacheQueryOptions")] # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = delete)] #[doc = "The `delete()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/delete)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Cache`, `CacheQueryOptions`*"] pub fn delete_with_str_and_options( this: &Cache, request: &str, options: &CacheQueryOptions, ) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = keys)] #[doc = "The `keys()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/keys)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Cache`*"] pub fn keys(this: &Cache) -> ::js_sys::Promise; #[cfg(feature = "Request")] # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = keys)] #[doc = "The `keys()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/keys)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Cache`, `Request`*"] pub fn keys_with_request(this: &Cache, request: &Request) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = keys)] #[doc = "The `keys()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/keys)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Cache`*"] pub fn keys_with_str(this: &Cache, request: &str) -> ::js_sys::Promise; #[cfg(all(feature = "CacheQueryOptions", feature = "Request",))] # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = keys)] #[doc = "The `keys()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/keys)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Cache`, `CacheQueryOptions`, `Request`*"] pub fn keys_with_request_and_options( this: &Cache, request: &Request, options: &CacheQueryOptions, ) -> ::js_sys::Promise; #[cfg(feature = "CacheQueryOptions")] # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = keys)] #[doc = "The `keys()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/keys)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Cache`, `CacheQueryOptions`*"] pub fn keys_with_str_and_options( this: &Cache, request: &str, options: &CacheQueryOptions, ) -> ::js_sys::Promise; #[cfg(feature = "Request")] # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = match)] #[doc = "The `match()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/match)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Cache`, `Request`*"] pub fn match_with_request(this: &Cache, request: &Request) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = match)] #[doc = "The `match()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/match)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Cache`*"] pub fn match_with_str(this: &Cache, request: &str) -> ::js_sys::Promise; #[cfg(all(feature = "CacheQueryOptions", feature = "Request",))] # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = match)] #[doc = "The `match()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/match)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Cache`, `CacheQueryOptions`, `Request`*"] pub fn match_with_request_and_options( this: &Cache, request: &Request, options: &CacheQueryOptions, ) -> ::js_sys::Promise; #[cfg(feature = "CacheQueryOptions")] # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = match)] #[doc = "The `match()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/match)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Cache`, `CacheQueryOptions`*"] pub fn match_with_str_and_options( this: &Cache, request: &str, options: &CacheQueryOptions, ) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = matchAll)] #[doc = "The `matchAll()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/matchAll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Cache`*"] pub fn match_all(this: &Cache) -> ::js_sys::Promise; #[cfg(feature = "Request")] # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = matchAll)] #[doc = "The `matchAll()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/matchAll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Cache`, `Request`*"] pub fn match_all_with_request(this: &Cache, request: &Request) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = matchAll)] #[doc = "The `matchAll()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/matchAll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Cache`*"] pub fn match_all_with_str(this: &Cache, request: &str) -> ::js_sys::Promise; #[cfg(all(feature = "CacheQueryOptions", feature = "Request",))] # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = matchAll)] #[doc = "The `matchAll()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/matchAll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Cache`, `CacheQueryOptions`, `Request`*"] pub fn match_all_with_request_and_options( this: &Cache, request: &Request, options: &CacheQueryOptions, ) -> ::js_sys::Promise; #[cfg(feature = "CacheQueryOptions")] # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = matchAll)] #[doc = "The `matchAll()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/matchAll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Cache`, `CacheQueryOptions`*"] pub fn match_all_with_str_and_options( this: &Cache, request: &str, options: &CacheQueryOptions, ) -> ::js_sys::Promise; #[cfg(all(feature = "Request", feature = "Response",))] # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = put)] #[doc = "The `put()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/put)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Cache`, `Request`, `Response`*"] pub fn put_with_request( this: &Cache, request: &Request, response: &Response, ) -> ::js_sys::Promise; #[cfg(feature = "Response")] # [wasm_bindgen (method , structural , js_class = "Cache" , js_name = put)] #[doc = "The `put()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/put)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Cache`, `Response`*"] pub fn put_with_str(this: &Cache, request: &str, response: &Response) -> ::js_sys::Promise; } web-sys-0.3.55/src/features/gen_CacheBatchOperation.rs000064400000000000000000000064640072674642500210030ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CacheBatchOperation)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CacheBatchOperation` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CacheBatchOperation`*"] pub type CacheBatchOperation; } impl CacheBatchOperation { #[doc = "Construct a new `CacheBatchOperation`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CacheBatchOperation`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(feature = "CacheQueryOptions")] #[doc = "Change the `options` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CacheBatchOperation`, `CacheQueryOptions`*"] pub fn options(&mut self, val: &CacheQueryOptions) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("options"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "Request")] #[doc = "Change the `request` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CacheBatchOperation`, `Request`*"] pub fn request(&mut self, val: &Request) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("request"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "Response")] #[doc = "Change the `response` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CacheBatchOperation`, `Response`*"] pub fn response(&mut self, val: &Response) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("response"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CacheBatchOperation`*"] pub fn type_(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for CacheBatchOperation { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_CacheQueryOptions.rs000064400000000000000000000063230072674642500205540ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CacheQueryOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CacheQueryOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CacheQueryOptions`*"] pub type CacheQueryOptions; } impl CacheQueryOptions { #[doc = "Construct a new `CacheQueryOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CacheQueryOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `cacheName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CacheQueryOptions`*"] pub fn cache_name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cacheName"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `ignoreMethod` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CacheQueryOptions`*"] pub fn ignore_method(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("ignoreMethod"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `ignoreSearch` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CacheQueryOptions`*"] pub fn ignore_search(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("ignoreSearch"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `ignoreVary` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CacheQueryOptions`*"] pub fn ignore_vary(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("ignoreVary"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for CacheQueryOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_CacheStorage.rs000064400000000000000000000104600072674642500174740ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CacheStorage , typescript_type = "CacheStorage")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CacheStorage` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CacheStorage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CacheStorage`*"] pub type CacheStorage; # [wasm_bindgen (method , structural , js_class = "CacheStorage" , js_name = delete)] #[doc = "The `delete()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CacheStorage/delete)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CacheStorage`*"] pub fn delete(this: &CacheStorage, cache_name: &str) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "CacheStorage" , js_name = has)] #[doc = "The `has()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CacheStorage/has)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CacheStorage`*"] pub fn has(this: &CacheStorage, cache_name: &str) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "CacheStorage" , js_name = keys)] #[doc = "The `keys()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CacheStorage/keys)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CacheStorage`*"] pub fn keys(this: &CacheStorage) -> ::js_sys::Promise; #[cfg(feature = "Request")] # [wasm_bindgen (method , structural , js_class = "CacheStorage" , js_name = match)] #[doc = "The `match()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CacheStorage/match)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CacheStorage`, `Request`*"] pub fn match_with_request(this: &CacheStorage, request: &Request) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "CacheStorage" , js_name = match)] #[doc = "The `match()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CacheStorage/match)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CacheStorage`*"] pub fn match_with_str(this: &CacheStorage, request: &str) -> ::js_sys::Promise; #[cfg(all(feature = "CacheQueryOptions", feature = "Request",))] # [wasm_bindgen (method , structural , js_class = "CacheStorage" , js_name = match)] #[doc = "The `match()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CacheStorage/match)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CacheQueryOptions`, `CacheStorage`, `Request`*"] pub fn match_with_request_and_options( this: &CacheStorage, request: &Request, options: &CacheQueryOptions, ) -> ::js_sys::Promise; #[cfg(feature = "CacheQueryOptions")] # [wasm_bindgen (method , structural , js_class = "CacheStorage" , js_name = match)] #[doc = "The `match()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CacheStorage/match)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CacheQueryOptions`, `CacheStorage`*"] pub fn match_with_str_and_options( this: &CacheStorage, request: &str, options: &CacheQueryOptions, ) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "CacheStorage" , js_name = open)] #[doc = "The `open()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CacheStorage/open)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CacheStorage`*"] pub fn open(this: &CacheStorage, cache_name: &str) -> ::js_sys::Promise; } web-sys-0.3.55/src/features/gen_CacheStorageNamespace.rs000064400000000000000000000005460072674642500213150ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `CacheStorageNamespace` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CacheStorageNamespace`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum CacheStorageNamespace { Content = "content", Chrome = "chrome", } web-sys-0.3.55/src/features/gen_CanvasCaptureMediaStream.rs000064400000000000000000000032560072674642500220240ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = MediaStream , extends = EventTarget , extends = :: js_sys :: Object , js_name = CanvasCaptureMediaStream , typescript_type = "CanvasCaptureMediaStream")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CanvasCaptureMediaStream` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasCaptureMediaStream)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasCaptureMediaStream`*"] pub type CanvasCaptureMediaStream; #[cfg(feature = "HtmlCanvasElement")] # [wasm_bindgen (structural , method , getter , js_class = "CanvasCaptureMediaStream" , js_name = canvas)] #[doc = "Getter for the `canvas` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasCaptureMediaStream/canvas)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasCaptureMediaStream`, `HtmlCanvasElement`*"] pub fn canvas(this: &CanvasCaptureMediaStream) -> HtmlCanvasElement; # [wasm_bindgen (method , structural , js_class = "CanvasCaptureMediaStream" , js_name = requestFrame)] #[doc = "The `requestFrame()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasCaptureMediaStream/requestFrame)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasCaptureMediaStream`*"] pub fn request_frame(this: &CanvasCaptureMediaStream); } web-sys-0.3.55/src/features/gen_CanvasGradient.rs000064400000000000000000000020370072674642500200360ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CanvasGradient , typescript_type = "CanvasGradient")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CanvasGradient` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasGradient)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasGradient`*"] pub type CanvasGradient; # [wasm_bindgen (catch , method , structural , js_class = "CanvasGradient" , js_name = addColorStop)] #[doc = "The `addColorStop()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasGradient/addColorStop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasGradient`*"] pub fn add_color_stop(this: &CanvasGradient, offset: f32, color: &str) -> Result<(), JsValue>; } web-sys-0.3.55/src/features/gen_CanvasPattern.rs000064400000000000000000000020360072674642500177150ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CanvasPattern , typescript_type = "CanvasPattern")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CanvasPattern` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasPattern)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasPattern`*"] pub type CanvasPattern; #[cfg(feature = "SvgMatrix")] # [wasm_bindgen (method , structural , js_class = "CanvasPattern" , js_name = setTransform)] #[doc = "The `setTransform()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasPattern/setTransform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasPattern`, `SvgMatrix`*"] pub fn set_transform(this: &CanvasPattern, matrix: &SvgMatrix); } web-sys-0.3.55/src/features/gen_CanvasRenderingContext2d.rs000064400000000000000000002123070072674642500220140ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CanvasRenderingContext2D , typescript_type = "CanvasRenderingContext2D")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CanvasRenderingContext2d` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub type CanvasRenderingContext2d; #[cfg(feature = "HtmlCanvasElement")] # [wasm_bindgen (structural , method , getter , js_class = "CanvasRenderingContext2D" , js_name = canvas)] #[doc = "Getter for the `canvas` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/canvas)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `HtmlCanvasElement`*"] pub fn canvas(this: &CanvasRenderingContext2d) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "CanvasRenderingContext2D" , js_name = globalAlpha)] #[doc = "Getter for the `globalAlpha` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalAlpha)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn global_alpha(this: &CanvasRenderingContext2d) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = globalAlpha)] #[doc = "Setter for the `globalAlpha` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalAlpha)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn set_global_alpha(this: &CanvasRenderingContext2d, value: f64); # [wasm_bindgen (structural , catch , method , getter , js_class = "CanvasRenderingContext2D" , js_name = globalCompositeOperation)] #[doc = "Getter for the `globalCompositeOperation` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn global_composite_operation(this: &CanvasRenderingContext2d) -> Result; # [wasm_bindgen (structural , catch , method , setter , js_class = "CanvasRenderingContext2D" , js_name = globalCompositeOperation)] #[doc = "Setter for the `globalCompositeOperation` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn set_global_composite_operation( this: &CanvasRenderingContext2d, value: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (structural , method , getter , js_class = "CanvasRenderingContext2D" , js_name = strokeStyle)] #[doc = "Getter for the `strokeStyle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/strokeStyle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn stroke_style(this: &CanvasRenderingContext2d) -> ::wasm_bindgen::JsValue; # [wasm_bindgen (structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = strokeStyle)] #[doc = "Setter for the `strokeStyle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/strokeStyle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn set_stroke_style(this: &CanvasRenderingContext2d, value: &::wasm_bindgen::JsValue); # [wasm_bindgen (structural , method , getter , js_class = "CanvasRenderingContext2D" , js_name = fillStyle)] #[doc = "Getter for the `fillStyle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/fillStyle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn fill_style(this: &CanvasRenderingContext2d) -> ::wasm_bindgen::JsValue; # [wasm_bindgen (structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = fillStyle)] #[doc = "Setter for the `fillStyle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/fillStyle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn set_fill_style(this: &CanvasRenderingContext2d, value: &::wasm_bindgen::JsValue); # [wasm_bindgen (structural , method , getter , js_class = "CanvasRenderingContext2D" , js_name = filter)] #[doc = "Getter for the `filter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/filter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn filter(this: &CanvasRenderingContext2d) -> String; # [wasm_bindgen (structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = filter)] #[doc = "Setter for the `filter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/filter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn set_filter(this: &CanvasRenderingContext2d, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "CanvasRenderingContext2D" , js_name = imageSmoothingEnabled)] #[doc = "Getter for the `imageSmoothingEnabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/imageSmoothingEnabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn image_smoothing_enabled(this: &CanvasRenderingContext2d) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = imageSmoothingEnabled)] #[doc = "Setter for the `imageSmoothingEnabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/imageSmoothingEnabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn set_image_smoothing_enabled(this: &CanvasRenderingContext2d, value: bool); # [wasm_bindgen (structural , method , getter , js_class = "CanvasRenderingContext2D" , js_name = lineWidth)] #[doc = "Getter for the `lineWidth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineWidth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn line_width(this: &CanvasRenderingContext2d) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = lineWidth)] #[doc = "Setter for the `lineWidth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineWidth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn set_line_width(this: &CanvasRenderingContext2d, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "CanvasRenderingContext2D" , js_name = lineCap)] #[doc = "Getter for the `lineCap` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineCap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn line_cap(this: &CanvasRenderingContext2d) -> String; # [wasm_bindgen (structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = lineCap)] #[doc = "Setter for the `lineCap` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineCap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn set_line_cap(this: &CanvasRenderingContext2d, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "CanvasRenderingContext2D" , js_name = lineJoin)] #[doc = "Getter for the `lineJoin` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineJoin)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn line_join(this: &CanvasRenderingContext2d) -> String; # [wasm_bindgen (structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = lineJoin)] #[doc = "Setter for the `lineJoin` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineJoin)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn set_line_join(this: &CanvasRenderingContext2d, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "CanvasRenderingContext2D" , js_name = miterLimit)] #[doc = "Getter for the `miterLimit` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/miterLimit)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn miter_limit(this: &CanvasRenderingContext2d) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = miterLimit)] #[doc = "Setter for the `miterLimit` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/miterLimit)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn set_miter_limit(this: &CanvasRenderingContext2d, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "CanvasRenderingContext2D" , js_name = lineDashOffset)] #[doc = "Getter for the `lineDashOffset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineDashOffset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn line_dash_offset(this: &CanvasRenderingContext2d) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = lineDashOffset)] #[doc = "Setter for the `lineDashOffset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineDashOffset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn set_line_dash_offset(this: &CanvasRenderingContext2d, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "CanvasRenderingContext2D" , js_name = shadowOffsetX)] #[doc = "Getter for the `shadowOffsetX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/shadowOffsetX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn shadow_offset_x(this: &CanvasRenderingContext2d) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = shadowOffsetX)] #[doc = "Setter for the `shadowOffsetX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/shadowOffsetX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn set_shadow_offset_x(this: &CanvasRenderingContext2d, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "CanvasRenderingContext2D" , js_name = shadowOffsetY)] #[doc = "Getter for the `shadowOffsetY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/shadowOffsetY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn shadow_offset_y(this: &CanvasRenderingContext2d) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = shadowOffsetY)] #[doc = "Setter for the `shadowOffsetY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/shadowOffsetY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn set_shadow_offset_y(this: &CanvasRenderingContext2d, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "CanvasRenderingContext2D" , js_name = shadowBlur)] #[doc = "Getter for the `shadowBlur` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/shadowBlur)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn shadow_blur(this: &CanvasRenderingContext2d) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = shadowBlur)] #[doc = "Setter for the `shadowBlur` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/shadowBlur)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn set_shadow_blur(this: &CanvasRenderingContext2d, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "CanvasRenderingContext2D" , js_name = shadowColor)] #[doc = "Getter for the `shadowColor` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/shadowColor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn shadow_color(this: &CanvasRenderingContext2d) -> String; # [wasm_bindgen (structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = shadowColor)] #[doc = "Setter for the `shadowColor` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/shadowColor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn set_shadow_color(this: &CanvasRenderingContext2d, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "CanvasRenderingContext2D" , js_name = font)] #[doc = "Getter for the `font` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/font)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn font(this: &CanvasRenderingContext2d) -> String; # [wasm_bindgen (structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = font)] #[doc = "Setter for the `font` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/font)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn set_font(this: &CanvasRenderingContext2d, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "CanvasRenderingContext2D" , js_name = textAlign)] #[doc = "Getter for the `textAlign` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/textAlign)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn text_align(this: &CanvasRenderingContext2d) -> String; # [wasm_bindgen (structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = textAlign)] #[doc = "Setter for the `textAlign` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/textAlign)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn set_text_align(this: &CanvasRenderingContext2d, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "CanvasRenderingContext2D" , js_name = textBaseline)] #[doc = "Getter for the `textBaseline` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/textBaseline)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn text_baseline(this: &CanvasRenderingContext2d) -> String; # [wasm_bindgen (structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = textBaseline)] #[doc = "Setter for the `textBaseline` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/textBaseline)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn set_text_baseline(this: &CanvasRenderingContext2d, value: &str); #[cfg(feature = "Window")] # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawWindow)] #[doc = "The `drawWindow()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawWindow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `Window`*"] pub fn draw_window( this: &CanvasRenderingContext2d, window: &Window, x: f64, y: f64, w: f64, h: f64, bg_color: &str, ) -> Result<(), JsValue>; #[cfg(feature = "Window")] # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawWindow)] #[doc = "The `drawWindow()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawWindow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `Window`*"] pub fn draw_window_with_flags( this: &CanvasRenderingContext2d, window: &Window, x: f64, y: f64, w: f64, h: f64, bg_color: &str, flags: u32, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlImageElement")] # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawImage)] #[doc = "The `drawImage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `HtmlImageElement`*"] pub fn draw_image_with_html_image_element( this: &CanvasRenderingContext2d, image: &HtmlImageElement, dx: f64, dy: f64, ) -> Result<(), JsValue>; #[cfg(feature = "SvgImageElement")] # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawImage)] #[doc = "The `drawImage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `SvgImageElement`*"] pub fn draw_image_with_svg_image_element( this: &CanvasRenderingContext2d, image: &SvgImageElement, dx: f64, dy: f64, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlCanvasElement")] # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawImage)] #[doc = "The `drawImage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `HtmlCanvasElement`*"] pub fn draw_image_with_html_canvas_element( this: &CanvasRenderingContext2d, image: &HtmlCanvasElement, dx: f64, dy: f64, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlVideoElement")] # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawImage)] #[doc = "The `drawImage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `HtmlVideoElement`*"] pub fn draw_image_with_html_video_element( this: &CanvasRenderingContext2d, image: &HtmlVideoElement, dx: f64, dy: f64, ) -> Result<(), JsValue>; #[cfg(feature = "ImageBitmap")] # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawImage)] #[doc = "The `drawImage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `ImageBitmap`*"] pub fn draw_image_with_image_bitmap( this: &CanvasRenderingContext2d, image: &ImageBitmap, dx: f64, dy: f64, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlImageElement")] # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawImage)] #[doc = "The `drawImage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `HtmlImageElement`*"] pub fn draw_image_with_html_image_element_and_dw_and_dh( this: &CanvasRenderingContext2d, image: &HtmlImageElement, dx: f64, dy: f64, dw: f64, dh: f64, ) -> Result<(), JsValue>; #[cfg(feature = "SvgImageElement")] # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawImage)] #[doc = "The `drawImage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `SvgImageElement`*"] pub fn draw_image_with_svg_image_element_and_dw_and_dh( this: &CanvasRenderingContext2d, image: &SvgImageElement, dx: f64, dy: f64, dw: f64, dh: f64, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlCanvasElement")] # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawImage)] #[doc = "The `drawImage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `HtmlCanvasElement`*"] pub fn draw_image_with_html_canvas_element_and_dw_and_dh( this: &CanvasRenderingContext2d, image: &HtmlCanvasElement, dx: f64, dy: f64, dw: f64, dh: f64, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlVideoElement")] # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawImage)] #[doc = "The `drawImage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `HtmlVideoElement`*"] pub fn draw_image_with_html_video_element_and_dw_and_dh( this: &CanvasRenderingContext2d, image: &HtmlVideoElement, dx: f64, dy: f64, dw: f64, dh: f64, ) -> Result<(), JsValue>; #[cfg(feature = "ImageBitmap")] # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawImage)] #[doc = "The `drawImage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `ImageBitmap`*"] pub fn draw_image_with_image_bitmap_and_dw_and_dh( this: &CanvasRenderingContext2d, image: &ImageBitmap, dx: f64, dy: f64, dw: f64, dh: f64, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlImageElement")] # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawImage)] #[doc = "The `drawImage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `HtmlImageElement`*"] pub fn draw_image_with_html_image_element_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh( this: &CanvasRenderingContext2d, image: &HtmlImageElement, sx: f64, sy: f64, sw: f64, sh: f64, dx: f64, dy: f64, dw: f64, dh: f64, ) -> Result<(), JsValue>; #[cfg(feature = "SvgImageElement")] # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawImage)] #[doc = "The `drawImage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `SvgImageElement`*"] pub fn draw_image_with_svg_image_element_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh( this: &CanvasRenderingContext2d, image: &SvgImageElement, sx: f64, sy: f64, sw: f64, sh: f64, dx: f64, dy: f64, dw: f64, dh: f64, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlCanvasElement")] # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawImage)] #[doc = "The `drawImage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `HtmlCanvasElement`*"] pub fn draw_image_with_html_canvas_element_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh( this: &CanvasRenderingContext2d, image: &HtmlCanvasElement, sx: f64, sy: f64, sw: f64, sh: f64, dx: f64, dy: f64, dw: f64, dh: f64, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlVideoElement")] # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawImage)] #[doc = "The `drawImage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `HtmlVideoElement`*"] pub fn draw_image_with_html_video_element_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh( this: &CanvasRenderingContext2d, image: &HtmlVideoElement, sx: f64, sy: f64, sw: f64, sh: f64, dx: f64, dy: f64, dw: f64, dh: f64, ) -> Result<(), JsValue>; #[cfg(feature = "ImageBitmap")] # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawImage)] #[doc = "The `drawImage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `ImageBitmap`*"] pub fn draw_image_with_image_bitmap_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh( this: &CanvasRenderingContext2d, image: &ImageBitmap, sx: f64, sy: f64, sw: f64, sh: f64, dx: f64, dy: f64, dw: f64, dh: f64, ) -> Result<(), JsValue>; # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = beginPath)] #[doc = "The `beginPath()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/beginPath)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn begin_path(this: &CanvasRenderingContext2d); # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = clip)] #[doc = "The `clip()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/clip)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn clip(this: &CanvasRenderingContext2d); #[cfg(feature = "CanvasWindingRule")] # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = clip)] #[doc = "The `clip()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/clip)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `CanvasWindingRule`*"] pub fn clip_with_canvas_winding_rule( this: &CanvasRenderingContext2d, winding: CanvasWindingRule, ); #[cfg(feature = "Path2d")] # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = clip)] #[doc = "The `clip()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/clip)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `Path2d`*"] pub fn clip_with_path_2d(this: &CanvasRenderingContext2d, path: &Path2d); #[cfg(all(feature = "CanvasWindingRule", feature = "Path2d",))] # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = clip)] #[doc = "The `clip()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/clip)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `CanvasWindingRule`, `Path2d`*"] pub fn clip_with_path_2d_and_winding( this: &CanvasRenderingContext2d, path: &Path2d, winding: CanvasWindingRule, ); # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = fill)] #[doc = "The `fill()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/fill)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn fill(this: &CanvasRenderingContext2d); #[cfg(feature = "CanvasWindingRule")] # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = fill)] #[doc = "The `fill()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/fill)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `CanvasWindingRule`*"] pub fn fill_with_canvas_winding_rule( this: &CanvasRenderingContext2d, winding: CanvasWindingRule, ); #[cfg(feature = "Path2d")] # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = fill)] #[doc = "The `fill()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/fill)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `Path2d`*"] pub fn fill_with_path_2d(this: &CanvasRenderingContext2d, path: &Path2d); #[cfg(all(feature = "CanvasWindingRule", feature = "Path2d",))] # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = fill)] #[doc = "The `fill()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/fill)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `CanvasWindingRule`, `Path2d`*"] pub fn fill_with_path_2d_and_winding( this: &CanvasRenderingContext2d, path: &Path2d, winding: CanvasWindingRule, ); # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = isPointInPath)] #[doc = "The `isPointInPath()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/isPointInPath)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn is_point_in_path_with_f64(this: &CanvasRenderingContext2d, x: f64, y: f64) -> bool; #[cfg(feature = "CanvasWindingRule")] # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = isPointInPath)] #[doc = "The `isPointInPath()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/isPointInPath)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `CanvasWindingRule`*"] pub fn is_point_in_path_with_f64_and_canvas_winding_rule( this: &CanvasRenderingContext2d, x: f64, y: f64, winding: CanvasWindingRule, ) -> bool; #[cfg(feature = "Path2d")] # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = isPointInPath)] #[doc = "The `isPointInPath()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/isPointInPath)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `Path2d`*"] pub fn is_point_in_path_with_path_2d_and_f64( this: &CanvasRenderingContext2d, path: &Path2d, x: f64, y: f64, ) -> bool; #[cfg(all(feature = "CanvasWindingRule", feature = "Path2d",))] # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = isPointInPath)] #[doc = "The `isPointInPath()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/isPointInPath)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `CanvasWindingRule`, `Path2d`*"] pub fn is_point_in_path_with_path_2d_and_f64_and_winding( this: &CanvasRenderingContext2d, path: &Path2d, x: f64, y: f64, winding: CanvasWindingRule, ) -> bool; # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = isPointInStroke)] #[doc = "The `isPointInStroke()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/isPointInStroke)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn is_point_in_stroke_with_x_and_y(this: &CanvasRenderingContext2d, x: f64, y: f64) -> bool; #[cfg(feature = "Path2d")] # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = isPointInStroke)] #[doc = "The `isPointInStroke()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/isPointInStroke)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `Path2d`*"] pub fn is_point_in_stroke_with_path_and_x_and_y( this: &CanvasRenderingContext2d, path: &Path2d, x: f64, y: f64, ) -> bool; # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = stroke)] #[doc = "The `stroke()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/stroke)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn stroke(this: &CanvasRenderingContext2d); #[cfg(feature = "Path2d")] # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = stroke)] #[doc = "The `stroke()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/stroke)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `Path2d`*"] pub fn stroke_with_path(this: &CanvasRenderingContext2d, path: &Path2d); #[cfg(feature = "CanvasGradient")] # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = createLinearGradient)] #[doc = "The `createLinearGradient()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/createLinearGradient)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasGradient`, `CanvasRenderingContext2d`*"] pub fn create_linear_gradient( this: &CanvasRenderingContext2d, x0: f64, y0: f64, x1: f64, y1: f64, ) -> CanvasGradient; #[cfg(all(feature = "CanvasPattern", feature = "HtmlImageElement",))] # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = createPattern)] #[doc = "The `createPattern()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/createPattern)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasPattern`, `CanvasRenderingContext2d`, `HtmlImageElement`*"] pub fn create_pattern_with_html_image_element( this: &CanvasRenderingContext2d, image: &HtmlImageElement, repetition: &str, ) -> Result, JsValue>; #[cfg(all(feature = "CanvasPattern", feature = "SvgImageElement",))] # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = createPattern)] #[doc = "The `createPattern()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/createPattern)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasPattern`, `CanvasRenderingContext2d`, `SvgImageElement`*"] pub fn create_pattern_with_svg_image_element( this: &CanvasRenderingContext2d, image: &SvgImageElement, repetition: &str, ) -> Result, JsValue>; #[cfg(all(feature = "CanvasPattern", feature = "HtmlCanvasElement",))] # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = createPattern)] #[doc = "The `createPattern()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/createPattern)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasPattern`, `CanvasRenderingContext2d`, `HtmlCanvasElement`*"] pub fn create_pattern_with_html_canvas_element( this: &CanvasRenderingContext2d, image: &HtmlCanvasElement, repetition: &str, ) -> Result, JsValue>; #[cfg(all(feature = "CanvasPattern", feature = "HtmlVideoElement",))] # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = createPattern)] #[doc = "The `createPattern()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/createPattern)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasPattern`, `CanvasRenderingContext2d`, `HtmlVideoElement`*"] pub fn create_pattern_with_html_video_element( this: &CanvasRenderingContext2d, image: &HtmlVideoElement, repetition: &str, ) -> Result, JsValue>; #[cfg(all(feature = "CanvasPattern", feature = "ImageBitmap",))] # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = createPattern)] #[doc = "The `createPattern()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/createPattern)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasPattern`, `CanvasRenderingContext2d`, `ImageBitmap`*"] pub fn create_pattern_with_image_bitmap( this: &CanvasRenderingContext2d, image: &ImageBitmap, repetition: &str, ) -> Result, JsValue>; #[cfg(feature = "CanvasGradient")] # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = createRadialGradient)] #[doc = "The `createRadialGradient()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/createRadialGradient)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasGradient`, `CanvasRenderingContext2d`*"] pub fn create_radial_gradient( this: &CanvasRenderingContext2d, x0: f64, y0: f64, r0: f64, x1: f64, y1: f64, r1: f64, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = addHitRegion)] #[doc = "The `addHitRegion()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/addHitRegion)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn add_hit_region(this: &CanvasRenderingContext2d) -> Result<(), JsValue>; #[cfg(feature = "HitRegionOptions")] # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = addHitRegion)] #[doc = "The `addHitRegion()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/addHitRegion)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `HitRegionOptions`*"] pub fn add_hit_region_with_options( this: &CanvasRenderingContext2d, options: &HitRegionOptions, ) -> Result<(), JsValue>; # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = clearHitRegions)] #[doc = "The `clearHitRegions()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/clearHitRegions)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn clear_hit_regions(this: &CanvasRenderingContext2d); # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = removeHitRegion)] #[doc = "The `removeHitRegion()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/removeHitRegion)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn remove_hit_region(this: &CanvasRenderingContext2d, id: &str); #[cfg(feature = "ImageData")] # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = createImageData)] #[doc = "The `createImageData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/createImageData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `ImageData`*"] pub fn create_image_data_with_sw_and_sh( this: &CanvasRenderingContext2d, sw: f64, sh: f64, ) -> Result; #[cfg(feature = "ImageData")] # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = createImageData)] #[doc = "The `createImageData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/createImageData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `ImageData`*"] pub fn create_image_data_with_imagedata( this: &CanvasRenderingContext2d, imagedata: &ImageData, ) -> Result; #[cfg(feature = "ImageData")] # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = getImageData)] #[doc = "The `getImageData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/getImageData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `ImageData`*"] pub fn get_image_data( this: &CanvasRenderingContext2d, sx: f64, sy: f64, sw: f64, sh: f64, ) -> Result; #[cfg(feature = "ImageData")] # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = putImageData)] #[doc = "The `putImageData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/putImageData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `ImageData`*"] pub fn put_image_data( this: &CanvasRenderingContext2d, imagedata: &ImageData, dx: f64, dy: f64, ) -> Result<(), JsValue>; #[cfg(feature = "ImageData")] # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = putImageData)] #[doc = "The `putImageData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/putImageData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `ImageData`*"] pub fn put_image_data_with_dirty_x_and_dirty_y_and_dirty_width_and_dirty_height( this: &CanvasRenderingContext2d, imagedata: &ImageData, dx: f64, dy: f64, dirty_x: f64, dirty_y: f64, dirty_width: f64, dirty_height: f64, ) -> Result<(), JsValue>; # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = getLineDash)] #[doc = "The `getLineDash()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/getLineDash)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn get_line_dash(this: &CanvasRenderingContext2d) -> ::js_sys::Array; # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = setLineDash)] #[doc = "The `setLineDash()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn set_line_dash( this: &CanvasRenderingContext2d, segments: &::wasm_bindgen::JsValue, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = arc)] #[doc = "The `arc()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/arc)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn arc( this: &CanvasRenderingContext2d, x: f64, y: f64, radius: f64, start_angle: f64, end_angle: f64, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = arc)] #[doc = "The `arc()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/arc)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn arc_with_anticlockwise( this: &CanvasRenderingContext2d, x: f64, y: f64, radius: f64, start_angle: f64, end_angle: f64, anticlockwise: bool, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = arcTo)] #[doc = "The `arcTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/arcTo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn arc_to( this: &CanvasRenderingContext2d, x1: f64, y1: f64, x2: f64, y2: f64, radius: f64, ) -> Result<(), JsValue>; # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = bezierCurveTo)] #[doc = "The `bezierCurveTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/bezierCurveTo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn bezier_curve_to( this: &CanvasRenderingContext2d, cp1x: f64, cp1y: f64, cp2x: f64, cp2y: f64, x: f64, y: f64, ); # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = closePath)] #[doc = "The `closePath()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/closePath)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn close_path(this: &CanvasRenderingContext2d); # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = ellipse)] #[doc = "The `ellipse()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/ellipse)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn ellipse( this: &CanvasRenderingContext2d, x: f64, y: f64, radius_x: f64, radius_y: f64, rotation: f64, start_angle: f64, end_angle: f64, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = ellipse)] #[doc = "The `ellipse()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/ellipse)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn ellipse_with_anticlockwise( this: &CanvasRenderingContext2d, x: f64, y: f64, radius_x: f64, radius_y: f64, rotation: f64, start_angle: f64, end_angle: f64, anticlockwise: bool, ) -> Result<(), JsValue>; # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = lineTo)] #[doc = "The `lineTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineTo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn line_to(this: &CanvasRenderingContext2d, x: f64, y: f64); # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = moveTo)] #[doc = "The `moveTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/moveTo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn move_to(this: &CanvasRenderingContext2d, x: f64, y: f64); # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = quadraticCurveTo)] #[doc = "The `quadraticCurveTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/quadraticCurveTo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn quadratic_curve_to(this: &CanvasRenderingContext2d, cpx: f64, cpy: f64, x: f64, y: f64); # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = rect)] #[doc = "The `rect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/rect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn rect(this: &CanvasRenderingContext2d, x: f64, y: f64, w: f64, h: f64); # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = clearRect)] #[doc = "The `clearRect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/clearRect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn clear_rect(this: &CanvasRenderingContext2d, x: f64, y: f64, w: f64, h: f64); # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = fillRect)] #[doc = "The `fillRect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/fillRect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn fill_rect(this: &CanvasRenderingContext2d, x: f64, y: f64, w: f64, h: f64); # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = strokeRect)] #[doc = "The `strokeRect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/strokeRect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn stroke_rect(this: &CanvasRenderingContext2d, x: f64, y: f64, w: f64, h: f64); # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = restore)] #[doc = "The `restore()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/restore)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn restore(this: &CanvasRenderingContext2d); # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = save)] #[doc = "The `save()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/save)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn save(this: &CanvasRenderingContext2d); # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = fillText)] #[doc = "The `fillText()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/fillText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn fill_text( this: &CanvasRenderingContext2d, text: &str, x: f64, y: f64, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = fillText)] #[doc = "The `fillText()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/fillText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn fill_text_with_max_width( this: &CanvasRenderingContext2d, text: &str, x: f64, y: f64, max_width: f64, ) -> Result<(), JsValue>; #[cfg(feature = "TextMetrics")] # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = measureText)] #[doc = "The `measureText()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/measureText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `TextMetrics`*"] pub fn measure_text( this: &CanvasRenderingContext2d, text: &str, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = strokeText)] #[doc = "The `strokeText()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/strokeText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn stroke_text( this: &CanvasRenderingContext2d, text: &str, x: f64, y: f64, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = strokeText)] #[doc = "The `strokeText()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/strokeText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn stroke_text_with_max_width( this: &CanvasRenderingContext2d, text: &str, x: f64, y: f64, max_width: f64, ) -> Result<(), JsValue>; #[cfg(feature = "DomMatrix")] # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = getTransform)] #[doc = "The `getTransform()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/getTransform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `DomMatrix`*"] pub fn get_transform(this: &CanvasRenderingContext2d) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = resetTransform)] #[doc = "The `resetTransform()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/resetTransform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn reset_transform(this: &CanvasRenderingContext2d) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = rotate)] #[doc = "The `rotate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/rotate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn rotate(this: &CanvasRenderingContext2d, angle: f64) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = scale)] #[doc = "The `scale()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/scale)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn scale(this: &CanvasRenderingContext2d, x: f64, y: f64) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = setTransform)] #[doc = "The `setTransform()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setTransform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn set_transform( this: &CanvasRenderingContext2d, a: f64, b: f64, c: f64, d: f64, e: f64, f: f64, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = transform)] #[doc = "The `transform()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/transform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn transform( this: &CanvasRenderingContext2d, a: f64, b: f64, c: f64, d: f64, e: f64, f: f64, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = translate)] #[doc = "The `translate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/translate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn translate(this: &CanvasRenderingContext2d, x: f64, y: f64) -> Result<(), JsValue>; #[cfg(feature = "Element")] # [wasm_bindgen (method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawCustomFocusRing)] #[doc = "The `drawCustomFocusRing()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawCustomFocusRing)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `Element`*"] pub fn draw_custom_focus_ring(this: &CanvasRenderingContext2d, element: &Element) -> bool; #[cfg(feature = "Element")] # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawFocusIfNeeded)] #[doc = "The `drawFocusIfNeeded()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawFocusIfNeeded)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `Element`*"] pub fn draw_focus_if_needed( this: &CanvasRenderingContext2d, element: &Element, ) -> Result<(), JsValue>; } impl CanvasRenderingContext2d { #[doc = "The `CanvasRenderingContext2D.DRAWWINDOW_DRAW_CARET` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub const DRAWWINDOW_DRAW_CARET: u32 = 1u64 as u32; #[doc = "The `CanvasRenderingContext2D.DRAWWINDOW_DO_NOT_FLUSH` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub const DRAWWINDOW_DO_NOT_FLUSH: u32 = 2u64 as u32; #[doc = "The `CanvasRenderingContext2D.DRAWWINDOW_DRAW_VIEW` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub const DRAWWINDOW_DRAW_VIEW: u32 = 4u64 as u32; #[doc = "The `CanvasRenderingContext2D.DRAWWINDOW_USE_WIDGET_LAYERS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub const DRAWWINDOW_USE_WIDGET_LAYERS: u32 = 8u64 as u32; #[doc = "The `CanvasRenderingContext2D.DRAWWINDOW_ASYNC_DECODE_IMAGES` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub const DRAWWINDOW_ASYNC_DECODE_IMAGES: u32 = 16u64 as u32; } web-sys-0.3.55/src/features/gen_CanvasWindingRule.rs000064400000000000000000000005340072674642500205300ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `CanvasWindingRule` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasWindingRule`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum CanvasWindingRule { Nonzero = "nonzero", Evenodd = "evenodd", } web-sys-0.3.55/src/features/gen_CaretChangedReason.rs000064400000000000000000000010600072674642500206200ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `CaretChangedReason` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CaretChangedReason`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum CaretChangedReason { Visibilitychange = "visibilitychange", Updateposition = "updateposition", Longpressonemptycontent = "longpressonemptycontent", Taponcaret = "taponcaret", Presscaret = "presscaret", Releasecaret = "releasecaret", Scroll = "scroll", } web-sys-0.3.55/src/features/gen_CaretPosition.rs000064400000000000000000000037250072674642500177350ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CaretPosition , typescript_type = "CaretPosition")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CaretPosition` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CaretPosition)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CaretPosition`*"] pub type CaretPosition; #[cfg(feature = "Node")] # [wasm_bindgen (structural , method , getter , js_class = "CaretPosition" , js_name = offsetNode)] #[doc = "Getter for the `offsetNode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CaretPosition/offsetNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CaretPosition`, `Node`*"] pub fn offset_node(this: &CaretPosition) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "CaretPosition" , js_name = offset)] #[doc = "Getter for the `offset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CaretPosition/offset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CaretPosition`*"] pub fn offset(this: &CaretPosition) -> u32; #[cfg(feature = "DomRect")] # [wasm_bindgen (method , structural , js_class = "CaretPosition" , js_name = getClientRect)] #[doc = "The `getClientRect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CaretPosition/getClientRect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CaretPosition`, `DomRect`*"] pub fn get_client_rect(this: &CaretPosition) -> Option; } web-sys-0.3.55/src/features/gen_CaretStateChangedEventInit.rs000064400000000000000000000172500072674642500223070ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CaretStateChangedEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CaretStateChangedEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CaretStateChangedEventInit`*"] pub type CaretStateChangedEventInit; } impl CaretStateChangedEventInit { #[doc = "Construct a new `CaretStateChangedEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CaretStateChangedEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CaretStateChangedEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CaretStateChangedEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CaretStateChangedEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "DomRectReadOnly")] #[doc = "Change the `boundingClientRect` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CaretStateChangedEventInit`, `DomRectReadOnly`*"] pub fn bounding_client_rect(&mut self, val: Option<&DomRectReadOnly>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("boundingClientRect"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `caretVisible` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CaretStateChangedEventInit`*"] pub fn caret_visible(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("caretVisible"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `caretVisuallyVisible` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CaretStateChangedEventInit`*"] pub fn caret_visually_visible(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("caretVisuallyVisible"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `collapsed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CaretStateChangedEventInit`*"] pub fn collapsed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("collapsed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "CaretChangedReason")] #[doc = "Change the `reason` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CaretChangedReason`, `CaretStateChangedEventInit`*"] pub fn reason(&mut self, val: CaretChangedReason) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("reason"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `selectedTextContent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CaretStateChangedEventInit`*"] pub fn selected_text_content(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("selectedTextContent"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `selectionEditable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CaretStateChangedEventInit`*"] pub fn selection_editable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("selectionEditable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `selectionVisible` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CaretStateChangedEventInit`*"] pub fn selection_visible(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("selectionVisible"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for CaretStateChangedEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_CdataSection.rs000064400000000000000000000011730072674642500175060ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Text , extends = CharacterData , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = CDATASection , typescript_type = "CDATASection")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CdataSection` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CDATASection)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CdataSection`*"] pub type CdataSection; } web-sys-0.3.55/src/features/gen_ChannelCountMode.rs000064400000000000000000000005630072674642500203350ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `ChannelCountMode` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelCountMode`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum ChannelCountMode { Max = "max", ClampedMax = "clamped-max", Explicit = "explicit", } web-sys-0.3.55/src/features/gen_ChannelInterpretation.rs000064400000000000000000000005540072674642500214470ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `ChannelInterpretation` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelInterpretation`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum ChannelInterpretation { Speakers = "speakers", Discrete = "discrete", } web-sys-0.3.55/src/features/gen_ChannelMergerNode.rs000064400000000000000000000035710072674642500204710ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = ChannelMergerNode , typescript_type = "ChannelMergerNode")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ChannelMergerNode` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ChannelMergerNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelMergerNode`*"] pub type ChannelMergerNode; #[cfg(feature = "BaseAudioContext")] #[wasm_bindgen(catch, constructor, js_class = "ChannelMergerNode")] #[doc = "The `new ChannelMergerNode(..)` constructor, creating a new instance of `ChannelMergerNode`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ChannelMergerNode/ChannelMergerNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ChannelMergerNode`*"] pub fn new(context: &BaseAudioContext) -> Result; #[cfg(all(feature = "BaseAudioContext", feature = "ChannelMergerOptions",))] #[wasm_bindgen(catch, constructor, js_class = "ChannelMergerNode")] #[doc = "The `new ChannelMergerNode(..)` constructor, creating a new instance of `ChannelMergerNode`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ChannelMergerNode/ChannelMergerNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ChannelMergerNode`, `ChannelMergerOptions`*"] pub fn new_with_options( context: &BaseAudioContext, options: &ChannelMergerOptions, ) -> Result; } web-sys-0.3.55/src/features/gen_ChannelMergerOptions.rs000064400000000000000000000067240072674642500212420ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ChannelMergerOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ChannelMergerOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelMergerOptions`*"] pub type ChannelMergerOptions; } impl ChannelMergerOptions { #[doc = "Construct a new `ChannelMergerOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelMergerOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelMergerOptions`*"] pub fn channel_count(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("channelCount"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "ChannelCountMode")] #[doc = "Change the `channelCountMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelCountMode`, `ChannelMergerOptions`*"] pub fn channel_count_mode(&mut self, val: ChannelCountMode) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("channelCountMode"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "ChannelInterpretation")] #[doc = "Change the `channelInterpretation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelInterpretation`, `ChannelMergerOptions`*"] pub fn channel_interpretation(&mut self, val: ChannelInterpretation) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("channelInterpretation"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `numberOfInputs` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelMergerOptions`*"] pub fn number_of_inputs(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("numberOfInputs"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for ChannelMergerOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_ChannelPixelLayout.rs000064400000000000000000000110050072674642500207100ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ChannelPixelLayout)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ChannelPixelLayout` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelPixelLayout`*"] pub type ChannelPixelLayout; } impl ChannelPixelLayout { #[cfg(feature = "ChannelPixelLayoutDataType")] #[doc = "Construct a new `ChannelPixelLayout`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelPixelLayout`, `ChannelPixelLayoutDataType`*"] pub fn new( data_type: ChannelPixelLayoutDataType, height: u32, offset: u32, skip: u32, stride: u32, width: u32, ) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.data_type(data_type); ret.height(height); ret.offset(offset); ret.skip(skip); ret.stride(stride); ret.width(width); ret } #[cfg(feature = "ChannelPixelLayoutDataType")] #[doc = "Change the `dataType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelPixelLayout`, `ChannelPixelLayoutDataType`*"] pub fn data_type(&mut self, val: ChannelPixelLayoutDataType) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("dataType"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `height` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelPixelLayout`*"] pub fn height(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("height"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `offset` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelPixelLayout`*"] pub fn offset(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("offset"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `skip` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelPixelLayout`*"] pub fn skip(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("skip"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `stride` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelPixelLayout`*"] pub fn stride(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("stride"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `width` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelPixelLayout`*"] pub fn width(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("width"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_ChannelPixelLayoutDataType.rs000064400000000000000000000007670072674642500223610ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `ChannelPixelLayoutDataType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelPixelLayoutDataType`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum ChannelPixelLayoutDataType { Uint8 = "uint8", Int8 = "int8", Uint16 = "uint16", Int16 = "int16", Uint32 = "uint32", Int32 = "int32", Float32 = "float32", Float64 = "float64", } web-sys-0.3.55/src/features/gen_ChannelSplitterNode.rs000064400000000000000000000036470072674642500210620ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = ChannelSplitterNode , typescript_type = "ChannelSplitterNode")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ChannelSplitterNode` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ChannelSplitterNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelSplitterNode`*"] pub type ChannelSplitterNode; #[cfg(feature = "BaseAudioContext")] #[wasm_bindgen(catch, constructor, js_class = "ChannelSplitterNode")] #[doc = "The `new ChannelSplitterNode(..)` constructor, creating a new instance of `ChannelSplitterNode`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ChannelSplitterNode/ChannelSplitterNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ChannelSplitterNode`*"] pub fn new(context: &BaseAudioContext) -> Result; #[cfg(all(feature = "BaseAudioContext", feature = "ChannelSplitterOptions",))] #[wasm_bindgen(catch, constructor, js_class = "ChannelSplitterNode")] #[doc = "The `new ChannelSplitterNode(..)` constructor, creating a new instance of `ChannelSplitterNode`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ChannelSplitterNode/ChannelSplitterNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ChannelSplitterNode`, `ChannelSplitterOptions`*"] pub fn new_with_options( context: &BaseAudioContext, options: &ChannelSplitterOptions, ) -> Result; } web-sys-0.3.55/src/features/gen_ChannelSplitterOptions.rs000064400000000000000000000067570072674642500216350ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ChannelSplitterOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ChannelSplitterOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelSplitterOptions`*"] pub type ChannelSplitterOptions; } impl ChannelSplitterOptions { #[doc = "Construct a new `ChannelSplitterOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelSplitterOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelSplitterOptions`*"] pub fn channel_count(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("channelCount"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "ChannelCountMode")] #[doc = "Change the `channelCountMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelCountMode`, `ChannelSplitterOptions`*"] pub fn channel_count_mode(&mut self, val: ChannelCountMode) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("channelCountMode"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "ChannelInterpretation")] #[doc = "Change the `channelInterpretation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelInterpretation`, `ChannelSplitterOptions`*"] pub fn channel_interpretation(&mut self, val: ChannelInterpretation) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("channelInterpretation"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `numberOfOutputs` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelSplitterOptions`*"] pub fn number_of_outputs(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("numberOfOutputs"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for ChannelSplitterOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_CharacterData.rs000064400000000000000000001043670072674642500176440ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = CharacterData , typescript_type = "CharacterData")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CharacterData` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub type CharacterData; # [wasm_bindgen (structural , method , getter , js_class = "CharacterData" , js_name = data)] #[doc = "Getter for the `data` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/data)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn data(this: &CharacterData) -> String; # [wasm_bindgen (structural , method , setter , js_class = "CharacterData" , js_name = data)] #[doc = "Setter for the `data` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/data)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn set_data(this: &CharacterData, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "CharacterData" , js_name = length)] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn length(this: &CharacterData) -> u32; #[cfg(feature = "Element")] # [wasm_bindgen (structural , method , getter , js_class = "CharacterData" , js_name = previousElementSibling)] #[doc = "Getter for the `previousElementSibling` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/previousElementSibling)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`, `Element`*"] pub fn previous_element_sibling(this: &CharacterData) -> Option; #[cfg(feature = "Element")] # [wasm_bindgen (structural , method , getter , js_class = "CharacterData" , js_name = nextElementSibling)] #[doc = "Getter for the `nextElementSibling` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/nextElementSibling)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`, `Element`*"] pub fn next_element_sibling(this: &CharacterData) -> Option; # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = appendData)] #[doc = "The `appendData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/appendData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn append_data(this: &CharacterData, data: &str) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = deleteData)] #[doc = "The `deleteData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/deleteData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn delete_data(this: &CharacterData, offset: u32, count: u32) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = insertData)] #[doc = "The `insertData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/insertData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn insert_data(this: &CharacterData, offset: u32, data: &str) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = replaceData)] #[doc = "The `replaceData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn replace_data( this: &CharacterData, offset: u32, count: u32, data: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = substringData)] #[doc = "The `substringData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/substringData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn substring_data(this: &CharacterData, offset: u32, count: u32) -> Result; # [wasm_bindgen (catch , method , structural , variadic , js_class = "CharacterData" , js_name = after)] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn after_with_node(this: &CharacterData, nodes: &::js_sys::Array) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = after)] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn after_with_node_0(this: &CharacterData) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = after)] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn after_with_node_1(this: &CharacterData, nodes_1: &Node) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = after)] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn after_with_node_2( this: &CharacterData, nodes_1: &Node, nodes_2: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = after)] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn after_with_node_3( this: &CharacterData, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = after)] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn after_with_node_4( this: &CharacterData, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = after)] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn after_with_node_5( this: &CharacterData, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, nodes_5: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = after)] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn after_with_node_6( this: &CharacterData, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, nodes_5: &Node, nodes_6: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = after)] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn after_with_node_7( this: &CharacterData, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, nodes_5: &Node, nodes_6: &Node, nodes_7: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , variadic , js_class = "CharacterData" , js_name = after)] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn after_with_str(this: &CharacterData, nodes: &::js_sys::Array) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = after)] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn after_with_str_0(this: &CharacterData) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = after)] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn after_with_str_1(this: &CharacterData, nodes_1: &str) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = after)] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn after_with_str_2( this: &CharacterData, nodes_1: &str, nodes_2: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = after)] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn after_with_str_3( this: &CharacterData, nodes_1: &str, nodes_2: &str, nodes_3: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = after)] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn after_with_str_4( this: &CharacterData, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = after)] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn after_with_str_5( this: &CharacterData, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, nodes_5: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = after)] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn after_with_str_6( this: &CharacterData, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, nodes_5: &str, nodes_6: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = after)] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn after_with_str_7( this: &CharacterData, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, nodes_5: &str, nodes_6: &str, nodes_7: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , variadic , js_class = "CharacterData" , js_name = before)] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn before_with_node(this: &CharacterData, nodes: &::js_sys::Array) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = before)] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn before_with_node_0(this: &CharacterData) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = before)] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn before_with_node_1(this: &CharacterData, nodes_1: &Node) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = before)] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn before_with_node_2( this: &CharacterData, nodes_1: &Node, nodes_2: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = before)] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn before_with_node_3( this: &CharacterData, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = before)] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn before_with_node_4( this: &CharacterData, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = before)] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn before_with_node_5( this: &CharacterData, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, nodes_5: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = before)] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn before_with_node_6( this: &CharacterData, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, nodes_5: &Node, nodes_6: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = before)] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn before_with_node_7( this: &CharacterData, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, nodes_5: &Node, nodes_6: &Node, nodes_7: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , variadic , js_class = "CharacterData" , js_name = before)] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn before_with_str(this: &CharacterData, nodes: &::js_sys::Array) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = before)] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn before_with_str_0(this: &CharacterData) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = before)] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn before_with_str_1(this: &CharacterData, nodes_1: &str) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = before)] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn before_with_str_2( this: &CharacterData, nodes_1: &str, nodes_2: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = before)] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn before_with_str_3( this: &CharacterData, nodes_1: &str, nodes_2: &str, nodes_3: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = before)] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn before_with_str_4( this: &CharacterData, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = before)] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn before_with_str_5( this: &CharacterData, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, nodes_5: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = before)] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn before_with_str_6( this: &CharacterData, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, nodes_5: &str, nodes_6: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = before)] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn before_with_str_7( this: &CharacterData, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, nodes_5: &str, nodes_6: &str, nodes_7: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (method , structural , js_class = "CharacterData" , js_name = remove)] #[doc = "The `remove()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/remove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn remove(this: &CharacterData); # [wasm_bindgen (catch , method , structural , variadic , js_class = "CharacterData" , js_name = replaceWith)] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn replace_with_with_node( this: &CharacterData, nodes: &::js_sys::Array, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = replaceWith)] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn replace_with_with_node_0(this: &CharacterData) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = replaceWith)] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn replace_with_with_node_1(this: &CharacterData, nodes_1: &Node) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = replaceWith)] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn replace_with_with_node_2( this: &CharacterData, nodes_1: &Node, nodes_2: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = replaceWith)] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn replace_with_with_node_3( this: &CharacterData, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = replaceWith)] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn replace_with_with_node_4( this: &CharacterData, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = replaceWith)] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn replace_with_with_node_5( this: &CharacterData, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, nodes_5: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = replaceWith)] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn replace_with_with_node_6( this: &CharacterData, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, nodes_5: &Node, nodes_6: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = replaceWith)] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn replace_with_with_node_7( this: &CharacterData, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, nodes_5: &Node, nodes_6: &Node, nodes_7: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , variadic , js_class = "CharacterData" , js_name = replaceWith)] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn replace_with_with_str( this: &CharacterData, nodes: &::js_sys::Array, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = replaceWith)] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn replace_with_with_str_0(this: &CharacterData) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = replaceWith)] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn replace_with_with_str_1(this: &CharacterData, nodes_1: &str) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = replaceWith)] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn replace_with_with_str_2( this: &CharacterData, nodes_1: &str, nodes_2: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = replaceWith)] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn replace_with_with_str_3( this: &CharacterData, nodes_1: &str, nodes_2: &str, nodes_3: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = replaceWith)] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn replace_with_with_str_4( this: &CharacterData, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = replaceWith)] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn replace_with_with_str_5( this: &CharacterData, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, nodes_5: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = replaceWith)] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn replace_with_with_str_6( this: &CharacterData, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, nodes_5: &str, nodes_6: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CharacterData" , js_name = replaceWith)] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] pub fn replace_with_with_str_7( this: &CharacterData, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, nodes_5: &str, nodes_6: &str, nodes_7: &str, ) -> Result<(), JsValue>; } web-sys-0.3.55/src/features/gen_CheckerboardReason.rs000064400000000000000000000005330072674642500206700ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `CheckerboardReason` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CheckerboardReason`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum CheckerboardReason { Severe = "severe", Recent = "recent", } web-sys-0.3.55/src/features/gen_CheckerboardReport.rs000064400000000000000000000062430072674642500207200ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CheckerboardReport)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CheckerboardReport` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CheckerboardReport`*"] pub type CheckerboardReport; } impl CheckerboardReport { #[doc = "Construct a new `CheckerboardReport`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CheckerboardReport`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `log` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CheckerboardReport`*"] pub fn log(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("log"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "CheckerboardReason")] #[doc = "Change the `reason` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CheckerboardReason`, `CheckerboardReport`*"] pub fn reason(&mut self, val: CheckerboardReason) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("reason"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `severity` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CheckerboardReport`*"] pub fn severity(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("severity"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CheckerboardReport`*"] pub fn timestamp(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("timestamp"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for CheckerboardReport { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_CheckerboardReportService.rs000064400000000000000000000062020072674642500222340ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CheckerboardReportService , typescript_type = "CheckerboardReportService")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CheckerboardReportService` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CheckerboardReportService)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CheckerboardReportService`*"] pub type CheckerboardReportService; #[wasm_bindgen(catch, constructor, js_class = "CheckerboardReportService")] #[doc = "The `new CheckerboardReportService(..)` constructor, creating a new instance of `CheckerboardReportService`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CheckerboardReportService/CheckerboardReportService)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CheckerboardReportService`*"] pub fn new() -> Result; # [wasm_bindgen (method , structural , js_class = "CheckerboardReportService" , js_name = flushActiveReports)] #[doc = "The `flushActiveReports()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CheckerboardReportService/flushActiveReports)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CheckerboardReportService`*"] pub fn flush_active_reports(this: &CheckerboardReportService); # [wasm_bindgen (method , structural , js_class = "CheckerboardReportService" , js_name = getReports)] #[doc = "The `getReports()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CheckerboardReportService/getReports)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CheckerboardReportService`*"] pub fn get_reports(this: &CheckerboardReportService) -> ::js_sys::Array; # [wasm_bindgen (method , structural , js_class = "CheckerboardReportService" , js_name = isRecordingEnabled)] #[doc = "The `isRecordingEnabled()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CheckerboardReportService/isRecordingEnabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CheckerboardReportService`*"] pub fn is_recording_enabled(this: &CheckerboardReportService) -> bool; # [wasm_bindgen (method , structural , js_class = "CheckerboardReportService" , js_name = setRecordingEnabled)] #[doc = "The `setRecordingEnabled()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CheckerboardReportService/setRecordingEnabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CheckerboardReportService`*"] pub fn set_recording_enabled(this: &CheckerboardReportService, a_enabled: bool); } web-sys-0.3.55/src/features/gen_ChromeFilePropertyBag.rs000064400000000000000000000062100072674642500213360ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ChromeFilePropertyBag)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ChromeFilePropertyBag` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChromeFilePropertyBag`*"] pub type ChromeFilePropertyBag; } impl ChromeFilePropertyBag { #[doc = "Construct a new `ChromeFilePropertyBag`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChromeFilePropertyBag`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `lastModified` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChromeFilePropertyBag`*"] pub fn last_modified(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("lastModified"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChromeFilePropertyBag`*"] pub fn type_(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `existenceCheck` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChromeFilePropertyBag`*"] pub fn existence_check(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("existenceCheck"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChromeFilePropertyBag`*"] pub fn name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for ChromeFilePropertyBag { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_ChromeWorker.rs000064400000000000000000000020510072674642500175500ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Worker , extends = EventTarget , extends = :: js_sys :: Object , js_name = ChromeWorker , typescript_type = "ChromeWorker")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ChromeWorker` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ChromeWorker)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChromeWorker`*"] pub type ChromeWorker; #[wasm_bindgen(catch, constructor, js_class = "ChromeWorker")] #[doc = "The `new ChromeWorker(..)` constructor, creating a new instance of `ChromeWorker`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ChromeWorker/ChromeWorker)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChromeWorker`*"] pub fn new(script_url: &str) -> Result; } web-sys-0.3.55/src/features/gen_Client.rs000064400000000000000000000063210072674642500163630ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Client , typescript_type = "Client")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Client` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Client)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Client`*"] pub type Client; # [wasm_bindgen (structural , method , getter , js_class = "Client" , js_name = url)] #[doc = "Getter for the `url` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Client/url)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Client`*"] pub fn url(this: &Client) -> String; #[cfg(feature = "FrameType")] # [wasm_bindgen (structural , method , getter , js_class = "Client" , js_name = frameType)] #[doc = "Getter for the `frameType` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Client/frameType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Client`, `FrameType`*"] pub fn frame_type(this: &Client) -> FrameType; #[cfg(feature = "ClientType")] # [wasm_bindgen (structural , method , getter , js_class = "Client" , js_name = type)] #[doc = "Getter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Client/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Client`, `ClientType`*"] pub fn type_(this: &Client) -> ClientType; # [wasm_bindgen (structural , method , getter , js_class = "Client" , js_name = id)] #[doc = "Getter for the `id` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Client/id)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Client`*"] pub fn id(this: &Client) -> String; # [wasm_bindgen (catch , method , structural , js_class = "Client" , js_name = postMessage)] #[doc = "The `postMessage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Client/postMessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Client`*"] pub fn post_message(this: &Client, message: &::wasm_bindgen::JsValue) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Client" , js_name = postMessage)] #[doc = "The `postMessage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Client/postMessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Client`*"] pub fn post_message_with_transfer( this: &Client, message: &::wasm_bindgen::JsValue, transfer: &::wasm_bindgen::JsValue, ) -> Result<(), JsValue>; } web-sys-0.3.55/src/features/gen_ClientQueryOptions.rs000064400000000000000000000040710072674642500207650ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ClientQueryOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ClientQueryOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClientQueryOptions`*"] pub type ClientQueryOptions; } impl ClientQueryOptions { #[doc = "Construct a new `ClientQueryOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClientQueryOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `includeUncontrolled` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClientQueryOptions`*"] pub fn include_uncontrolled(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("includeUncontrolled"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "ClientType")] #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClientQueryOptions`, `ClientType`*"] pub fn type_(&mut self, val: ClientType) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for ClientQueryOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_ClientRectsAndTexts.rs000064400000000000000000000043120072674642500210350ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ClientRectsAndTexts)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ClientRectsAndTexts` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClientRectsAndTexts`*"] pub type ClientRectsAndTexts; } impl ClientRectsAndTexts { #[cfg(feature = "DomRectList")] #[doc = "Construct a new `ClientRectsAndTexts`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClientRectsAndTexts`, `DomRectList`*"] pub fn new(rect_list: &DomRectList, text_list: &::wasm_bindgen::JsValue) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.rect_list(rect_list); ret.text_list(text_list); ret } #[cfg(feature = "DomRectList")] #[doc = "Change the `rectList` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClientRectsAndTexts`, `DomRectList`*"] pub fn rect_list(&mut self, val: &DomRectList) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("rectList"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `textList` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClientRectsAndTexts`*"] pub fn text_list(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("textList"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_ClientType.rs000064400000000000000000000006340072674642500172260ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `ClientType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClientType`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum ClientType { Window = "window", Worker = "worker", Sharedworker = "sharedworker", Serviceworker = "serviceworker", All = "all", } web-sys-0.3.55/src/features/gen_Clients.rs000064400000000000000000000052160072674642500165500ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Clients , typescript_type = "Clients")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Clients` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Clients)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Clients`*"] pub type Clients; # [wasm_bindgen (method , structural , js_class = "Clients" , js_name = claim)] #[doc = "The `claim()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Clients/claim)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Clients`*"] pub fn claim(this: &Clients) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "Clients" , js_name = get)] #[doc = "The `get()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Clients/get)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Clients`*"] pub fn get(this: &Clients, id: &str) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "Clients" , js_name = matchAll)] #[doc = "The `matchAll()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Clients/matchAll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Clients`*"] pub fn match_all(this: &Clients) -> ::js_sys::Promise; #[cfg(feature = "ClientQueryOptions")] # [wasm_bindgen (method , structural , js_class = "Clients" , js_name = matchAll)] #[doc = "The `matchAll()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Clients/matchAll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClientQueryOptions`, `Clients`*"] pub fn match_all_with_options( this: &Clients, options: &ClientQueryOptions, ) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "Clients" , js_name = openWindow)] #[doc = "The `openWindow()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Clients/openWindow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Clients`*"] pub fn open_window(this: &Clients, url: &str) -> ::js_sys::Promise; } web-sys-0.3.55/src/features/gen_Clipboard.rs000064400000000000000000000070720072674642500170500ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = 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`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type Clipboard; #[cfg(web_sys_unstable_apis)] # [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`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn read(this: &Clipboard) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [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`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn read_text(this: &Clipboard) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [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`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write(this: &Clipboard, data: &::wasm_bindgen::JsValue) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [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`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_text(this: &Clipboard, data: &str) -> ::js_sys::Promise; } web-sys-0.3.55/src/features/gen_ClipboardEvent.rs000064400000000000000000000032220072674642500200430ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = 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`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type ClipboardEvent; #[cfg(web_sys_unstable_apis)] #[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`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn clipboard_data(this: &ClipboardEvent) -> Option; } web-sys-0.3.55/src/features/gen_ClipboardEventInit.rs000064400000000000000000000116630072674642500206770ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ClipboardEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ClipboardEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClipboardEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type ClipboardEventInit; } #[cfg(web_sys_unstable_apis)] impl ClipboardEventInit { #[doc = "Construct a new `ClipboardEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClipboardEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClipboardEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClipboardEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClipboardEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[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`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn clipboard_data(&mut self, val: Option<&DataTransfer>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("clipboardData"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } #[cfg(web_sys_unstable_apis)] impl Default for ClipboardEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_ClipboardItem.rs000064400000000000000000000107770072674642500176750ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type ClipboardItem; #[cfg(web_sys_unstable_apis)] #[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`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn presentation_style(this: &ClipboardItem) -> PresentationStyle; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "ClipboardItem" , 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/ClipboardItem/lastModified)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClipboardItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn last_modified(this: &ClipboardItem) -> f64; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "ClipboardItem" , js_name = delayed)] #[doc = "Getter for the `delayed` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ClipboardItem/delayed)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClipboardItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn delayed(this: &ClipboardItem) -> bool; #[cfg(web_sys_unstable_apis)] # [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`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn types(this: &ClipboardItem) -> ::js_sys::Array; #[cfg(web_sys_unstable_apis)] # [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`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_type(this: &ClipboardItem, type_: &str) -> ::js_sys::Promise; } web-sys-0.3.55/src/features/gen_ClipboardItemOptions.rs000064400000000000000000000046370072674642500212470ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ClipboardItemOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ClipboardItemOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClipboardItemOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type ClipboardItemOptions; } #[cfg(web_sys_unstable_apis)] impl ClipboardItemOptions { #[doc = "Construct a new `ClipboardItemOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClipboardItemOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "PresentationStyle")] #[doc = "Change the `presentationStyle` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClipboardItemOptions`, `PresentationStyle`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn presentation_style(&mut self, val: PresentationStyle) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("presentationStyle"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } #[cfg(web_sys_unstable_apis)] impl Default for ClipboardItemOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_ClipboardPermissionDescriptor.rs000064400000000000000000000064040072674642500231560ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type ClipboardPermissionDescriptor; } #[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://rustwasm.github.io/docs/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.name(name); ret } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn name(&mut self, val: PermissionName) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn allow_without_gesture(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("allowWithoutGesture"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_CloseEvent.rs000064400000000000000000000055210072674642500172150ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = CloseEvent , typescript_type = "CloseEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CloseEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CloseEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CloseEvent`*"] pub type CloseEvent; # [wasm_bindgen (structural , method , getter , js_class = "CloseEvent" , js_name = wasClean)] #[doc = "Getter for the `wasClean` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CloseEvent/wasClean)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CloseEvent`*"] pub fn was_clean(this: &CloseEvent) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "CloseEvent" , js_name = code)] #[doc = "Getter for the `code` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CloseEvent/code)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CloseEvent`*"] pub fn code(this: &CloseEvent) -> u16; # [wasm_bindgen (structural , method , getter , js_class = "CloseEvent" , js_name = reason)] #[doc = "Getter for the `reason` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CloseEvent/reason)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CloseEvent`*"] pub fn reason(this: &CloseEvent) -> String; #[wasm_bindgen(catch, constructor, js_class = "CloseEvent")] #[doc = "The `new CloseEvent(..)` constructor, creating a new instance of `CloseEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CloseEvent/CloseEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CloseEvent`*"] pub fn new(type_: &str) -> Result; #[cfg(feature = "CloseEventInit")] #[wasm_bindgen(catch, constructor, js_class = "CloseEvent")] #[doc = "The `new CloseEvent(..)` constructor, creating a new instance of `CloseEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CloseEvent/CloseEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CloseEvent`, `CloseEventInit`*"] pub fn new_with_event_init_dict( type_: &str, event_init_dict: &CloseEventInit, ) -> Result; } web-sys-0.3.55/src/features/gen_CloseEventInit.rs000064400000000000000000000103010072674642500200310ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CloseEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CloseEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CloseEventInit`*"] pub type CloseEventInit; } impl CloseEventInit { #[doc = "Construct a new `CloseEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CloseEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CloseEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CloseEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CloseEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `code` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CloseEventInit`*"] pub fn code(&mut self, val: u16) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("code"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `reason` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CloseEventInit`*"] pub fn reason(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("reason"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `wasClean` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CloseEventInit`*"] pub fn was_clean(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("wasClean"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for CloseEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_CollectedClientData.rs000064400000000000000000000110610072674642500207710ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CollectedClientData)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CollectedClientData` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CollectedClientData`*"] pub type CollectedClientData; } impl CollectedClientData { #[doc = "Construct a new `CollectedClientData`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CollectedClientData`*"] pub fn new(challenge: &str, hash_algorithm: &str, origin: &str, type_: &str) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.challenge(challenge); ret.hash_algorithm(hash_algorithm); ret.origin(origin); ret.type_(type_); ret } #[doc = "Change the `challenge` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CollectedClientData`*"] pub fn challenge(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("challenge"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "AuthenticationExtensionsClientInputs")] #[doc = "Change the `clientExtensions` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputs`, `CollectedClientData`*"] pub fn client_extensions(&mut self, val: &AuthenticationExtensionsClientInputs) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("clientExtensions"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `hashAlgorithm` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CollectedClientData`*"] pub fn hash_algorithm(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("hashAlgorithm"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `origin` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CollectedClientData`*"] pub fn origin(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("origin"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `tokenBindingId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CollectedClientData`*"] pub fn token_binding_id(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("tokenBindingId"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CollectedClientData`*"] pub fn type_(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_Comment.rs000064400000000000000000000026500072674642500165500ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = CharacterData , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = Comment , typescript_type = "Comment")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Comment` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Comment)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Comment`*"] pub type Comment; #[wasm_bindgen(catch, constructor, js_class = "Comment")] #[doc = "The `new Comment(..)` constructor, creating a new instance of `Comment`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Comment/Comment)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Comment`*"] pub fn new() -> Result; #[wasm_bindgen(catch, constructor, js_class = "Comment")] #[doc = "The `new Comment(..)` constructor, creating a new instance of `Comment`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Comment/Comment)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Comment`*"] pub fn new_with_data(data: &str) -> Result; } web-sys-0.3.55/src/features/gen_CompositeOperation.rs000064400000000000000000000005660072674642500207750ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `CompositeOperation` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CompositeOperation`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum CompositeOperation { Replace = "replace", Add = "add", Accumulate = "accumulate", } web-sys-0.3.55/src/features/gen_CompositionEvent.rs000064400000000000000000000146610072674642500204600ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = UiEvent , extends = Event , extends = :: js_sys :: Object , js_name = CompositionEvent , typescript_type = "CompositionEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CompositionEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CompositionEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CompositionEvent`*"] pub type CompositionEvent; # [wasm_bindgen (structural , method , getter , js_class = "CompositionEvent" , js_name = data)] #[doc = "Getter for the `data` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CompositionEvent/data)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CompositionEvent`*"] pub fn data(this: &CompositionEvent) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "CompositionEvent" , js_name = locale)] #[doc = "Getter for the `locale` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CompositionEvent/locale)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CompositionEvent`*"] pub fn locale(this: &CompositionEvent) -> String; #[wasm_bindgen(catch, constructor, js_class = "CompositionEvent")] #[doc = "The `new CompositionEvent(..)` constructor, creating a new instance of `CompositionEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CompositionEvent/CompositionEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CompositionEvent`*"] pub fn new(type_: &str) -> Result; #[cfg(feature = "CompositionEventInit")] #[wasm_bindgen(catch, constructor, js_class = "CompositionEvent")] #[doc = "The `new CompositionEvent(..)` constructor, creating a new instance of `CompositionEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CompositionEvent/CompositionEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CompositionEvent`, `CompositionEventInit`*"] pub fn new_with_event_init_dict( type_: &str, event_init_dict: &CompositionEventInit, ) -> Result; # [wasm_bindgen (method , structural , js_class = "CompositionEvent" , js_name = initCompositionEvent)] #[doc = "The `initCompositionEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CompositionEvent/initCompositionEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CompositionEvent`*"] pub fn init_composition_event(this: &CompositionEvent, type_arg: &str); # [wasm_bindgen (method , structural , js_class = "CompositionEvent" , js_name = initCompositionEvent)] #[doc = "The `initCompositionEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CompositionEvent/initCompositionEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CompositionEvent`*"] pub fn init_composition_event_with_can_bubble_arg( this: &CompositionEvent, type_arg: &str, can_bubble_arg: bool, ); # [wasm_bindgen (method , structural , js_class = "CompositionEvent" , js_name = initCompositionEvent)] #[doc = "The `initCompositionEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CompositionEvent/initCompositionEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CompositionEvent`*"] pub fn init_composition_event_with_can_bubble_arg_and_cancelable_arg( this: &CompositionEvent, type_arg: &str, can_bubble_arg: bool, cancelable_arg: bool, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "CompositionEvent" , js_name = initCompositionEvent)] #[doc = "The `initCompositionEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CompositionEvent/initCompositionEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CompositionEvent`, `Window`*"] pub fn init_composition_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg( this: &CompositionEvent, type_arg: &str, can_bubble_arg: bool, cancelable_arg: bool, view_arg: Option<&Window>, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "CompositionEvent" , js_name = initCompositionEvent)] #[doc = "The `initCompositionEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CompositionEvent/initCompositionEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CompositionEvent`, `Window`*"] pub fn init_composition_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_data_arg( this: &CompositionEvent, type_arg: &str, can_bubble_arg: bool, cancelable_arg: bool, view_arg: Option<&Window>, data_arg: Option<&str>, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "CompositionEvent" , js_name = initCompositionEvent)] #[doc = "The `initCompositionEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CompositionEvent/initCompositionEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CompositionEvent`, `Window`*"] pub fn init_composition_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_data_arg_and_locale_arg( this: &CompositionEvent, type_arg: &str, can_bubble_arg: bool, cancelable_arg: bool, view_arg: Option<&Window>, data_arg: Option<&str>, locale_arg: &str, ); } web-sys-0.3.55/src/features/gen_CompositionEventInit.rs000064400000000000000000000104150072674642500212750ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CompositionEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CompositionEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CompositionEventInit`*"] pub type CompositionEventInit; } impl CompositionEventInit { #[doc = "Construct a new `CompositionEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CompositionEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CompositionEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CompositionEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CompositionEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `detail` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CompositionEventInit`*"] pub fn detail(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("detail"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "Window")] #[doc = "Change the `view` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CompositionEventInit`, `Window`*"] pub fn view(&mut self, val: Option<&Window>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("view"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `data` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CompositionEventInit`*"] pub fn data(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("data"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for CompositionEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_ComputedEffectTiming.rs000064400000000000000000000210030072674642500212040ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ComputedEffectTiming)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ComputedEffectTiming` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"] pub type ComputedEffectTiming; } impl ComputedEffectTiming { #[doc = "Construct a new `ComputedEffectTiming`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `delay` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"] pub fn delay(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("delay"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "PlaybackDirection")] #[doc = "Change the `direction` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`, `PlaybackDirection`*"] pub fn direction(&mut self, val: PlaybackDirection) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("direction"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `duration` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"] pub fn duration(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("duration"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `easing` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"] pub fn easing(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("easing"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `endDelay` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"] pub fn end_delay(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("endDelay"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "FillMode")] #[doc = "Change the `fill` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`, `FillMode`*"] pub fn fill(&mut self, val: FillMode) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("fill"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `iterationStart` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"] pub fn iteration_start(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("iterationStart"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `iterations` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"] pub fn iterations(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("iterations"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `activeDuration` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"] pub fn active_duration(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("activeDuration"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `currentIteration` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"] pub fn current_iteration(&mut self, val: Option) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("currentIteration"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `endTime` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"] pub fn end_time(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("endTime"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `localTime` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"] pub fn local_time(&mut self, val: Option) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("localTime"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `progress` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"] pub fn progress(&mut self, val: Option) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("progress"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for ComputedEffectTiming { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_ConnStatusDict.rs000064400000000000000000000025750072674642500200610ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ConnStatusDict)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ConnStatusDict` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConnStatusDict`*"] pub type ConnStatusDict; } impl ConnStatusDict { #[doc = "Construct a new `ConnStatusDict`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConnStatusDict`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `status` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConnStatusDict`*"] pub fn status(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("status"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for ConnStatusDict { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_ConnectionType.rs000064400000000000000000000007100072674642500201020ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `ConnectionType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConnectionType`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum ConnectionType { Cellular = "cellular", Bluetooth = "bluetooth", Ethernet = "ethernet", Wifi = "wifi", Other = "other", None = "none", Unknown = "unknown", } web-sys-0.3.55/src/features/gen_ConsoleCounter.rs000064400000000000000000000036010072674642500201050ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ConsoleCounter)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ConsoleCounter` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleCounter`*"] pub type ConsoleCounter; } impl ConsoleCounter { #[doc = "Construct a new `ConsoleCounter`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleCounter`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `count` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleCounter`*"] pub fn count(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("count"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `label` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleCounter`*"] pub fn label(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for ConsoleCounter { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_ConsoleCounterError.rs000064400000000000000000000036640072674642500211300ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ConsoleCounterError)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ConsoleCounterError` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleCounterError`*"] pub type ConsoleCounterError; } impl ConsoleCounterError { #[doc = "Construct a new `ConsoleCounterError`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleCounterError`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `error` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleCounterError`*"] pub fn error(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("error"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `label` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleCounterError`*"] pub fn label(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for ConsoleCounterError { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_ConsoleEvent.rs000064400000000000000000000247140072674642500175570ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ConsoleEvent)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ConsoleEvent` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] pub type ConsoleEvent; } impl ConsoleEvent { #[doc = "Construct a new `ConsoleEvent`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `ID` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] pub fn id(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("ID"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `addonId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] pub fn addon_id(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("addonId"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `arguments` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] pub fn arguments(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("arguments"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `columnNumber` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] pub fn column_number(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("columnNumber"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `consoleID` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] pub fn console_id(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("consoleID"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `counter` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] pub fn counter(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("counter"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `filename` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] pub fn filename(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("filename"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `functionName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] pub fn function_name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("functionName"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `groupName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] pub fn group_name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("groupName"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `innerID` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] pub fn inner_id(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("innerID"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `level` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] pub fn level(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("level"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `lineNumber` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] pub fn line_number(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("lineNumber"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `prefix` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] pub fn prefix(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("prefix"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `private` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] pub fn private(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("private"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `styles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] pub fn styles(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("styles"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `timeStamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] pub fn time_stamp(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("timeStamp"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `timer` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] pub fn timer(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("timer"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for ConsoleEvent { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_ConsoleInstance.rs000064400000000000000000000011240072674642500202300ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = ConsoleInstance , typescript_type = "ConsoleInstance")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ConsoleInstance` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ConsoleInstance)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleInstance`*"] pub type ConsoleInstance; } web-sys-0.3.55/src/features/gen_ConsoleInstanceOptions.rs000064400000000000000000000106500072674642500216100ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ConsoleInstanceOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ConsoleInstanceOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleInstanceOptions`*"] pub type ConsoleInstanceOptions; } impl ConsoleInstanceOptions { #[doc = "Construct a new `ConsoleInstanceOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleInstanceOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `consoleID` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleInstanceOptions`*"] pub fn console_id(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("consoleID"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `dump` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleInstanceOptions`*"] pub fn dump(&mut self, val: &::js_sys::Function) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("dump"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `innerID` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleInstanceOptions`*"] pub fn inner_id(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("innerID"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "ConsoleLogLevel")] #[doc = "Change the `maxLogLevel` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleInstanceOptions`, `ConsoleLogLevel`*"] pub fn max_log_level(&mut self, val: ConsoleLogLevel) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("maxLogLevel"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `maxLogLevelPref` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleInstanceOptions`*"] pub fn max_log_level_pref(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("maxLogLevelPref"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `prefix` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleInstanceOptions`*"] pub fn prefix(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("prefix"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for ConsoleInstanceOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_ConsoleLevel.rs000064400000000000000000000005320072674642500175350ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `ConsoleLevel` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleLevel`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum ConsoleLevel { Log = "log", Warning = "warning", Error = "error", } web-sys-0.3.55/src/features/gen_ConsoleLogLevel.rs000064400000000000000000000012460072674642500202020ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `ConsoleLogLevel` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleLogLevel`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum ConsoleLogLevel { All = "All", Debug = "Debug", Log = "Log", Info = "Info", Clear = "Clear", Trace = "Trace", TimeLog = "TimeLog", TimeEnd = "TimeEnd", Time = "Time", Group = "Group", GroupEnd = "GroupEnd", Profile = "Profile", ProfileEnd = "ProfileEnd", Dir = "Dir", Dirxml = "Dirxml", Warn = "Warn", Error = "Error", Off = "Off", } web-sys-0.3.55/src/features/gen_ConsoleProfileEvent.rs000064400000000000000000000040220072674642500210660ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ConsoleProfileEvent)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ConsoleProfileEvent` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleProfileEvent`*"] pub type ConsoleProfileEvent; } impl ConsoleProfileEvent { #[doc = "Construct a new `ConsoleProfileEvent`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleProfileEvent`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `action` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleProfileEvent`*"] pub fn action(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("action"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `arguments` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleProfileEvent`*"] pub fn arguments(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("arguments"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for ConsoleProfileEvent { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_ConsoleStackEntry.rs000064400000000000000000000074530072674642500205660ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ConsoleStackEntry)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ConsoleStackEntry` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleStackEntry`*"] pub type ConsoleStackEntry; } impl ConsoleStackEntry { #[doc = "Construct a new `ConsoleStackEntry`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleStackEntry`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `asyncCause` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleStackEntry`*"] pub fn async_cause(&mut self, val: Option<&str>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("asyncCause"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `columnNumber` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleStackEntry`*"] pub fn column_number(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("columnNumber"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `filename` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleStackEntry`*"] pub fn filename(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("filename"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `functionName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleStackEntry`*"] pub fn function_name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("functionName"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `lineNumber` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleStackEntry`*"] pub fn line_number(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("lineNumber"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for ConsoleStackEntry { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_ConsoleTimerError.rs000064400000000000000000000036350072674642500205670ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ConsoleTimerError)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ConsoleTimerError` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleTimerError`*"] pub type ConsoleTimerError; } impl ConsoleTimerError { #[doc = "Construct a new `ConsoleTimerError`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleTimerError`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `error` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleTimerError`*"] pub fn error(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("error"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleTimerError`*"] pub fn name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for ConsoleTimerError { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_ConsoleTimerLogOrEnd.rs000064400000000000000000000037620072674642500211500ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ConsoleTimerLogOrEnd)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ConsoleTimerLogOrEnd` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleTimerLogOrEnd`*"] pub type ConsoleTimerLogOrEnd; } impl ConsoleTimerLogOrEnd { #[doc = "Construct a new `ConsoleTimerLogOrEnd`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleTimerLogOrEnd`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `duration` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleTimerLogOrEnd`*"] pub fn duration(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("duration"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleTimerLogOrEnd`*"] pub fn name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for ConsoleTimerLogOrEnd { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_ConsoleTimerStart.rs000064400000000000000000000026060072674642500205700ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ConsoleTimerStart)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ConsoleTimerStart` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleTimerStart`*"] pub type ConsoleTimerStart; } impl ConsoleTimerStart { #[doc = "Construct a new `ConsoleTimerStart`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleTimerStart`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleTimerStart`*"] pub fn name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for ConsoleTimerStart { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_ConstantSourceNode.rs000064400000000000000000000123170072674642500207270ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = AudioScheduledSourceNode , extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = ConstantSourceNode , typescript_type = "ConstantSourceNode")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ConstantSourceNode` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ConstantSourceNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstantSourceNode`*"] pub type ConstantSourceNode; #[cfg(feature = "AudioParam")] # [wasm_bindgen (structural , method , getter , js_class = "ConstantSourceNode" , js_name = offset)] #[doc = "Getter for the `offset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ConstantSourceNode/offset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `ConstantSourceNode`*"] pub fn offset(this: &ConstantSourceNode) -> AudioParam; # [wasm_bindgen (structural , method , getter , js_class = "ConstantSourceNode" , js_name = onended)] #[doc = "Getter for the `onended` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ConstantSourceNode/onended)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstantSourceNode`*"] pub fn onended(this: &ConstantSourceNode) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "ConstantSourceNode" , js_name = onended)] #[doc = "Setter for the `onended` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ConstantSourceNode/onended)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstantSourceNode`*"] pub fn set_onended(this: &ConstantSourceNode, value: Option<&::js_sys::Function>); #[cfg(feature = "BaseAudioContext")] #[wasm_bindgen(catch, constructor, js_class = "ConstantSourceNode")] #[doc = "The `new ConstantSourceNode(..)` constructor, creating a new instance of `ConstantSourceNode`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ConstantSourceNode/ConstantSourceNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ConstantSourceNode`*"] pub fn new(context: &BaseAudioContext) -> Result; #[cfg(all(feature = "BaseAudioContext", feature = "ConstantSourceOptions",))] #[wasm_bindgen(catch, constructor, js_class = "ConstantSourceNode")] #[doc = "The `new ConstantSourceNode(..)` constructor, creating a new instance of `ConstantSourceNode`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ConstantSourceNode/ConstantSourceNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ConstantSourceNode`, `ConstantSourceOptions`*"] pub fn new_with_options( context: &BaseAudioContext, options: &ConstantSourceOptions, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "ConstantSourceNode" , js_name = start)] #[doc = "The `start()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ConstantSourceNode/start)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstantSourceNode`*"] pub fn start(this: &ConstantSourceNode) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "ConstantSourceNode" , js_name = start)] #[doc = "The `start()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ConstantSourceNode/start)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstantSourceNode`*"] pub fn start_with_when(this: &ConstantSourceNode, when: f64) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "ConstantSourceNode" , js_name = stop)] #[doc = "The `stop()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ConstantSourceNode/stop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstantSourceNode`*"] pub fn stop(this: &ConstantSourceNode) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "ConstantSourceNode" , js_name = stop)] #[doc = "The `stop()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ConstantSourceNode/stop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstantSourceNode`*"] pub fn stop_with_when(this: &ConstantSourceNode, when: f64) -> Result<(), JsValue>; } web-sys-0.3.55/src/features/gen_ConstantSourceOptions.rs000064400000000000000000000026730072674642500215010ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ConstantSourceOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ConstantSourceOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstantSourceOptions`*"] pub type ConstantSourceOptions; } impl ConstantSourceOptions { #[doc = "Construct a new `ConstantSourceOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstantSourceOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `offset` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstantSourceOptions`*"] pub fn offset(&mut self, val: f32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("offset"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for ConstantSourceOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_ConstrainBooleanParameters.rs000064400000000000000000000037720072674642500224400ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ConstrainBooleanParameters)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ConstrainBooleanParameters` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstrainBooleanParameters`*"] pub type ConstrainBooleanParameters; } impl ConstrainBooleanParameters { #[doc = "Construct a new `ConstrainBooleanParameters`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstrainBooleanParameters`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `exact` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstrainBooleanParameters`*"] pub fn exact(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("exact"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `ideal` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstrainBooleanParameters`*"] pub fn ideal(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("ideal"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for ConstrainBooleanParameters { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_ConstrainDomStringParameters.rs000064400000000000000000000040660072674642500227640ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ConstrainDOMStringParameters)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ConstrainDomStringParameters` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstrainDomStringParameters`*"] pub type ConstrainDomStringParameters; } impl ConstrainDomStringParameters { #[doc = "Construct a new `ConstrainDomStringParameters`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstrainDomStringParameters`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `exact` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstrainDomStringParameters`*"] pub fn exact(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("exact"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `ideal` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstrainDomStringParameters`*"] pub fn ideal(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("ideal"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for ConstrainDomStringParameters { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_ConstrainDoubleRange.rs000064400000000000000000000057420072674642500212230ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ConstrainDoubleRange)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ConstrainDoubleRange` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstrainDoubleRange`*"] pub type ConstrainDoubleRange; } impl ConstrainDoubleRange { #[doc = "Construct a new `ConstrainDoubleRange`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstrainDoubleRange`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `exact` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstrainDoubleRange`*"] pub fn exact(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("exact"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `ideal` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstrainDoubleRange`*"] pub fn ideal(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("ideal"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `max` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstrainDoubleRange`*"] pub fn max(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("max"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `min` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstrainDoubleRange`*"] pub fn min(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("min"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for ConstrainDoubleRange { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_ConstrainLongRange.rs000064400000000000000000000057120072674642500207050ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ConstrainLongRange)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ConstrainLongRange` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstrainLongRange`*"] pub type ConstrainLongRange; } impl ConstrainLongRange { #[doc = "Construct a new `ConstrainLongRange`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstrainLongRange`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `exact` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstrainLongRange`*"] pub fn exact(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("exact"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `ideal` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstrainLongRange`*"] pub fn ideal(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("ideal"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `max` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstrainLongRange`*"] pub fn max(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("max"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `min` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstrainLongRange`*"] pub fn min(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("min"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for ConstrainLongRange { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_ContextAttributes2d.rs000064400000000000000000000040140072674642500210630ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ContextAttributes2D)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ContextAttributes2d` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ContextAttributes2d`*"] pub type ContextAttributes2d; } impl ContextAttributes2d { #[doc = "Construct a new `ContextAttributes2d`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ContextAttributes2d`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `alpha` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ContextAttributes2d`*"] pub fn alpha(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("alpha"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `willReadFrequently` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ContextAttributes2d`*"] pub fn will_read_frequently(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("willReadFrequently"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for ContextAttributes2d { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_ConvertCoordinateOptions.rs000064400000000000000000000042130072674642500221470ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ConvertCoordinateOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ConvertCoordinateOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`*"] pub type ConvertCoordinateOptions; } impl ConvertCoordinateOptions { #[doc = "Construct a new `ConvertCoordinateOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(feature = "CssBoxType")] #[doc = "Change the `fromBox` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `CssBoxType`*"] pub fn from_box(&mut self, val: CssBoxType) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("fromBox"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "CssBoxType")] #[doc = "Change the `toBox` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `CssBoxType`*"] pub fn to_box(&mut self, val: CssBoxType) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("toBox"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for ConvertCoordinateOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_ConvolverNode.rs000064400000000000000000000073000072674642500177260ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = ConvolverNode , typescript_type = "ConvolverNode")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ConvolverNode` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ConvolverNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConvolverNode`*"] pub type ConvolverNode; #[cfg(feature = "AudioBuffer")] # [wasm_bindgen (structural , method , getter , js_class = "ConvolverNode" , js_name = buffer)] #[doc = "Getter for the `buffer` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ConvolverNode/buffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`, `ConvolverNode`*"] pub fn buffer(this: &ConvolverNode) -> Option; #[cfg(feature = "AudioBuffer")] # [wasm_bindgen (structural , method , setter , js_class = "ConvolverNode" , js_name = buffer)] #[doc = "Setter for the `buffer` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ConvolverNode/buffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`, `ConvolverNode`*"] pub fn set_buffer(this: &ConvolverNode, value: Option<&AudioBuffer>); # [wasm_bindgen (structural , method , getter , js_class = "ConvolverNode" , js_name = normalize)] #[doc = "Getter for the `normalize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ConvolverNode/normalize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConvolverNode`*"] pub fn normalize(this: &ConvolverNode) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "ConvolverNode" , js_name = normalize)] #[doc = "Setter for the `normalize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ConvolverNode/normalize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConvolverNode`*"] pub fn set_normalize(this: &ConvolverNode, value: bool); #[cfg(feature = "BaseAudioContext")] #[wasm_bindgen(catch, constructor, js_class = "ConvolverNode")] #[doc = "The `new ConvolverNode(..)` constructor, creating a new instance of `ConvolverNode`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ConvolverNode/ConvolverNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ConvolverNode`*"] pub fn new(context: &BaseAudioContext) -> Result; #[cfg(all(feature = "BaseAudioContext", feature = "ConvolverOptions",))] #[wasm_bindgen(catch, constructor, js_class = "ConvolverNode")] #[doc = "The `new ConvolverNode(..)` constructor, creating a new instance of `ConvolverNode`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ConvolverNode/ConvolverNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ConvolverNode`, `ConvolverOptions`*"] pub fn new_with_options( context: &BaseAudioContext, options: &ConvolverOptions, ) -> Result; } web-sys-0.3.55/src/features/gen_ConvolverOptions.rs000064400000000000000000000100360072674642500204740ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ConvolverOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ConvolverOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConvolverOptions`*"] pub type ConvolverOptions; } impl ConvolverOptions { #[doc = "Construct a new `ConvolverOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConvolverOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConvolverOptions`*"] pub fn channel_count(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("channelCount"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "ChannelCountMode")] #[doc = "Change the `channelCountMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelCountMode`, `ConvolverOptions`*"] pub fn channel_count_mode(&mut self, val: ChannelCountMode) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("channelCountMode"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "ChannelInterpretation")] #[doc = "Change the `channelInterpretation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelInterpretation`, `ConvolverOptions`*"] pub fn channel_interpretation(&mut self, val: ChannelInterpretation) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("channelInterpretation"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "AudioBuffer")] #[doc = "Change the `buffer` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`, `ConvolverOptions`*"] pub fn buffer(&mut self, val: Option<&AudioBuffer>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("buffer"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `disableNormalization` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConvolverOptions`*"] pub fn disable_normalization(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("disableNormalization"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for ConvolverOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_Coordinates.rs000064400000000000000000000072250072674642500174230ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = Coordinates , typescript_type = "Coordinates")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Coordinates` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Coordinates)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Coordinates`*"] pub type Coordinates; # [wasm_bindgen (structural , method , getter , js_class = "Coordinates" , js_name = latitude)] #[doc = "Getter for the `latitude` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Coordinates/latitude)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Coordinates`*"] pub fn latitude(this: &Coordinates) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "Coordinates" , js_name = longitude)] #[doc = "Getter for the `longitude` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Coordinates/longitude)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Coordinates`*"] pub fn longitude(this: &Coordinates) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "Coordinates" , js_name = altitude)] #[doc = "Getter for the `altitude` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Coordinates/altitude)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Coordinates`*"] pub fn altitude(this: &Coordinates) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "Coordinates" , js_name = accuracy)] #[doc = "Getter for the `accuracy` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Coordinates/accuracy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Coordinates`*"] pub fn accuracy(this: &Coordinates) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "Coordinates" , js_name = altitudeAccuracy)] #[doc = "Getter for the `altitudeAccuracy` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Coordinates/altitudeAccuracy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Coordinates`*"] pub fn altitude_accuracy(this: &Coordinates) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "Coordinates" , js_name = heading)] #[doc = "Getter for the `heading` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Coordinates/heading)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Coordinates`*"] pub fn heading(this: &Coordinates) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "Coordinates" , js_name = speed)] #[doc = "Getter for the `speed` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Coordinates/speed)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Coordinates`*"] pub fn speed(this: &Coordinates) -> Option; } web-sys-0.3.55/src/features/gen_Credential.rs000064400000000000000000000025520072674642500172210ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Credential , typescript_type = "Credential")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Credential` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Credential)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Credential`*"] pub type Credential; # [wasm_bindgen (structural , method , getter , js_class = "Credential" , js_name = id)] #[doc = "Getter for the `id` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Credential/id)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Credential`*"] pub fn id(this: &Credential) -> String; # [wasm_bindgen (structural , method , getter , js_class = "Credential" , js_name = type)] #[doc = "Getter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Credential/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Credential`*"] pub fn type_(this: &Credential) -> String; } web-sys-0.3.55/src/features/gen_CredentialCreationOptions.rs000064400000000000000000000043660072674642500222670ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CredentialCreationOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CredentialCreationOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CredentialCreationOptions`*"] pub type CredentialCreationOptions; } impl CredentialCreationOptions { #[doc = "Construct a new `CredentialCreationOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CredentialCreationOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(feature = "PublicKeyCredentialCreationOptions")] #[doc = "Change the `publicKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CredentialCreationOptions`, `PublicKeyCredentialCreationOptions`*"] pub fn public_key(&mut self, val: &PublicKeyCredentialCreationOptions) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("publicKey"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "AbortSignal")] #[doc = "Change the `signal` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AbortSignal`, `CredentialCreationOptions`*"] pub fn signal(&mut self, val: &AbortSignal) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("signal"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for CredentialCreationOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_CredentialRequestOptions.rs000064400000000000000000000043510072674642500221450ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CredentialRequestOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CredentialRequestOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CredentialRequestOptions`*"] pub type CredentialRequestOptions; } impl CredentialRequestOptions { #[doc = "Construct a new `CredentialRequestOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CredentialRequestOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(feature = "PublicKeyCredentialRequestOptions")] #[doc = "Change the `publicKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CredentialRequestOptions`, `PublicKeyCredentialRequestOptions`*"] pub fn public_key(&mut self, val: &PublicKeyCredentialRequestOptions) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("publicKey"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "AbortSignal")] #[doc = "Change the `signal` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AbortSignal`, `CredentialRequestOptions`*"] pub fn signal(&mut self, val: &AbortSignal) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("signal"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for CredentialRequestOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_CredentialsContainer.rs000064400000000000000000000075010072674642500212460ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CredentialsContainer , typescript_type = "CredentialsContainer")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CredentialsContainer` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CredentialsContainer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CredentialsContainer`*"] pub type CredentialsContainer; # [wasm_bindgen (catch , method , structural , js_class = "CredentialsContainer" , js_name = create)] #[doc = "The `create()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CredentialsContainer/create)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CredentialsContainer`*"] pub fn create(this: &CredentialsContainer) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CredentialCreationOptions")] # [wasm_bindgen (catch , method , structural , js_class = "CredentialsContainer" , js_name = create)] #[doc = "The `create()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CredentialsContainer/create)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CredentialCreationOptions`, `CredentialsContainer`*"] pub fn create_with_options( this: &CredentialsContainer, options: &CredentialCreationOptions, ) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CredentialsContainer" , js_name = get)] #[doc = "The `get()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CredentialsContainer/get)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CredentialsContainer`*"] pub fn get(this: &CredentialsContainer) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CredentialRequestOptions")] # [wasm_bindgen (catch , method , structural , js_class = "CredentialsContainer" , js_name = get)] #[doc = "The `get()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CredentialsContainer/get)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CredentialRequestOptions`, `CredentialsContainer`*"] pub fn get_with_options( this: &CredentialsContainer, options: &CredentialRequestOptions, ) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CredentialsContainer" , js_name = preventSilentAccess)] #[doc = "The `preventSilentAccess()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CredentialsContainer/preventSilentAccess)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CredentialsContainer`*"] pub fn prevent_silent_access(this: &CredentialsContainer) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "Credential")] # [wasm_bindgen (catch , method , structural , js_class = "CredentialsContainer" , js_name = store)] #[doc = "The `store()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CredentialsContainer/store)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Credential`, `CredentialsContainer`*"] pub fn store( this: &CredentialsContainer, credential: &Credential, ) -> Result<::js_sys::Promise, JsValue>; } web-sys-0.3.55/src/features/gen_Crypto.rs000064400000000000000000000037700072674642500164320ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Crypto , typescript_type = "Crypto")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Crypto` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Crypto)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Crypto`*"] pub type Crypto; #[cfg(feature = "SubtleCrypto")] # [wasm_bindgen (structural , method , getter , js_class = "Crypto" , js_name = subtle)] #[doc = "Getter for the `subtle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Crypto/subtle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Crypto`, `SubtleCrypto`*"] pub fn subtle(this: &Crypto) -> SubtleCrypto; # [wasm_bindgen (catch , method , structural , js_class = "Crypto" , js_name = getRandomValues)] #[doc = "The `getRandomValues()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Crypto/getRandomValues)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Crypto`*"] pub fn get_random_values_with_array_buffer_view( this: &Crypto, array: &::js_sys::Object, ) -> Result<::js_sys::Object, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Crypto" , js_name = getRandomValues)] #[doc = "The `getRandomValues()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Crypto/getRandomValues)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Crypto`*"] pub fn get_random_values_with_u8_array( this: &Crypto, array: &mut [u8], ) -> Result<::js_sys::Object, JsValue>; } web-sys-0.3.55/src/features/gen_CryptoKey.rs000064400000000000000000000044240072674642500171000ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CryptoKey , typescript_type = "CryptoKey")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CryptoKey` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CryptoKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`*"] pub type CryptoKey; # [wasm_bindgen (structural , method , getter , js_class = "CryptoKey" , js_name = type)] #[doc = "Getter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CryptoKey/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`*"] pub fn type_(this: &CryptoKey) -> String; # [wasm_bindgen (structural , method , getter , js_class = "CryptoKey" , js_name = extractable)] #[doc = "Getter for the `extractable` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CryptoKey/extractable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`*"] pub fn extractable(this: &CryptoKey) -> bool; # [wasm_bindgen (structural , catch , method , getter , js_class = "CryptoKey" , js_name = algorithm)] #[doc = "Getter for the `algorithm` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CryptoKey/algorithm)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`*"] pub fn algorithm(this: &CryptoKey) -> Result<::js_sys::Object, JsValue>; # [wasm_bindgen (structural , method , getter , js_class = "CryptoKey" , js_name = usages)] #[doc = "Getter for the `usages` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CryptoKey/usages)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`*"] pub fn usages(this: &CryptoKey) -> ::js_sys::Array; } web-sys-0.3.55/src/features/gen_CryptoKeyPair.rs000064400000000000000000000042550072674642500177160ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CryptoKeyPair)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CryptoKeyPair` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKeyPair`*"] pub type CryptoKeyPair; } impl CryptoKeyPair { #[cfg(feature = "CryptoKey")] #[doc = "Construct a new `CryptoKeyPair`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `CryptoKeyPair`*"] pub fn new(private_key: &CryptoKey, public_key: &CryptoKey) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.private_key(private_key); ret.public_key(public_key); ret } #[cfg(feature = "CryptoKey")] #[doc = "Change the `privateKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `CryptoKeyPair`*"] pub fn private_key(&mut self, val: &CryptoKey) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("privateKey"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "CryptoKey")] #[doc = "Change the `publicKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `CryptoKeyPair`*"] pub fn public_key(&mut self, val: &CryptoKey) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("publicKey"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_Csp.rs000064400000000000000000000334240072674642500156760ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CSP)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Csp` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Csp`*"] pub type Csp; } impl Csp { #[doc = "Construct a new `Csp`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Csp`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `base-uri` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Csp`*"] pub fn base_uri(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("base-uri"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `block-all-mixed-content` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Csp`*"] pub fn block_all_mixed_content(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("block-all-mixed-content"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `child-src` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Csp`*"] pub fn child_src(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("child-src"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `connect-src` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Csp`*"] pub fn connect_src(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("connect-src"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `default-src` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Csp`*"] pub fn default_src(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("default-src"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `font-src` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Csp`*"] pub fn font_src(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("font-src"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `form-action` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Csp`*"] pub fn form_action(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("form-action"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `frame-ancestors` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Csp`*"] pub fn frame_ancestors(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("frame-ancestors"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `frame-src` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Csp`*"] pub fn frame_src(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("frame-src"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `img-src` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Csp`*"] pub fn img_src(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("img-src"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `manifest-src` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Csp`*"] pub fn manifest_src(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("manifest-src"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `media-src` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Csp`*"] pub fn media_src(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("media-src"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `object-src` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Csp`*"] pub fn object_src(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("object-src"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `referrer` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Csp`*"] pub fn referrer(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("referrer"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `report-only` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Csp`*"] pub fn report_only(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("report-only"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `report-uri` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Csp`*"] pub fn report_uri(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("report-uri"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `require-sri-for` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Csp`*"] pub fn require_sri_for(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("require-sri-for"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `sandbox` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Csp`*"] pub fn sandbox(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("sandbox"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `script-src` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Csp`*"] pub fn script_src(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("script-src"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `style-src` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Csp`*"] pub fn style_src(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("style-src"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `upgrade-insecure-requests` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Csp`*"] pub fn upgrade_insecure_requests(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("upgrade-insecure-requests"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `worker-src` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Csp`*"] pub fn worker_src(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("worker-src"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for Csp { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_CspPolicies.rs000064400000000000000000000026530072674642500173660ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CSPPolicies)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CspPolicies` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CspPolicies`*"] pub type CspPolicies; } impl CspPolicies { #[doc = "Construct a new `CspPolicies`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CspPolicies`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `csp-policies` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CspPolicies`*"] pub fn csp_policies(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("csp-policies"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for CspPolicies { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_CspReport.rs000064400000000000000000000027220072674642500170670ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CSPReport)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CspReport` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CspReport`*"] pub type CspReport; } impl CspReport { #[doc = "Construct a new `CspReport`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CspReport`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(feature = "CspReportProperties")] #[doc = "Change the `csp-report` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CspReport`, `CspReportProperties`*"] pub fn csp_report(&mut self, val: &CspReportProperties) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("csp-report"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for CspReport { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_CspReportProperties.rs000064400000000000000000000143210072674642500211420ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CSPReportProperties)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CspReportProperties` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CspReportProperties`*"] pub type CspReportProperties; } impl CspReportProperties { #[doc = "Construct a new `CspReportProperties`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CspReportProperties`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `blocked-uri` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CspReportProperties`*"] pub fn blocked_uri(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("blocked-uri"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `column-number` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CspReportProperties`*"] pub fn column_number(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("column-number"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `document-uri` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CspReportProperties`*"] pub fn document_uri(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("document-uri"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `line-number` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CspReportProperties`*"] pub fn line_number(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("line-number"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `original-policy` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CspReportProperties`*"] pub fn original_policy(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("original-policy"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `referrer` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CspReportProperties`*"] pub fn referrer(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("referrer"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `script-sample` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CspReportProperties`*"] pub fn script_sample(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("script-sample"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `source-file` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CspReportProperties`*"] pub fn source_file(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("source-file"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `violated-directive` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CspReportProperties`*"] pub fn violated_directive(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("violated-directive"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for CspReportProperties { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_CssAnimation.rs000064400000000000000000000020550072674642500175350ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Animation , extends = EventTarget , extends = :: js_sys :: Object , js_name = CSSAnimation , typescript_type = "CSSAnimation")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CssAnimation` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSAnimation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssAnimation`*"] pub type CssAnimation; # [wasm_bindgen (structural , method , getter , js_class = "CSSAnimation" , js_name = animationName)] #[doc = "Getter for the `animationName` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSAnimation/animationName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssAnimation`*"] pub fn animation_name(this: &CssAnimation) -> String; } web-sys-0.3.55/src/features/gen_CssBoxType.rs000064400000000000000000000005650072674642500172140ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `CssBoxType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssBoxType`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum CssBoxType { Margin = "margin", Border = "border", Padding = "padding", Content = "content", } web-sys-0.3.55/src/features/gen_CssConditionRule.rs000064400000000000000000000031060072674642500203720ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = CssGroupingRule , extends = CssRule , extends = :: js_sys :: Object , js_name = CSSConditionRule , typescript_type = "CSSConditionRule")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CssConditionRule` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSConditionRule)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssConditionRule`*"] pub type CssConditionRule; # [wasm_bindgen (structural , method , getter , js_class = "CSSConditionRule" , js_name = conditionText)] #[doc = "Getter for the `conditionText` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSConditionRule/conditionText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssConditionRule`*"] pub fn condition_text(this: &CssConditionRule) -> String; # [wasm_bindgen (structural , method , setter , js_class = "CSSConditionRule" , js_name = conditionText)] #[doc = "Setter for the `conditionText` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSConditionRule/conditionText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssConditionRule`*"] pub fn set_condition_text(this: &CssConditionRule, value: &str); } web-sys-0.3.55/src/features/gen_CssCounterStyleRule.rs000064400000000000000000000255700072674642500211150ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = CssRule , extends = :: js_sys :: Object , js_name = CSSCounterStyleRule , typescript_type = "CSSCounterStyleRule")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CssCounterStyleRule` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] pub type CssCounterStyleRule; # [wasm_bindgen (structural , method , getter , js_class = "CSSCounterStyleRule" , js_name = name)] #[doc = "Getter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] pub fn name(this: &CssCounterStyleRule) -> String; # [wasm_bindgen (structural , method , setter , js_class = "CSSCounterStyleRule" , js_name = name)] #[doc = "Setter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] pub fn set_name(this: &CssCounterStyleRule, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "CSSCounterStyleRule" , js_name = system)] #[doc = "Getter for the `system` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule/system)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] pub fn system(this: &CssCounterStyleRule) -> String; # [wasm_bindgen (structural , method , setter , js_class = "CSSCounterStyleRule" , js_name = system)] #[doc = "Setter for the `system` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule/system)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] pub fn set_system(this: &CssCounterStyleRule, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "CSSCounterStyleRule" , js_name = symbols)] #[doc = "Getter for the `symbols` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule/symbols)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] pub fn symbols(this: &CssCounterStyleRule) -> String; # [wasm_bindgen (structural , method , setter , js_class = "CSSCounterStyleRule" , js_name = symbols)] #[doc = "Setter for the `symbols` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule/symbols)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] pub fn set_symbols(this: &CssCounterStyleRule, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "CSSCounterStyleRule" , js_name = additiveSymbols)] #[doc = "Getter for the `additiveSymbols` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule/additiveSymbols)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] pub fn additive_symbols(this: &CssCounterStyleRule) -> String; # [wasm_bindgen (structural , method , setter , js_class = "CSSCounterStyleRule" , js_name = additiveSymbols)] #[doc = "Setter for the `additiveSymbols` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule/additiveSymbols)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] pub fn set_additive_symbols(this: &CssCounterStyleRule, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "CSSCounterStyleRule" , js_name = negative)] #[doc = "Getter for the `negative` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule/negative)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] pub fn negative(this: &CssCounterStyleRule) -> String; # [wasm_bindgen (structural , method , setter , js_class = "CSSCounterStyleRule" , js_name = negative)] #[doc = "Setter for the `negative` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule/negative)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] pub fn set_negative(this: &CssCounterStyleRule, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "CSSCounterStyleRule" , js_name = prefix)] #[doc = "Getter for the `prefix` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule/prefix)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] pub fn prefix(this: &CssCounterStyleRule) -> String; # [wasm_bindgen (structural , method , setter , js_class = "CSSCounterStyleRule" , js_name = prefix)] #[doc = "Setter for the `prefix` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule/prefix)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] pub fn set_prefix(this: &CssCounterStyleRule, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "CSSCounterStyleRule" , js_name = suffix)] #[doc = "Getter for the `suffix` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule/suffix)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] pub fn suffix(this: &CssCounterStyleRule) -> String; # [wasm_bindgen (structural , method , setter , js_class = "CSSCounterStyleRule" , js_name = suffix)] #[doc = "Setter for the `suffix` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule/suffix)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] pub fn set_suffix(this: &CssCounterStyleRule, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "CSSCounterStyleRule" , js_name = range)] #[doc = "Getter for the `range` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule/range)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] pub fn range(this: &CssCounterStyleRule) -> String; # [wasm_bindgen (structural , method , setter , js_class = "CSSCounterStyleRule" , js_name = range)] #[doc = "Setter for the `range` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule/range)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] pub fn set_range(this: &CssCounterStyleRule, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "CSSCounterStyleRule" , js_name = pad)] #[doc = "Getter for the `pad` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule/pad)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] pub fn pad(this: &CssCounterStyleRule) -> String; # [wasm_bindgen (structural , method , setter , js_class = "CSSCounterStyleRule" , js_name = pad)] #[doc = "Setter for the `pad` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule/pad)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] pub fn set_pad(this: &CssCounterStyleRule, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "CSSCounterStyleRule" , js_name = speakAs)] #[doc = "Getter for the `speakAs` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule/speakAs)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] pub fn speak_as(this: &CssCounterStyleRule) -> String; # [wasm_bindgen (structural , method , setter , js_class = "CSSCounterStyleRule" , js_name = speakAs)] #[doc = "Setter for the `speakAs` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule/speakAs)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] pub fn set_speak_as(this: &CssCounterStyleRule, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "CSSCounterStyleRule" , js_name = fallback)] #[doc = "Getter for the `fallback` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule/fallback)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] pub fn fallback(this: &CssCounterStyleRule) -> String; # [wasm_bindgen (structural , method , setter , js_class = "CSSCounterStyleRule" , js_name = fallback)] #[doc = "Setter for the `fallback` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule/fallback)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] pub fn set_fallback(this: &CssCounterStyleRule, value: &str); } web-sys-0.3.55/src/features/gen_CssFontFaceRule.rs000064400000000000000000000021400072674642500201260ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = CssRule , extends = :: js_sys :: Object , js_name = CSSFontFaceRule , typescript_type = "CSSFontFaceRule")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CssFontFaceRule` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSFontFaceRule)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssFontFaceRule`*"] pub type CssFontFaceRule; #[cfg(feature = "CssStyleDeclaration")] # [wasm_bindgen (structural , method , getter , js_class = "CSSFontFaceRule" , js_name = style)] #[doc = "Getter for the `style` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSFontFaceRule/style)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssFontFaceRule`, `CssStyleDeclaration`*"] pub fn style(this: &CssFontFaceRule) -> CssStyleDeclaration; } web-sys-0.3.55/src/features/gen_CssFontFeatureValuesRule.rs000064400000000000000000000051710072674642500220520ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = CssRule , extends = :: js_sys :: Object , js_name = CSSFontFeatureValuesRule , typescript_type = "CSSFontFeatureValuesRule")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CssFontFeatureValuesRule` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSFontFeatureValuesRule)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssFontFeatureValuesRule`*"] pub type CssFontFeatureValuesRule; # [wasm_bindgen (structural , method , getter , js_class = "CSSFontFeatureValuesRule" , js_name = fontFamily)] #[doc = "Getter for the `fontFamily` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSFontFeatureValuesRule/fontFamily)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssFontFeatureValuesRule`*"] pub fn font_family(this: &CssFontFeatureValuesRule) -> String; # [wasm_bindgen (structural , method , setter , js_class = "CSSFontFeatureValuesRule" , js_name = fontFamily)] #[doc = "Setter for the `fontFamily` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSFontFeatureValuesRule/fontFamily)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssFontFeatureValuesRule`*"] pub fn set_font_family(this: &CssFontFeatureValuesRule, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "CSSFontFeatureValuesRule" , js_name = valueText)] #[doc = "Getter for the `valueText` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSFontFeatureValuesRule/valueText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssFontFeatureValuesRule`*"] pub fn value_text(this: &CssFontFeatureValuesRule) -> String; # [wasm_bindgen (structural , method , setter , js_class = "CSSFontFeatureValuesRule" , js_name = valueText)] #[doc = "Setter for the `valueText` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSFontFeatureValuesRule/valueText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssFontFeatureValuesRule`*"] pub fn set_value_text(this: &CssFontFeatureValuesRule, value: &str); } web-sys-0.3.55/src/features/gen_CssGroupingRule.rs000064400000000000000000000050300072674642500202340ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = CssRule , extends = :: js_sys :: Object , js_name = CSSGroupingRule , typescript_type = "CSSGroupingRule")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CssGroupingRule` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSGroupingRule)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssGroupingRule`*"] pub type CssGroupingRule; #[cfg(feature = "CssRuleList")] # [wasm_bindgen (structural , method , getter , js_class = "CSSGroupingRule" , js_name = cssRules)] #[doc = "Getter for the `cssRules` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSGroupingRule/cssRules)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssGroupingRule`, `CssRuleList`*"] pub fn css_rules(this: &CssGroupingRule) -> CssRuleList; # [wasm_bindgen (catch , method , structural , js_class = "CSSGroupingRule" , js_name = deleteRule)] #[doc = "The `deleteRule()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSGroupingRule/deleteRule)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssGroupingRule`*"] pub fn delete_rule(this: &CssGroupingRule, index: u32) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CSSGroupingRule" , js_name = insertRule)] #[doc = "The `insertRule()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSGroupingRule/insertRule)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssGroupingRule`*"] pub fn insert_rule(this: &CssGroupingRule, rule: &str) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "CSSGroupingRule" , js_name = insertRule)] #[doc = "The `insertRule()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSGroupingRule/insertRule)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssGroupingRule`*"] pub fn insert_rule_with_index( this: &CssGroupingRule, rule: &str, index: u32, ) -> Result; } web-sys-0.3.55/src/features/gen_CssImportRule.rs000064400000000000000000000040030072674642500177130ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = CssRule , extends = :: js_sys :: Object , js_name = CSSImportRule , typescript_type = "CSSImportRule")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CssImportRule` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSImportRule)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssImportRule`*"] pub type CssImportRule; # [wasm_bindgen (structural , method , getter , js_class = "CSSImportRule" , js_name = href)] #[doc = "Getter for the `href` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSImportRule/href)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssImportRule`*"] pub fn href(this: &CssImportRule) -> String; #[cfg(feature = "MediaList")] # [wasm_bindgen (structural , method , getter , js_class = "CSSImportRule" , js_name = media)] #[doc = "Getter for the `media` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSImportRule/media)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssImportRule`, `MediaList`*"] pub fn media(this: &CssImportRule) -> Option; #[cfg(feature = "CssStyleSheet")] # [wasm_bindgen (structural , method , getter , js_class = "CSSImportRule" , js_name = styleSheet)] #[doc = "Getter for the `styleSheet` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSImportRule/styleSheet)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssImportRule`, `CssStyleSheet`*"] pub fn style_sheet(this: &CssImportRule) -> Option; } web-sys-0.3.55/src/features/gen_CssKeyframeRule.rs000064400000000000000000000037770072674642500202250ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = CssRule , extends = :: js_sys :: Object , js_name = CSSKeyframeRule , typescript_type = "CSSKeyframeRule")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CssKeyframeRule` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSKeyframeRule)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssKeyframeRule`*"] pub type CssKeyframeRule; # [wasm_bindgen (structural , method , getter , js_class = "CSSKeyframeRule" , js_name = keyText)] #[doc = "Getter for the `keyText` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSKeyframeRule/keyText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssKeyframeRule`*"] pub fn key_text(this: &CssKeyframeRule) -> String; # [wasm_bindgen (structural , method , setter , js_class = "CSSKeyframeRule" , js_name = keyText)] #[doc = "Setter for the `keyText` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSKeyframeRule/keyText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssKeyframeRule`*"] pub fn set_key_text(this: &CssKeyframeRule, value: &str); #[cfg(feature = "CssStyleDeclaration")] # [wasm_bindgen (structural , method , getter , js_class = "CSSKeyframeRule" , js_name = style)] #[doc = "Getter for the `style` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSKeyframeRule/style)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssKeyframeRule`, `CssStyleDeclaration`*"] pub fn style(this: &CssKeyframeRule) -> CssStyleDeclaration; } web-sys-0.3.55/src/features/gen_CssKeyframesRule.rs000064400000000000000000000065700072674642500204020ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = CssRule , extends = :: js_sys :: Object , js_name = CSSKeyframesRule , typescript_type = "CSSKeyframesRule")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CssKeyframesRule` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSKeyframesRule)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssKeyframesRule`*"] pub type CssKeyframesRule; # [wasm_bindgen (structural , method , getter , js_class = "CSSKeyframesRule" , js_name = name)] #[doc = "Getter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSKeyframesRule/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssKeyframesRule`*"] pub fn name(this: &CssKeyframesRule) -> String; # [wasm_bindgen (structural , method , setter , js_class = "CSSKeyframesRule" , js_name = name)] #[doc = "Setter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSKeyframesRule/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssKeyframesRule`*"] pub fn set_name(this: &CssKeyframesRule, value: &str); #[cfg(feature = "CssRuleList")] # [wasm_bindgen (structural , method , getter , js_class = "CSSKeyframesRule" , js_name = cssRules)] #[doc = "Getter for the `cssRules` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSKeyframesRule/cssRules)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssKeyframesRule`, `CssRuleList`*"] pub fn css_rules(this: &CssKeyframesRule) -> CssRuleList; # [wasm_bindgen (method , structural , js_class = "CSSKeyframesRule" , js_name = appendRule)] #[doc = "The `appendRule()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSKeyframesRule/appendRule)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssKeyframesRule`*"] pub fn append_rule(this: &CssKeyframesRule, rule: &str); # [wasm_bindgen (method , structural , js_class = "CSSKeyframesRule" , js_name = deleteRule)] #[doc = "The `deleteRule()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSKeyframesRule/deleteRule)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssKeyframesRule`*"] pub fn delete_rule(this: &CssKeyframesRule, select: &str); #[cfg(feature = "CssKeyframeRule")] # [wasm_bindgen (method , structural , js_class = "CSSKeyframesRule" , js_name = findRule)] #[doc = "The `findRule()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSKeyframesRule/findRule)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssKeyframeRule`, `CssKeyframesRule`*"] pub fn find_rule(this: &CssKeyframesRule, select: &str) -> Option; } web-sys-0.3.55/src/features/gen_CssMediaRule.rs000064400000000000000000000021350072674642500174640ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = CssConditionRule , extends = CssGroupingRule , extends = CssRule , extends = :: js_sys :: Object , js_name = CSSMediaRule , typescript_type = "CSSMediaRule")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CssMediaRule` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSMediaRule)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssMediaRule`*"] pub type CssMediaRule; #[cfg(feature = "MediaList")] # [wasm_bindgen (structural , method , getter , js_class = "CSSMediaRule" , js_name = media)] #[doc = "Getter for the `media` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSMediaRule/media)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssMediaRule`, `MediaList`*"] pub fn media(this: &CssMediaRule) -> MediaList; } web-sys-0.3.55/src/features/gen_CssNamespaceRule.rs000064400000000000000000000030020072674642500203330ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = CssRule , extends = :: js_sys :: Object , js_name = CSSNamespaceRule , typescript_type = "CSSNamespaceRule")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CssNamespaceRule` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSNamespaceRule)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssNamespaceRule`*"] pub type CssNamespaceRule; # [wasm_bindgen (structural , method , getter , js_class = "CSSNamespaceRule" , js_name = namespaceURI)] #[doc = "Getter for the `namespaceURI` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSNamespaceRule/namespaceURI)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssNamespaceRule`*"] pub fn namespace_uri(this: &CssNamespaceRule) -> String; # [wasm_bindgen (structural , method , getter , js_class = "CSSNamespaceRule" , js_name = prefix)] #[doc = "Getter for the `prefix` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSNamespaceRule/prefix)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssNamespaceRule`*"] pub fn prefix(this: &CssNamespaceRule) -> String; } web-sys-0.3.55/src/features/gen_CssPageRule.rs000064400000000000000000000020700072674642500173170ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = CssRule , extends = :: js_sys :: Object , js_name = CSSPageRule , typescript_type = "CSSPageRule")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CssPageRule` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSPageRule)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssPageRule`*"] pub type CssPageRule; #[cfg(feature = "CssStyleDeclaration")] # [wasm_bindgen (structural , method , getter , js_class = "CSSPageRule" , js_name = style)] #[doc = "Getter for the `style` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSPageRule/style)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssPageRule`, `CssStyleDeclaration`*"] pub fn style(this: &CssPageRule) -> CssStyleDeclaration; } web-sys-0.3.55/src/features/gen_CssPseudoElement.rs000064400000000000000000000030270072674642500203670ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CSSPseudoElement , typescript_type = "CSSPseudoElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CssPseudoElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSPseudoElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssPseudoElement`*"] pub type CssPseudoElement; # [wasm_bindgen (structural , method , getter , js_class = "CSSPseudoElement" , js_name = type)] #[doc = "Getter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSPseudoElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssPseudoElement`*"] pub fn type_(this: &CssPseudoElement) -> String; #[cfg(feature = "Element")] # [wasm_bindgen (structural , method , getter , js_class = "CSSPseudoElement" , js_name = parentElement)] #[doc = "Getter for the `parentElement` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSPseudoElement/parentElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssPseudoElement`, `Element`*"] pub fn parent_element(this: &CssPseudoElement) -> Element; } web-sys-0.3.55/src/features/gen_CssRule.rs000064400000000000000000000122320072674642500165230ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CSSRule , typescript_type = "CSSRule")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CssRule` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSRule)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssRule`*"] pub type CssRule; # [wasm_bindgen (structural , method , getter , js_class = "CSSRule" , js_name = type)] #[doc = "Getter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSRule/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssRule`*"] pub fn type_(this: &CssRule) -> u16; # [wasm_bindgen (structural , method , getter , js_class = "CSSRule" , js_name = cssText)] #[doc = "Getter for the `cssText` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSRule/cssText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssRule`*"] pub fn css_text(this: &CssRule) -> String; # [wasm_bindgen (structural , method , setter , js_class = "CSSRule" , js_name = cssText)] #[doc = "Setter for the `cssText` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSRule/cssText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssRule`*"] pub fn set_css_text(this: &CssRule, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "CSSRule" , js_name = parentRule)] #[doc = "Getter for the `parentRule` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSRule/parentRule)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssRule`*"] pub fn parent_rule(this: &CssRule) -> Option; #[cfg(feature = "CssStyleSheet")] # [wasm_bindgen (structural , method , getter , js_class = "CSSRule" , js_name = parentStyleSheet)] #[doc = "Getter for the `parentStyleSheet` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSRule/parentStyleSheet)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssRule`, `CssStyleSheet`*"] pub fn parent_style_sheet(this: &CssRule) -> Option; } impl CssRule { #[doc = "The `CSSRule.STYLE_RULE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssRule`*"] pub const STYLE_RULE: u16 = 1u64 as u16; #[doc = "The `CSSRule.CHARSET_RULE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssRule`*"] pub const CHARSET_RULE: u16 = 2u64 as u16; #[doc = "The `CSSRule.IMPORT_RULE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssRule`*"] pub const IMPORT_RULE: u16 = 3u64 as u16; #[doc = "The `CSSRule.MEDIA_RULE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssRule`*"] pub const MEDIA_RULE: u16 = 4u64 as u16; #[doc = "The `CSSRule.FONT_FACE_RULE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssRule`*"] pub const FONT_FACE_RULE: u16 = 5u64 as u16; #[doc = "The `CSSRule.PAGE_RULE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssRule`*"] pub const PAGE_RULE: u16 = 6u64 as u16; #[doc = "The `CSSRule.NAMESPACE_RULE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssRule`*"] pub const NAMESPACE_RULE: u16 = 10u64 as u16; #[doc = "The `CSSRule.KEYFRAMES_RULE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssRule`*"] pub const KEYFRAMES_RULE: u16 = 7u64 as u16; #[doc = "The `CSSRule.KEYFRAME_RULE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssRule`*"] pub const KEYFRAME_RULE: u16 = 8u64 as u16; #[doc = "The `CSSRule.COUNTER_STYLE_RULE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssRule`*"] pub const COUNTER_STYLE_RULE: u16 = 11u64 as u16; #[doc = "The `CSSRule.SUPPORTS_RULE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssRule`*"] pub const SUPPORTS_RULE: u16 = 12u64 as u16; #[doc = "The `CSSRule.FONT_FEATURE_VALUES_RULE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssRule`*"] pub const FONT_FEATURE_VALUES_RULE: u16 = 14u64 as u16; } web-sys-0.3.55/src/features/gen_CssRuleList.rs000064400000000000000000000034240072674642500173620ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CSSRuleList , typescript_type = "CSSRuleList")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CssRuleList` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSRuleList)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssRuleList`*"] pub type CssRuleList; # [wasm_bindgen (structural , method , getter , js_class = "CSSRuleList" , js_name = length)] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSRuleList/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssRuleList`*"] pub fn length(this: &CssRuleList) -> u32; #[cfg(feature = "CssRule")] # [wasm_bindgen (method , structural , js_class = "CSSRuleList" , js_name = item)] #[doc = "The `item()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSRuleList/item)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssRule`, `CssRuleList`*"] pub fn item(this: &CssRuleList, index: u32) -> Option; #[cfg(feature = "CssRule")] #[wasm_bindgen(method, structural, js_class = "CSSRuleList", indexing_getter)] #[doc = "Indexing getter."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssRule`, `CssRuleList`*"] pub fn get(this: &CssRuleList, index: u32) -> Option; } web-sys-0.3.55/src/features/gen_CssStyleDeclaration.rs000064400000000000000000000136260072674642500210720ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CSSStyleDeclaration , typescript_type = "CSSStyleDeclaration")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CssStyleDeclaration` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssStyleDeclaration`*"] pub type CssStyleDeclaration; # [wasm_bindgen (structural , method , getter , js_class = "CSSStyleDeclaration" , js_name = cssText)] #[doc = "Getter for the `cssText` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration/cssText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssStyleDeclaration`*"] pub fn css_text(this: &CssStyleDeclaration) -> String; # [wasm_bindgen (structural , method , setter , js_class = "CSSStyleDeclaration" , js_name = cssText)] #[doc = "Setter for the `cssText` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration/cssText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssStyleDeclaration`*"] pub fn set_css_text(this: &CssStyleDeclaration, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "CSSStyleDeclaration" , js_name = length)] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssStyleDeclaration`*"] pub fn length(this: &CssStyleDeclaration) -> u32; #[cfg(feature = "CssRule")] # [wasm_bindgen (structural , method , getter , js_class = "CSSStyleDeclaration" , js_name = parentRule)] #[doc = "Getter for the `parentRule` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration/parentRule)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssRule`, `CssStyleDeclaration`*"] pub fn parent_rule(this: &CssStyleDeclaration) -> Option; # [wasm_bindgen (method , structural , js_class = "CSSStyleDeclaration" , js_name = getPropertyPriority)] #[doc = "The `getPropertyPriority()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration/getPropertyPriority)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssStyleDeclaration`*"] pub fn get_property_priority(this: &CssStyleDeclaration, property: &str) -> String; # [wasm_bindgen (catch , method , structural , js_class = "CSSStyleDeclaration" , js_name = getPropertyValue)] #[doc = "The `getPropertyValue()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration/getPropertyValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssStyleDeclaration`*"] pub fn get_property_value( this: &CssStyleDeclaration, property: &str, ) -> Result; # [wasm_bindgen (method , structural , js_class = "CSSStyleDeclaration" , js_name = item)] #[doc = "The `item()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration/item)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssStyleDeclaration`*"] pub fn item(this: &CssStyleDeclaration, index: u32) -> String; # [wasm_bindgen (catch , method , structural , js_class = "CSSStyleDeclaration" , js_name = removeProperty)] #[doc = "The `removeProperty()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration/removeProperty)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssStyleDeclaration`*"] pub fn remove_property(this: &CssStyleDeclaration, property: &str) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "CSSStyleDeclaration" , js_name = setProperty)] #[doc = "The `setProperty()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration/setProperty)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssStyleDeclaration`*"] pub fn set_property( this: &CssStyleDeclaration, property: &str, value: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CSSStyleDeclaration" , js_name = setProperty)] #[doc = "The `setProperty()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration/setProperty)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssStyleDeclaration`*"] pub fn set_property_with_priority( this: &CssStyleDeclaration, property: &str, value: &str, priority: &str, ) -> Result<(), JsValue>; #[wasm_bindgen(method, structural, js_class = "CSSStyleDeclaration", indexing_getter)] #[doc = "Indexing getter."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssStyleDeclaration`*"] pub fn get(this: &CssStyleDeclaration, index: u32) -> Option; } web-sys-0.3.55/src/features/gen_CssStyleRule.rs000064400000000000000000000037610072674642500175530ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = CssRule , extends = :: js_sys :: Object , js_name = CSSStyleRule , typescript_type = "CSSStyleRule")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CssStyleRule` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleRule)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssStyleRule`*"] pub type CssStyleRule; # [wasm_bindgen (structural , method , getter , js_class = "CSSStyleRule" , js_name = selectorText)] #[doc = "Getter for the `selectorText` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleRule/selectorText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssStyleRule`*"] pub fn selector_text(this: &CssStyleRule) -> String; # [wasm_bindgen (structural , method , setter , js_class = "CSSStyleRule" , js_name = selectorText)] #[doc = "Setter for the `selectorText` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleRule/selectorText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssStyleRule`*"] pub fn set_selector_text(this: &CssStyleRule, value: &str); #[cfg(feature = "CssStyleDeclaration")] # [wasm_bindgen (structural , method , getter , js_class = "CSSStyleRule" , js_name = style)] #[doc = "Getter for the `style` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleRule/style)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssStyleDeclaration`, `CssStyleRule`*"] pub fn style(this: &CssStyleRule) -> CssStyleDeclaration; } web-sys-0.3.55/src/features/gen_CssStyleSheet.rs000064400000000000000000000060100072674642500177020ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = StyleSheet , extends = :: js_sys :: Object , js_name = CSSStyleSheet , typescript_type = "CSSStyleSheet")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CssStyleSheet` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssStyleSheet`*"] pub type CssStyleSheet; #[cfg(feature = "CssRule")] # [wasm_bindgen (structural , method , getter , js_class = "CSSStyleSheet" , js_name = ownerRule)] #[doc = "Getter for the `ownerRule` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/ownerRule)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssRule`, `CssStyleSheet`*"] pub fn owner_rule(this: &CssStyleSheet) -> Option; #[cfg(feature = "CssRuleList")] # [wasm_bindgen (structural , catch , method , getter , js_class = "CSSStyleSheet" , js_name = cssRules)] #[doc = "Getter for the `cssRules` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/cssRules)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssRuleList`, `CssStyleSheet`*"] pub fn css_rules(this: &CssStyleSheet) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "CSSStyleSheet" , js_name = deleteRule)] #[doc = "The `deleteRule()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/deleteRule)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssStyleSheet`*"] pub fn delete_rule(this: &CssStyleSheet, index: u32) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CSSStyleSheet" , js_name = insertRule)] #[doc = "The `insertRule()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/insertRule)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssStyleSheet`*"] pub fn insert_rule(this: &CssStyleSheet, rule: &str) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "CSSStyleSheet" , js_name = insertRule)] #[doc = "The `insertRule()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/insertRule)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssStyleSheet`*"] pub fn insert_rule_with_index( this: &CssStyleSheet, rule: &str, index: u32, ) -> Result; } web-sys-0.3.55/src/features/gen_CssStyleSheetParsingMode.rs000064400000000000000000000005760072674642500220460ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `CssStyleSheetParsingMode` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssStyleSheetParsingMode`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum CssStyleSheetParsingMode { Author = "author", User = "user", Agent = "agent", } web-sys-0.3.55/src/features/gen_CssSupportsRule.rs000064400000000000000000000012060072674642500203020ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = CssConditionRule , extends = CssGroupingRule , extends = CssRule , extends = :: js_sys :: Object , js_name = CSSSupportsRule , typescript_type = "CSSSupportsRule")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CssSupportsRule` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSSupportsRule)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssSupportsRule`*"] pub type CssSupportsRule; } web-sys-0.3.55/src/features/gen_CssTransition.rs000064400000000000000000000021130072674642500177430ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Animation , extends = EventTarget , extends = :: js_sys :: Object , js_name = CSSTransition , typescript_type = "CSSTransition")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CssTransition` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSTransition)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssTransition`*"] pub type CssTransition; # [wasm_bindgen (structural , method , getter , js_class = "CSSTransition" , js_name = transitionProperty)] #[doc = "Getter for the `transitionProperty` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSTransition/transitionProperty)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssTransition`*"] pub fn transition_property(this: &CssTransition) -> String; } web-sys-0.3.55/src/features/gen_CustomElementRegistry.rs000064400000000000000000000064150072674642500214660ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CustomElementRegistry , typescript_type = "CustomElementRegistry")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CustomElementRegistry` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CustomElementRegistry`*"] pub type CustomElementRegistry; # [wasm_bindgen (catch , method , structural , js_class = "CustomElementRegistry" , js_name = define)] #[doc = "The `define()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/define)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CustomElementRegistry`*"] pub fn define( this: &CustomElementRegistry, name: &str, function_constructor: &::js_sys::Function, ) -> Result<(), JsValue>; #[cfg(feature = "ElementDefinitionOptions")] # [wasm_bindgen (catch , method , structural , js_class = "CustomElementRegistry" , js_name = define)] #[doc = "The `define()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/define)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CustomElementRegistry`, `ElementDefinitionOptions`*"] pub fn define_with_options( this: &CustomElementRegistry, name: &str, function_constructor: &::js_sys::Function, options: &ElementDefinitionOptions, ) -> Result<(), JsValue>; # [wasm_bindgen (method , structural , js_class = "CustomElementRegistry" , js_name = get)] #[doc = "The `get()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/get)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CustomElementRegistry`*"] pub fn get(this: &CustomElementRegistry, name: &str) -> ::wasm_bindgen::JsValue; #[cfg(feature = "Node")] # [wasm_bindgen (method , structural , js_class = "CustomElementRegistry" , js_name = upgrade)] #[doc = "The `upgrade()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/upgrade)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CustomElementRegistry`, `Node`*"] pub fn upgrade(this: &CustomElementRegistry, root: &Node); # [wasm_bindgen (catch , method , structural , js_class = "CustomElementRegistry" , js_name = whenDefined)] #[doc = "The `whenDefined()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/whenDefined)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CustomElementRegistry`*"] pub fn when_defined( this: &CustomElementRegistry, name: &str, ) -> Result<::js_sys::Promise, JsValue>; } web-sys-0.3.55/src/features/gen_CustomEvent.rs000064400000000000000000000101060072674642500174150ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = CustomEvent , typescript_type = "CustomEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CustomEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CustomEvent`*"] pub type CustomEvent; # [wasm_bindgen (structural , method , getter , js_class = "CustomEvent" , js_name = detail)] #[doc = "Getter for the `detail` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/detail)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CustomEvent`*"] pub fn detail(this: &CustomEvent) -> ::wasm_bindgen::JsValue; #[wasm_bindgen(catch, constructor, js_class = "CustomEvent")] #[doc = "The `new CustomEvent(..)` constructor, creating a new instance of `CustomEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/CustomEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CustomEvent`*"] pub fn new(type_: &str) -> Result; #[cfg(feature = "CustomEventInit")] #[wasm_bindgen(catch, constructor, js_class = "CustomEvent")] #[doc = "The `new CustomEvent(..)` constructor, creating a new instance of `CustomEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/CustomEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CustomEvent`, `CustomEventInit`*"] pub fn new_with_event_init_dict( type_: &str, event_init_dict: &CustomEventInit, ) -> Result; # [wasm_bindgen (method , structural , js_class = "CustomEvent" , js_name = initCustomEvent)] #[doc = "The `initCustomEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/initCustomEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CustomEvent`*"] pub fn init_custom_event(this: &CustomEvent, type_: &str); # [wasm_bindgen (method , structural , js_class = "CustomEvent" , js_name = initCustomEvent)] #[doc = "The `initCustomEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/initCustomEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CustomEvent`*"] pub fn init_custom_event_with_can_bubble(this: &CustomEvent, type_: &str, can_bubble: bool); # [wasm_bindgen (method , structural , js_class = "CustomEvent" , js_name = initCustomEvent)] #[doc = "The `initCustomEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/initCustomEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CustomEvent`*"] pub fn init_custom_event_with_can_bubble_and_cancelable( this: &CustomEvent, type_: &str, can_bubble: bool, cancelable: bool, ); # [wasm_bindgen (method , structural , js_class = "CustomEvent" , js_name = initCustomEvent)] #[doc = "The `initCustomEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/initCustomEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CustomEvent`*"] pub fn init_custom_event_with_can_bubble_and_cancelable_and_detail( this: &CustomEvent, type_: &str, can_bubble: bool, cancelable: bool, detail: &::wasm_bindgen::JsValue, ); } web-sys-0.3.55/src/features/gen_CustomEventInit.rs000064400000000000000000000062040072674642500202450ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CustomEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CustomEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CustomEventInit`*"] pub type CustomEventInit; } impl CustomEventInit { #[doc = "Construct a new `CustomEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CustomEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CustomEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CustomEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CustomEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `detail` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CustomEventInit`*"] pub fn detail(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("detail"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for CustomEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_DataTransfer.rs000064400000000000000000000177600072674642500175340ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DataTransfer , typescript_type = "DataTransfer")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DataTransfer` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransfer`*"] pub type DataTransfer; # [wasm_bindgen (structural , method , getter , js_class = "DataTransfer" , js_name = dropEffect)] #[doc = "Getter for the `dropEffect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/dropEffect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransfer`*"] pub fn drop_effect(this: &DataTransfer) -> String; # [wasm_bindgen (structural , method , setter , js_class = "DataTransfer" , js_name = dropEffect)] #[doc = "Setter for the `dropEffect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/dropEffect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransfer`*"] pub fn set_drop_effect(this: &DataTransfer, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "DataTransfer" , js_name = effectAllowed)] #[doc = "Getter for the `effectAllowed` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/effectAllowed)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransfer`*"] pub fn effect_allowed(this: &DataTransfer) -> String; # [wasm_bindgen (structural , method , setter , js_class = "DataTransfer" , js_name = effectAllowed)] #[doc = "Setter for the `effectAllowed` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/effectAllowed)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransfer`*"] pub fn set_effect_allowed(this: &DataTransfer, value: &str); #[cfg(feature = "DataTransferItemList")] # [wasm_bindgen (structural , method , getter , js_class = "DataTransfer" , js_name = items)] #[doc = "Getter for the `items` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/items)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransfer`, `DataTransferItemList`*"] pub fn items(this: &DataTransfer) -> DataTransferItemList; # [wasm_bindgen (structural , method , getter , js_class = "DataTransfer" , js_name = types)] #[doc = "Getter for the `types` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/types)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransfer`*"] pub fn types(this: &DataTransfer) -> ::js_sys::Array; #[cfg(feature = "FileList")] # [wasm_bindgen (structural , method , getter , js_class = "DataTransfer" , js_name = files)] #[doc = "Getter for the `files` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/files)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransfer`, `FileList`*"] pub fn files(this: &DataTransfer) -> Option; #[wasm_bindgen(catch, constructor, js_class = "DataTransfer")] #[doc = "The `new DataTransfer(..)` constructor, creating a new instance of `DataTransfer`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/DataTransfer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransfer`*"] pub fn new() -> Result; # [wasm_bindgen (catch , method , structural , js_class = "DataTransfer" , js_name = clearData)] #[doc = "The `clearData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/clearData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransfer`*"] pub fn clear_data(this: &DataTransfer) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DataTransfer" , js_name = clearData)] #[doc = "The `clearData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/clearData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransfer`*"] pub fn clear_data_with_format(this: &DataTransfer, format: &str) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DataTransfer" , js_name = getData)] #[doc = "The `getData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/getData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransfer`*"] pub fn get_data(this: &DataTransfer, format: &str) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "DataTransfer" , js_name = getFiles)] #[doc = "The `getFiles()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/getFiles)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransfer`*"] pub fn get_files(this: &DataTransfer) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DataTransfer" , js_name = getFiles)] #[doc = "The `getFiles()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/getFiles)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransfer`*"] pub fn get_files_with_recursive_flag( this: &DataTransfer, recursive_flag: bool, ) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DataTransfer" , js_name = getFilesAndDirectories)] #[doc = "The `getFilesAndDirectories()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/getFilesAndDirectories)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransfer`*"] pub fn get_files_and_directories(this: &DataTransfer) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DataTransfer" , js_name = setData)] #[doc = "The `setData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/setData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransfer`*"] pub fn set_data(this: &DataTransfer, format: &str, data: &str) -> Result<(), JsValue>; #[cfg(feature = "Element")] # [wasm_bindgen (method , structural , js_class = "DataTransfer" , js_name = setDragImage)] #[doc = "The `setDragImage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/setDragImage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransfer`, `Element`*"] pub fn set_drag_image(this: &DataTransfer, image: &Element, x: i32, y: i32); } web-sys-0.3.55/src/features/gen_DataTransferItem.rs000064400000000000000000000060320072674642500203410ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DataTransferItem , typescript_type = "DataTransferItem")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DataTransferItem` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransferItem`*"] pub type DataTransferItem; # [wasm_bindgen (structural , method , getter , js_class = "DataTransferItem" , js_name = kind)] #[doc = "Getter for the `kind` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItem/kind)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransferItem`*"] pub fn kind(this: &DataTransferItem) -> String; # [wasm_bindgen (structural , method , getter , js_class = "DataTransferItem" , js_name = type)] #[doc = "Getter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItem/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransferItem`*"] pub fn type_(this: &DataTransferItem) -> String; #[cfg(feature = "File")] # [wasm_bindgen (catch , method , structural , js_class = "DataTransferItem" , js_name = getAsFile)] #[doc = "The `getAsFile()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItem/getAsFile)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransferItem`, `File`*"] pub fn get_as_file(this: &DataTransferItem) -> Result, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DataTransferItem" , js_name = getAsString)] #[doc = "The `getAsString()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItem/getAsString)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransferItem`*"] pub fn get_as_string( this: &DataTransferItem, callback: Option<&::js_sys::Function>, ) -> Result<(), JsValue>; #[cfg(feature = "FileSystemEntry")] # [wasm_bindgen (catch , method , structural , js_class = "DataTransferItem" , js_name = webkitGetAsEntry)] #[doc = "The `webkitGetAsEntry()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItem/webkitGetAsEntry)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransferItem`, `FileSystemEntry`*"] pub fn webkit_get_as_entry(this: &DataTransferItem) -> Result, JsValue>; } web-sys-0.3.55/src/features/gen_DataTransferItemList.rs000064400000000000000000000071030072674642500211750ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DataTransferItemList , typescript_type = "DataTransferItemList")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DataTransferItemList` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItemList)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransferItemList`*"] pub type DataTransferItemList; # [wasm_bindgen (structural , method , getter , js_class = "DataTransferItemList" , js_name = length)] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItemList/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransferItemList`*"] pub fn length(this: &DataTransferItemList) -> u32; #[cfg(feature = "DataTransferItem")] # [wasm_bindgen (catch , method , structural , js_class = "DataTransferItemList" , js_name = add)] #[doc = "The `add()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItemList/add)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransferItem`, `DataTransferItemList`*"] pub fn add_with_str_and_type( this: &DataTransferItemList, data: &str, type_: &str, ) -> Result, JsValue>; #[cfg(all(feature = "DataTransferItem", feature = "File",))] # [wasm_bindgen (catch , method , structural , js_class = "DataTransferItemList" , js_name = add)] #[doc = "The `add()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItemList/add)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransferItem`, `DataTransferItemList`, `File`*"] pub fn add_with_file( this: &DataTransferItemList, data: &File, ) -> Result, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DataTransferItemList" , js_name = clear)] #[doc = "The `clear()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItemList/clear)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransferItemList`*"] pub fn clear(this: &DataTransferItemList) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DataTransferItemList" , js_name = remove)] #[doc = "The `remove()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItemList/remove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransferItemList`*"] pub fn remove(this: &DataTransferItemList, index: u32) -> Result<(), JsValue>; #[cfg(feature = "DataTransferItem")] #[wasm_bindgen(method, structural, js_class = "DataTransferItemList", indexing_getter)] #[doc = "Indexing getter."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransferItem`, `DataTransferItemList`*"] pub fn get(this: &DataTransferItemList, index: u32) -> Option; } web-sys-0.3.55/src/features/gen_DateTimeValue.rs000064400000000000000000000066570072674642500176520ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DateTimeValue)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DateTimeValue` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DateTimeValue`*"] pub type DateTimeValue; } impl DateTimeValue { #[doc = "Construct a new `DateTimeValue`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DateTimeValue`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `day` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DateTimeValue`*"] pub fn day(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("day"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `hour` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DateTimeValue`*"] pub fn hour(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("hour"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `minute` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DateTimeValue`*"] pub fn minute(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("minute"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `month` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DateTimeValue`*"] pub fn month(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("month"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `year` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DateTimeValue`*"] pub fn year(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("year"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for DateTimeValue { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_DecoderDoctorNotification.rs000064400000000000000000000125000072674642500222300ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DecoderDoctorNotification)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DecoderDoctorNotification` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`*"] pub type DecoderDoctorNotification; } impl DecoderDoctorNotification { #[cfg(feature = "DecoderDoctorNotificationType")] #[doc = "Construct a new `DecoderDoctorNotification`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`, `DecoderDoctorNotificationType`*"] pub fn new( decoder_doctor_report_id: &str, is_solved: bool, type_: DecoderDoctorNotificationType, ) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.decoder_doctor_report_id(decoder_doctor_report_id); ret.is_solved(is_solved); ret.type_(type_); ret } #[doc = "Change the `decodeIssue` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`*"] pub fn decode_issue(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("decodeIssue"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `decoderDoctorReportId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`*"] pub fn decoder_doctor_report_id(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("decoderDoctorReportId"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `docURL` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`*"] pub fn doc_url(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("docURL"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `formats` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`*"] pub fn formats(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("formats"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `isSolved` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`*"] pub fn is_solved(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("isSolved"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `resourceURL` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`*"] pub fn resource_url(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("resourceURL"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "DecoderDoctorNotificationType")] #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`, `DecoderDoctorNotificationType`*"] pub fn type_(&mut self, val: DecoderDoctorNotificationType) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_DecoderDoctorNotificationType.rs000064400000000000000000000012630072674642500230760ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `DecoderDoctorNotificationType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotificationType`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum DecoderDoctorNotificationType { CannotPlay = "cannot-play", PlatformDecoderNotFound = "platform-decoder-not-found", CanPlayButSomeMissingDecoders = "can-play-but-some-missing-decoders", CannotInitializePulseaudio = "cannot-initialize-pulseaudio", UnsupportedLibavcodec = "unsupported-libavcodec", DecodeError = "decode-error", DecodeWarning = "decode-warning", } web-sys-0.3.55/src/features/gen_DedicatedWorkerGlobalScope.rs000064400000000000000000000116500072674642500223210ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = WorkerGlobalScope , extends = EventTarget , extends = :: js_sys :: Object , js_name = DedicatedWorkerGlobalScope , typescript_type = "DedicatedWorkerGlobalScope")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DedicatedWorkerGlobalScope` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DedicatedWorkerGlobalScope`*"] pub type DedicatedWorkerGlobalScope; # [wasm_bindgen (structural , method , getter , js_class = "DedicatedWorkerGlobalScope" , js_name = name)] #[doc = "Getter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DedicatedWorkerGlobalScope`*"] pub fn name(this: &DedicatedWorkerGlobalScope) -> String; # [wasm_bindgen (structural , method , getter , js_class = "DedicatedWorkerGlobalScope" , js_name = onmessage)] #[doc = "Getter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DedicatedWorkerGlobalScope`*"] pub fn onmessage(this: &DedicatedWorkerGlobalScope) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "DedicatedWorkerGlobalScope" , js_name = onmessage)] #[doc = "Setter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DedicatedWorkerGlobalScope`*"] pub fn set_onmessage(this: &DedicatedWorkerGlobalScope, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "DedicatedWorkerGlobalScope" , js_name = onmessageerror)] #[doc = "Getter for the `onmessageerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope/onmessageerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DedicatedWorkerGlobalScope`*"] pub fn onmessageerror(this: &DedicatedWorkerGlobalScope) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "DedicatedWorkerGlobalScope" , js_name = onmessageerror)] #[doc = "Setter for the `onmessageerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope/onmessageerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DedicatedWorkerGlobalScope`*"] pub fn set_onmessageerror( this: &DedicatedWorkerGlobalScope, value: Option<&::js_sys::Function>, ); # [wasm_bindgen (method , structural , js_class = "DedicatedWorkerGlobalScope" , js_name = close)] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DedicatedWorkerGlobalScope`*"] pub fn close(this: &DedicatedWorkerGlobalScope); # [wasm_bindgen (catch , method , structural , js_class = "DedicatedWorkerGlobalScope" , js_name = postMessage)] #[doc = "The `postMessage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope/postMessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DedicatedWorkerGlobalScope`*"] pub fn post_message( this: &DedicatedWorkerGlobalScope, message: &::wasm_bindgen::JsValue, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DedicatedWorkerGlobalScope" , js_name = postMessage)] #[doc = "The `postMessage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope/postMessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DedicatedWorkerGlobalScope`*"] pub fn post_message_with_transfer( this: &DedicatedWorkerGlobalScope, message: &::wasm_bindgen::JsValue, transfer: &::wasm_bindgen::JsValue, ) -> Result<(), JsValue>; } web-sys-0.3.55/src/features/gen_DelayNode.rs000064400000000000000000000042620072674642500170130ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = DelayNode , typescript_type = "DelayNode")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DelayNode` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DelayNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DelayNode`*"] pub type DelayNode; #[cfg(feature = "AudioParam")] # [wasm_bindgen (structural , method , getter , js_class = "DelayNode" , js_name = delayTime)] #[doc = "Getter for the `delayTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DelayNode/delayTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `DelayNode`*"] pub fn delay_time(this: &DelayNode) -> AudioParam; #[cfg(feature = "BaseAudioContext")] #[wasm_bindgen(catch, constructor, js_class = "DelayNode")] #[doc = "The `new DelayNode(..)` constructor, creating a new instance of `DelayNode`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DelayNode/DelayNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `DelayNode`*"] pub fn new(context: &BaseAudioContext) -> Result; #[cfg(all(feature = "BaseAudioContext", feature = "DelayOptions",))] #[wasm_bindgen(catch, constructor, js_class = "DelayNode")] #[doc = "The `new DelayNode(..)` constructor, creating a new instance of `DelayNode`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DelayNode/DelayNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `DelayNode`, `DelayOptions`*"] pub fn new_with_options( context: &BaseAudioContext, options: &DelayOptions, ) -> Result; } web-sys-0.3.55/src/features/gen_DelayOptions.rs000064400000000000000000000076730072674642500175720ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DelayOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DelayOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DelayOptions`*"] pub type DelayOptions; } impl DelayOptions { #[doc = "Construct a new `DelayOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DelayOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DelayOptions`*"] pub fn channel_count(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("channelCount"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "ChannelCountMode")] #[doc = "Change the `channelCountMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelCountMode`, `DelayOptions`*"] pub fn channel_count_mode(&mut self, val: ChannelCountMode) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("channelCountMode"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "ChannelInterpretation")] #[doc = "Change the `channelInterpretation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelInterpretation`, `DelayOptions`*"] pub fn channel_interpretation(&mut self, val: ChannelInterpretation) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("channelInterpretation"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `delayTime` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DelayOptions`*"] pub fn delay_time(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("delayTime"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `maxDelayTime` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DelayOptions`*"] pub fn max_delay_time(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("maxDelayTime"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for DelayOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_DeviceAcceleration.rs000064400000000000000000000036620072674642500206630ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = DeviceAcceleration , typescript_type = "DeviceAcceleration")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DeviceAcceleration` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceAcceleration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceAcceleration`*"] pub type DeviceAcceleration; # [wasm_bindgen (structural , method , getter , js_class = "DeviceAcceleration" , js_name = x)] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceAcceleration/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceAcceleration`*"] pub fn x(this: &DeviceAcceleration) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "DeviceAcceleration" , js_name = y)] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceAcceleration/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceAcceleration`*"] pub fn y(this: &DeviceAcceleration) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "DeviceAcceleration" , js_name = z)] #[doc = "Getter for the `z` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceAcceleration/z)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceAcceleration`*"] pub fn z(this: &DeviceAcceleration) -> Option; } web-sys-0.3.55/src/features/gen_DeviceAccelerationInit.rs000064400000000000000000000047370072674642500215130ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DeviceAccelerationInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DeviceAccelerationInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceAccelerationInit`*"] pub type DeviceAccelerationInit; } impl DeviceAccelerationInit { #[doc = "Construct a new `DeviceAccelerationInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceAccelerationInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `x` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceAccelerationInit`*"] pub fn x(&mut self, val: Option) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("x"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `y` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceAccelerationInit`*"] pub fn y(&mut self, val: Option) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("y"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `z` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceAccelerationInit`*"] pub fn z(&mut self, val: Option) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("z"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for DeviceAccelerationInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_DeviceLightEvent.rs000064400000000000000000000042120072674642500203330ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = DeviceLightEvent , typescript_type = "DeviceLightEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DeviceLightEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceLightEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceLightEvent`*"] pub type DeviceLightEvent; # [wasm_bindgen (structural , method , getter , js_class = "DeviceLightEvent" , js_name = value)] #[doc = "Getter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceLightEvent/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceLightEvent`*"] pub fn value(this: &DeviceLightEvent) -> f64; #[wasm_bindgen(catch, constructor, js_class = "DeviceLightEvent")] #[doc = "The `new DeviceLightEvent(..)` constructor, creating a new instance of `DeviceLightEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceLightEvent/DeviceLightEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceLightEvent`*"] pub fn new(type_: &str) -> Result; #[cfg(feature = "DeviceLightEventInit")] #[wasm_bindgen(catch, constructor, js_class = "DeviceLightEvent")] #[doc = "The `new DeviceLightEvent(..)` constructor, creating a new instance of `DeviceLightEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceLightEvent/DeviceLightEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceLightEvent`, `DeviceLightEventInit`*"] pub fn new_with_event_init_dict( type_: &str, event_init_dict: &DeviceLightEventInit, ) -> Result; } web-sys-0.3.55/src/features/gen_DeviceLightEventInit.rs000064400000000000000000000062340072674642500211650ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DeviceLightEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DeviceLightEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceLightEventInit`*"] pub type DeviceLightEventInit; } impl DeviceLightEventInit { #[doc = "Construct a new `DeviceLightEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceLightEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceLightEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceLightEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceLightEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `value` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceLightEventInit`*"] pub fn value(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("value"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for DeviceLightEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_DeviceMotionEvent.rs000064400000000000000000000076600072674642500205430ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = DeviceMotionEvent , typescript_type = "DeviceMotionEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DeviceMotionEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceMotionEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceMotionEvent`*"] pub type DeviceMotionEvent; #[cfg(feature = "DeviceAcceleration")] # [wasm_bindgen (structural , method , getter , js_class = "DeviceMotionEvent" , js_name = acceleration)] #[doc = "Getter for the `acceleration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceMotionEvent/acceleration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceAcceleration`, `DeviceMotionEvent`*"] pub fn acceleration(this: &DeviceMotionEvent) -> Option; #[cfg(feature = "DeviceAcceleration")] # [wasm_bindgen (structural , method , getter , js_class = "DeviceMotionEvent" , js_name = accelerationIncludingGravity)] #[doc = "Getter for the `accelerationIncludingGravity` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceMotionEvent/accelerationIncludingGravity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceAcceleration`, `DeviceMotionEvent`*"] pub fn acceleration_including_gravity(this: &DeviceMotionEvent) -> Option; #[cfg(feature = "DeviceRotationRate")] # [wasm_bindgen (structural , method , getter , js_class = "DeviceMotionEvent" , js_name = rotationRate)] #[doc = "Getter for the `rotationRate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceMotionEvent/rotationRate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceMotionEvent`, `DeviceRotationRate`*"] pub fn rotation_rate(this: &DeviceMotionEvent) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "DeviceMotionEvent" , js_name = interval)] #[doc = "Getter for the `interval` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceMotionEvent/interval)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceMotionEvent`*"] pub fn interval(this: &DeviceMotionEvent) -> Option; #[wasm_bindgen(catch, constructor, js_class = "DeviceMotionEvent")] #[doc = "The `new DeviceMotionEvent(..)` constructor, creating a new instance of `DeviceMotionEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceMotionEvent/DeviceMotionEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceMotionEvent`*"] pub fn new(type_: &str) -> Result; #[cfg(feature = "DeviceMotionEventInit")] #[wasm_bindgen(catch, constructor, js_class = "DeviceMotionEvent")] #[doc = "The `new DeviceMotionEvent(..)` constructor, creating a new instance of `DeviceMotionEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceMotionEvent/DeviceMotionEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceMotionEvent`, `DeviceMotionEventInit`*"] pub fn new_with_event_init_dict( type_: &str, event_init_dict: &DeviceMotionEventInit, ) -> Result; } web-sys-0.3.55/src/features/gen_DeviceMotionEventInit.rs000064400000000000000000000125140072674642500213610ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DeviceMotionEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DeviceMotionEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceMotionEventInit`*"] pub type DeviceMotionEventInit; } impl DeviceMotionEventInit { #[doc = "Construct a new `DeviceMotionEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceMotionEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceMotionEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceMotionEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceMotionEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "DeviceAccelerationInit")] #[doc = "Change the `acceleration` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceAccelerationInit`, `DeviceMotionEventInit`*"] pub fn acceleration(&mut self, val: &DeviceAccelerationInit) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("acceleration"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "DeviceAccelerationInit")] #[doc = "Change the `accelerationIncludingGravity` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceAccelerationInit`, `DeviceMotionEventInit`*"] pub fn acceleration_including_gravity(&mut self, val: &DeviceAccelerationInit) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("accelerationIncludingGravity"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `interval` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceMotionEventInit`*"] pub fn interval(&mut self, val: Option) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("interval"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "DeviceRotationRateInit")] #[doc = "Change the `rotationRate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceMotionEventInit`, `DeviceRotationRateInit`*"] pub fn rotation_rate(&mut self, val: &DeviceRotationRateInit) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("rotationRate"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for DeviceMotionEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_DeviceOrientationEvent.rs000064400000000000000000000205300072674642500215600ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = DeviceOrientationEvent , typescript_type = "DeviceOrientationEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DeviceOrientationEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEvent`*"] pub type DeviceOrientationEvent; # [wasm_bindgen (structural , method , getter , js_class = "DeviceOrientationEvent" , js_name = alpha)] #[doc = "Getter for the `alpha` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent/alpha)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEvent`*"] pub fn alpha(this: &DeviceOrientationEvent) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "DeviceOrientationEvent" , js_name = beta)] #[doc = "Getter for the `beta` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent/beta)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEvent`*"] pub fn beta(this: &DeviceOrientationEvent) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "DeviceOrientationEvent" , js_name = gamma)] #[doc = "Getter for the `gamma` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent/gamma)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEvent`*"] pub fn gamma(this: &DeviceOrientationEvent) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "DeviceOrientationEvent" , js_name = absolute)] #[doc = "Getter for the `absolute` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent/absolute)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEvent`*"] pub fn absolute(this: &DeviceOrientationEvent) -> bool; #[wasm_bindgen(catch, constructor, js_class = "DeviceOrientationEvent")] #[doc = "The `new DeviceOrientationEvent(..)` constructor, creating a new instance of `DeviceOrientationEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent/DeviceOrientationEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEvent`*"] pub fn new(type_: &str) -> Result; #[cfg(feature = "DeviceOrientationEventInit")] #[wasm_bindgen(catch, constructor, js_class = "DeviceOrientationEvent")] #[doc = "The `new DeviceOrientationEvent(..)` constructor, creating a new instance of `DeviceOrientationEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent/DeviceOrientationEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEvent`, `DeviceOrientationEventInit`*"] pub fn new_with_event_init_dict( type_: &str, event_init_dict: &DeviceOrientationEventInit, ) -> Result; # [wasm_bindgen (method , structural , js_class = "DeviceOrientationEvent" , js_name = initDeviceOrientationEvent)] #[doc = "The `initDeviceOrientationEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent/initDeviceOrientationEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEvent`*"] pub fn init_device_orientation_event(this: &DeviceOrientationEvent, type_: &str); # [wasm_bindgen (method , structural , js_class = "DeviceOrientationEvent" , js_name = initDeviceOrientationEvent)] #[doc = "The `initDeviceOrientationEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent/initDeviceOrientationEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEvent`*"] pub fn init_device_orientation_event_with_can_bubble( this: &DeviceOrientationEvent, type_: &str, can_bubble: bool, ); # [wasm_bindgen (method , structural , js_class = "DeviceOrientationEvent" , js_name = initDeviceOrientationEvent)] #[doc = "The `initDeviceOrientationEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent/initDeviceOrientationEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEvent`*"] pub fn init_device_orientation_event_with_can_bubble_and_cancelable( this: &DeviceOrientationEvent, type_: &str, can_bubble: bool, cancelable: bool, ); # [wasm_bindgen (method , structural , js_class = "DeviceOrientationEvent" , js_name = initDeviceOrientationEvent)] #[doc = "The `initDeviceOrientationEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent/initDeviceOrientationEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEvent`*"] pub fn init_device_orientation_event_with_can_bubble_and_cancelable_and_alpha( this: &DeviceOrientationEvent, type_: &str, can_bubble: bool, cancelable: bool, alpha: Option, ); # [wasm_bindgen (method , structural , js_class = "DeviceOrientationEvent" , js_name = initDeviceOrientationEvent)] #[doc = "The `initDeviceOrientationEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent/initDeviceOrientationEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEvent`*"] pub fn init_device_orientation_event_with_can_bubble_and_cancelable_and_alpha_and_beta( this: &DeviceOrientationEvent, type_: &str, can_bubble: bool, cancelable: bool, alpha: Option, beta: Option, ); # [wasm_bindgen (method , structural , js_class = "DeviceOrientationEvent" , js_name = initDeviceOrientationEvent)] #[doc = "The `initDeviceOrientationEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent/initDeviceOrientationEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEvent`*"] pub fn init_device_orientation_event_with_can_bubble_and_cancelable_and_alpha_and_beta_and_gamma( this: &DeviceOrientationEvent, type_: &str, can_bubble: bool, cancelable: bool, alpha: Option, beta: Option, gamma: Option, ); # [wasm_bindgen (method , structural , js_class = "DeviceOrientationEvent" , js_name = initDeviceOrientationEvent)] #[doc = "The `initDeviceOrientationEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent/initDeviceOrientationEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEvent`*"] pub fn init_device_orientation_event_with_can_bubble_and_cancelable_and_alpha_and_beta_and_gamma_and_absolute( this: &DeviceOrientationEvent, type_: &str, can_bubble: bool, cancelable: bool, alpha: Option, beta: Option, gamma: Option, absolute: bool, ); } web-sys-0.3.55/src/features/gen_DeviceOrientationEventInit.rs000064400000000000000000000116170072674642500224120ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DeviceOrientationEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DeviceOrientationEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEventInit`*"] pub type DeviceOrientationEventInit; } impl DeviceOrientationEventInit { #[doc = "Construct a new `DeviceOrientationEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `absolute` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEventInit`*"] pub fn absolute(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("absolute"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `alpha` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEventInit`*"] pub fn alpha(&mut self, val: Option) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("alpha"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `beta` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEventInit`*"] pub fn beta(&mut self, val: Option) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("beta"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `gamma` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEventInit`*"] pub fn gamma(&mut self, val: Option) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("gamma"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for DeviceOrientationEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_DeviceProximityEvent.rs000064400000000000000000000062160072674642500212760ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = DeviceProximityEvent , typescript_type = "DeviceProximityEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DeviceProximityEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceProximityEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceProximityEvent`*"] pub type DeviceProximityEvent; # [wasm_bindgen (structural , method , getter , js_class = "DeviceProximityEvent" , js_name = value)] #[doc = "Getter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceProximityEvent/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceProximityEvent`*"] pub fn value(this: &DeviceProximityEvent) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "DeviceProximityEvent" , js_name = min)] #[doc = "Getter for the `min` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceProximityEvent/min)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceProximityEvent`*"] pub fn min(this: &DeviceProximityEvent) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "DeviceProximityEvent" , js_name = max)] #[doc = "Getter for the `max` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceProximityEvent/max)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceProximityEvent`*"] pub fn max(this: &DeviceProximityEvent) -> f64; #[wasm_bindgen(catch, constructor, js_class = "DeviceProximityEvent")] #[doc = "The `new DeviceProximityEvent(..)` constructor, creating a new instance of `DeviceProximityEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceProximityEvent/DeviceProximityEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceProximityEvent`*"] pub fn new(type_: &str) -> Result; #[cfg(feature = "DeviceProximityEventInit")] #[wasm_bindgen(catch, constructor, js_class = "DeviceProximityEvent")] #[doc = "The `new DeviceProximityEvent(..)` constructor, creating a new instance of `DeviceProximityEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceProximityEvent/DeviceProximityEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceProximityEvent`, `DeviceProximityEventInit`*"] pub fn new_with_event_init_dict( type_: &str, event_init_dict: &DeviceProximityEventInit, ) -> Result; } web-sys-0.3.55/src/features/gen_DeviceProximityEventInit.rs000064400000000000000000000103720072674642500221200ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DeviceProximityEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DeviceProximityEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceProximityEventInit`*"] pub type DeviceProximityEventInit; } impl DeviceProximityEventInit { #[doc = "Construct a new `DeviceProximityEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceProximityEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceProximityEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceProximityEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceProximityEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `max` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceProximityEventInit`*"] pub fn max(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("max"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `min` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceProximityEventInit`*"] pub fn min(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("min"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `value` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceProximityEventInit`*"] pub fn value(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("value"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for DeviceProximityEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_DeviceRotationRate.rs000064400000000000000000000037360072674642500207070ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = DeviceRotationRate , typescript_type = "DeviceRotationRate")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DeviceRotationRate` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceRotationRate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceRotationRate`*"] pub type DeviceRotationRate; # [wasm_bindgen (structural , method , getter , js_class = "DeviceRotationRate" , js_name = alpha)] #[doc = "Getter for the `alpha` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceRotationRate/alpha)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceRotationRate`*"] pub fn alpha(this: &DeviceRotationRate) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "DeviceRotationRate" , js_name = beta)] #[doc = "Getter for the `beta` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceRotationRate/beta)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceRotationRate`*"] pub fn beta(this: &DeviceRotationRate) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "DeviceRotationRate" , js_name = gamma)] #[doc = "Getter for the `gamma` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceRotationRate/gamma)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceRotationRate`*"] pub fn gamma(this: &DeviceRotationRate) -> Option; } web-sys-0.3.55/src/features/gen_DeviceRotationRateInit.rs000064400000000000000000000050000072674642500215150ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DeviceRotationRateInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DeviceRotationRateInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceRotationRateInit`*"] pub type DeviceRotationRateInit; } impl DeviceRotationRateInit { #[doc = "Construct a new `DeviceRotationRateInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceRotationRateInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `alpha` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceRotationRateInit`*"] pub fn alpha(&mut self, val: Option) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("alpha"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `beta` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceRotationRateInit`*"] pub fn beta(&mut self, val: Option) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("beta"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `gamma` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceRotationRateInit`*"] pub fn gamma(&mut self, val: Option) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("gamma"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for DeviceRotationRateInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_DhKeyDeriveParams.rs000064400000000000000000000040060072674642500204520ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DhKeyDeriveParams)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DhKeyDeriveParams` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DhKeyDeriveParams`*"] pub type DhKeyDeriveParams; } impl DhKeyDeriveParams { #[cfg(feature = "CryptoKey")] #[doc = "Construct a new `DhKeyDeriveParams`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `DhKeyDeriveParams`*"] pub fn new(name: &str, public: &CryptoKey) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.name(name); ret.public(public); ret } #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DhKeyDeriveParams`*"] pub fn name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "CryptoKey")] #[doc = "Change the `public` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `DhKeyDeriveParams`*"] pub fn public(&mut self, val: &CryptoKey) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("public"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_DirectionSetting.rs000064400000000000000000000005240072674642500204220ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `DirectionSetting` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DirectionSetting`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum DirectionSetting { None = "", Rl = "rl", Lr = "lr", } web-sys-0.3.55/src/features/gen_Directory.rs000064400000000000000000000055040072674642500171130ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Directory , typescript_type = "Directory")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Directory` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Directory)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Directory`*"] pub type Directory; # [wasm_bindgen (structural , catch , method , getter , js_class = "Directory" , js_name = name)] #[doc = "Getter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Directory/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Directory`*"] pub fn name(this: &Directory) -> Result; # [wasm_bindgen (structural , catch , method , getter , js_class = "Directory" , js_name = path)] #[doc = "Getter for the `path` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Directory/path)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Directory`*"] pub fn path(this: &Directory) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Directory" , js_name = getFiles)] #[doc = "The `getFiles()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Directory/getFiles)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Directory`*"] pub fn get_files(this: &Directory) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Directory" , js_name = getFiles)] #[doc = "The `getFiles()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Directory/getFiles)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Directory`*"] pub fn get_files_with_recursive_flag( this: &Directory, recursive_flag: bool, ) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Directory" , js_name = getFilesAndDirectories)] #[doc = "The `getFilesAndDirectories()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Directory/getFilesAndDirectories)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Directory`*"] pub fn get_files_and_directories(this: &Directory) -> Result<::js_sys::Promise, JsValue>; } web-sys-0.3.55/src/features/gen_DisplayMediaStreamConstraints.rs000064400000000000000000000041000072674642500231070ustar 00000000000000#![allow(unused_imports)] 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; } 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 } #[doc = "Change the `audio` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DisplayMediaStreamConstraints`*"] pub fn audio(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("audio"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `video` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DisplayMediaStreamConstraints`*"] pub fn video(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("video"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for DisplayMediaStreamConstraints { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_DisplayNameOptions.rs000064400000000000000000000036730072674642500207360ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DisplayNameOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DisplayNameOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DisplayNameOptions`*"] pub type DisplayNameOptions; } impl DisplayNameOptions { #[doc = "Construct a new `DisplayNameOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DisplayNameOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `keys` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DisplayNameOptions`*"] pub fn keys(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("keys"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `style` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DisplayNameOptions`*"] pub fn style(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("style"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for DisplayNameOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_DisplayNameResult.rs000064400000000000000000000036570072674642500205630ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DisplayNameResult)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DisplayNameResult` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DisplayNameResult`*"] pub type DisplayNameResult; } impl DisplayNameResult { #[doc = "Construct a new `DisplayNameResult`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DisplayNameResult`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `locale` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DisplayNameResult`*"] pub fn locale(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("locale"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `style` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DisplayNameResult`*"] pub fn style(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("style"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for DisplayNameResult { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_DistanceModelType.rs000064400000000000000000000005730072674642500205250ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `DistanceModelType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DistanceModelType`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum DistanceModelType { Linear = "linear", Inverse = "inverse", Exponential = "exponential", } web-sys-0.3.55/src/features/gen_DnsCacheDict.rs000064400000000000000000000026450072674642500174260ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DNSCacheDict)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DnsCacheDict` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DnsCacheDict`*"] pub type DnsCacheDict; } impl DnsCacheDict { #[doc = "Construct a new `DnsCacheDict`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DnsCacheDict`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `entries` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DnsCacheDict`*"] pub fn entries(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("entries"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for DnsCacheDict { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_DnsCacheEntry.rs000064400000000000000000000071730072674642500176450ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DnsCacheEntry)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DnsCacheEntry` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DnsCacheEntry`*"] pub type DnsCacheEntry; } impl DnsCacheEntry { #[doc = "Construct a new `DnsCacheEntry`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DnsCacheEntry`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `expiration` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DnsCacheEntry`*"] pub fn expiration(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("expiration"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `family` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DnsCacheEntry`*"] pub fn family(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("family"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `hostaddr` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DnsCacheEntry`*"] pub fn hostaddr(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("hostaddr"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `hostname` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DnsCacheEntry`*"] pub fn hostname(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("hostname"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `trr` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DnsCacheEntry`*"] pub fn trr(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("trr"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for DnsCacheEntry { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_DnsLookupDict.rs000064400000000000000000000047430072674642500176750ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DNSLookupDict)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DnsLookupDict` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DnsLookupDict`*"] pub type DnsLookupDict; } impl DnsLookupDict { #[doc = "Construct a new `DnsLookupDict`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DnsLookupDict`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `address` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DnsLookupDict`*"] pub fn address(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("address"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `answer` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DnsLookupDict`*"] pub fn answer(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("answer"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `error` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DnsLookupDict`*"] pub fn error(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("error"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for DnsLookupDict { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_Document.rs000064400000000000000000005427510072674642500167370ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = Document , typescript_type = "Document")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Document` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub type Document; #[cfg(feature = "DomImplementation")] # [wasm_bindgen (structural , catch , method , getter , js_class = "Document" , js_name = implementation)] #[doc = "Getter for the `implementation` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/implementation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `DomImplementation`*"] pub fn implementation(this: &Document) -> Result; # [wasm_bindgen (structural , catch , method , getter , js_class = "Document" , js_name = URL)] #[doc = "Getter for the `URL` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/URL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn url(this: &Document) -> Result; # [wasm_bindgen (structural , catch , method , getter , js_class = "Document" , js_name = documentURI)] #[doc = "Getter for the `documentURI` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/documentURI)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn document_uri(this: &Document) -> Result; # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = compatMode)] #[doc = "Getter for the `compatMode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/compatMode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn compat_mode(this: &Document) -> String; # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = characterSet)] #[doc = "Getter for the `characterSet` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/characterSet)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn character_set(this: &Document) -> String; # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = charset)] #[doc = "Getter for the `charset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/charset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn charset(this: &Document) -> String; # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = inputEncoding)] #[doc = "Getter for the `inputEncoding` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/inputEncoding)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn input_encoding(this: &Document) -> String; # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = contentType)] #[doc = "Getter for the `contentType` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/contentType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn content_type(this: &Document) -> String; #[cfg(feature = "DocumentType")] # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = doctype)] #[doc = "Getter for the `doctype` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/doctype)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `DocumentType`*"] pub fn doctype(this: &Document) -> Option; #[cfg(feature = "Element")] # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = documentElement)] #[doc = "Getter for the `documentElement` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/documentElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"] pub fn document_element(this: &Document) -> Option; #[cfg(feature = "Location")] # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = location)] #[doc = "Getter for the `location` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/location)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `Location`*"] pub fn location(this: &Document) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = referrer)] #[doc = "Getter for the `referrer` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/referrer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn referrer(this: &Document) -> String; # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = lastModified)] #[doc = "Getter for the `lastModified` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/lastModified)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn last_modified(this: &Document) -> String; # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = readyState)] #[doc = "Getter for the `readyState` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/readyState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn ready_state(this: &Document) -> String; # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = title)] #[doc = "Getter for the `title` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/title)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn title(this: &Document) -> String; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = title)] #[doc = "Setter for the `title` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/title)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_title(this: &Document, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = dir)] #[doc = "Getter for the `dir` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/dir)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn dir(this: &Document) -> String; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = dir)] #[doc = "Setter for the `dir` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/dir)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_dir(this: &Document, value: &str); #[cfg(feature = "HtmlElement")] # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = body)] #[doc = "Getter for the `body` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/body)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlElement`*"] pub fn body(this: &Document) -> Option; #[cfg(feature = "HtmlElement")] # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = body)] #[doc = "Setter for the `body` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/body)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlElement`*"] pub fn set_body(this: &Document, value: Option<&HtmlElement>); #[cfg(feature = "HtmlHeadElement")] # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = head)] #[doc = "Getter for the `head` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/head)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlHeadElement`*"] pub fn head(this: &Document) -> Option; #[cfg(feature = "HtmlCollection")] # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = images)] #[doc = "Getter for the `images` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/images)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlCollection`*"] pub fn images(this: &Document) -> HtmlCollection; #[cfg(feature = "HtmlCollection")] # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = embeds)] #[doc = "Getter for the `embeds` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/embeds)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlCollection`*"] pub fn embeds(this: &Document) -> HtmlCollection; #[cfg(feature = "HtmlCollection")] # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = plugins)] #[doc = "Getter for the `plugins` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/plugins)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlCollection`*"] pub fn plugins(this: &Document) -> HtmlCollection; #[cfg(feature = "HtmlCollection")] # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = links)] #[doc = "Getter for the `links` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/links)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlCollection`*"] pub fn links(this: &Document) -> HtmlCollection; #[cfg(feature = "HtmlCollection")] # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = forms)] #[doc = "Getter for the `forms` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/forms)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlCollection`*"] pub fn forms(this: &Document) -> HtmlCollection; #[cfg(feature = "HtmlCollection")] # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = scripts)] #[doc = "Getter for the `scripts` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/scripts)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlCollection`*"] pub fn scripts(this: &Document) -> HtmlCollection; #[cfg(feature = "Window")] # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = defaultView)] #[doc = "Getter for the `defaultView` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/defaultView)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `Window`*"] pub fn default_view(this: &Document) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onreadystatechange)] #[doc = "Getter for the `onreadystatechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onreadystatechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onreadystatechange(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onreadystatechange)] #[doc = "Setter for the `onreadystatechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onreadystatechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onreadystatechange(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onbeforescriptexecute)] #[doc = "Getter for the `onbeforescriptexecute` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onbeforescriptexecute)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onbeforescriptexecute(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onbeforescriptexecute)] #[doc = "Setter for the `onbeforescriptexecute` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onbeforescriptexecute)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onbeforescriptexecute(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onafterscriptexecute)] #[doc = "Getter for the `onafterscriptexecute` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onafterscriptexecute)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onafterscriptexecute(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onafterscriptexecute)] #[doc = "Setter for the `onafterscriptexecute` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onafterscriptexecute)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onafterscriptexecute(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onselectionchange)] #[doc = "Getter for the `onselectionchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onselectionchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onselectionchange(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onselectionchange)] #[doc = "Setter for the `onselectionchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onselectionchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onselectionchange(this: &Document, value: Option<&::js_sys::Function>); #[cfg(feature = "Element")] # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = currentScript)] #[doc = "Getter for the `currentScript` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/currentScript)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"] pub fn current_script(this: &Document) -> Option; #[cfg(feature = "HtmlCollection")] # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = anchors)] #[doc = "Getter for the `anchors` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/anchors)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlCollection`*"] pub fn anchors(this: &Document) -> HtmlCollection; #[cfg(feature = "HtmlCollection")] # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = applets)] #[doc = "Getter for the `applets` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/applets)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlCollection`*"] pub fn applets(this: &Document) -> HtmlCollection; # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = fullscreen)] #[doc = "Getter for the `fullscreen` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/fullscreen)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn fullscreen(this: &Document) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = fullscreenEnabled)] #[doc = "Getter for the `fullscreenEnabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/fullscreenEnabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn fullscreen_enabled(this: &Document) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onfullscreenchange)] #[doc = "Getter for the `onfullscreenchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onfullscreenchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onfullscreenchange(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onfullscreenchange)] #[doc = "Setter for the `onfullscreenchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onfullscreenchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onfullscreenchange(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onfullscreenerror)] #[doc = "Getter for the `onfullscreenerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onfullscreenerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onfullscreenerror(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onfullscreenerror)] #[doc = "Setter for the `onfullscreenerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onfullscreenerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onfullscreenerror(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onpointerlockchange)] #[doc = "Getter for the `onpointerlockchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerlockchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onpointerlockchange(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onpointerlockchange)] #[doc = "Setter for the `onpointerlockchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerlockchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onpointerlockchange(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onpointerlockerror)] #[doc = "Getter for the `onpointerlockerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerlockerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onpointerlockerror(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onpointerlockerror)] #[doc = "Setter for the `onpointerlockerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerlockerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onpointerlockerror(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = hidden)] #[doc = "Getter for the `hidden` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/hidden)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn hidden(this: &Document) -> bool; #[cfg(feature = "VisibilityState")] # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = visibilityState)] #[doc = "Getter for the `visibilityState` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/visibilityState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `VisibilityState`*"] pub fn visibility_state(this: &Document) -> VisibilityState; # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onvisibilitychange)] #[doc = "Getter for the `onvisibilitychange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onvisibilitychange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onvisibilitychange(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onvisibilitychange)] #[doc = "Setter for the `onvisibilitychange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onvisibilitychange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onvisibilitychange(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = selectedStyleSheetSet)] #[doc = "Getter for the `selectedStyleSheetSet` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/selectedStyleSheetSet)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn selected_style_sheet_set(this: &Document) -> Option; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = selectedStyleSheetSet)] #[doc = "Setter for the `selectedStyleSheetSet` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/selectedStyleSheetSet)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_selected_style_sheet_set(this: &Document, value: Option<&str>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = lastStyleSheetSet)] #[doc = "Getter for the `lastStyleSheetSet` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/lastStyleSheetSet)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn last_style_sheet_set(this: &Document) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = preferredStyleSheetSet)] #[doc = "Getter for the `preferredStyleSheetSet` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/preferredStyleSheetSet)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn preferred_style_sheet_set(this: &Document) -> Option; #[cfg(feature = "DomStringList")] # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = styleSheetSets)] #[doc = "Getter for the `styleSheetSets` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/styleSheetSets)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `DomStringList`*"] pub fn style_sheet_sets(this: &Document) -> DomStringList; #[cfg(feature = "Element")] # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = scrollingElement)] #[doc = "Getter for the `scrollingElement` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/scrollingElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"] pub fn scrolling_element(this: &Document) -> Option; #[cfg(feature = "DocumentTimeline")] # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = timeline)] #[doc = "Getter for the `timeline` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/timeline)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `DocumentTimeline`*"] pub fn timeline(this: &Document) -> DocumentTimeline; #[cfg(feature = "SvgsvgElement")] # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = rootElement)] #[doc = "Getter for the `rootElement` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/rootElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `SvgsvgElement`*"] pub fn root_element(this: &Document) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = oncopy)] #[doc = "Getter for the `oncopy` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oncopy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn oncopy(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = oncopy)] #[doc = "Setter for the `oncopy` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oncopy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_oncopy(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = oncut)] #[doc = "Getter for the `oncut` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oncut)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn oncut(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = oncut)] #[doc = "Setter for the `oncut` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oncut)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_oncut(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onpaste)] #[doc = "Getter for the `onpaste` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpaste)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onpaste(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onpaste)] #[doc = "Setter for the `onpaste` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpaste)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onpaste(this: &Document, value: Option<&::js_sys::Function>); #[cfg(feature = "Element")] # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = activeElement)] #[doc = "Getter for the `activeElement` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/activeElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"] pub fn active_element(this: &Document) -> Option; #[cfg(feature = "StyleSheetList")] # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = styleSheets)] #[doc = "Getter for the `styleSheets` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/styleSheets)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `StyleSheetList`*"] pub fn style_sheets(this: &Document) -> StyleSheetList; #[cfg(feature = "Element")] # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = pointerLockElement)] #[doc = "Getter for the `pointerLockElement` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/pointerLockElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"] pub fn pointer_lock_element(this: &Document) -> Option; #[cfg(feature = "Element")] # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = fullscreenElement)] #[doc = "Getter for the `fullscreenElement` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/fullscreenElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"] pub fn fullscreen_element(this: &Document) -> Option; #[cfg(feature = "FontFaceSet")] # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = fonts)] #[doc = "Getter for the `fonts` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/fonts)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `FontFaceSet`*"] pub fn fonts(this: &Document) -> FontFaceSet; # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onabort)] #[doc = "Getter for the `onabort` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onabort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onabort(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onabort)] #[doc = "Setter for the `onabort` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onabort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onabort(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onblur)] #[doc = "Getter for the `onblur` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onblur)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onblur(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onblur)] #[doc = "Setter for the `onblur` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onblur)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onblur(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onfocus)] #[doc = "Getter for the `onfocus` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onfocus)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onfocus(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onfocus)] #[doc = "Setter for the `onfocus` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onfocus)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onfocus(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onauxclick)] #[doc = "Getter for the `onauxclick` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onauxclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onauxclick(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onauxclick)] #[doc = "Setter for the `onauxclick` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onauxclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onauxclick(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = oncanplay)] #[doc = "Getter for the `oncanplay` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oncanplay)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn oncanplay(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = oncanplay)] #[doc = "Setter for the `oncanplay` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oncanplay)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_oncanplay(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = oncanplaythrough)] #[doc = "Getter for the `oncanplaythrough` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oncanplaythrough)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn oncanplaythrough(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = oncanplaythrough)] #[doc = "Setter for the `oncanplaythrough` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oncanplaythrough)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_oncanplaythrough(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onchange)] #[doc = "Getter for the `onchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onchange(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onchange)] #[doc = "Setter for the `onchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onchange(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onclick)] #[doc = "Getter for the `onclick` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onclick(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onclick)] #[doc = "Setter for the `onclick` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onclick(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onclose)] #[doc = "Getter for the `onclose` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onclose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onclose(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onclose)] #[doc = "Setter for the `onclose` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onclose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onclose(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = oncontextmenu)] #[doc = "Getter for the `oncontextmenu` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oncontextmenu)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn oncontextmenu(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = oncontextmenu)] #[doc = "Setter for the `oncontextmenu` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oncontextmenu)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_oncontextmenu(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = ondblclick)] #[doc = "Getter for the `ondblclick` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondblclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn ondblclick(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = ondblclick)] #[doc = "Setter for the `ondblclick` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondblclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_ondblclick(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = ondrag)] #[doc = "Getter for the `ondrag` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondrag)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn ondrag(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = ondrag)] #[doc = "Setter for the `ondrag` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondrag)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_ondrag(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = ondragend)] #[doc = "Getter for the `ondragend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondragend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn ondragend(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = ondragend)] #[doc = "Setter for the `ondragend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondragend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_ondragend(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = ondragenter)] #[doc = "Getter for the `ondragenter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondragenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn ondragenter(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = ondragenter)] #[doc = "Setter for the `ondragenter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondragenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_ondragenter(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = ondragexit)] #[doc = "Getter for the `ondragexit` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondragexit)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn ondragexit(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = ondragexit)] #[doc = "Setter for the `ondragexit` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondragexit)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_ondragexit(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = ondragleave)] #[doc = "Getter for the `ondragleave` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondragleave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn ondragleave(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = ondragleave)] #[doc = "Setter for the `ondragleave` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondragleave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_ondragleave(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = ondragover)] #[doc = "Getter for the `ondragover` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondragover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn ondragover(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = ondragover)] #[doc = "Setter for the `ondragover` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondragover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_ondragover(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = ondragstart)] #[doc = "Getter for the `ondragstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondragstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn ondragstart(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = ondragstart)] #[doc = "Setter for the `ondragstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondragstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_ondragstart(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = ondrop)] #[doc = "Getter for the `ondrop` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondrop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn ondrop(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = ondrop)] #[doc = "Setter for the `ondrop` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondrop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_ondrop(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = ondurationchange)] #[doc = "Getter for the `ondurationchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondurationchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn ondurationchange(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = ondurationchange)] #[doc = "Setter for the `ondurationchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondurationchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_ondurationchange(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onemptied)] #[doc = "Getter for the `onemptied` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onemptied)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onemptied(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onemptied)] #[doc = "Setter for the `onemptied` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onemptied)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onemptied(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onended)] #[doc = "Getter for the `onended` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onended)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onended(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onended)] #[doc = "Setter for the `onended` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onended)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onended(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = oninput)] #[doc = "Getter for the `oninput` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oninput)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn oninput(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = oninput)] #[doc = "Setter for the `oninput` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oninput)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_oninput(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = oninvalid)] #[doc = "Getter for the `oninvalid` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oninvalid)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn oninvalid(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = oninvalid)] #[doc = "Setter for the `oninvalid` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oninvalid)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_oninvalid(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onkeydown)] #[doc = "Getter for the `onkeydown` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onkeydown)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onkeydown(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onkeydown)] #[doc = "Setter for the `onkeydown` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onkeydown)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onkeydown(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onkeypress)] #[doc = "Getter for the `onkeypress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onkeypress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onkeypress(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onkeypress)] #[doc = "Setter for the `onkeypress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onkeypress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onkeypress(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onkeyup)] #[doc = "Getter for the `onkeyup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onkeyup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onkeyup(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onkeyup)] #[doc = "Setter for the `onkeyup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onkeyup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onkeyup(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onload)] #[doc = "Getter for the `onload` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onload(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onload)] #[doc = "Setter for the `onload` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onload(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onloadeddata)] #[doc = "Getter for the `onloadeddata` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onloadeddata)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onloadeddata(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onloadeddata)] #[doc = "Setter for the `onloadeddata` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onloadeddata)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onloadeddata(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onloadedmetadata)] #[doc = "Getter for the `onloadedmetadata` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onloadedmetadata)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onloadedmetadata(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onloadedmetadata)] #[doc = "Setter for the `onloadedmetadata` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onloadedmetadata)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onloadedmetadata(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onloadend)] #[doc = "Getter for the `onloadend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onloadend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onloadend(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onloadend)] #[doc = "Setter for the `onloadend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onloadend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onloadend(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onloadstart)] #[doc = "Getter for the `onloadstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onloadstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onloadstart(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onloadstart)] #[doc = "Setter for the `onloadstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onloadstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onloadstart(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onmousedown)] #[doc = "Getter for the `onmousedown` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onmousedown)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onmousedown(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onmousedown)] #[doc = "Setter for the `onmousedown` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onmousedown)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onmousedown(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onmouseenter)] #[doc = "Getter for the `onmouseenter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onmouseenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onmouseenter(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onmouseenter)] #[doc = "Setter for the `onmouseenter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onmouseenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onmouseenter(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onmouseleave)] #[doc = "Getter for the `onmouseleave` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onmouseleave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onmouseleave(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onmouseleave)] #[doc = "Setter for the `onmouseleave` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onmouseleave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onmouseleave(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onmousemove)] #[doc = "Getter for the `onmousemove` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onmousemove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onmousemove(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onmousemove)] #[doc = "Setter for the `onmousemove` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onmousemove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onmousemove(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onmouseout)] #[doc = "Getter for the `onmouseout` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onmouseout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onmouseout(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onmouseout)] #[doc = "Setter for the `onmouseout` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onmouseout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onmouseout(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onmouseover)] #[doc = "Getter for the `onmouseover` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onmouseover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onmouseover(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onmouseover)] #[doc = "Setter for the `onmouseover` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onmouseover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onmouseover(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onmouseup)] #[doc = "Getter for the `onmouseup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onmouseup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onmouseup(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onmouseup)] #[doc = "Setter for the `onmouseup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onmouseup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onmouseup(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onwheel)] #[doc = "Getter for the `onwheel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onwheel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onwheel(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onwheel)] #[doc = "Setter for the `onwheel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onwheel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onwheel(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onpause)] #[doc = "Getter for the `onpause` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpause)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onpause(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onpause)] #[doc = "Setter for the `onpause` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpause)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onpause(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onplay)] #[doc = "Getter for the `onplay` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onplay)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onplay(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onplay)] #[doc = "Setter for the `onplay` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onplay)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onplay(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onplaying)] #[doc = "Getter for the `onplaying` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onplaying)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onplaying(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onplaying)] #[doc = "Setter for the `onplaying` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onplaying)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onplaying(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onprogress)] #[doc = "Getter for the `onprogress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onprogress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onprogress(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onprogress)] #[doc = "Setter for the `onprogress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onprogress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onprogress(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onratechange)] #[doc = "Getter for the `onratechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onratechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onratechange(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onratechange)] #[doc = "Setter for the `onratechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onratechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onratechange(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onreset)] #[doc = "Getter for the `onreset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onreset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onreset(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onreset)] #[doc = "Setter for the `onreset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onreset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onreset(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onresize)] #[doc = "Getter for the `onresize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onresize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onresize(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onresize)] #[doc = "Setter for the `onresize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onresize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onresize(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onscroll)] #[doc = "Getter for the `onscroll` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onscroll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onscroll(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onscroll)] #[doc = "Setter for the `onscroll` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onscroll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onscroll(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onseeked)] #[doc = "Getter for the `onseeked` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onseeked)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onseeked(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onseeked)] #[doc = "Setter for the `onseeked` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onseeked)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onseeked(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onseeking)] #[doc = "Getter for the `onseeking` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onseeking)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onseeking(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onseeking)] #[doc = "Setter for the `onseeking` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onseeking)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onseeking(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onselect)] #[doc = "Getter for the `onselect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onselect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onselect(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onselect)] #[doc = "Setter for the `onselect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onselect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onselect(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onshow)] #[doc = "Getter for the `onshow` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onshow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onshow(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onshow)] #[doc = "Setter for the `onshow` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onshow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onshow(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onstalled)] #[doc = "Getter for the `onstalled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onstalled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onstalled(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onstalled)] #[doc = "Setter for the `onstalled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onstalled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onstalled(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onsubmit)] #[doc = "Getter for the `onsubmit` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onsubmit)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onsubmit(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onsubmit)] #[doc = "Setter for the `onsubmit` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onsubmit)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onsubmit(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onsuspend)] #[doc = "Getter for the `onsuspend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onsuspend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onsuspend(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onsuspend)] #[doc = "Setter for the `onsuspend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onsuspend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onsuspend(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = ontimeupdate)] #[doc = "Getter for the `ontimeupdate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontimeupdate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn ontimeupdate(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = ontimeupdate)] #[doc = "Setter for the `ontimeupdate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontimeupdate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_ontimeupdate(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onvolumechange)] #[doc = "Getter for the `onvolumechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onvolumechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onvolumechange(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onvolumechange)] #[doc = "Setter for the `onvolumechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onvolumechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onvolumechange(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onwaiting)] #[doc = "Getter for the `onwaiting` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onwaiting)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onwaiting(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onwaiting)] #[doc = "Setter for the `onwaiting` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onwaiting)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onwaiting(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onselectstart)] #[doc = "Getter for the `onselectstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onselectstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onselectstart(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onselectstart)] #[doc = "Setter for the `onselectstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onselectstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onselectstart(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = ontoggle)] #[doc = "Getter for the `ontoggle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontoggle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn ontoggle(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = ontoggle)] #[doc = "Setter for the `ontoggle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontoggle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_ontoggle(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onpointercancel)] #[doc = "Getter for the `onpointercancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointercancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onpointercancel(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onpointercancel)] #[doc = "Setter for the `onpointercancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointercancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onpointercancel(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onpointerdown)] #[doc = "Getter for the `onpointerdown` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerdown)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onpointerdown(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onpointerdown)] #[doc = "Setter for the `onpointerdown` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerdown)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onpointerdown(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onpointerup)] #[doc = "Getter for the `onpointerup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onpointerup(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onpointerup)] #[doc = "Setter for the `onpointerup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onpointerup(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onpointermove)] #[doc = "Getter for the `onpointermove` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointermove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onpointermove(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onpointermove)] #[doc = "Setter for the `onpointermove` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointermove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onpointermove(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onpointerout)] #[doc = "Getter for the `onpointerout` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onpointerout(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onpointerout)] #[doc = "Setter for the `onpointerout` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onpointerout(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onpointerover)] #[doc = "Getter for the `onpointerover` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onpointerover(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onpointerover)] #[doc = "Setter for the `onpointerover` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onpointerover(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onpointerenter)] #[doc = "Getter for the `onpointerenter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onpointerenter(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onpointerenter)] #[doc = "Setter for the `onpointerenter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onpointerenter(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onpointerleave)] #[doc = "Getter for the `onpointerleave` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerleave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onpointerleave(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onpointerleave)] #[doc = "Setter for the `onpointerleave` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerleave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onpointerleave(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = ongotpointercapture)] #[doc = "Getter for the `ongotpointercapture` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ongotpointercapture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn ongotpointercapture(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = ongotpointercapture)] #[doc = "Setter for the `ongotpointercapture` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ongotpointercapture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_ongotpointercapture(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onlostpointercapture)] #[doc = "Getter for the `onlostpointercapture` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onlostpointercapture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onlostpointercapture(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onlostpointercapture)] #[doc = "Setter for the `onlostpointercapture` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onlostpointercapture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onlostpointercapture(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onanimationcancel)] #[doc = "Getter for the `onanimationcancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onanimationcancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onanimationcancel(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onanimationcancel)] #[doc = "Setter for the `onanimationcancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onanimationcancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onanimationcancel(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onanimationend)] #[doc = "Getter for the `onanimationend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onanimationend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onanimationend(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onanimationend)] #[doc = "Setter for the `onanimationend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onanimationend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onanimationend(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onanimationiteration)] #[doc = "Getter for the `onanimationiteration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onanimationiteration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onanimationiteration(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onanimationiteration)] #[doc = "Setter for the `onanimationiteration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onanimationiteration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onanimationiteration(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onanimationstart)] #[doc = "Getter for the `onanimationstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onanimationstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onanimationstart(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onanimationstart)] #[doc = "Setter for the `onanimationstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onanimationstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onanimationstart(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = ontransitioncancel)] #[doc = "Getter for the `ontransitioncancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontransitioncancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn ontransitioncancel(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = ontransitioncancel)] #[doc = "Setter for the `ontransitioncancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontransitioncancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_ontransitioncancel(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = ontransitionend)] #[doc = "Getter for the `ontransitionend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontransitionend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn ontransitionend(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = ontransitionend)] #[doc = "Setter for the `ontransitionend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontransitionend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_ontransitionend(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = ontransitionrun)] #[doc = "Getter for the `ontransitionrun` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontransitionrun)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn ontransitionrun(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = ontransitionrun)] #[doc = "Setter for the `ontransitionrun` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontransitionrun)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_ontransitionrun(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = ontransitionstart)] #[doc = "Getter for the `ontransitionstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontransitionstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn ontransitionstart(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = ontransitionstart)] #[doc = "Setter for the `ontransitionstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontransitionstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_ontransitionstart(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onwebkitanimationend)] #[doc = "Getter for the `onwebkitanimationend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onwebkitanimationend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onwebkitanimationend(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onwebkitanimationend)] #[doc = "Setter for the `onwebkitanimationend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onwebkitanimationend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onwebkitanimationend(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onwebkitanimationiteration)] #[doc = "Getter for the `onwebkitanimationiteration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onwebkitanimationiteration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onwebkitanimationiteration(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onwebkitanimationiteration)] #[doc = "Setter for the `onwebkitanimationiteration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onwebkitanimationiteration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onwebkitanimationiteration(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onwebkitanimationstart)] #[doc = "Getter for the `onwebkitanimationstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onwebkitanimationstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onwebkitanimationstart(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onwebkitanimationstart)] #[doc = "Setter for the `onwebkitanimationstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onwebkitanimationstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onwebkitanimationstart(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onwebkittransitionend)] #[doc = "Getter for the `onwebkittransitionend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onwebkittransitionend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onwebkittransitionend(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onwebkittransitionend)] #[doc = "Setter for the `onwebkittransitionend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onwebkittransitionend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onwebkittransitionend(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = onerror)] #[doc = "Getter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onerror(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onerror)] #[doc = "Setter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onerror(this: &Document, value: Option<&::js_sys::Function>); #[cfg(feature = "HtmlCollection")] # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = children)] #[doc = "Getter for the `children` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/children)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlCollection`*"] pub fn children(this: &Document) -> HtmlCollection; #[cfg(feature = "Element")] # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = firstElementChild)] #[doc = "Getter for the `firstElementChild` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/firstElementChild)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"] pub fn first_element_child(this: &Document) -> Option; #[cfg(feature = "Element")] # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = lastElementChild)] #[doc = "Getter for the `lastElementChild` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/lastElementChild)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"] pub fn last_element_child(this: &Document) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = childElementCount)] #[doc = "Getter for the `childElementCount` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/childElementCount)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn child_element_count(this: &Document) -> u32; # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = ontouchstart)] #[doc = "Getter for the `ontouchstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontouchstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn ontouchstart(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = ontouchstart)] #[doc = "Setter for the `ontouchstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontouchstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_ontouchstart(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = ontouchend)] #[doc = "Getter for the `ontouchend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontouchend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn ontouchend(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = ontouchend)] #[doc = "Setter for the `ontouchend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontouchend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_ontouchend(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = ontouchmove)] #[doc = "Getter for the `ontouchmove` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontouchmove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn ontouchmove(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = ontouchmove)] #[doc = "Setter for the `ontouchmove` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontouchmove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_ontouchmove(this: &Document, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = ontouchcancel)] #[doc = "Getter for the `ontouchcancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontouchcancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn ontouchcancel(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = ontouchcancel)] #[doc = "Setter for the `ontouchcancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontouchcancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_ontouchcancel(this: &Document, value: Option<&::js_sys::Function>); #[wasm_bindgen(catch, constructor, js_class = "Document")] #[doc = "The `new Document(..)` constructor, creating a new instance of `Document`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/Document)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn new() -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = adoptNode)] #[doc = "The `adoptNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/adoptNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn adopt_node(this: &Document, node: &Node) -> Result; #[cfg(feature = "CaretPosition")] # [wasm_bindgen (method , structural , js_class = "Document" , js_name = caretPositionFromPoint)] #[doc = "The `caretPositionFromPoint()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/caretPositionFromPoint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CaretPosition`, `Document`*"] pub fn caret_position_from_point(this: &Document, x: f32, y: f32) -> Option; #[cfg(feature = "Attr")] # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = createAttribute)] #[doc = "The `createAttribute()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createAttribute)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Attr`, `Document`*"] pub fn create_attribute(this: &Document, name: &str) -> Result; #[cfg(feature = "Attr")] # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = createAttributeNS)] #[doc = "The `createAttributeNS()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createAttributeNS)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Attr`, `Document`*"] pub fn create_attribute_ns( this: &Document, namespace: Option<&str>, name: &str, ) -> Result; #[cfg(feature = "CdataSection")] # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = createCDATASection)] #[doc = "The `createCDATASection()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createCDATASection)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CdataSection`, `Document`*"] pub fn create_cdata_section(this: &Document, data: &str) -> Result; #[cfg(feature = "Comment")] # [wasm_bindgen (method , structural , js_class = "Document" , js_name = createComment)] #[doc = "The `createComment()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createComment)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Comment`, `Document`*"] pub fn create_comment(this: &Document, data: &str) -> Comment; #[cfg(feature = "DocumentFragment")] # [wasm_bindgen (method , structural , js_class = "Document" , js_name = createDocumentFragment)] #[doc = "The `createDocumentFragment()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createDocumentFragment)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `DocumentFragment`*"] pub fn create_document_fragment(this: &Document) -> DocumentFragment; #[cfg(feature = "Element")] # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = createElement)] #[doc = "The `createElement()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"] pub fn create_element(this: &Document, local_name: &str) -> Result; #[cfg(all(feature = "Element", feature = "ElementCreationOptions",))] # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = createElement)] #[doc = "The `createElement()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`, `ElementCreationOptions`*"] pub fn create_element_with_element_creation_options( this: &Document, local_name: &str, options: &ElementCreationOptions, ) -> Result; #[cfg(feature = "Element")] # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = createElement)] #[doc = "The `createElement()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"] pub fn create_element_with_str( this: &Document, local_name: &str, options: &str, ) -> Result; #[cfg(feature = "Element")] # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = createElementNS)] #[doc = "The `createElementNS()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createElementNS)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"] pub fn create_element_ns( this: &Document, namespace: Option<&str>, qualified_name: &str, ) -> Result; #[cfg(all(feature = "Element", feature = "ElementCreationOptions",))] # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = createElementNS)] #[doc = "The `createElementNS()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createElementNS)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`, `ElementCreationOptions`*"] pub fn create_element_ns_with_element_creation_options( this: &Document, namespace: Option<&str>, qualified_name: &str, options: &ElementCreationOptions, ) -> Result; #[cfg(feature = "Element")] # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = createElementNS)] #[doc = "The `createElementNS()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createElementNS)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"] pub fn create_element_ns_with_str( this: &Document, namespace: Option<&str>, qualified_name: &str, options: &str, ) -> Result; #[cfg(feature = "Event")] # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = createEvent)] #[doc = "The `createEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `Event`*"] pub fn create_event(this: &Document, interface: &str) -> Result; #[cfg(feature = "NodeIterator")] # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = createNodeIterator)] #[doc = "The `createNodeIterator()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createNodeIterator)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `NodeIterator`*"] pub fn create_node_iterator(this: &Document, root: &Node) -> Result; #[cfg(feature = "NodeIterator")] # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = createNodeIterator)] #[doc = "The `createNodeIterator()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createNodeIterator)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `NodeIterator`*"] pub fn create_node_iterator_with_what_to_show( this: &Document, root: &Node, what_to_show: u32, ) -> Result; #[cfg(all(feature = "NodeFilter", feature = "NodeIterator",))] # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = createNodeIterator)] #[doc = "The `createNodeIterator()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createNodeIterator)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `NodeFilter`, `NodeIterator`*"] pub fn create_node_iterator_with_what_to_show_and_filter( this: &Document, root: &Node, what_to_show: u32, filter: Option<&NodeFilter>, ) -> Result; #[cfg(feature = "ProcessingInstruction")] # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = createProcessingInstruction)] #[doc = "The `createProcessingInstruction()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createProcessingInstruction)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `ProcessingInstruction`*"] pub fn create_processing_instruction( this: &Document, target: &str, data: &str, ) -> Result; #[cfg(feature = "Range")] # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = createRange)] #[doc = "The `createRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createRange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `Range`*"] pub fn create_range(this: &Document) -> Result; #[cfg(feature = "Text")] # [wasm_bindgen (method , structural , js_class = "Document" , js_name = createTextNode)] #[doc = "The `createTextNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createTextNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `Text`*"] pub fn create_text_node(this: &Document, data: &str) -> Text; #[cfg(feature = "TreeWalker")] # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = createTreeWalker)] #[doc = "The `createTreeWalker()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createTreeWalker)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `TreeWalker`*"] pub fn create_tree_walker(this: &Document, root: &Node) -> Result; #[cfg(feature = "TreeWalker")] # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = createTreeWalker)] #[doc = "The `createTreeWalker()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createTreeWalker)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `TreeWalker`*"] pub fn create_tree_walker_with_what_to_show( this: &Document, root: &Node, what_to_show: u32, ) -> Result; #[cfg(all(feature = "NodeFilter", feature = "TreeWalker",))] # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = createTreeWalker)] #[doc = "The `createTreeWalker()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createTreeWalker)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `NodeFilter`, `TreeWalker`*"] pub fn create_tree_walker_with_what_to_show_and_filter( this: &Document, root: &Node, what_to_show: u32, filter: Option<&NodeFilter>, ) -> Result; # [wasm_bindgen (method , structural , js_class = "Document" , js_name = enableStyleSheetsForSet)] #[doc = "The `enableStyleSheetsForSet()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/enableStyleSheetsForSet)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn enable_style_sheets_for_set(this: &Document, name: Option<&str>); # [wasm_bindgen (method , structural , js_class = "Document" , js_name = exitFullscreen)] #[doc = "The `exitFullscreen()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/exitFullscreen)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn exit_fullscreen(this: &Document); # [wasm_bindgen (method , structural , js_class = "Document" , js_name = exitPointerLock)] #[doc = "The `exitPointerLock()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/exitPointerLock)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn exit_pointer_lock(this: &Document); # [wasm_bindgen (method , structural , js_class = "Document" , js_name = getAnimations)] #[doc = "The `getAnimations()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/getAnimations)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn get_animations(this: &Document) -> ::js_sys::Array; #[cfg(feature = "Element")] # [wasm_bindgen (method , structural , js_class = "Document" , js_name = getElementById)] #[doc = "The `getElementById()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementById)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"] pub fn get_element_by_id(this: &Document, element_id: &str) -> Option; #[cfg(feature = "HtmlCollection")] # [wasm_bindgen (method , structural , js_class = "Document" , js_name = getElementsByClassName)] #[doc = "The `getElementsByClassName()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementsByClassName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlCollection`*"] pub fn get_elements_by_class_name(this: &Document, class_names: &str) -> HtmlCollection; #[cfg(feature = "NodeList")] # [wasm_bindgen (method , structural , js_class = "Document" , js_name = getElementsByName)] #[doc = "The `getElementsByName()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementsByName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `NodeList`*"] pub fn get_elements_by_name(this: &Document, element_name: &str) -> NodeList; #[cfg(feature = "HtmlCollection")] # [wasm_bindgen (method , structural , js_class = "Document" , js_name = getElementsByTagName)] #[doc = "The `getElementsByTagName()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementsByTagName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlCollection`*"] pub fn get_elements_by_tag_name(this: &Document, local_name: &str) -> HtmlCollection; #[cfg(feature = "HtmlCollection")] # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = getElementsByTagNameNS)] #[doc = "The `getElementsByTagNameNS()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementsByTagNameNS)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlCollection`*"] pub fn get_elements_by_tag_name_ns( this: &Document, namespace: Option<&str>, local_name: &str, ) -> Result; #[cfg(feature = "Selection")] # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = getSelection)] #[doc = "The `getSelection()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/getSelection)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `Selection`*"] pub fn get_selection(this: &Document) -> Result, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = hasFocus)] #[doc = "The `hasFocus()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/hasFocus)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn has_focus(this: &Document) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = importNode)] #[doc = "The `importNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/importNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn import_node(this: &Document, node: &Node) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = importNode)] #[doc = "The `importNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/importNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn import_node_with_deep(this: &Document, node: &Node, deep: bool) -> Result; #[cfg(feature = "Element")] # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = querySelector)] #[doc = "The `querySelector()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelector)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"] pub fn query_selector(this: &Document, selectors: &str) -> Result, JsValue>; #[cfg(feature = "NodeList")] # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = querySelectorAll)] #[doc = "The `querySelectorAll()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelectorAll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `NodeList`*"] pub fn query_selector_all(this: &Document, selectors: &str) -> Result; # [wasm_bindgen (method , structural , js_class = "Document" , js_name = releaseCapture)] #[doc = "The `releaseCapture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/releaseCapture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn release_capture(this: &Document); #[cfg(feature = "Element")] # [wasm_bindgen (method , structural , js_class = "Document" , js_name = elementFromPoint)] #[doc = "The `elementFromPoint()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/elementFromPoint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"] pub fn element_from_point(this: &Document, x: f32, y: f32) -> Option; # [wasm_bindgen (method , structural , js_class = "Document" , js_name = elementsFromPoint)] #[doc = "The `elementsFromPoint()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/elementsFromPoint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn elements_from_point(this: &Document, x: f32, y: f32) -> ::js_sys::Array; #[cfg(all(feature = "DomPoint", feature = "DomPointInit", feature = "Text",))] # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = convertPointFromNode)] #[doc = "The `convertPointFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertPointFromNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `DomPoint`, `DomPointInit`, `Text`*"] pub fn convert_point_from_node_with_text( this: &Document, point: &DomPointInit, from: &Text, ) -> Result; #[cfg(all(feature = "DomPoint", feature = "DomPointInit", feature = "Element",))] # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = convertPointFromNode)] #[doc = "The `convertPointFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertPointFromNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `DomPoint`, `DomPointInit`, `Element`*"] pub fn convert_point_from_node_with_element( this: &Document, point: &DomPointInit, from: &Element, ) -> Result; #[cfg(all(feature = "DomPoint", feature = "DomPointInit",))] # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = convertPointFromNode)] #[doc = "The `convertPointFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertPointFromNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `DomPoint`, `DomPointInit`*"] pub fn convert_point_from_node_with_document( this: &Document, point: &DomPointInit, from: &Document, ) -> Result; #[cfg(all( feature = "ConvertCoordinateOptions", feature = "DomPoint", feature = "DomPointInit", feature = "Text", ))] # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = convertPointFromNode)] #[doc = "The `convertPointFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertPointFromNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `Document`, `DomPoint`, `DomPointInit`, `Text`*"] pub fn convert_point_from_node_with_text_and_options( this: &Document, point: &DomPointInit, from: &Text, options: &ConvertCoordinateOptions, ) -> Result; #[cfg(all( feature = "ConvertCoordinateOptions", feature = "DomPoint", feature = "DomPointInit", feature = "Element", ))] # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = convertPointFromNode)] #[doc = "The `convertPointFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertPointFromNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `Document`, `DomPoint`, `DomPointInit`, `Element`*"] pub fn convert_point_from_node_with_element_and_options( this: &Document, point: &DomPointInit, from: &Element, options: &ConvertCoordinateOptions, ) -> Result; #[cfg(all( feature = "ConvertCoordinateOptions", feature = "DomPoint", feature = "DomPointInit", ))] # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = convertPointFromNode)] #[doc = "The `convertPointFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertPointFromNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `Document`, `DomPoint`, `DomPointInit`*"] pub fn convert_point_from_node_with_document_and_options( this: &Document, point: &DomPointInit, from: &Document, options: &ConvertCoordinateOptions, ) -> Result; #[cfg(all(feature = "DomQuad", feature = "Text",))] # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = convertQuadFromNode)] #[doc = "The `convertQuadFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertQuadFromNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `DomQuad`, `Text`*"] pub fn convert_quad_from_node_with_text( this: &Document, quad: &DomQuad, from: &Text, ) -> Result; #[cfg(all(feature = "DomQuad", feature = "Element",))] # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = convertQuadFromNode)] #[doc = "The `convertQuadFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertQuadFromNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `DomQuad`, `Element`*"] pub fn convert_quad_from_node_with_element( this: &Document, quad: &DomQuad, from: &Element, ) -> Result; #[cfg(feature = "DomQuad")] # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = convertQuadFromNode)] #[doc = "The `convertQuadFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertQuadFromNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `DomQuad`*"] pub fn convert_quad_from_node_with_document( this: &Document, quad: &DomQuad, from: &Document, ) -> Result; #[cfg(all( feature = "ConvertCoordinateOptions", feature = "DomQuad", feature = "Text", ))] # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = convertQuadFromNode)] #[doc = "The `convertQuadFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertQuadFromNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `Document`, `DomQuad`, `Text`*"] pub fn convert_quad_from_node_with_text_and_options( this: &Document, quad: &DomQuad, from: &Text, options: &ConvertCoordinateOptions, ) -> Result; #[cfg(all( feature = "ConvertCoordinateOptions", feature = "DomQuad", feature = "Element", ))] # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = convertQuadFromNode)] #[doc = "The `convertQuadFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertQuadFromNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `Document`, `DomQuad`, `Element`*"] pub fn convert_quad_from_node_with_element_and_options( this: &Document, quad: &DomQuad, from: &Element, options: &ConvertCoordinateOptions, ) -> Result; #[cfg(all(feature = "ConvertCoordinateOptions", feature = "DomQuad",))] # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = convertQuadFromNode)] #[doc = "The `convertQuadFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertQuadFromNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `Document`, `DomQuad`*"] pub fn convert_quad_from_node_with_document_and_options( this: &Document, quad: &DomQuad, from: &Document, options: &ConvertCoordinateOptions, ) -> Result; #[cfg(all(feature = "DomQuad", feature = "DomRectReadOnly", feature = "Text",))] # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = convertRectFromNode)] #[doc = "The `convertRectFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertRectFromNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `DomQuad`, `DomRectReadOnly`, `Text`*"] pub fn convert_rect_from_node_with_text( this: &Document, rect: &DomRectReadOnly, from: &Text, ) -> Result; #[cfg(all(feature = "DomQuad", feature = "DomRectReadOnly", feature = "Element",))] # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = convertRectFromNode)] #[doc = "The `convertRectFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertRectFromNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `DomQuad`, `DomRectReadOnly`, `Element`*"] pub fn convert_rect_from_node_with_element( this: &Document, rect: &DomRectReadOnly, from: &Element, ) -> Result; #[cfg(all(feature = "DomQuad", feature = "DomRectReadOnly",))] # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = convertRectFromNode)] #[doc = "The `convertRectFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertRectFromNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `DomQuad`, `DomRectReadOnly`*"] pub fn convert_rect_from_node_with_document( this: &Document, rect: &DomRectReadOnly, from: &Document, ) -> Result; #[cfg(all( feature = "ConvertCoordinateOptions", feature = "DomQuad", feature = "DomRectReadOnly", feature = "Text", ))] # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = convertRectFromNode)] #[doc = "The `convertRectFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertRectFromNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `Document`, `DomQuad`, `DomRectReadOnly`, `Text`*"] pub fn convert_rect_from_node_with_text_and_options( this: &Document, rect: &DomRectReadOnly, from: &Text, options: &ConvertCoordinateOptions, ) -> Result; #[cfg(all( feature = "ConvertCoordinateOptions", feature = "DomQuad", feature = "DomRectReadOnly", feature = "Element", ))] # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = convertRectFromNode)] #[doc = "The `convertRectFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertRectFromNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `Document`, `DomQuad`, `DomRectReadOnly`, `Element`*"] pub fn convert_rect_from_node_with_element_and_options( this: &Document, rect: &DomRectReadOnly, from: &Element, options: &ConvertCoordinateOptions, ) -> Result; #[cfg(all( feature = "ConvertCoordinateOptions", feature = "DomQuad", feature = "DomRectReadOnly", ))] # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = convertRectFromNode)] #[doc = "The `convertRectFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertRectFromNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `Document`, `DomQuad`, `DomRectReadOnly`*"] pub fn convert_rect_from_node_with_document_and_options( this: &Document, rect: &DomRectReadOnly, from: &Document, options: &ConvertCoordinateOptions, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = getBoxQuads)] #[doc = "The `getBoxQuads()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/getBoxQuads)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn get_box_quads(this: &Document) -> Result<::js_sys::Array, JsValue>; #[cfg(feature = "BoxQuadOptions")] # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = getBoxQuads)] #[doc = "The `getBoxQuads()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/getBoxQuads)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BoxQuadOptions`, `Document`*"] pub fn get_box_quads_with_options( this: &Document, options: &BoxQuadOptions, ) -> Result<::js_sys::Array, JsValue>; # [wasm_bindgen (catch , method , structural , variadic , js_class = "Document" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn append_with_node(this: &Document, nodes: &::js_sys::Array) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn append_with_node_0(this: &Document) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn append_with_node_1(this: &Document, nodes_1: &Node) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn append_with_node_2( this: &Document, nodes_1: &Node, nodes_2: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn append_with_node_3( this: &Document, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn append_with_node_4( this: &Document, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn append_with_node_5( this: &Document, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, nodes_5: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn append_with_node_6( this: &Document, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, nodes_5: &Node, nodes_6: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn append_with_node_7( this: &Document, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, nodes_5: &Node, nodes_6: &Node, nodes_7: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , variadic , js_class = "Document" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn append_with_str(this: &Document, nodes: &::js_sys::Array) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn append_with_str_0(this: &Document) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn append_with_str_1(this: &Document, nodes_1: &str) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn append_with_str_2(this: &Document, nodes_1: &str, nodes_2: &str) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn append_with_str_3( this: &Document, nodes_1: &str, nodes_2: &str, nodes_3: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn append_with_str_4( this: &Document, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn append_with_str_5( this: &Document, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, nodes_5: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn append_with_str_6( this: &Document, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, nodes_5: &str, nodes_6: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn append_with_str_7( this: &Document, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, nodes_5: &str, nodes_6: &str, nodes_7: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , variadic , js_class = "Document" , js_name = prepend)] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn prepend_with_node(this: &Document, nodes: &::js_sys::Array) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = prepend)] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn prepend_with_node_0(this: &Document) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = prepend)] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn prepend_with_node_1(this: &Document, nodes_1: &Node) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = prepend)] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn prepend_with_node_2( this: &Document, nodes_1: &Node, nodes_2: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = prepend)] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn prepend_with_node_3( this: &Document, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = prepend)] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn prepend_with_node_4( this: &Document, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = prepend)] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn prepend_with_node_5( this: &Document, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, nodes_5: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = prepend)] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn prepend_with_node_6( this: &Document, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, nodes_5: &Node, nodes_6: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = prepend)] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn prepend_with_node_7( this: &Document, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, nodes_5: &Node, nodes_6: &Node, nodes_7: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , variadic , js_class = "Document" , js_name = prepend)] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn prepend_with_str(this: &Document, nodes: &::js_sys::Array) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = prepend)] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn prepend_with_str_0(this: &Document) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = prepend)] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn prepend_with_str_1(this: &Document, nodes_1: &str) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = prepend)] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn prepend_with_str_2(this: &Document, nodes_1: &str, nodes_2: &str) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = prepend)] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn prepend_with_str_3( this: &Document, nodes_1: &str, nodes_2: &str, nodes_3: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = prepend)] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn prepend_with_str_4( this: &Document, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = prepend)] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn prepend_with_str_5( this: &Document, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, nodes_5: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = prepend)] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn prepend_with_str_6( this: &Document, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, nodes_5: &str, nodes_6: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = prepend)] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn prepend_with_str_7( this: &Document, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, nodes_5: &str, nodes_6: &str, nodes_7: &str, ) -> Result<(), JsValue>; #[cfg(feature = "XPathExpression")] # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = createExpression)] #[doc = "The `createExpression()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createExpression)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `XPathExpression`*"] pub fn create_expression(this: &Document, expression: &str) -> Result; #[cfg(feature = "XPathExpression")] # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = createExpression)] #[doc = "The `createExpression()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createExpression)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `XPathExpression`*"] pub fn create_expression_with_opt_callback( this: &Document, expression: &str, resolver: Option<&::js_sys::Function>, ) -> Result; #[cfg(all(feature = "XPathExpression", feature = "XPathNsResolver",))] # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = createExpression)] #[doc = "The `createExpression()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createExpression)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `XPathExpression`, `XPathNsResolver`*"] pub fn create_expression_with_opt_x_path_ns_resolver( this: &Document, expression: &str, resolver: Option<&XPathNsResolver>, ) -> Result; # [wasm_bindgen (method , structural , js_class = "Document" , js_name = createNSResolver)] #[doc = "The `createNSResolver()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createNSResolver)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn create_ns_resolver(this: &Document, node_resolver: &Node) -> Node; #[cfg(feature = "XPathResult")] # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = evaluate)] #[doc = "The `evaluate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/evaluate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `XPathResult`*"] pub fn evaluate( this: &Document, expression: &str, context_node: &Node, ) -> Result; #[cfg(feature = "XPathResult")] # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = evaluate)] #[doc = "The `evaluate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/evaluate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `XPathResult`*"] pub fn evaluate_with_opt_callback( this: &Document, expression: &str, context_node: &Node, resolver: Option<&::js_sys::Function>, ) -> Result; #[cfg(all(feature = "XPathNsResolver", feature = "XPathResult",))] # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = evaluate)] #[doc = "The `evaluate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/evaluate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `XPathNsResolver`, `XPathResult`*"] pub fn evaluate_with_opt_x_path_ns_resolver( this: &Document, expression: &str, context_node: &Node, resolver: Option<&XPathNsResolver>, ) -> Result; #[cfg(feature = "XPathResult")] # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = evaluate)] #[doc = "The `evaluate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/evaluate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `XPathResult`*"] pub fn evaluate_with_opt_callback_and_type( this: &Document, expression: &str, context_node: &Node, resolver: Option<&::js_sys::Function>, type_: u16, ) -> Result; #[cfg(all(feature = "XPathNsResolver", feature = "XPathResult",))] # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = evaluate)] #[doc = "The `evaluate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/evaluate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `XPathNsResolver`, `XPathResult`*"] pub fn evaluate_with_opt_x_path_ns_resolver_and_type( this: &Document, expression: &str, context_node: &Node, resolver: Option<&XPathNsResolver>, type_: u16, ) -> Result; #[cfg(feature = "XPathResult")] # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = evaluate)] #[doc = "The `evaluate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/evaluate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `XPathResult`*"] pub fn evaluate_with_opt_callback_and_type_and_result( this: &Document, expression: &str, context_node: &Node, resolver: Option<&::js_sys::Function>, type_: u16, result: Option<&::js_sys::Object>, ) -> Result; #[cfg(all(feature = "XPathNsResolver", feature = "XPathResult",))] # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = evaluate)] #[doc = "The `evaluate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/evaluate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `XPathNsResolver`, `XPathResult`*"] pub fn evaluate_with_opt_x_path_ns_resolver_and_type_and_result( this: &Document, expression: &str, context_node: &Node, resolver: Option<&XPathNsResolver>, type_: u16, result: Option<&::js_sys::Object>, ) -> Result; } web-sys-0.3.55/src/features/gen_DocumentFragment.rs000064400000000000000000000602140072674642500204100ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = DocumentFragment , typescript_type = "DocumentFragment")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DocumentFragment` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub type DocumentFragment; #[cfg(feature = "HtmlCollection")] # [wasm_bindgen (structural , method , getter , js_class = "DocumentFragment" , js_name = children)] #[doc = "Getter for the `children` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/children)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`, `HtmlCollection`*"] pub fn children(this: &DocumentFragment) -> HtmlCollection; #[cfg(feature = "Element")] # [wasm_bindgen (structural , method , getter , js_class = "DocumentFragment" , js_name = firstElementChild)] #[doc = "Getter for the `firstElementChild` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/firstElementChild)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`, `Element`*"] pub fn first_element_child(this: &DocumentFragment) -> Option; #[cfg(feature = "Element")] # [wasm_bindgen (structural , method , getter , js_class = "DocumentFragment" , js_name = lastElementChild)] #[doc = "Getter for the `lastElementChild` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/lastElementChild)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`, `Element`*"] pub fn last_element_child(this: &DocumentFragment) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "DocumentFragment" , js_name = childElementCount)] #[doc = "Getter for the `childElementCount` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/childElementCount)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn child_element_count(this: &DocumentFragment) -> u32; #[wasm_bindgen(catch, constructor, js_class = "DocumentFragment")] #[doc = "The `new DocumentFragment(..)` constructor, creating a new instance of `DocumentFragment`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/DocumentFragment)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn new() -> Result; #[cfg(feature = "Element")] # [wasm_bindgen (method , structural , js_class = "DocumentFragment" , js_name = getElementById)] #[doc = "The `getElementById()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/getElementById)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`, `Element`*"] pub fn get_element_by_id(this: &DocumentFragment, element_id: &str) -> Option; #[cfg(feature = "Element")] # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = querySelector)] #[doc = "The `querySelector()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/querySelector)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`, `Element`*"] pub fn query_selector( this: &DocumentFragment, selectors: &str, ) -> Result, JsValue>; #[cfg(feature = "NodeList")] # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = querySelectorAll)] #[doc = "The `querySelectorAll()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/querySelectorAll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`, `NodeList`*"] pub fn query_selector_all( this: &DocumentFragment, selectors: &str, ) -> Result; # [wasm_bindgen (catch , method , structural , variadic , js_class = "DocumentFragment" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn append_with_node( this: &DocumentFragment, nodes: &::js_sys::Array, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn append_with_node_0(this: &DocumentFragment) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn append_with_node_1(this: &DocumentFragment, nodes_1: &Node) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn append_with_node_2( this: &DocumentFragment, nodes_1: &Node, nodes_2: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn append_with_node_3( this: &DocumentFragment, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn append_with_node_4( this: &DocumentFragment, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn append_with_node_5( this: &DocumentFragment, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, nodes_5: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn append_with_node_6( this: &DocumentFragment, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, nodes_5: &Node, nodes_6: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn append_with_node_7( this: &DocumentFragment, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, nodes_5: &Node, nodes_6: &Node, nodes_7: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , variadic , js_class = "DocumentFragment" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn append_with_str(this: &DocumentFragment, nodes: &::js_sys::Array) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn append_with_str_0(this: &DocumentFragment) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn append_with_str_1(this: &DocumentFragment, nodes_1: &str) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn append_with_str_2( this: &DocumentFragment, nodes_1: &str, nodes_2: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn append_with_str_3( this: &DocumentFragment, nodes_1: &str, nodes_2: &str, nodes_3: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn append_with_str_4( this: &DocumentFragment, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn append_with_str_5( this: &DocumentFragment, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, nodes_5: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn append_with_str_6( this: &DocumentFragment, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, nodes_5: &str, nodes_6: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn append_with_str_7( this: &DocumentFragment, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, nodes_5: &str, nodes_6: &str, nodes_7: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , variadic , js_class = "DocumentFragment" , js_name = prepend)] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn prepend_with_node( this: &DocumentFragment, nodes: &::js_sys::Array, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = prepend)] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn prepend_with_node_0(this: &DocumentFragment) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = prepend)] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn prepend_with_node_1(this: &DocumentFragment, nodes_1: &Node) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = prepend)] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn prepend_with_node_2( this: &DocumentFragment, nodes_1: &Node, nodes_2: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = prepend)] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn prepend_with_node_3( this: &DocumentFragment, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = prepend)] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn prepend_with_node_4( this: &DocumentFragment, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = prepend)] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn prepend_with_node_5( this: &DocumentFragment, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, nodes_5: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = prepend)] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn prepend_with_node_6( this: &DocumentFragment, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, nodes_5: &Node, nodes_6: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = prepend)] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn prepend_with_node_7( this: &DocumentFragment, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, nodes_5: &Node, nodes_6: &Node, nodes_7: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , variadic , js_class = "DocumentFragment" , js_name = prepend)] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn prepend_with_str( this: &DocumentFragment, nodes: &::js_sys::Array, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = prepend)] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn prepend_with_str_0(this: &DocumentFragment) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = prepend)] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn prepend_with_str_1(this: &DocumentFragment, nodes_1: &str) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = prepend)] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn prepend_with_str_2( this: &DocumentFragment, nodes_1: &str, nodes_2: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = prepend)] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn prepend_with_str_3( this: &DocumentFragment, nodes_1: &str, nodes_2: &str, nodes_3: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = prepend)] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn prepend_with_str_4( this: &DocumentFragment, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = prepend)] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn prepend_with_str_5( this: &DocumentFragment, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, nodes_5: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = prepend)] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn prepend_with_str_6( this: &DocumentFragment, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, nodes_5: &str, nodes_6: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentFragment" , js_name = prepend)] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn prepend_with_str_7( this: &DocumentFragment, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, nodes_5: &str, nodes_6: &str, nodes_7: &str, ) -> Result<(), JsValue>; } web-sys-0.3.55/src/features/gen_DocumentTimeline.rs000064400000000000000000000032440072674642500204130ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = AnimationTimeline , extends = :: js_sys :: Object , js_name = DocumentTimeline , typescript_type = "DocumentTimeline")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DocumentTimeline` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentTimeline)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentTimeline`*"] pub type DocumentTimeline; #[wasm_bindgen(catch, constructor, js_class = "DocumentTimeline")] #[doc = "The `new DocumentTimeline(..)` constructor, creating a new instance of `DocumentTimeline`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentTimeline/DocumentTimeline)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentTimeline`*"] pub fn new() -> Result; #[cfg(feature = "DocumentTimelineOptions")] #[wasm_bindgen(catch, constructor, js_class = "DocumentTimeline")] #[doc = "The `new DocumentTimeline(..)` constructor, creating a new instance of `DocumentTimeline`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentTimeline/DocumentTimeline)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentTimeline`, `DocumentTimelineOptions`*"] pub fn new_with_options(options: &DocumentTimelineOptions) -> Result; } web-sys-0.3.55/src/features/gen_DocumentTimelineOptions.rs000064400000000000000000000027750072674642500217770ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DocumentTimelineOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DocumentTimelineOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentTimelineOptions`*"] pub type DocumentTimelineOptions; } impl DocumentTimelineOptions { #[doc = "Construct a new `DocumentTimelineOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentTimelineOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `originTime` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentTimelineOptions`*"] pub fn origin_time(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("originTime"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for DocumentTimelineOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_DocumentType.rs000064400000000000000000000750550072674642500175770ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = DocumentType , typescript_type = "DocumentType")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DocumentType` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub type DocumentType; # [wasm_bindgen (structural , method , getter , js_class = "DocumentType" , js_name = name)] #[doc = "Getter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn name(this: &DocumentType) -> String; # [wasm_bindgen (structural , method , getter , js_class = "DocumentType" , js_name = publicId)] #[doc = "Getter for the `publicId` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/publicId)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn public_id(this: &DocumentType) -> String; # [wasm_bindgen (structural , method , getter , js_class = "DocumentType" , js_name = systemId)] #[doc = "Getter for the `systemId` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/systemId)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn system_id(this: &DocumentType) -> String; # [wasm_bindgen (catch , method , structural , variadic , js_class = "DocumentType" , js_name = after)] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn after_with_node(this: &DocumentType, nodes: &::js_sys::Array) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = after)] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn after_with_node_0(this: &DocumentType) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = after)] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn after_with_node_1(this: &DocumentType, nodes_1: &Node) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = after)] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn after_with_node_2( this: &DocumentType, nodes_1: &Node, nodes_2: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = after)] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn after_with_node_3( this: &DocumentType, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = after)] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn after_with_node_4( this: &DocumentType, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = after)] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn after_with_node_5( this: &DocumentType, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, nodes_5: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = after)] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn after_with_node_6( this: &DocumentType, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, nodes_5: &Node, nodes_6: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = after)] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn after_with_node_7( this: &DocumentType, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, nodes_5: &Node, nodes_6: &Node, nodes_7: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , variadic , js_class = "DocumentType" , js_name = after)] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn after_with_str(this: &DocumentType, nodes: &::js_sys::Array) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = after)] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn after_with_str_0(this: &DocumentType) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = after)] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn after_with_str_1(this: &DocumentType, nodes_1: &str) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = after)] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn after_with_str_2( this: &DocumentType, nodes_1: &str, nodes_2: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = after)] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn after_with_str_3( this: &DocumentType, nodes_1: &str, nodes_2: &str, nodes_3: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = after)] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn after_with_str_4( this: &DocumentType, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = after)] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn after_with_str_5( this: &DocumentType, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, nodes_5: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = after)] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn after_with_str_6( this: &DocumentType, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, nodes_5: &str, nodes_6: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = after)] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn after_with_str_7( this: &DocumentType, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, nodes_5: &str, nodes_6: &str, nodes_7: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , variadic , js_class = "DocumentType" , js_name = before)] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn before_with_node(this: &DocumentType, nodes: &::js_sys::Array) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = before)] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn before_with_node_0(this: &DocumentType) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = before)] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn before_with_node_1(this: &DocumentType, nodes_1: &Node) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = before)] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn before_with_node_2( this: &DocumentType, nodes_1: &Node, nodes_2: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = before)] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn before_with_node_3( this: &DocumentType, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = before)] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn before_with_node_4( this: &DocumentType, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = before)] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn before_with_node_5( this: &DocumentType, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, nodes_5: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = before)] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn before_with_node_6( this: &DocumentType, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, nodes_5: &Node, nodes_6: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = before)] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn before_with_node_7( this: &DocumentType, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, nodes_5: &Node, nodes_6: &Node, nodes_7: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , variadic , js_class = "DocumentType" , js_name = before)] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn before_with_str(this: &DocumentType, nodes: &::js_sys::Array) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = before)] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn before_with_str_0(this: &DocumentType) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = before)] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn before_with_str_1(this: &DocumentType, nodes_1: &str) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = before)] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn before_with_str_2( this: &DocumentType, nodes_1: &str, nodes_2: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = before)] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn before_with_str_3( this: &DocumentType, nodes_1: &str, nodes_2: &str, nodes_3: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = before)] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn before_with_str_4( this: &DocumentType, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = before)] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn before_with_str_5( this: &DocumentType, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, nodes_5: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = before)] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn before_with_str_6( this: &DocumentType, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, nodes_5: &str, nodes_6: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = before)] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn before_with_str_7( this: &DocumentType, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, nodes_5: &str, nodes_6: &str, nodes_7: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (method , structural , js_class = "DocumentType" , js_name = remove)] #[doc = "The `remove()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/remove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn remove(this: &DocumentType); # [wasm_bindgen (catch , method , structural , variadic , js_class = "DocumentType" , js_name = replaceWith)] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn replace_with_with_node( this: &DocumentType, nodes: &::js_sys::Array, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = replaceWith)] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn replace_with_with_node_0(this: &DocumentType) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = replaceWith)] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn replace_with_with_node_1(this: &DocumentType, nodes_1: &Node) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = replaceWith)] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn replace_with_with_node_2( this: &DocumentType, nodes_1: &Node, nodes_2: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = replaceWith)] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn replace_with_with_node_3( this: &DocumentType, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = replaceWith)] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn replace_with_with_node_4( this: &DocumentType, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = replaceWith)] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn replace_with_with_node_5( this: &DocumentType, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, nodes_5: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = replaceWith)] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn replace_with_with_node_6( this: &DocumentType, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, nodes_5: &Node, nodes_6: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = replaceWith)] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn replace_with_with_node_7( this: &DocumentType, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, nodes_5: &Node, nodes_6: &Node, nodes_7: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , variadic , js_class = "DocumentType" , js_name = replaceWith)] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn replace_with_with_str( this: &DocumentType, nodes: &::js_sys::Array, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = replaceWith)] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn replace_with_with_str_0(this: &DocumentType) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = replaceWith)] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn replace_with_with_str_1(this: &DocumentType, nodes_1: &str) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = replaceWith)] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn replace_with_with_str_2( this: &DocumentType, nodes_1: &str, nodes_2: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = replaceWith)] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn replace_with_with_str_3( this: &DocumentType, nodes_1: &str, nodes_2: &str, nodes_3: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = replaceWith)] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn replace_with_with_str_4( this: &DocumentType, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = replaceWith)] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn replace_with_with_str_5( this: &DocumentType, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, nodes_5: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = replaceWith)] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn replace_with_with_str_6( this: &DocumentType, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, nodes_5: &str, nodes_6: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DocumentType" , js_name = replaceWith)] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] pub fn replace_with_with_str_7( this: &DocumentType, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, nodes_5: &str, nodes_6: &str, nodes_7: &str, ) -> Result<(), JsValue>; } web-sys-0.3.55/src/features/gen_DomError.rs000064400000000000000000000043470072674642500167040ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DOMError , typescript_type = "DOMError")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DomError` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMError)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomError`*"] pub type DomError; # [wasm_bindgen (structural , method , getter , js_class = "DOMError" , js_name = name)] #[doc = "Getter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMError/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomError`*"] pub fn name(this: &DomError) -> String; # [wasm_bindgen (structural , method , getter , js_class = "DOMError" , js_name = message)] #[doc = "Getter for the `message` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMError/message)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomError`*"] pub fn message(this: &DomError) -> String; #[wasm_bindgen(catch, constructor, js_class = "DOMError")] #[doc = "The `new DomError(..)` constructor, creating a new instance of `DomError`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMError/DOMError)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomError`*"] pub fn new(name: &str) -> Result; #[wasm_bindgen(catch, constructor, js_class = "DOMError")] #[doc = "The `new DomError(..)` constructor, creating a new instance of `DomError`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMError/DOMError)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomError`*"] pub fn new_with_message(name: &str, message: &str) -> Result; } web-sys-0.3.55/src/features/gen_DomException.rs000064400000000000000000000265130072674642500175500ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DOMException , typescript_type = "DOMException")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DomException` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMException)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`*"] pub type DomException; # [wasm_bindgen (structural , method , getter , js_class = "DOMException" , js_name = name)] #[doc = "Getter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMException/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`*"] pub fn name(this: &DomException) -> String; # [wasm_bindgen (structural , method , getter , js_class = "DOMException" , js_name = message)] #[doc = "Getter for the `message` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMException/message)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`*"] pub fn message(this: &DomException) -> String; # [wasm_bindgen (structural , method , getter , js_class = "DOMException" , js_name = code)] #[doc = "Getter for the `code` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMException/code)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`*"] pub fn code(this: &DomException) -> u16; # [wasm_bindgen (structural , method , getter , js_class = "DOMException" , js_name = result)] #[doc = "Getter for the `result` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMException/result)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`*"] pub fn result(this: &DomException) -> u32; # [wasm_bindgen (structural , method , getter , js_class = "DOMException" , js_name = filename)] #[doc = "Getter for the `filename` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMException/filename)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`*"] pub fn filename(this: &DomException) -> String; # [wasm_bindgen (structural , method , getter , js_class = "DOMException" , js_name = lineNumber)] #[doc = "Getter for the `lineNumber` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMException/lineNumber)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`*"] pub fn line_number(this: &DomException) -> u32; # [wasm_bindgen (structural , method , getter , js_class = "DOMException" , js_name = columnNumber)] #[doc = "Getter for the `columnNumber` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMException/columnNumber)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`*"] pub fn column_number(this: &DomException) -> u32; # [wasm_bindgen (structural , method , getter , js_class = "DOMException" , js_name = data)] #[doc = "Getter for the `data` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMException/data)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`*"] pub fn data(this: &DomException) -> Option<::js_sys::Object>; # [wasm_bindgen (structural , method , getter , js_class = "DOMException" , js_name = stack)] #[doc = "Getter for the `stack` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMException/stack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`*"] pub fn stack(this: &DomException) -> String; #[wasm_bindgen(catch, constructor, js_class = "DOMException")] #[doc = "The `new DomException(..)` constructor, creating a new instance of `DomException`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMException/DOMException)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`*"] pub fn new() -> Result; #[wasm_bindgen(catch, constructor, js_class = "DOMException")] #[doc = "The `new DomException(..)` constructor, creating a new instance of `DomException`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMException/DOMException)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`*"] pub fn new_with_message(message: &str) -> Result; #[wasm_bindgen(catch, constructor, js_class = "DOMException")] #[doc = "The `new DomException(..)` constructor, creating a new instance of `DomException`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMException/DOMException)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`*"] pub fn new_with_message_and_name(message: &str, name: &str) -> Result; } impl DomException { #[doc = "The `DOMException.INDEX_SIZE_ERR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`*"] pub const INDEX_SIZE_ERR: u16 = 1u64 as u16; #[doc = "The `DOMException.DOMSTRING_SIZE_ERR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`*"] pub const DOMSTRING_SIZE_ERR: u16 = 2u64 as u16; #[doc = "The `DOMException.HIERARCHY_REQUEST_ERR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`*"] pub const HIERARCHY_REQUEST_ERR: u16 = 3u64 as u16; #[doc = "The `DOMException.WRONG_DOCUMENT_ERR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`*"] pub const WRONG_DOCUMENT_ERR: u16 = 4u64 as u16; #[doc = "The `DOMException.INVALID_CHARACTER_ERR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`*"] pub const INVALID_CHARACTER_ERR: u16 = 5u64 as u16; #[doc = "The `DOMException.NO_DATA_ALLOWED_ERR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`*"] pub const NO_DATA_ALLOWED_ERR: u16 = 6u64 as u16; #[doc = "The `DOMException.NO_MODIFICATION_ALLOWED_ERR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`*"] pub const NO_MODIFICATION_ALLOWED_ERR: u16 = 7u64 as u16; #[doc = "The `DOMException.NOT_FOUND_ERR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`*"] pub const NOT_FOUND_ERR: u16 = 8u64 as u16; #[doc = "The `DOMException.NOT_SUPPORTED_ERR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`*"] pub const NOT_SUPPORTED_ERR: u16 = 9u64 as u16; #[doc = "The `DOMException.INUSE_ATTRIBUTE_ERR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`*"] pub const INUSE_ATTRIBUTE_ERR: u16 = 10u64 as u16; #[doc = "The `DOMException.INVALID_STATE_ERR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`*"] pub const INVALID_STATE_ERR: u16 = 11u64 as u16; #[doc = "The `DOMException.SYNTAX_ERR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`*"] pub const SYNTAX_ERR: u16 = 12u64 as u16; #[doc = "The `DOMException.INVALID_MODIFICATION_ERR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`*"] pub const INVALID_MODIFICATION_ERR: u16 = 13u64 as u16; #[doc = "The `DOMException.NAMESPACE_ERR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`*"] pub const NAMESPACE_ERR: u16 = 14u64 as u16; #[doc = "The `DOMException.INVALID_ACCESS_ERR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`*"] pub const INVALID_ACCESS_ERR: u16 = 15u64 as u16; #[doc = "The `DOMException.VALIDATION_ERR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`*"] pub const VALIDATION_ERR: u16 = 16u64 as u16; #[doc = "The `DOMException.TYPE_MISMATCH_ERR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`*"] pub const TYPE_MISMATCH_ERR: u16 = 17u64 as u16; #[doc = "The `DOMException.SECURITY_ERR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`*"] pub const SECURITY_ERR: u16 = 18u64 as u16; #[doc = "The `DOMException.NETWORK_ERR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`*"] pub const NETWORK_ERR: u16 = 19u64 as u16; #[doc = "The `DOMException.ABORT_ERR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`*"] pub const ABORT_ERR: u16 = 20u64 as u16; #[doc = "The `DOMException.URL_MISMATCH_ERR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`*"] pub const URL_MISMATCH_ERR: u16 = 21u64 as u16; #[doc = "The `DOMException.QUOTA_EXCEEDED_ERR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`*"] pub const QUOTA_EXCEEDED_ERR: u16 = 22u64 as u16; #[doc = "The `DOMException.TIMEOUT_ERR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`*"] pub const TIMEOUT_ERR: u16 = 23u64 as u16; #[doc = "The `DOMException.INVALID_NODE_TYPE_ERR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`*"] pub const INVALID_NODE_TYPE_ERR: u16 = 24u64 as u16; #[doc = "The `DOMException.DATA_CLONE_ERR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`*"] pub const DATA_CLONE_ERR: u16 = 25u64 as u16; } web-sys-0.3.55/src/features/gen_DomImplementation.rs000064400000000000000000000101110072674642500205620ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DOMImplementation , typescript_type = "DOMImplementation")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DomImplementation` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomImplementation`*"] pub type DomImplementation; #[cfg(feature = "Document")] # [wasm_bindgen (catch , method , structural , js_class = "DOMImplementation" , js_name = createDocument)] #[doc = "The `createDocument()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation/createDocument)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `DomImplementation`*"] pub fn create_document( this: &DomImplementation, namespace: Option<&str>, qualified_name: &str, ) -> Result; #[cfg(all(feature = "Document", feature = "DocumentType",))] # [wasm_bindgen (catch , method , structural , js_class = "DOMImplementation" , js_name = createDocument)] #[doc = "The `createDocument()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation/createDocument)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `DocumentType`, `DomImplementation`*"] pub fn create_document_with_doctype( this: &DomImplementation, namespace: Option<&str>, qualified_name: &str, doctype: Option<&DocumentType>, ) -> Result; #[cfg(feature = "DocumentType")] # [wasm_bindgen (catch , method , structural , js_class = "DOMImplementation" , js_name = createDocumentType)] #[doc = "The `createDocumentType()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation/createDocumentType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`, `DomImplementation`*"] pub fn create_document_type( this: &DomImplementation, qualified_name: &str, public_id: &str, system_id: &str, ) -> Result; #[cfg(feature = "Document")] # [wasm_bindgen (catch , method , structural , js_class = "DOMImplementation" , js_name = createHTMLDocument)] #[doc = "The `createHTMLDocument()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation/createHTMLDocument)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `DomImplementation`*"] pub fn create_html_document(this: &DomImplementation) -> Result; #[cfg(feature = "Document")] # [wasm_bindgen (catch , method , structural , js_class = "DOMImplementation" , js_name = createHTMLDocument)] #[doc = "The `createHTMLDocument()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation/createHTMLDocument)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `DomImplementation`*"] pub fn create_html_document_with_title( this: &DomImplementation, title: &str, ) -> Result; # [wasm_bindgen (method , structural , js_class = "DOMImplementation" , js_name = hasFeature)] #[doc = "The `hasFeature()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation/hasFeature)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomImplementation`*"] pub fn has_feature(this: &DomImplementation) -> bool; } web-sys-0.3.55/src/features/gen_DomMatrix.rs000064400000000000000000001035540072674642500170570ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = DomMatrixReadOnly , extends = :: js_sys :: Object , js_name = DOMMatrix , typescript_type = "DOMMatrix")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DomMatrix` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub type DomMatrix; # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrix" , js_name = a)] #[doc = "Getter for the `a` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/a)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn a(this: &DomMatrix) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "DOMMatrix" , js_name = a)] #[doc = "Setter for the `a` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/a)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn set_a(this: &DomMatrix, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrix" , js_name = b)] #[doc = "Getter for the `b` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/b)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn b(this: &DomMatrix) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "DOMMatrix" , js_name = b)] #[doc = "Setter for the `b` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/b)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn set_b(this: &DomMatrix, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrix" , js_name = c)] #[doc = "Getter for the `c` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/c)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn c(this: &DomMatrix) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "DOMMatrix" , js_name = c)] #[doc = "Setter for the `c` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/c)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn set_c(this: &DomMatrix, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrix" , js_name = d)] #[doc = "Getter for the `d` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/d)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn d(this: &DomMatrix) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "DOMMatrix" , js_name = d)] #[doc = "Setter for the `d` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/d)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn set_d(this: &DomMatrix, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrix" , js_name = e)] #[doc = "Getter for the `e` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/e)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn e(this: &DomMatrix) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "DOMMatrix" , js_name = e)] #[doc = "Setter for the `e` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/e)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn set_e(this: &DomMatrix, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrix" , js_name = f)] #[doc = "Getter for the `f` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/f)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn f(this: &DomMatrix) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "DOMMatrix" , js_name = f)] #[doc = "Setter for the `f` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/f)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn set_f(this: &DomMatrix, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrix" , js_name = m11)] #[doc = "Getter for the `m11` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m11)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn m11(this: &DomMatrix) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "DOMMatrix" , js_name = m11)] #[doc = "Setter for the `m11` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m11)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn set_m11(this: &DomMatrix, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrix" , js_name = m12)] #[doc = "Getter for the `m12` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m12)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn m12(this: &DomMatrix) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "DOMMatrix" , js_name = m12)] #[doc = "Setter for the `m12` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m12)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn set_m12(this: &DomMatrix, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrix" , js_name = m13)] #[doc = "Getter for the `m13` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m13)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn m13(this: &DomMatrix) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "DOMMatrix" , js_name = m13)] #[doc = "Setter for the `m13` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m13)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn set_m13(this: &DomMatrix, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrix" , js_name = m14)] #[doc = "Getter for the `m14` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m14)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn m14(this: &DomMatrix) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "DOMMatrix" , js_name = m14)] #[doc = "Setter for the `m14` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m14)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn set_m14(this: &DomMatrix, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrix" , js_name = m21)] #[doc = "Getter for the `m21` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m21)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn m21(this: &DomMatrix) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "DOMMatrix" , js_name = m21)] #[doc = "Setter for the `m21` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m21)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn set_m21(this: &DomMatrix, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrix" , js_name = m22)] #[doc = "Getter for the `m22` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m22)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn m22(this: &DomMatrix) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "DOMMatrix" , js_name = m22)] #[doc = "Setter for the `m22` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m22)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn set_m22(this: &DomMatrix, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrix" , js_name = m23)] #[doc = "Getter for the `m23` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m23)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn m23(this: &DomMatrix) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "DOMMatrix" , js_name = m23)] #[doc = "Setter for the `m23` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m23)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn set_m23(this: &DomMatrix, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrix" , js_name = m24)] #[doc = "Getter for the `m24` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m24)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn m24(this: &DomMatrix) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "DOMMatrix" , js_name = m24)] #[doc = "Setter for the `m24` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m24)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn set_m24(this: &DomMatrix, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrix" , js_name = m31)] #[doc = "Getter for the `m31` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m31)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn m31(this: &DomMatrix) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "DOMMatrix" , js_name = m31)] #[doc = "Setter for the `m31` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m31)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn set_m31(this: &DomMatrix, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrix" , js_name = m32)] #[doc = "Getter for the `m32` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m32)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn m32(this: &DomMatrix) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "DOMMatrix" , js_name = m32)] #[doc = "Setter for the `m32` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m32)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn set_m32(this: &DomMatrix, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrix" , js_name = m33)] #[doc = "Getter for the `m33` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m33)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn m33(this: &DomMatrix) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "DOMMatrix" , js_name = m33)] #[doc = "Setter for the `m33` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m33)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn set_m33(this: &DomMatrix, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrix" , js_name = m34)] #[doc = "Getter for the `m34` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m34)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn m34(this: &DomMatrix) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "DOMMatrix" , js_name = m34)] #[doc = "Setter for the `m34` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m34)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn set_m34(this: &DomMatrix, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrix" , js_name = m41)] #[doc = "Getter for the `m41` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m41)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn m41(this: &DomMatrix) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "DOMMatrix" , js_name = m41)] #[doc = "Setter for the `m41` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m41)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn set_m41(this: &DomMatrix, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrix" , js_name = m42)] #[doc = "Getter for the `m42` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m42)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn m42(this: &DomMatrix) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "DOMMatrix" , js_name = m42)] #[doc = "Setter for the `m42` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m42)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn set_m42(this: &DomMatrix, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrix" , js_name = m43)] #[doc = "Getter for the `m43` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m43)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn m43(this: &DomMatrix) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "DOMMatrix" , js_name = m43)] #[doc = "Setter for the `m43` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m43)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn set_m43(this: &DomMatrix, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrix" , js_name = m44)] #[doc = "Getter for the `m44` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m44)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn m44(this: &DomMatrix) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "DOMMatrix" , js_name = m44)] #[doc = "Setter for the `m44` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m44)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn set_m44(this: &DomMatrix, value: f64); #[wasm_bindgen(catch, constructor, js_class = "DOMMatrix")] #[doc = "The `new DomMatrix(..)` constructor, creating a new instance of `DomMatrix`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/DOMMatrix)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn new() -> Result; #[wasm_bindgen(catch, constructor, js_class = "DOMMatrix")] #[doc = "The `new DomMatrix(..)` constructor, creating a new instance of `DomMatrix`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/DOMMatrix)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn new_with_transform_list(transform_list: &str) -> Result; #[wasm_bindgen(catch, constructor, js_class = "DOMMatrix")] #[doc = "The `new DomMatrix(..)` constructor, creating a new instance of `DomMatrix`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/DOMMatrix)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn new_with_other(other: &DomMatrixReadOnly) -> Result; #[wasm_bindgen(catch, constructor, js_class = "DOMMatrix")] #[doc = "The `new DomMatrix(..)` constructor, creating a new instance of `DomMatrix`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/DOMMatrix)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn new_with_array32(array32: &mut [f32]) -> Result; #[wasm_bindgen(catch, constructor, js_class = "DOMMatrix")] #[doc = "The `new DomMatrix(..)` constructor, creating a new instance of `DomMatrix`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/DOMMatrix)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn new_with_array64(array64: &mut [f64]) -> Result; #[wasm_bindgen(catch, constructor, js_class = "DOMMatrix")] #[doc = "The `new DomMatrix(..)` constructor, creating a new instance of `DomMatrix`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/DOMMatrix)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn new_with_number_sequence( number_sequence: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (method , structural , js_class = "DOMMatrix" , js_name = invertSelf)] #[doc = "The `invertSelf()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/invertSelf)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn invert_self(this: &DomMatrix) -> DomMatrix; # [wasm_bindgen (method , structural , js_class = "DOMMatrix" , js_name = multiplySelf)] #[doc = "The `multiplySelf()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/multiplySelf)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn multiply_self(this: &DomMatrix, other: &DomMatrix) -> DomMatrix; # [wasm_bindgen (method , structural , js_class = "DOMMatrix" , js_name = preMultiplySelf)] #[doc = "The `preMultiplySelf()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/preMultiplySelf)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn pre_multiply_self(this: &DomMatrix, other: &DomMatrix) -> DomMatrix; # [wasm_bindgen (method , structural , js_class = "DOMMatrix" , js_name = rotateAxisAngleSelf)] #[doc = "The `rotateAxisAngleSelf()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/rotateAxisAngleSelf)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn rotate_axis_angle_self( this: &DomMatrix, x: f64, y: f64, z: f64, angle: f64, ) -> DomMatrix; # [wasm_bindgen (method , structural , js_class = "DOMMatrix" , js_name = rotateFromVectorSelf)] #[doc = "The `rotateFromVectorSelf()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/rotateFromVectorSelf)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn rotate_from_vector_self(this: &DomMatrix, x: f64, y: f64) -> DomMatrix; # [wasm_bindgen (method , structural , js_class = "DOMMatrix" , js_name = rotateSelf)] #[doc = "The `rotateSelf()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/rotateSelf)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn rotate_self(this: &DomMatrix, angle: f64) -> DomMatrix; # [wasm_bindgen (method , structural , js_class = "DOMMatrix" , js_name = rotateSelf)] #[doc = "The `rotateSelf()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/rotateSelf)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn rotate_self_with_origin_x(this: &DomMatrix, angle: f64, origin_x: f64) -> DomMatrix; # [wasm_bindgen (method , structural , js_class = "DOMMatrix" , js_name = rotateSelf)] #[doc = "The `rotateSelf()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/rotateSelf)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn rotate_self_with_origin_x_and_origin_y( this: &DomMatrix, angle: f64, origin_x: f64, origin_y: f64, ) -> DomMatrix; # [wasm_bindgen (method , structural , js_class = "DOMMatrix" , js_name = scale3dSelf)] #[doc = "The `scale3dSelf()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/scale3dSelf)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn scale3d_self(this: &DomMatrix, scale: f64) -> DomMatrix; # [wasm_bindgen (method , structural , js_class = "DOMMatrix" , js_name = scale3dSelf)] #[doc = "The `scale3dSelf()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/scale3dSelf)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn scale3d_self_with_origin_x(this: &DomMatrix, scale: f64, origin_x: f64) -> DomMatrix; # [wasm_bindgen (method , structural , js_class = "DOMMatrix" , js_name = scale3dSelf)] #[doc = "The `scale3dSelf()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/scale3dSelf)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn scale3d_self_with_origin_x_and_origin_y( this: &DomMatrix, scale: f64, origin_x: f64, origin_y: f64, ) -> DomMatrix; # [wasm_bindgen (method , structural , js_class = "DOMMatrix" , js_name = scale3dSelf)] #[doc = "The `scale3dSelf()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/scale3dSelf)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn scale3d_self_with_origin_x_and_origin_y_and_origin_z( this: &DomMatrix, scale: f64, origin_x: f64, origin_y: f64, origin_z: f64, ) -> DomMatrix; # [wasm_bindgen (method , structural , js_class = "DOMMatrix" , js_name = scaleNonUniformSelf)] #[doc = "The `scaleNonUniformSelf()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/scaleNonUniformSelf)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn scale_non_uniform_self(this: &DomMatrix, scale_x: f64) -> DomMatrix; # [wasm_bindgen (method , structural , js_class = "DOMMatrix" , js_name = scaleNonUniformSelf)] #[doc = "The `scaleNonUniformSelf()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/scaleNonUniformSelf)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn scale_non_uniform_self_with_scale_y( this: &DomMatrix, scale_x: f64, scale_y: f64, ) -> DomMatrix; # [wasm_bindgen (method , structural , js_class = "DOMMatrix" , js_name = scaleNonUniformSelf)] #[doc = "The `scaleNonUniformSelf()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/scaleNonUniformSelf)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn scale_non_uniform_self_with_scale_y_and_scale_z( this: &DomMatrix, scale_x: f64, scale_y: f64, scale_z: f64, ) -> DomMatrix; # [wasm_bindgen (method , structural , js_class = "DOMMatrix" , js_name = scaleNonUniformSelf)] #[doc = "The `scaleNonUniformSelf()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/scaleNonUniformSelf)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn scale_non_uniform_self_with_scale_y_and_scale_z_and_origin_x( this: &DomMatrix, scale_x: f64, scale_y: f64, scale_z: f64, origin_x: f64, ) -> DomMatrix; # [wasm_bindgen (method , structural , js_class = "DOMMatrix" , js_name = scaleNonUniformSelf)] #[doc = "The `scaleNonUniformSelf()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/scaleNonUniformSelf)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn scale_non_uniform_self_with_scale_y_and_scale_z_and_origin_x_and_origin_y( this: &DomMatrix, scale_x: f64, scale_y: f64, scale_z: f64, origin_x: f64, origin_y: f64, ) -> DomMatrix; # [wasm_bindgen (method , structural , js_class = "DOMMatrix" , js_name = scaleNonUniformSelf)] #[doc = "The `scaleNonUniformSelf()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/scaleNonUniformSelf)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn scale_non_uniform_self_with_scale_y_and_scale_z_and_origin_x_and_origin_y_and_origin_z( this: &DomMatrix, scale_x: f64, scale_y: f64, scale_z: f64, origin_x: f64, origin_y: f64, origin_z: f64, ) -> DomMatrix; # [wasm_bindgen (method , structural , js_class = "DOMMatrix" , js_name = scaleSelf)] #[doc = "The `scaleSelf()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/scaleSelf)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn scale_self(this: &DomMatrix, scale: f64) -> DomMatrix; # [wasm_bindgen (method , structural , js_class = "DOMMatrix" , js_name = scaleSelf)] #[doc = "The `scaleSelf()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/scaleSelf)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn scale_self_with_origin_x(this: &DomMatrix, scale: f64, origin_x: f64) -> DomMatrix; # [wasm_bindgen (method , structural , js_class = "DOMMatrix" , js_name = scaleSelf)] #[doc = "The `scaleSelf()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/scaleSelf)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn scale_self_with_origin_x_and_origin_y( this: &DomMatrix, scale: f64, origin_x: f64, origin_y: f64, ) -> DomMatrix; # [wasm_bindgen (catch , method , structural , js_class = "DOMMatrix" , js_name = setMatrixValue)] #[doc = "The `setMatrixValue()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/setMatrixValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn set_matrix_value(this: &DomMatrix, transform_list: &str) -> Result; # [wasm_bindgen (method , structural , js_class = "DOMMatrix" , js_name = skewXSelf)] #[doc = "The `skewXSelf()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/skewXSelf)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn skew_x_self(this: &DomMatrix, sx: f64) -> DomMatrix; # [wasm_bindgen (method , structural , js_class = "DOMMatrix" , js_name = skewYSelf)] #[doc = "The `skewYSelf()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/skewYSelf)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn skew_y_self(this: &DomMatrix, sy: f64) -> DomMatrix; # [wasm_bindgen (method , structural , js_class = "DOMMatrix" , js_name = translateSelf)] #[doc = "The `translateSelf()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/translateSelf)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn translate_self(this: &DomMatrix, tx: f64, ty: f64) -> DomMatrix; # [wasm_bindgen (method , structural , js_class = "DOMMatrix" , js_name = translateSelf)] #[doc = "The `translateSelf()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/translateSelf)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] pub fn translate_self_with_tz(this: &DomMatrix, tx: f64, ty: f64, tz: f64) -> DomMatrix; } web-sys-0.3.55/src/features/gen_DomMatrixReadOnly.rs000064400000000000000000000721320072674642500205120ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DOMMatrixReadOnly , typescript_type = "DOMMatrixReadOnly")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DomMatrixReadOnly` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub type DomMatrixReadOnly; # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = a)] #[doc = "Getter for the `a` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/a)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub fn a(this: &DomMatrixReadOnly) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = b)] #[doc = "Getter for the `b` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/b)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub fn b(this: &DomMatrixReadOnly) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = c)] #[doc = "Getter for the `c` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/c)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub fn c(this: &DomMatrixReadOnly) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = d)] #[doc = "Getter for the `d` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/d)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub fn d(this: &DomMatrixReadOnly) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = e)] #[doc = "Getter for the `e` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/e)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub fn e(this: &DomMatrixReadOnly) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = f)] #[doc = "Getter for the `f` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/f)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub fn f(this: &DomMatrixReadOnly) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = m11)] #[doc = "Getter for the `m11` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/m11)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub fn m11(this: &DomMatrixReadOnly) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = m12)] #[doc = "Getter for the `m12` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/m12)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub fn m12(this: &DomMatrixReadOnly) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = m13)] #[doc = "Getter for the `m13` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/m13)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub fn m13(this: &DomMatrixReadOnly) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = m14)] #[doc = "Getter for the `m14` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/m14)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub fn m14(this: &DomMatrixReadOnly) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = m21)] #[doc = "Getter for the `m21` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/m21)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub fn m21(this: &DomMatrixReadOnly) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = m22)] #[doc = "Getter for the `m22` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/m22)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub fn m22(this: &DomMatrixReadOnly) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = m23)] #[doc = "Getter for the `m23` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/m23)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub fn m23(this: &DomMatrixReadOnly) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = m24)] #[doc = "Getter for the `m24` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/m24)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub fn m24(this: &DomMatrixReadOnly) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = m31)] #[doc = "Getter for the `m31` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/m31)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub fn m31(this: &DomMatrixReadOnly) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = m32)] #[doc = "Getter for the `m32` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/m32)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub fn m32(this: &DomMatrixReadOnly) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = m33)] #[doc = "Getter for the `m33` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/m33)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub fn m33(this: &DomMatrixReadOnly) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = m34)] #[doc = "Getter for the `m34` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/m34)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub fn m34(this: &DomMatrixReadOnly) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = m41)] #[doc = "Getter for the `m41` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/m41)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub fn m41(this: &DomMatrixReadOnly) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = m42)] #[doc = "Getter for the `m42` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/m42)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub fn m42(this: &DomMatrixReadOnly) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = m43)] #[doc = "Getter for the `m43` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/m43)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub fn m43(this: &DomMatrixReadOnly) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = m44)] #[doc = "Getter for the `m44` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/m44)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub fn m44(this: &DomMatrixReadOnly) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = is2D)] #[doc = "Getter for the `is2D` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/is2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub fn is_2d(this: &DomMatrixReadOnly) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = isIdentity)] #[doc = "Getter for the `isIdentity` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/isIdentity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub fn is_identity(this: &DomMatrixReadOnly) -> bool; #[wasm_bindgen(catch, constructor, js_class = "DOMMatrixReadOnly")] #[doc = "The `new DomMatrixReadOnly(..)` constructor, creating a new instance of `DomMatrixReadOnly`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/DOMMatrixReadOnly)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub fn new() -> Result; #[wasm_bindgen(catch, constructor, js_class = "DOMMatrixReadOnly")] #[doc = "The `new DomMatrixReadOnly(..)` constructor, creating a new instance of `DomMatrixReadOnly`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/DOMMatrixReadOnly)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub fn new_with_str(init: &str) -> Result; #[wasm_bindgen(catch, constructor, js_class = "DOMMatrixReadOnly")] #[doc = "The `new DomMatrixReadOnly(..)` constructor, creating a new instance of `DomMatrixReadOnly`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/DOMMatrixReadOnly)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub fn new_with_f64_sequence( init: &::wasm_bindgen::JsValue, ) -> Result; #[cfg(feature = "DomMatrix")] # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = flipX)] #[doc = "The `flipX()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/flipX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] pub fn flip_x(this: &DomMatrixReadOnly) -> DomMatrix; #[cfg(feature = "DomMatrix")] # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = flipY)] #[doc = "The `flipY()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/flipY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] pub fn flip_y(this: &DomMatrixReadOnly) -> DomMatrix; #[cfg(feature = "DomMatrix")] # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = inverse)] #[doc = "The `inverse()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/inverse)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] pub fn inverse(this: &DomMatrixReadOnly) -> DomMatrix; #[cfg(feature = "DomMatrix")] # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = multiply)] #[doc = "The `multiply()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/multiply)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] pub fn multiply(this: &DomMatrixReadOnly, other: &DomMatrix) -> DomMatrix; #[cfg(feature = "DomMatrix")] # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = rotate)] #[doc = "The `rotate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/rotate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] pub fn rotate(this: &DomMatrixReadOnly, angle: f64) -> DomMatrix; #[cfg(feature = "DomMatrix")] # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = rotate)] #[doc = "The `rotate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/rotate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] pub fn rotate_with_origin_x(this: &DomMatrixReadOnly, angle: f64, origin_x: f64) -> DomMatrix; #[cfg(feature = "DomMatrix")] # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = rotate)] #[doc = "The `rotate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/rotate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] pub fn rotate_with_origin_x_and_origin_y( this: &DomMatrixReadOnly, angle: f64, origin_x: f64, origin_y: f64, ) -> DomMatrix; #[cfg(feature = "DomMatrix")] # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = rotateAxisAngle)] #[doc = "The `rotateAxisAngle()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/rotateAxisAngle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] pub fn rotate_axis_angle( this: &DomMatrixReadOnly, x: f64, y: f64, z: f64, angle: f64, ) -> DomMatrix; #[cfg(feature = "DomMatrix")] # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = rotateFromVector)] #[doc = "The `rotateFromVector()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/rotateFromVector)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] pub fn rotate_from_vector(this: &DomMatrixReadOnly, x: f64, y: f64) -> DomMatrix; #[cfg(feature = "DomMatrix")] # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = scale)] #[doc = "The `scale()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/scale)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] pub fn scale(this: &DomMatrixReadOnly, scale: f64) -> DomMatrix; #[cfg(feature = "DomMatrix")] # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = scale)] #[doc = "The `scale()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/scale)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] pub fn scale_with_origin_x(this: &DomMatrixReadOnly, scale: f64, origin_x: f64) -> DomMatrix; #[cfg(feature = "DomMatrix")] # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = scale)] #[doc = "The `scale()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/scale)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] pub fn scale_with_origin_x_and_origin_y( this: &DomMatrixReadOnly, scale: f64, origin_x: f64, origin_y: f64, ) -> DomMatrix; #[cfg(feature = "DomMatrix")] # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = scale3d)] #[doc = "The `scale3d()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/scale3d)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] pub fn scale3d(this: &DomMatrixReadOnly, scale: f64) -> DomMatrix; #[cfg(feature = "DomMatrix")] # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = scale3d)] #[doc = "The `scale3d()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/scale3d)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] pub fn scale3d_with_origin_x(this: &DomMatrixReadOnly, scale: f64, origin_x: f64) -> DomMatrix; #[cfg(feature = "DomMatrix")] # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = scale3d)] #[doc = "The `scale3d()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/scale3d)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] pub fn scale3d_with_origin_x_and_origin_y( this: &DomMatrixReadOnly, scale: f64, origin_x: f64, origin_y: f64, ) -> DomMatrix; #[cfg(feature = "DomMatrix")] # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = scale3d)] #[doc = "The `scale3d()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/scale3d)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] pub fn scale3d_with_origin_x_and_origin_y_and_origin_z( this: &DomMatrixReadOnly, scale: f64, origin_x: f64, origin_y: f64, origin_z: f64, ) -> DomMatrix; #[cfg(feature = "DomMatrix")] # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = scaleNonUniform)] #[doc = "The `scaleNonUniform()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/scaleNonUniform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] pub fn scale_non_uniform(this: &DomMatrixReadOnly, scale_x: f64) -> DomMatrix; #[cfg(feature = "DomMatrix")] # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = scaleNonUniform)] #[doc = "The `scaleNonUniform()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/scaleNonUniform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] pub fn scale_non_uniform_with_scale_y( this: &DomMatrixReadOnly, scale_x: f64, scale_y: f64, ) -> DomMatrix; #[cfg(feature = "DomMatrix")] # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = scaleNonUniform)] #[doc = "The `scaleNonUniform()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/scaleNonUniform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] pub fn scale_non_uniform_with_scale_y_and_scale_z( this: &DomMatrixReadOnly, scale_x: f64, scale_y: f64, scale_z: f64, ) -> DomMatrix; #[cfg(feature = "DomMatrix")] # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = scaleNonUniform)] #[doc = "The `scaleNonUniform()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/scaleNonUniform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] pub fn scale_non_uniform_with_scale_y_and_scale_z_and_origin_x( this: &DomMatrixReadOnly, scale_x: f64, scale_y: f64, scale_z: f64, origin_x: f64, ) -> DomMatrix; #[cfg(feature = "DomMatrix")] # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = scaleNonUniform)] #[doc = "The `scaleNonUniform()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/scaleNonUniform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] pub fn scale_non_uniform_with_scale_y_and_scale_z_and_origin_x_and_origin_y( this: &DomMatrixReadOnly, scale_x: f64, scale_y: f64, scale_z: f64, origin_x: f64, origin_y: f64, ) -> DomMatrix; #[cfg(feature = "DomMatrix")] # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = scaleNonUniform)] #[doc = "The `scaleNonUniform()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/scaleNonUniform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] pub fn scale_non_uniform_with_scale_y_and_scale_z_and_origin_x_and_origin_y_and_origin_z( this: &DomMatrixReadOnly, scale_x: f64, scale_y: f64, scale_z: f64, origin_x: f64, origin_y: f64, origin_z: f64, ) -> DomMatrix; #[cfg(feature = "DomMatrix")] # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = skewX)] #[doc = "The `skewX()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/skewX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] pub fn skew_x(this: &DomMatrixReadOnly, sx: f64) -> DomMatrix; #[cfg(feature = "DomMatrix")] # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = skewY)] #[doc = "The `skewY()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/skewY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] pub fn skew_y(this: &DomMatrixReadOnly, sy: f64) -> DomMatrix; # [wasm_bindgen (catch , method , structural , js_class = "DOMMatrixReadOnly" , js_name = toFloat32Array)] #[doc = "The `toFloat32Array()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/toFloat32Array)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub fn to_float32_array(this: &DomMatrixReadOnly) -> Result, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DOMMatrixReadOnly" , js_name = toFloat64Array)] #[doc = "The `toFloat64Array()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/toFloat64Array)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub fn to_float64_array(this: &DomMatrixReadOnly) -> Result, JsValue>; # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = toJSON)] #[doc = "The `toJSON()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/toJSON)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] pub fn to_json(this: &DomMatrixReadOnly) -> ::js_sys::Object; #[cfg(feature = "DomPoint")] # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = transformPoint)] #[doc = "The `transformPoint()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/transformPoint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`, `DomPoint`*"] pub fn transform_point(this: &DomMatrixReadOnly) -> DomPoint; #[cfg(all(feature = "DomPoint", feature = "DomPointInit",))] # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = transformPoint)] #[doc = "The `transformPoint()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/transformPoint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`, `DomPoint`, `DomPointInit`*"] pub fn transform_point_with_point(this: &DomMatrixReadOnly, point: &DomPointInit) -> DomPoint; #[cfg(feature = "DomMatrix")] # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = translate)] #[doc = "The `translate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/translate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] pub fn translate(this: &DomMatrixReadOnly, tx: f64, ty: f64) -> DomMatrix; #[cfg(feature = "DomMatrix")] # [wasm_bindgen (method , structural , js_class = "DOMMatrixReadOnly" , js_name = translate)] #[doc = "The `translate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/translate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] pub fn translate_with_tz(this: &DomMatrixReadOnly, tx: f64, ty: f64, tz: f64) -> DomMatrix; } web-sys-0.3.55/src/features/gen_DomParser.rs000064400000000000000000000030660072674642500170440ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DOMParser , typescript_type = "DOMParser")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DomParser` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMParser)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomParser`*"] pub type DomParser; #[wasm_bindgen(catch, constructor, js_class = "DOMParser")] #[doc = "The `new DomParser(..)` constructor, creating a new instance of `DomParser`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMParser/DOMParser)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomParser`*"] pub fn new() -> Result; #[cfg(all(feature = "Document", feature = "SupportedType",))] # [wasm_bindgen (catch , method , structural , js_class = "DOMParser" , js_name = parseFromString)] #[doc = "The `parseFromString()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMParser/parseFromString)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `DomParser`, `SupportedType`*"] pub fn parse_from_string( this: &DomParser, str: &str, type_: SupportedType, ) -> Result; } web-sys-0.3.55/src/features/gen_DomPoint.rs000064400000000000000000000155600072674642500167030ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = DomPointReadOnly , extends = :: js_sys :: Object , js_name = DOMPoint , typescript_type = "DOMPoint")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DomPoint` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPoint`*"] pub type DomPoint; # [wasm_bindgen (structural , method , getter , js_class = "DOMPoint" , js_name = x)] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPoint`*"] pub fn x(this: &DomPoint) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "DOMPoint" , js_name = x)] #[doc = "Setter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPoint`*"] pub fn set_x(this: &DomPoint, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "DOMPoint" , js_name = y)] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPoint`*"] pub fn y(this: &DomPoint) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "DOMPoint" , js_name = y)] #[doc = "Setter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPoint`*"] pub fn set_y(this: &DomPoint, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "DOMPoint" , js_name = z)] #[doc = "Getter for the `z` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint/z)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPoint`*"] pub fn z(this: &DomPoint) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "DOMPoint" , js_name = z)] #[doc = "Setter for the `z` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint/z)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPoint`*"] pub fn set_z(this: &DomPoint, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "DOMPoint" , js_name = w)] #[doc = "Getter for the `w` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint/w)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPoint`*"] pub fn w(this: &DomPoint) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "DOMPoint" , js_name = w)] #[doc = "Setter for the `w` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint/w)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPoint`*"] pub fn set_w(this: &DomPoint, value: f64); #[wasm_bindgen(catch, constructor, js_class = "DOMPoint")] #[doc = "The `new DomPoint(..)` constructor, creating a new instance of `DomPoint`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint/DOMPoint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPoint`*"] pub fn new() -> Result; #[wasm_bindgen(catch, constructor, js_class = "DOMPoint")] #[doc = "The `new DomPoint(..)` constructor, creating a new instance of `DomPoint`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint/DOMPoint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPoint`*"] pub fn new_with_x(x: f64) -> Result; #[wasm_bindgen(catch, constructor, js_class = "DOMPoint")] #[doc = "The `new DomPoint(..)` constructor, creating a new instance of `DomPoint`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint/DOMPoint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPoint`*"] pub fn new_with_x_and_y(x: f64, y: f64) -> Result; #[wasm_bindgen(catch, constructor, js_class = "DOMPoint")] #[doc = "The `new DomPoint(..)` constructor, creating a new instance of `DomPoint`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint/DOMPoint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPoint`*"] pub fn new_with_x_and_y_and_z(x: f64, y: f64, z: f64) -> Result; #[wasm_bindgen(catch, constructor, js_class = "DOMPoint")] #[doc = "The `new DomPoint(..)` constructor, creating a new instance of `DomPoint`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint/DOMPoint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPoint`*"] pub fn new_with_x_and_y_and_z_and_w( x: f64, y: f64, z: f64, w: f64, ) -> Result; # [wasm_bindgen (static_method_of = DomPoint , js_class = "DOMPoint" , js_name = fromPoint)] #[doc = "The `fromPoint()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint/fromPoint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPoint`*"] pub fn from_point() -> DomPoint; #[cfg(feature = "DomPointInit")] # [wasm_bindgen (static_method_of = DomPoint , js_class = "DOMPoint" , js_name = fromPoint)] #[doc = "The `fromPoint()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint/fromPoint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPoint`, `DomPointInit`*"] pub fn from_point_with_other(other: &DomPointInit) -> DomPoint; } web-sys-0.3.55/src/features/gen_DomPointInit.rs000064400000000000000000000055360072674642500175310ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DOMPointInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DomPointInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPointInit`*"] pub type DomPointInit; } impl DomPointInit { #[doc = "Construct a new `DomPointInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPointInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `w` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPointInit`*"] pub fn w(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("w"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `x` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPointInit`*"] pub fn x(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("x"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `y` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPointInit`*"] pub fn y(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("y"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `z` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPointInit`*"] pub fn z(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("z"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for DomPointInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_DomPointReadOnly.rs000064400000000000000000000142550072674642500203410ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DOMPointReadOnly , typescript_type = "DOMPointReadOnly")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DomPointReadOnly` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPointReadOnly)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPointReadOnly`*"] pub type DomPointReadOnly; # [wasm_bindgen (structural , method , getter , js_class = "DOMPointReadOnly" , js_name = x)] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPointReadOnly/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPointReadOnly`*"] pub fn x(this: &DomPointReadOnly) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "DOMPointReadOnly" , js_name = y)] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPointReadOnly/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPointReadOnly`*"] pub fn y(this: &DomPointReadOnly) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "DOMPointReadOnly" , js_name = z)] #[doc = "Getter for the `z` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPointReadOnly/z)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPointReadOnly`*"] pub fn z(this: &DomPointReadOnly) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "DOMPointReadOnly" , js_name = w)] #[doc = "Getter for the `w` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPointReadOnly/w)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPointReadOnly`*"] pub fn w(this: &DomPointReadOnly) -> f64; #[wasm_bindgen(catch, constructor, js_class = "DOMPointReadOnly")] #[doc = "The `new DomPointReadOnly(..)` constructor, creating a new instance of `DomPointReadOnly`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPointReadOnly/DOMPointReadOnly)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPointReadOnly`*"] pub fn new() -> Result; #[wasm_bindgen(catch, constructor, js_class = "DOMPointReadOnly")] #[doc = "The `new DomPointReadOnly(..)` constructor, creating a new instance of `DomPointReadOnly`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPointReadOnly/DOMPointReadOnly)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPointReadOnly`*"] pub fn new_with_x(x: f64) -> Result; #[wasm_bindgen(catch, constructor, js_class = "DOMPointReadOnly")] #[doc = "The `new DomPointReadOnly(..)` constructor, creating a new instance of `DomPointReadOnly`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPointReadOnly/DOMPointReadOnly)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPointReadOnly`*"] pub fn new_with_x_and_y(x: f64, y: f64) -> Result; #[wasm_bindgen(catch, constructor, js_class = "DOMPointReadOnly")] #[doc = "The `new DomPointReadOnly(..)` constructor, creating a new instance of `DomPointReadOnly`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPointReadOnly/DOMPointReadOnly)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPointReadOnly`*"] pub fn new_with_x_and_y_and_z(x: f64, y: f64, z: f64) -> Result; #[wasm_bindgen(catch, constructor, js_class = "DOMPointReadOnly")] #[doc = "The `new DomPointReadOnly(..)` constructor, creating a new instance of `DomPointReadOnly`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPointReadOnly/DOMPointReadOnly)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPointReadOnly`*"] pub fn new_with_x_and_y_and_z_and_w( x: f64, y: f64, z: f64, w: f64, ) -> Result; # [wasm_bindgen (static_method_of = DomPointReadOnly , js_class = "DOMPointReadOnly" , js_name = fromPoint)] #[doc = "The `fromPoint()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPointReadOnly/fromPoint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPointReadOnly`*"] pub fn from_point() -> DomPointReadOnly; #[cfg(feature = "DomPointInit")] # [wasm_bindgen (static_method_of = DomPointReadOnly , js_class = "DOMPointReadOnly" , js_name = fromPoint)] #[doc = "The `fromPoint()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPointReadOnly/fromPoint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPointInit`, `DomPointReadOnly`*"] pub fn from_point_with_other(other: &DomPointInit) -> DomPointReadOnly; # [wasm_bindgen (method , structural , js_class = "DOMPointReadOnly" , js_name = toJSON)] #[doc = "The `toJSON()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPointReadOnly/toJSON)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPointReadOnly`*"] pub fn to_json(this: &DomPointReadOnly) -> ::js_sys::Object; } web-sys-0.3.55/src/features/gen_DomQuad.rs000064400000000000000000000154700072674642500165040ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DOMQuad , typescript_type = "DOMQuad")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DomQuad` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMQuad)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomQuad`*"] pub type DomQuad; #[cfg(feature = "DomPoint")] # [wasm_bindgen (structural , method , getter , js_class = "DOMQuad" , js_name = p1)] #[doc = "Getter for the `p1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMQuad/p1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPoint`, `DomQuad`*"] pub fn p1(this: &DomQuad) -> DomPoint; #[cfg(feature = "DomPoint")] # [wasm_bindgen (structural , method , getter , js_class = "DOMQuad" , js_name = p2)] #[doc = "Getter for the `p2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMQuad/p2)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPoint`, `DomQuad`*"] pub fn p2(this: &DomQuad) -> DomPoint; #[cfg(feature = "DomPoint")] # [wasm_bindgen (structural , method , getter , js_class = "DOMQuad" , js_name = p3)] #[doc = "Getter for the `p3` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMQuad/p3)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPoint`, `DomQuad`*"] pub fn p3(this: &DomQuad) -> DomPoint; #[cfg(feature = "DomPoint")] # [wasm_bindgen (structural , method , getter , js_class = "DOMQuad" , js_name = p4)] #[doc = "Getter for the `p4` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMQuad/p4)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPoint`, `DomQuad`*"] pub fn p4(this: &DomQuad) -> DomPoint; #[cfg(feature = "DomRectReadOnly")] # [wasm_bindgen (structural , method , getter , js_class = "DOMQuad" , js_name = bounds)] #[doc = "Getter for the `bounds` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMQuad/bounds)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomQuad`, `DomRectReadOnly`*"] pub fn bounds(this: &DomQuad) -> DomRectReadOnly; #[wasm_bindgen(catch, constructor, js_class = "DOMQuad")] #[doc = "The `new DomQuad(..)` constructor, creating a new instance of `DomQuad`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMQuad/DOMQuad)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomQuad`*"] pub fn new() -> Result; #[cfg(feature = "DomPointInit")] #[wasm_bindgen(catch, constructor, js_class = "DOMQuad")] #[doc = "The `new DomQuad(..)` constructor, creating a new instance of `DomQuad`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMQuad/DOMQuad)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPointInit`, `DomQuad`*"] pub fn new_with_dom_point_init(p1: &DomPointInit) -> Result; #[cfg(feature = "DomPointInit")] #[wasm_bindgen(catch, constructor, js_class = "DOMQuad")] #[doc = "The `new DomQuad(..)` constructor, creating a new instance of `DomQuad`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMQuad/DOMQuad)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPointInit`, `DomQuad`*"] pub fn new_with_dom_point_init_and_p2( p1: &DomPointInit, p2: &DomPointInit, ) -> Result; #[cfg(feature = "DomPointInit")] #[wasm_bindgen(catch, constructor, js_class = "DOMQuad")] #[doc = "The `new DomQuad(..)` constructor, creating a new instance of `DomQuad`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMQuad/DOMQuad)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPointInit`, `DomQuad`*"] pub fn new_with_dom_point_init_and_p2_and_p3( p1: &DomPointInit, p2: &DomPointInit, p3: &DomPointInit, ) -> Result; #[cfg(feature = "DomPointInit")] #[wasm_bindgen(catch, constructor, js_class = "DOMQuad")] #[doc = "The `new DomQuad(..)` constructor, creating a new instance of `DomQuad`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMQuad/DOMQuad)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPointInit`, `DomQuad`*"] pub fn new_with_dom_point_init_and_p2_and_p3_and_p4( p1: &DomPointInit, p2: &DomPointInit, p3: &DomPointInit, p4: &DomPointInit, ) -> Result; #[cfg(feature = "DomRectReadOnly")] #[wasm_bindgen(catch, constructor, js_class = "DOMQuad")] #[doc = "The `new DomQuad(..)` constructor, creating a new instance of `DomQuad`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMQuad/DOMQuad)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomQuad`, `DomRectReadOnly`*"] pub fn new_with_rect(rect: &DomRectReadOnly) -> Result; #[cfg(feature = "DomRectReadOnly")] # [wasm_bindgen (method , structural , js_class = "DOMQuad" , js_name = getBounds)] #[doc = "The `getBounds()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMQuad/getBounds)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomQuad`, `DomRectReadOnly`*"] pub fn get_bounds(this: &DomQuad) -> DomRectReadOnly; #[cfg(feature = "DomQuadJson")] # [wasm_bindgen (method , structural , js_class = "DOMQuad" , js_name = toJSON)] #[doc = "The `toJSON()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMQuad/toJSON)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomQuad`, `DomQuadJson`*"] pub fn to_json(this: &DomQuad) -> DomQuadJson; } web-sys-0.3.55/src/features/gen_DomQuadInit.rs000064400000000000000000000061320072674642500173230ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DOMQuadInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DomQuadInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomQuadInit`*"] pub type DomQuadInit; } impl DomQuadInit { #[doc = "Construct a new `DomQuadInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomQuadInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(feature = "DomPointInit")] #[doc = "Change the `p1` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPointInit`, `DomQuadInit`*"] pub fn p1(&mut self, val: &DomPointInit) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("p1"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "DomPointInit")] #[doc = "Change the `p2` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPointInit`, `DomQuadInit`*"] pub fn p2(&mut self, val: &DomPointInit) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("p2"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "DomPointInit")] #[doc = "Change the `p3` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPointInit`, `DomQuadInit`*"] pub fn p3(&mut self, val: &DomPointInit) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("p3"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "DomPointInit")] #[doc = "Change the `p4` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPointInit`, `DomQuadInit`*"] pub fn p4(&mut self, val: &DomPointInit) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("p4"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for DomQuadInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_DomQuadJson.rs000064400000000000000000000060520072674642500173320ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DOMQuadJSON)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DomQuadJson` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomQuadJson`*"] pub type DomQuadJson; } impl DomQuadJson { #[doc = "Construct a new `DomQuadJson`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomQuadJson`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(feature = "DomPoint")] #[doc = "Change the `p1` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPoint`, `DomQuadJson`*"] pub fn p1(&mut self, val: &DomPoint) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("p1"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "DomPoint")] #[doc = "Change the `p2` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPoint`, `DomQuadJson`*"] pub fn p2(&mut self, val: &DomPoint) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("p2"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "DomPoint")] #[doc = "Change the `p3` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPoint`, `DomQuadJson`*"] pub fn p3(&mut self, val: &DomPoint) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("p3"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "DomPoint")] #[doc = "Change the `p4` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPoint`, `DomQuadJson`*"] pub fn p4(&mut self, val: &DomPoint) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("p4"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for DomQuadJson { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_DomRect.rs000064400000000000000000000140160072674642500165020ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = DomRectReadOnly , extends = :: js_sys :: Object , js_name = DOMRect , typescript_type = "DOMRect")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DomRect` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRect`*"] pub type DomRect; # [wasm_bindgen (structural , method , getter , js_class = "DOMRect" , js_name = x)] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRect/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRect`*"] pub fn x(this: &DomRect) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "DOMRect" , js_name = x)] #[doc = "Setter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRect/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRect`*"] pub fn set_x(this: &DomRect, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "DOMRect" , js_name = y)] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRect/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRect`*"] pub fn y(this: &DomRect) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "DOMRect" , js_name = y)] #[doc = "Setter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRect/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRect`*"] pub fn set_y(this: &DomRect, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "DOMRect" , js_name = width)] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRect/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRect`*"] pub fn width(this: &DomRect) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "DOMRect" , js_name = width)] #[doc = "Setter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRect/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRect`*"] pub fn set_width(this: &DomRect, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "DOMRect" , js_name = height)] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRect/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRect`*"] pub fn height(this: &DomRect) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "DOMRect" , js_name = height)] #[doc = "Setter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRect/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRect`*"] pub fn set_height(this: &DomRect, value: f64); #[wasm_bindgen(catch, constructor, js_class = "DOMRect")] #[doc = "The `new DomRect(..)` constructor, creating a new instance of `DomRect`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRect/DOMRect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRect`*"] pub fn new() -> Result; #[wasm_bindgen(catch, constructor, js_class = "DOMRect")] #[doc = "The `new DomRect(..)` constructor, creating a new instance of `DomRect`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRect/DOMRect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRect`*"] pub fn new_with_x(x: f64) -> Result; #[wasm_bindgen(catch, constructor, js_class = "DOMRect")] #[doc = "The `new DomRect(..)` constructor, creating a new instance of `DomRect`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRect/DOMRect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRect`*"] pub fn new_with_x_and_y(x: f64, y: f64) -> Result; #[wasm_bindgen(catch, constructor, js_class = "DOMRect")] #[doc = "The `new DomRect(..)` constructor, creating a new instance of `DomRect`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRect/DOMRect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRect`*"] pub fn new_with_x_and_y_and_width(x: f64, y: f64, width: f64) -> Result; #[wasm_bindgen(catch, constructor, js_class = "DOMRect")] #[doc = "The `new DomRect(..)` constructor, creating a new instance of `DomRect`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRect/DOMRect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRect`*"] pub fn new_with_x_and_y_and_width_and_height( x: f64, y: f64, width: f64, height: f64, ) -> Result; } web-sys-0.3.55/src/features/gen_DomRectInit.rs000064400000000000000000000055710072674642500173340ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DOMRectInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DomRectInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectInit`*"] pub type DomRectInit; } impl DomRectInit { #[doc = "Construct a new `DomRectInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `height` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectInit`*"] pub fn height(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("height"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `width` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectInit`*"] pub fn width(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("width"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `x` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectInit`*"] pub fn x(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("x"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `y` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectInit`*"] pub fn y(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("y"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for DomRectInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_DomRectList.rs000064400000000000000000000034240072674642500173370ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DOMRectList , typescript_type = "DOMRectList")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DomRectList` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectList)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectList`*"] pub type DomRectList; # [wasm_bindgen (structural , method , getter , js_class = "DOMRectList" , js_name = length)] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectList/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectList`*"] pub fn length(this: &DomRectList) -> u32; #[cfg(feature = "DomRect")] # [wasm_bindgen (method , structural , js_class = "DOMRectList" , js_name = item)] #[doc = "The `item()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectList/item)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRect`, `DomRectList`*"] pub fn item(this: &DomRectList, index: u32) -> Option; #[cfg(feature = "DomRect")] #[wasm_bindgen(method, structural, js_class = "DOMRectList", indexing_getter)] #[doc = "Indexing getter."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRect`, `DomRectList`*"] pub fn get(this: &DomRectList, index: u32) -> Option; } web-sys-0.3.55/src/features/gen_DomRectReadOnly.rs000064400000000000000000000157730072674642500201530ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DOMRectReadOnly , typescript_type = "DOMRectReadOnly")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DomRectReadOnly` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"] pub type DomRectReadOnly; # [wasm_bindgen (structural , method , getter , js_class = "DOMRectReadOnly" , js_name = x)] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"] pub fn x(this: &DomRectReadOnly) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "DOMRectReadOnly" , js_name = y)] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"] pub fn y(this: &DomRectReadOnly) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "DOMRectReadOnly" , js_name = width)] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"] pub fn width(this: &DomRectReadOnly) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "DOMRectReadOnly" , js_name = height)] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"] pub fn height(this: &DomRectReadOnly) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "DOMRectReadOnly" , js_name = top)] #[doc = "Getter for the `top` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/top)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"] pub fn top(this: &DomRectReadOnly) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "DOMRectReadOnly" , js_name = right)] #[doc = "Getter for the `right` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/right)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"] pub fn right(this: &DomRectReadOnly) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "DOMRectReadOnly" , js_name = bottom)] #[doc = "Getter for the `bottom` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/bottom)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"] pub fn bottom(this: &DomRectReadOnly) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "DOMRectReadOnly" , js_name = left)] #[doc = "Getter for the `left` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/left)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"] pub fn left(this: &DomRectReadOnly) -> f64; #[wasm_bindgen(catch, constructor, js_class = "DOMRectReadOnly")] #[doc = "The `new DomRectReadOnly(..)` constructor, creating a new instance of `DomRectReadOnly`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/DOMRectReadOnly)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"] pub fn new() -> Result; #[wasm_bindgen(catch, constructor, js_class = "DOMRectReadOnly")] #[doc = "The `new DomRectReadOnly(..)` constructor, creating a new instance of `DomRectReadOnly`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/DOMRectReadOnly)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"] pub fn new_with_x(x: f64) -> Result; #[wasm_bindgen(catch, constructor, js_class = "DOMRectReadOnly")] #[doc = "The `new DomRectReadOnly(..)` constructor, creating a new instance of `DomRectReadOnly`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/DOMRectReadOnly)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"] pub fn new_with_x_and_y(x: f64, y: f64) -> Result; #[wasm_bindgen(catch, constructor, js_class = "DOMRectReadOnly")] #[doc = "The `new DomRectReadOnly(..)` constructor, creating a new instance of `DomRectReadOnly`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/DOMRectReadOnly)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"] pub fn new_with_x_and_y_and_width( x: f64, y: f64, width: f64, ) -> Result; #[wasm_bindgen(catch, constructor, js_class = "DOMRectReadOnly")] #[doc = "The `new DomRectReadOnly(..)` constructor, creating a new instance of `DomRectReadOnly`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/DOMRectReadOnly)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"] pub fn new_with_x_and_y_and_width_and_height( x: f64, y: f64, width: f64, height: f64, ) -> Result; # [wasm_bindgen (method , structural , js_class = "DOMRectReadOnly" , js_name = toJSON)] #[doc = "The `toJSON()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/toJSON)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"] pub fn to_json(this: &DomRectReadOnly) -> ::js_sys::Object; } web-sys-0.3.55/src/features/gen_DomRequest.rs000064400000000000000000000125610072674642500172400ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = DOMRequest , typescript_type = "DOMRequest")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DomRequest` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRequest)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRequest`*"] pub type DomRequest; #[cfg(feature = "DomRequestReadyState")] # [wasm_bindgen (structural , method , getter , js_class = "DOMRequest" , js_name = readyState)] #[doc = "Getter for the `readyState` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRequest/readyState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRequest`, `DomRequestReadyState`*"] pub fn ready_state(this: &DomRequest) -> DomRequestReadyState; # [wasm_bindgen (structural , method , getter , js_class = "DOMRequest" , js_name = result)] #[doc = "Getter for the `result` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRequest/result)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRequest`*"] pub fn result(this: &DomRequest) -> ::wasm_bindgen::JsValue; #[cfg(feature = "DomException")] # [wasm_bindgen (structural , method , getter , js_class = "DOMRequest" , js_name = error)] #[doc = "Getter for the `error` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRequest/error)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`, `DomRequest`*"] pub fn error(this: &DomRequest) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "DOMRequest" , js_name = onsuccess)] #[doc = "Getter for the `onsuccess` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRequest/onsuccess)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRequest`*"] pub fn onsuccess(this: &DomRequest) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "DOMRequest" , js_name = onsuccess)] #[doc = "Setter for the `onsuccess` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRequest/onsuccess)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRequest`*"] pub fn set_onsuccess(this: &DomRequest, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "DOMRequest" , js_name = onerror)] #[doc = "Getter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRequest/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRequest`*"] pub fn onerror(this: &DomRequest) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "DOMRequest" , js_name = onerror)] #[doc = "Setter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRequest/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRequest`*"] pub fn set_onerror(this: &DomRequest, value: Option<&::js_sys::Function>); # [wasm_bindgen (catch , method , structural , js_class = "DOMRequest" , js_name = then)] #[doc = "The `then()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRequest/then)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRequest`*"] pub fn then(this: &DomRequest) -> Result<::wasm_bindgen::JsValue, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DOMRequest" , js_name = then)] #[doc = "The `then()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRequest/then)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRequest`*"] pub fn then_with_fulfill_callback( this: &DomRequest, fulfill_callback: Option<&::js_sys::Function>, ) -> Result<::wasm_bindgen::JsValue, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DOMRequest" , js_name = then)] #[doc = "The `then()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRequest/then)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRequest`*"] pub fn then_with_fulfill_callback_and_reject_callback( this: &DomRequest, fulfill_callback: Option<&::js_sys::Function>, reject_callback: Option<&::js_sys::Function>, ) -> Result<::wasm_bindgen::JsValue, JsValue>; } web-sys-0.3.55/src/features/gen_DomRequestReadyState.rs000064400000000000000000000005370072674642500212260ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `DomRequestReadyState` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRequestReadyState`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum DomRequestReadyState { Pending = "pending", Done = "done", } web-sys-0.3.55/src/features/gen_DomStringList.rs000064400000000000000000000042210072674642500177040ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DOMStringList , typescript_type = "DOMStringList")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DomStringList` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMStringList)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomStringList`*"] pub type DomStringList; # [wasm_bindgen (structural , method , getter , js_class = "DOMStringList" , js_name = length)] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMStringList/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomStringList`*"] pub fn length(this: &DomStringList) -> u32; # [wasm_bindgen (method , structural , js_class = "DOMStringList" , js_name = contains)] #[doc = "The `contains()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMStringList/contains)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomStringList`*"] pub fn contains(this: &DomStringList, string: &str) -> bool; # [wasm_bindgen (method , structural , js_class = "DOMStringList" , js_name = item)] #[doc = "The `item()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMStringList/item)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomStringList`*"] pub fn item(this: &DomStringList, index: u32) -> Option; #[wasm_bindgen(method, structural, js_class = "DOMStringList", indexing_getter)] #[doc = "Indexing getter."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomStringList`*"] pub fn get(this: &DomStringList, index: u32) -> Option; } web-sys-0.3.55/src/features/gen_DomStringMap.rs000064400000000000000000000030100072674642500175010ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DOMStringMap , typescript_type = "DOMStringMap")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DomStringMap` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMStringMap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomStringMap`*"] pub type DomStringMap; #[wasm_bindgen(method, structural, js_class = "DOMStringMap", indexing_getter)] #[doc = "Indexing getter."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomStringMap`*"] pub fn get(this: &DomStringMap, name: &str) -> Option; #[wasm_bindgen(catch, method, structural, js_class = "DOMStringMap", indexing_setter)] #[doc = "Indexing setter."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomStringMap`*"] pub fn set(this: &DomStringMap, name: &str, value: &str) -> Result<(), JsValue>; #[wasm_bindgen(method, structural, js_class = "DOMStringMap", indexing_deleter)] #[doc = "Indexing deleter."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomStringMap`*"] pub fn delete(this: &DomStringMap, name: &str); } web-sys-0.3.55/src/features/gen_DomTokenList.rs000064400000000000000000000335040072674642500175240ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DOMTokenList , typescript_type = "DOMTokenList")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DomTokenList` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] pub type DomTokenList; # [wasm_bindgen (structural , method , getter , js_class = "DOMTokenList" , js_name = length)] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] pub fn length(this: &DomTokenList) -> u32; # [wasm_bindgen (structural , method , getter , js_class = "DOMTokenList" , js_name = value)] #[doc = "Getter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] pub fn value(this: &DomTokenList) -> String; # [wasm_bindgen (structural , method , setter , js_class = "DOMTokenList" , js_name = value)] #[doc = "Setter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] pub fn set_value(this: &DomTokenList, value: &str); # [wasm_bindgen (catch , method , structural , variadic , js_class = "DOMTokenList" , js_name = add)] #[doc = "The `add()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/add)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] pub fn add(this: &DomTokenList, tokens: &::js_sys::Array) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = add)] #[doc = "The `add()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/add)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] pub fn add_0(this: &DomTokenList) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = add)] #[doc = "The `add()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/add)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] pub fn add_1(this: &DomTokenList, tokens_1: &str) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = add)] #[doc = "The `add()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/add)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] pub fn add_2(this: &DomTokenList, tokens_1: &str, tokens_2: &str) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = add)] #[doc = "The `add()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/add)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] pub fn add_3( this: &DomTokenList, tokens_1: &str, tokens_2: &str, tokens_3: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = add)] #[doc = "The `add()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/add)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] pub fn add_4( this: &DomTokenList, tokens_1: &str, tokens_2: &str, tokens_3: &str, tokens_4: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = add)] #[doc = "The `add()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/add)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] pub fn add_5( this: &DomTokenList, tokens_1: &str, tokens_2: &str, tokens_3: &str, tokens_4: &str, tokens_5: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = add)] #[doc = "The `add()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/add)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] pub fn add_6( this: &DomTokenList, tokens_1: &str, tokens_2: &str, tokens_3: &str, tokens_4: &str, tokens_5: &str, tokens_6: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = add)] #[doc = "The `add()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/add)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] pub fn add_7( this: &DomTokenList, tokens_1: &str, tokens_2: &str, tokens_3: &str, tokens_4: &str, tokens_5: &str, tokens_6: &str, tokens_7: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (method , structural , js_class = "DOMTokenList" , js_name = contains)] #[doc = "The `contains()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/contains)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] pub fn contains(this: &DomTokenList, token: &str) -> bool; # [wasm_bindgen (method , structural , js_class = "DOMTokenList" , js_name = item)] #[doc = "The `item()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/item)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] pub fn item(this: &DomTokenList, index: u32) -> Option; # [wasm_bindgen (catch , method , structural , variadic , js_class = "DOMTokenList" , js_name = remove)] #[doc = "The `remove()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/remove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] pub fn remove(this: &DomTokenList, tokens: &::js_sys::Array) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = remove)] #[doc = "The `remove()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/remove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] pub fn remove_0(this: &DomTokenList) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = remove)] #[doc = "The `remove()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/remove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] pub fn remove_1(this: &DomTokenList, tokens_1: &str) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = remove)] #[doc = "The `remove()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/remove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] pub fn remove_2(this: &DomTokenList, tokens_1: &str, tokens_2: &str) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = remove)] #[doc = "The `remove()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/remove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] pub fn remove_3( this: &DomTokenList, tokens_1: &str, tokens_2: &str, tokens_3: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = remove)] #[doc = "The `remove()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/remove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] pub fn remove_4( this: &DomTokenList, tokens_1: &str, tokens_2: &str, tokens_3: &str, tokens_4: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = remove)] #[doc = "The `remove()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/remove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] pub fn remove_5( this: &DomTokenList, tokens_1: &str, tokens_2: &str, tokens_3: &str, tokens_4: &str, tokens_5: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = remove)] #[doc = "The `remove()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/remove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] pub fn remove_6( this: &DomTokenList, tokens_1: &str, tokens_2: &str, tokens_3: &str, tokens_4: &str, tokens_5: &str, tokens_6: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = remove)] #[doc = "The `remove()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/remove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] pub fn remove_7( this: &DomTokenList, tokens_1: &str, tokens_2: &str, tokens_3: &str, tokens_4: &str, tokens_5: &str, tokens_6: &str, tokens_7: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = replace)] #[doc = "The `replace()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/replace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] pub fn replace(this: &DomTokenList, token: &str, new_token: &str) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = supports)] #[doc = "The `supports()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/supports)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] pub fn supports(this: &DomTokenList, token: &str) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = toggle)] #[doc = "The `toggle()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/toggle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] pub fn toggle(this: &DomTokenList, token: &str) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = toggle)] #[doc = "The `toggle()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/toggle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] pub fn toggle_with_force( this: &DomTokenList, token: &str, force: bool, ) -> Result; #[wasm_bindgen(method, structural, js_class = "DOMTokenList", indexing_getter)] #[doc = "Indexing getter."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] pub fn get(this: &DomTokenList, index: u32) -> Option; } web-sys-0.3.55/src/features/gen_DomWindowResizeEventDetail.rs000064400000000000000000000040070072674642500223620ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DOMWindowResizeEventDetail)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DomWindowResizeEventDetail` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomWindowResizeEventDetail`*"] pub type DomWindowResizeEventDetail; } impl DomWindowResizeEventDetail { #[doc = "Construct a new `DomWindowResizeEventDetail`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomWindowResizeEventDetail`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `height` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomWindowResizeEventDetail`*"] pub fn height(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("height"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `width` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomWindowResizeEventDetail`*"] pub fn width(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("width"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for DomWindowResizeEventDetail { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_DragEvent.rs000064400000000000000000000351760072674642500170360ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = MouseEvent , extends = UiEvent , extends = Event , extends = :: js_sys :: Object , js_name = DragEvent , typescript_type = "DragEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DragEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEvent`*"] pub type DragEvent; #[cfg(feature = "DataTransfer")] # [wasm_bindgen (structural , method , getter , js_class = "DragEvent" , js_name = dataTransfer)] #[doc = "Getter for the `dataTransfer` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/dataTransfer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransfer`, `DragEvent`*"] pub fn data_transfer(this: &DragEvent) -> Option; #[wasm_bindgen(catch, constructor, js_class = "DragEvent")] #[doc = "The `new DragEvent(..)` constructor, creating a new instance of `DragEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/DragEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEvent`*"] pub fn new(type_: &str) -> Result; #[cfg(feature = "DragEventInit")] #[wasm_bindgen(catch, constructor, js_class = "DragEvent")] #[doc = "The `new DragEvent(..)` constructor, creating a new instance of `DragEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/DragEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEvent`, `DragEventInit`*"] pub fn new_with_event_init_dict( type_: &str, event_init_dict: &DragEventInit, ) -> Result; # [wasm_bindgen (method , structural , js_class = "DragEvent" , js_name = initDragEvent)] #[doc = "The `initDragEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEvent`*"] pub fn init_drag_event(this: &DragEvent, type_: &str); # [wasm_bindgen (method , structural , js_class = "DragEvent" , js_name = initDragEvent)] #[doc = "The `initDragEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEvent`*"] pub fn init_drag_event_with_can_bubble(this: &DragEvent, type_: &str, can_bubble: bool); # [wasm_bindgen (method , structural , js_class = "DragEvent" , js_name = initDragEvent)] #[doc = "The `initDragEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEvent`*"] pub fn init_drag_event_with_can_bubble_and_cancelable( this: &DragEvent, type_: &str, can_bubble: bool, cancelable: bool, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "DragEvent" , js_name = initDragEvent)] #[doc = "The `initDragEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEvent`, `Window`*"] pub fn init_drag_event_with_can_bubble_and_cancelable_and_a_view( this: &DragEvent, type_: &str, can_bubble: bool, cancelable: bool, a_view: Option<&Window>, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "DragEvent" , js_name = initDragEvent)] #[doc = "The `initDragEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEvent`, `Window`*"] pub fn init_drag_event_with_can_bubble_and_cancelable_and_a_view_and_a_detail( this: &DragEvent, type_: &str, can_bubble: bool, cancelable: bool, a_view: Option<&Window>, a_detail: i32, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "DragEvent" , js_name = initDragEvent)] #[doc = "The `initDragEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEvent`, `Window`*"] pub fn init_drag_event_with_can_bubble_and_cancelable_and_a_view_and_a_detail_and_a_screen_x( this: &DragEvent, type_: &str, can_bubble: bool, cancelable: bool, a_view: Option<&Window>, a_detail: i32, a_screen_x: i32, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "DragEvent" , js_name = initDragEvent)] #[doc = "The `initDragEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEvent`, `Window`*"] pub fn init_drag_event_with_can_bubble_and_cancelable_and_a_view_and_a_detail_and_a_screen_x_and_a_screen_y( this: &DragEvent, type_: &str, can_bubble: bool, cancelable: bool, a_view: Option<&Window>, a_detail: i32, a_screen_x: i32, a_screen_y: i32, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "DragEvent" , js_name = initDragEvent)] #[doc = "The `initDragEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEvent`, `Window`*"] pub fn init_drag_event_with_can_bubble_and_cancelable_and_a_view_and_a_detail_and_a_screen_x_and_a_screen_y_and_a_client_x( this: &DragEvent, type_: &str, can_bubble: bool, cancelable: bool, a_view: Option<&Window>, a_detail: i32, a_screen_x: i32, a_screen_y: i32, a_client_x: i32, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "DragEvent" , js_name = initDragEvent)] #[doc = "The `initDragEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEvent`, `Window`*"] pub fn init_drag_event_with_can_bubble_and_cancelable_and_a_view_and_a_detail_and_a_screen_x_and_a_screen_y_and_a_client_x_and_a_client_y( this: &DragEvent, type_: &str, can_bubble: bool, cancelable: bool, a_view: Option<&Window>, a_detail: i32, a_screen_x: i32, a_screen_y: i32, a_client_x: i32, a_client_y: i32, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "DragEvent" , js_name = initDragEvent)] #[doc = "The `initDragEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEvent`, `Window`*"] pub fn init_drag_event_with_can_bubble_and_cancelable_and_a_view_and_a_detail_and_a_screen_x_and_a_screen_y_and_a_client_x_and_a_client_y_and_a_ctrl_key( this: &DragEvent, type_: &str, can_bubble: bool, cancelable: bool, a_view: Option<&Window>, a_detail: i32, a_screen_x: i32, a_screen_y: i32, a_client_x: i32, a_client_y: i32, a_ctrl_key: bool, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "DragEvent" , js_name = initDragEvent)] #[doc = "The `initDragEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEvent`, `Window`*"] pub fn init_drag_event_with_can_bubble_and_cancelable_and_a_view_and_a_detail_and_a_screen_x_and_a_screen_y_and_a_client_x_and_a_client_y_and_a_ctrl_key_and_a_alt_key( this: &DragEvent, type_: &str, can_bubble: bool, cancelable: bool, a_view: Option<&Window>, a_detail: i32, a_screen_x: i32, a_screen_y: i32, a_client_x: i32, a_client_y: i32, a_ctrl_key: bool, a_alt_key: bool, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "DragEvent" , js_name = initDragEvent)] #[doc = "The `initDragEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEvent`, `Window`*"] pub fn init_drag_event_with_can_bubble_and_cancelable_and_a_view_and_a_detail_and_a_screen_x_and_a_screen_y_and_a_client_x_and_a_client_y_and_a_ctrl_key_and_a_alt_key_and_a_shift_key( this: &DragEvent, type_: &str, can_bubble: bool, cancelable: bool, a_view: Option<&Window>, a_detail: i32, a_screen_x: i32, a_screen_y: i32, a_client_x: i32, a_client_y: i32, a_ctrl_key: bool, a_alt_key: bool, a_shift_key: bool, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "DragEvent" , js_name = initDragEvent)] #[doc = "The `initDragEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEvent`, `Window`*"] pub fn init_drag_event_with_can_bubble_and_cancelable_and_a_view_and_a_detail_and_a_screen_x_and_a_screen_y_and_a_client_x_and_a_client_y_and_a_ctrl_key_and_a_alt_key_and_a_shift_key_and_a_meta_key( this: &DragEvent, type_: &str, can_bubble: bool, cancelable: bool, a_view: Option<&Window>, a_detail: i32, a_screen_x: i32, a_screen_y: i32, a_client_x: i32, a_client_y: i32, a_ctrl_key: bool, a_alt_key: bool, a_shift_key: bool, a_meta_key: bool, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "DragEvent" , js_name = initDragEvent)] #[doc = "The `initDragEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEvent`, `Window`*"] pub fn init_drag_event_with_can_bubble_and_cancelable_and_a_view_and_a_detail_and_a_screen_x_and_a_screen_y_and_a_client_x_and_a_client_y_and_a_ctrl_key_and_a_alt_key_and_a_shift_key_and_a_meta_key_and_a_button( this: &DragEvent, type_: &str, can_bubble: bool, cancelable: bool, a_view: Option<&Window>, a_detail: i32, a_screen_x: i32, a_screen_y: i32, a_client_x: i32, a_client_y: i32, a_ctrl_key: bool, a_alt_key: bool, a_shift_key: bool, a_meta_key: bool, a_button: u16, ); #[cfg(all(feature = "EventTarget", feature = "Window",))] # [wasm_bindgen (method , structural , js_class = "DragEvent" , js_name = initDragEvent)] #[doc = "The `initDragEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEvent`, `EventTarget`, `Window`*"] pub fn init_drag_event_with_can_bubble_and_cancelable_and_a_view_and_a_detail_and_a_screen_x_and_a_screen_y_and_a_client_x_and_a_client_y_and_a_ctrl_key_and_a_alt_key_and_a_shift_key_and_a_meta_key_and_a_button_and_a_related_target( this: &DragEvent, type_: &str, can_bubble: bool, cancelable: bool, a_view: Option<&Window>, a_detail: i32, a_screen_x: i32, a_screen_y: i32, a_client_x: i32, a_client_y: i32, a_ctrl_key: bool, a_alt_key: bool, a_shift_key: bool, a_meta_key: bool, a_button: u16, a_related_target: Option<&EventTarget>, ); #[cfg(all(feature = "DataTransfer", feature = "EventTarget", feature = "Window",))] # [wasm_bindgen (method , structural , js_class = "DragEvent" , js_name = initDragEvent)] #[doc = "The `initDragEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransfer`, `DragEvent`, `EventTarget`, `Window`*"] pub fn init_drag_event_with_can_bubble_and_cancelable_and_a_view_and_a_detail_and_a_screen_x_and_a_screen_y_and_a_client_x_and_a_client_y_and_a_ctrl_key_and_a_alt_key_and_a_shift_key_and_a_meta_key_and_a_button_and_a_related_target_and_a_data_transfer( this: &DragEvent, type_: &str, can_bubble: bool, cancelable: bool, a_view: Option<&Window>, a_detail: i32, a_screen_x: i32, a_screen_y: i32, a_client_x: i32, a_client_y: i32, a_ctrl_key: bool, a_alt_key: bool, a_shift_key: bool, a_meta_key: bool, a_button: u16, a_related_target: Option<&EventTarget>, a_data_transfer: Option<&DataTransfer>, ); } web-sys-0.3.55/src/features/gen_DragEventInit.rs000064400000000000000000000421370072674642500176550ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DragEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DragEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] pub type DragEventInit; } impl DragEventInit { #[doc = "Construct a new `DragEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `detail` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] pub fn detail(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("detail"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "Window")] #[doc = "Change the `view` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`, `Window`*"] pub fn view(&mut self, val: Option<&Window>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("view"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `altKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] pub fn alt_key(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("altKey"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `ctrlKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] pub fn ctrl_key(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("ctrlKey"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `metaKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] pub fn meta_key(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("metaKey"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierAltGraph` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] pub fn modifier_alt_graph(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierAltGraph"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierCapsLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] pub fn modifier_caps_lock(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierCapsLock"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierFn` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] pub fn modifier_fn(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierFn"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierFnLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] pub fn modifier_fn_lock(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierFnLock"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierNumLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] pub fn modifier_num_lock(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierNumLock"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierOS` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] pub fn modifier_os(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierOS"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierScrollLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] pub fn modifier_scroll_lock(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierScrollLock"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierSymbol` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] pub fn modifier_symbol(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierSymbol"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierSymbolLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] pub fn modifier_symbol_lock(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierSymbolLock"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `shiftKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] pub fn shift_key(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("shiftKey"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `button` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] pub fn button(&mut self, val: i16) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("button"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `buttons` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] pub fn buttons(&mut self, val: u16) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("buttons"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `clientX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] pub fn client_x(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("clientX"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `clientY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] pub fn client_y(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("clientY"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `movementX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] pub fn movement_x(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("movementX"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `movementY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] pub fn movement_y(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("movementY"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "EventTarget")] #[doc = "Change the `relatedTarget` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`, `EventTarget`*"] pub fn related_target(&mut self, val: Option<&EventTarget>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("relatedTarget"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `screenX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] pub fn screen_x(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("screenX"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `screenY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] pub fn screen_y(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("screenY"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "DataTransfer")] #[doc = "Change the `dataTransfer` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransfer`, `DragEventInit`*"] pub fn data_transfer(&mut self, val: Option<&DataTransfer>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("dataTransfer"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for DragEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_DynamicsCompressorNode.rs000064400000000000000000000121240072674642500215750ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = DynamicsCompressorNode , typescript_type = "DynamicsCompressorNode")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DynamicsCompressorNode` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DynamicsCompressorNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DynamicsCompressorNode`*"] pub type DynamicsCompressorNode; #[cfg(feature = "AudioParam")] # [wasm_bindgen (structural , method , getter , js_class = "DynamicsCompressorNode" , js_name = threshold)] #[doc = "Getter for the `threshold` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DynamicsCompressorNode/threshold)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `DynamicsCompressorNode`*"] pub fn threshold(this: &DynamicsCompressorNode) -> AudioParam; #[cfg(feature = "AudioParam")] # [wasm_bindgen (structural , method , getter , js_class = "DynamicsCompressorNode" , js_name = knee)] #[doc = "Getter for the `knee` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DynamicsCompressorNode/knee)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `DynamicsCompressorNode`*"] pub fn knee(this: &DynamicsCompressorNode) -> AudioParam; #[cfg(feature = "AudioParam")] # [wasm_bindgen (structural , method , getter , js_class = "DynamicsCompressorNode" , js_name = ratio)] #[doc = "Getter for the `ratio` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DynamicsCompressorNode/ratio)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `DynamicsCompressorNode`*"] pub fn ratio(this: &DynamicsCompressorNode) -> AudioParam; # [wasm_bindgen (structural , method , getter , js_class = "DynamicsCompressorNode" , js_name = reduction)] #[doc = "Getter for the `reduction` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DynamicsCompressorNode/reduction)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DynamicsCompressorNode`*"] pub fn reduction(this: &DynamicsCompressorNode) -> f32; #[cfg(feature = "AudioParam")] # [wasm_bindgen (structural , method , getter , js_class = "DynamicsCompressorNode" , js_name = attack)] #[doc = "Getter for the `attack` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DynamicsCompressorNode/attack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `DynamicsCompressorNode`*"] pub fn attack(this: &DynamicsCompressorNode) -> AudioParam; #[cfg(feature = "AudioParam")] # [wasm_bindgen (structural , method , getter , js_class = "DynamicsCompressorNode" , js_name = release)] #[doc = "Getter for the `release` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DynamicsCompressorNode/release)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `DynamicsCompressorNode`*"] pub fn release(this: &DynamicsCompressorNode) -> AudioParam; #[cfg(feature = "BaseAudioContext")] #[wasm_bindgen(catch, constructor, js_class = "DynamicsCompressorNode")] #[doc = "The `new DynamicsCompressorNode(..)` constructor, creating a new instance of `DynamicsCompressorNode`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DynamicsCompressorNode/DynamicsCompressorNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `DynamicsCompressorNode`*"] pub fn new(context: &BaseAudioContext) -> Result; #[cfg(all(feature = "BaseAudioContext", feature = "DynamicsCompressorOptions",))] #[wasm_bindgen(catch, constructor, js_class = "DynamicsCompressorNode")] #[doc = "The `new DynamicsCompressorNode(..)` constructor, creating a new instance of `DynamicsCompressorNode`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DynamicsCompressorNode/DynamicsCompressorNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `DynamicsCompressorNode`, `DynamicsCompressorOptions`*"] pub fn new_with_options( context: &BaseAudioContext, options: &DynamicsCompressorOptions, ) -> Result; } web-sys-0.3.55/src/features/gen_DynamicsCompressorOptions.rs000064400000000000000000000132700072674642500223460ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DynamicsCompressorOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DynamicsCompressorOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DynamicsCompressorOptions`*"] pub type DynamicsCompressorOptions; } impl DynamicsCompressorOptions { #[doc = "Construct a new `DynamicsCompressorOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DynamicsCompressorOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DynamicsCompressorOptions`*"] pub fn channel_count(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("channelCount"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "ChannelCountMode")] #[doc = "Change the `channelCountMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelCountMode`, `DynamicsCompressorOptions`*"] pub fn channel_count_mode(&mut self, val: ChannelCountMode) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("channelCountMode"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "ChannelInterpretation")] #[doc = "Change the `channelInterpretation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelInterpretation`, `DynamicsCompressorOptions`*"] pub fn channel_interpretation(&mut self, val: ChannelInterpretation) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("channelInterpretation"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `attack` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DynamicsCompressorOptions`*"] pub fn attack(&mut self, val: f32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("attack"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `knee` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DynamicsCompressorOptions`*"] pub fn knee(&mut self, val: f32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("knee"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `ratio` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DynamicsCompressorOptions`*"] pub fn ratio(&mut self, val: f32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("ratio"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `release` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DynamicsCompressorOptions`*"] pub fn release(&mut self, val: f32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("release"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `threshold` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DynamicsCompressorOptions`*"] pub fn threshold(&mut self, val: f32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("threshold"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for DynamicsCompressorOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_EcKeyAlgorithm.rs000064400000000000000000000037000072674642500200120ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = EcKeyAlgorithm)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `EcKeyAlgorithm` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EcKeyAlgorithm`*"] pub type EcKeyAlgorithm; } impl EcKeyAlgorithm { #[doc = "Construct a new `EcKeyAlgorithm`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EcKeyAlgorithm`*"] pub fn new(name: &str, named_curve: &str) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.name(name); ret.named_curve(named_curve); ret } #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EcKeyAlgorithm`*"] pub fn name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `namedCurve` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EcKeyAlgorithm`*"] pub fn named_curve(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("namedCurve"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_EcKeyGenParams.rs000064400000000000000000000037000072674642500177410ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = EcKeyGenParams)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `EcKeyGenParams` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EcKeyGenParams`*"] pub type EcKeyGenParams; } impl EcKeyGenParams { #[doc = "Construct a new `EcKeyGenParams`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EcKeyGenParams`*"] pub fn new(name: &str, named_curve: &str) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.name(name); ret.named_curve(named_curve); ret } #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EcKeyGenParams`*"] pub fn name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `namedCurve` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EcKeyGenParams`*"] pub fn named_curve(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("namedCurve"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_EcKeyImportParams.rs000064400000000000000000000036420072674642500205070ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = EcKeyImportParams)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `EcKeyImportParams` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EcKeyImportParams`*"] pub type EcKeyImportParams; } impl EcKeyImportParams { #[doc = "Construct a new `EcKeyImportParams`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EcKeyImportParams`*"] pub fn new(name: &str) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.name(name); ret } #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EcKeyImportParams`*"] pub fn name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `namedCurve` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EcKeyImportParams`*"] pub fn named_curve(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("namedCurve"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_EcdhKeyDeriveParams.rs000064400000000000000000000040300072674642500207570ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = EcdhKeyDeriveParams)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `EcdhKeyDeriveParams` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EcdhKeyDeriveParams`*"] pub type EcdhKeyDeriveParams; } impl EcdhKeyDeriveParams { #[cfg(feature = "CryptoKey")] #[doc = "Construct a new `EcdhKeyDeriveParams`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `EcdhKeyDeriveParams`*"] pub fn new(name: &str, public: &CryptoKey) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.name(name); ret.public(public); ret } #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EcdhKeyDeriveParams`*"] pub fn name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "CryptoKey")] #[doc = "Change the `public` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `EcdhKeyDeriveParams`*"] pub fn public(&mut self, val: &CryptoKey) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("public"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_EcdsaParams.rs000064400000000000000000000035660072674642500173400ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = EcdsaParams)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `EcdsaParams` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EcdsaParams`*"] pub type EcdsaParams; } impl EcdsaParams { #[doc = "Construct a new `EcdsaParams`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EcdsaParams`*"] pub fn new(name: &str, hash: &::wasm_bindgen::JsValue) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.name(name); ret.hash(hash); ret } #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EcdsaParams`*"] pub fn name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `hash` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EcdsaParams`*"] pub fn hash(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("hash"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_EffectTiming.rs000064400000000000000000000126500072674642500175130ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = EffectTiming)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `EffectTiming` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EffectTiming`*"] pub type EffectTiming; } impl EffectTiming { #[doc = "Construct a new `EffectTiming`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EffectTiming`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `delay` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EffectTiming`*"] pub fn delay(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("delay"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "PlaybackDirection")] #[doc = "Change the `direction` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EffectTiming`, `PlaybackDirection`*"] pub fn direction(&mut self, val: PlaybackDirection) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("direction"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `duration` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EffectTiming`*"] pub fn duration(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("duration"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `easing` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EffectTiming`*"] pub fn easing(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("easing"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `endDelay` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EffectTiming`*"] pub fn end_delay(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("endDelay"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "FillMode")] #[doc = "Change the `fill` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EffectTiming`, `FillMode`*"] pub fn fill(&mut self, val: FillMode) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("fill"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `iterationStart` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EffectTiming`*"] pub fn iteration_start(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("iterationStart"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `iterations` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EffectTiming`*"] pub fn iterations(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("iterations"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for EffectTiming { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_Element.rs000064400000000000000000003050120072674642500165350ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = Element , typescript_type = "Element")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Element` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub type Element; # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = namespaceURI)] #[doc = "Getter for the `namespaceURI` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/namespaceURI)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn namespace_uri(this: &Element) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = prefix)] #[doc = "Getter for the `prefix` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prefix)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn prefix(this: &Element) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = localName)] #[doc = "Getter for the `localName` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/localName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn local_name(this: &Element) -> String; # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = tagName)] #[doc = "Getter for the `tagName` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/tagName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn tag_name(this: &Element) -> String; # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = id)] #[doc = "Getter for the `id` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/id)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn id(this: &Element) -> String; # [wasm_bindgen (structural , method , setter , js_class = "Element" , js_name = id)] #[doc = "Setter for the `id` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/id)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn set_id(this: &Element, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = className)] #[doc = "Getter for the `className` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/className)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn class_name(this: &Element) -> String; # [wasm_bindgen (structural , method , setter , js_class = "Element" , js_name = className)] #[doc = "Setter for the `className` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/className)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn set_class_name(this: &Element, value: &str); #[cfg(feature = "DomTokenList")] # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = classList)] #[doc = "Getter for the `classList` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/classList)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`, `Element`*"] pub fn class_list(this: &Element) -> DomTokenList; #[cfg(feature = "NamedNodeMap")] # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = attributes)] #[doc = "Getter for the `attributes` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/attributes)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `NamedNodeMap`*"] pub fn attributes(this: &Element) -> NamedNodeMap; # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = scrollTop)] #[doc = "Getter for the `scrollTop` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollTop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn scroll_top(this: &Element) -> i32; # [wasm_bindgen (structural , method , setter , js_class = "Element" , js_name = scrollTop)] #[doc = "Setter for the `scrollTop` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollTop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn set_scroll_top(this: &Element, value: i32); # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = scrollLeft)] #[doc = "Getter for the `scrollLeft` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollLeft)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn scroll_left(this: &Element) -> i32; # [wasm_bindgen (structural , method , setter , js_class = "Element" , js_name = scrollLeft)] #[doc = "Setter for the `scrollLeft` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollLeft)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn set_scroll_left(this: &Element, value: i32); # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = scrollWidth)] #[doc = "Getter for the `scrollWidth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollWidth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn scroll_width(this: &Element) -> i32; # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = scrollHeight)] #[doc = "Getter for the `scrollHeight` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollHeight)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn scroll_height(this: &Element) -> i32; # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = clientTop)] #[doc = "Getter for the `clientTop` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/clientTop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn client_top(this: &Element) -> i32; # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = clientLeft)] #[doc = "Getter for the `clientLeft` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/clientLeft)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn client_left(this: &Element) -> i32; # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = clientWidth)] #[doc = "Getter for the `clientWidth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/clientWidth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn client_width(this: &Element) -> i32; # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = clientHeight)] #[doc = "Getter for the `clientHeight` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/clientHeight)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn client_height(this: &Element) -> i32; # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = innerHTML)] #[doc = "Getter for the `innerHTML` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/innerHTML)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn inner_html(this: &Element) -> String; # [wasm_bindgen (structural , method , setter , js_class = "Element" , js_name = innerHTML)] #[doc = "Setter for the `innerHTML` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/innerHTML)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn set_inner_html(this: &Element, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = outerHTML)] #[doc = "Getter for the `outerHTML` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/outerHTML)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn outer_html(this: &Element) -> String; # [wasm_bindgen (structural , method , setter , js_class = "Element" , js_name = outerHTML)] #[doc = "Setter for the `outerHTML` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/outerHTML)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn set_outer_html(this: &Element, value: &str); #[cfg(feature = "ShadowRoot")] # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = shadowRoot)] #[doc = "Getter for the `shadowRoot` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/shadowRoot)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `ShadowRoot`*"] pub fn shadow_root(this: &Element) -> Option; #[cfg(feature = "HtmlSlotElement")] # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = assignedSlot)] #[doc = "Getter for the `assignedSlot` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/assignedSlot)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `HtmlSlotElement`*"] pub fn assigned_slot(this: &Element) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = slot)] #[doc = "Getter for the `slot` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/slot)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn slot(this: &Element) -> String; # [wasm_bindgen (structural , method , setter , js_class = "Element" , js_name = slot)] #[doc = "Setter for the `slot` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/slot)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn set_slot(this: &Element, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = previousElementSibling)] #[doc = "Getter for the `previousElementSibling` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/previousElementSibling)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn previous_element_sibling(this: &Element) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = nextElementSibling)] #[doc = "Getter for the `nextElementSibling` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/nextElementSibling)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn next_element_sibling(this: &Element) -> Option; #[cfg(feature = "HtmlCollection")] # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = children)] #[doc = "Getter for the `children` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/children)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `HtmlCollection`*"] pub fn children(this: &Element) -> HtmlCollection; # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = firstElementChild)] #[doc = "Getter for the `firstElementChild` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/firstElementChild)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn first_element_child(this: &Element) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = lastElementChild)] #[doc = "Getter for the `lastElementChild` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/lastElementChild)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn last_element_child(this: &Element) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = childElementCount)] #[doc = "Getter for the `childElementCount` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/childElementCount)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn child_element_count(this: &Element) -> u32; #[cfg(all(feature = "ShadowRoot", feature = "ShadowRootInit",))] # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = attachShadow)] #[doc = "The `attachShadow()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/attachShadow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `ShadowRoot`, `ShadowRootInit`*"] pub fn attach_shadow( this: &Element, shadow_root_init_dict: &ShadowRootInit, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = closest)] #[doc = "The `closest()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/closest)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn closest(this: &Element, selector: &str) -> Result, JsValue>; # [wasm_bindgen (method , structural , js_class = "Element" , js_name = getAttribute)] #[doc = "The `getAttribute()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/getAttribute)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn get_attribute(this: &Element, name: &str) -> Option; # [wasm_bindgen (method , structural , js_class = "Element" , js_name = getAttributeNS)] #[doc = "The `getAttributeNS()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/getAttributeNS)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn get_attribute_ns( this: &Element, namespace: Option<&str>, local_name: &str, ) -> Option; # [wasm_bindgen (method , structural , js_class = "Element" , js_name = getAttributeNames)] #[doc = "The `getAttributeNames()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/getAttributeNames)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn get_attribute_names(this: &Element) -> ::js_sys::Array; #[cfg(feature = "Attr")] # [wasm_bindgen (method , structural , js_class = "Element" , js_name = getAttributeNode)] #[doc = "The `getAttributeNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/getAttributeNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Attr`, `Element`*"] pub fn get_attribute_node(this: &Element, name: &str) -> Option; #[cfg(feature = "Attr")] # [wasm_bindgen (method , structural , js_class = "Element" , js_name = getAttributeNodeNS)] #[doc = "The `getAttributeNodeNS()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/getAttributeNodeNS)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Attr`, `Element`*"] pub fn get_attribute_node_ns( this: &Element, namespace_uri: Option<&str>, local_name: &str, ) -> Option; #[cfg(feature = "DomRect")] # [wasm_bindgen (method , structural , js_class = "Element" , js_name = getBoundingClientRect)] #[doc = "The `getBoundingClientRect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRect`, `Element`*"] pub fn get_bounding_client_rect(this: &Element) -> DomRect; #[cfg(feature = "DomRectList")] # [wasm_bindgen (method , structural , js_class = "Element" , js_name = getClientRects)] #[doc = "The `getClientRects()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/getClientRects)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectList`, `Element`*"] pub fn get_client_rects(this: &Element) -> DomRectList; #[cfg(feature = "HtmlCollection")] # [wasm_bindgen (method , structural , js_class = "Element" , js_name = getElementsByClassName)] #[doc = "The `getElementsByClassName()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/getElementsByClassName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `HtmlCollection`*"] pub fn get_elements_by_class_name(this: &Element, class_names: &str) -> HtmlCollection; #[cfg(feature = "HtmlCollection")] # [wasm_bindgen (method , structural , js_class = "Element" , js_name = getElementsByTagName)] #[doc = "The `getElementsByTagName()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/getElementsByTagName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `HtmlCollection`*"] pub fn get_elements_by_tag_name(this: &Element, local_name: &str) -> HtmlCollection; #[cfg(feature = "HtmlCollection")] # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = getElementsByTagNameNS)] #[doc = "The `getElementsByTagNameNS()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/getElementsByTagNameNS)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `HtmlCollection`*"] pub fn get_elements_by_tag_name_ns( this: &Element, namespace: Option<&str>, local_name: &str, ) -> Result; # [wasm_bindgen (method , structural , js_class = "Element" , js_name = hasAttribute)] #[doc = "The `hasAttribute()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/hasAttribute)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn has_attribute(this: &Element, name: &str) -> bool; # [wasm_bindgen (method , structural , js_class = "Element" , js_name = hasAttributeNS)] #[doc = "The `hasAttributeNS()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/hasAttributeNS)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn has_attribute_ns(this: &Element, namespace: Option<&str>, local_name: &str) -> bool; # [wasm_bindgen (method , structural , js_class = "Element" , js_name = hasAttributes)] #[doc = "The `hasAttributes()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/hasAttributes)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn has_attributes(this: &Element) -> bool; # [wasm_bindgen (method , structural , js_class = "Element" , js_name = hasPointerCapture)] #[doc = "The `hasPointerCapture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/hasPointerCapture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn has_pointer_capture(this: &Element, pointer_id: i32) -> bool; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = insertAdjacentElement)] #[doc = "The `insertAdjacentElement()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/insertAdjacentElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn insert_adjacent_element( this: &Element, where_: &str, element: &Element, ) -> Result, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = insertAdjacentHTML)] #[doc = "The `insertAdjacentHTML()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/insertAdjacentHTML)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn insert_adjacent_html(this: &Element, position: &str, text: &str) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = insertAdjacentText)] #[doc = "The `insertAdjacentText()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/insertAdjacentText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn insert_adjacent_text(this: &Element, where_: &str, data: &str) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = matches)] #[doc = "The `matches()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/matches)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn matches(this: &Element, selector: &str) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = querySelector)] #[doc = "The `querySelector()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/querySelector)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn query_selector(this: &Element, selectors: &str) -> Result, JsValue>; #[cfg(feature = "NodeList")] # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = querySelectorAll)] #[doc = "The `querySelectorAll()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/querySelectorAll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `NodeList`*"] pub fn query_selector_all(this: &Element, selectors: &str) -> Result; # [wasm_bindgen (method , structural , js_class = "Element" , js_name = releaseCapture)] #[doc = "The `releaseCapture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/releaseCapture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn release_capture(this: &Element); # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = releasePointerCapture)] #[doc = "The `releasePointerCapture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/releasePointerCapture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn release_pointer_capture(this: &Element, pointer_id: i32) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = removeAttribute)] #[doc = "The `removeAttribute()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/removeAttribute)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn remove_attribute(this: &Element, name: &str) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = removeAttributeNS)] #[doc = "The `removeAttributeNS()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/removeAttributeNS)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn remove_attribute_ns( this: &Element, namespace: Option<&str>, local_name: &str, ) -> Result<(), JsValue>; #[cfg(feature = "Attr")] # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = removeAttributeNode)] #[doc = "The `removeAttributeNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/removeAttributeNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Attr`, `Element`*"] pub fn remove_attribute_node(this: &Element, old_attr: &Attr) -> Result, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = requestFullscreen)] #[doc = "The `requestFullscreen()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/requestFullscreen)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn request_fullscreen(this: &Element) -> Result<(), JsValue>; # [wasm_bindgen (method , structural , js_class = "Element" , js_name = requestPointerLock)] #[doc = "The `requestPointerLock()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/requestPointerLock)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn request_pointer_lock(this: &Element); # [wasm_bindgen (method , structural , js_class = "Element" , js_name = scroll)] #[doc = "The `scroll()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/scroll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn scroll_with_x_and_y(this: &Element, x: f64, y: f64); # [wasm_bindgen (method , structural , js_class = "Element" , js_name = scroll)] #[doc = "The `scroll()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/scroll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn scroll(this: &Element); #[cfg(feature = "ScrollToOptions")] # [wasm_bindgen (method , structural , js_class = "Element" , js_name = scroll)] #[doc = "The `scroll()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/scroll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `ScrollToOptions`*"] pub fn scroll_with_scroll_to_options(this: &Element, options: &ScrollToOptions); # [wasm_bindgen (method , structural , js_class = "Element" , js_name = scrollBy)] #[doc = "The `scrollBy()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollBy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn scroll_by_with_x_and_y(this: &Element, x: f64, y: f64); # [wasm_bindgen (method , structural , js_class = "Element" , js_name = scrollBy)] #[doc = "The `scrollBy()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollBy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn scroll_by(this: &Element); #[cfg(feature = "ScrollToOptions")] # [wasm_bindgen (method , structural , js_class = "Element" , js_name = scrollBy)] #[doc = "The `scrollBy()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollBy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `ScrollToOptions`*"] pub fn scroll_by_with_scroll_to_options(this: &Element, options: &ScrollToOptions); # [wasm_bindgen (method , structural , js_class = "Element" , js_name = scrollIntoView)] #[doc = "The `scrollIntoView()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn scroll_into_view(this: &Element); # [wasm_bindgen (method , structural , js_class = "Element" , js_name = scrollIntoView)] #[doc = "The `scrollIntoView()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn scroll_into_view_with_bool(this: &Element, arg: bool); #[cfg(feature = "ScrollIntoViewOptions")] # [wasm_bindgen (method , structural , js_class = "Element" , js_name = scrollIntoView)] #[doc = "The `scrollIntoView()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `ScrollIntoViewOptions`*"] pub fn scroll_into_view_with_scroll_into_view_options( this: &Element, arg: &ScrollIntoViewOptions, ); # [wasm_bindgen (method , structural , js_class = "Element" , js_name = scrollTo)] #[doc = "The `scrollTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollTo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn scroll_to_with_x_and_y(this: &Element, x: f64, y: f64); # [wasm_bindgen (method , structural , js_class = "Element" , js_name = scrollTo)] #[doc = "The `scrollTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollTo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn scroll_to(this: &Element); #[cfg(feature = "ScrollToOptions")] # [wasm_bindgen (method , structural , js_class = "Element" , js_name = scrollTo)] #[doc = "The `scrollTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollTo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `ScrollToOptions`*"] pub fn scroll_to_with_scroll_to_options(this: &Element, options: &ScrollToOptions); # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = setAttribute)] #[doc = "The `setAttribute()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/setAttribute)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn set_attribute(this: &Element, name: &str, value: &str) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = setAttributeNS)] #[doc = "The `setAttributeNS()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/setAttributeNS)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn set_attribute_ns( this: &Element, namespace: Option<&str>, name: &str, value: &str, ) -> Result<(), JsValue>; #[cfg(feature = "Attr")] # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = setAttributeNode)] #[doc = "The `setAttributeNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/setAttributeNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Attr`, `Element`*"] pub fn set_attribute_node(this: &Element, new_attr: &Attr) -> Result, JsValue>; #[cfg(feature = "Attr")] # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = setAttributeNodeNS)] #[doc = "The `setAttributeNodeNS()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/setAttributeNodeNS)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Attr`, `Element`*"] pub fn set_attribute_node_ns(this: &Element, new_attr: &Attr) -> Result, JsValue>; # [wasm_bindgen (method , structural , js_class = "Element" , js_name = setCapture)] #[doc = "The `setCapture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/setCapture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn set_capture(this: &Element); # [wasm_bindgen (method , structural , js_class = "Element" , js_name = setCapture)] #[doc = "The `setCapture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/setCapture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn set_capture_with_retarget_to_element(this: &Element, retarget_to_element: bool); # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = setPointerCapture)] #[doc = "The `setPointerCapture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/setPointerCapture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn set_pointer_capture(this: &Element, pointer_id: i32) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = toggleAttribute)] #[doc = "The `toggleAttribute()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/toggleAttribute)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn toggle_attribute(this: &Element, name: &str) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = toggleAttribute)] #[doc = "The `toggleAttribute()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/toggleAttribute)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn toggle_attribute_with_force( this: &Element, name: &str, force: bool, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = webkitMatchesSelector)] #[doc = "The `webkitMatchesSelector()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/webkitMatchesSelector)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn webkit_matches_selector(this: &Element, selector: &str) -> Result; # [wasm_bindgen (catch , method , structural , variadic , js_class = "Element" , js_name = after)] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn after_with_node(this: &Element, nodes: &::js_sys::Array) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = after)] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn after_with_node_0(this: &Element) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = after)] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn after_with_node_1(this: &Element, nodes_1: &Node) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = after)] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn after_with_node_2(this: &Element, nodes_1: &Node, nodes_2: &Node) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = after)] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn after_with_node_3( this: &Element, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = after)] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn after_with_node_4( this: &Element, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = after)] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn after_with_node_5( this: &Element, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, nodes_5: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = after)] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn after_with_node_6( this: &Element, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, nodes_5: &Node, nodes_6: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = after)] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn after_with_node_7( this: &Element, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, nodes_5: &Node, nodes_6: &Node, nodes_7: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , variadic , js_class = "Element" , js_name = after)] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn after_with_str(this: &Element, nodes: &::js_sys::Array) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = after)] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn after_with_str_0(this: &Element) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = after)] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn after_with_str_1(this: &Element, nodes_1: &str) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = after)] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn after_with_str_2(this: &Element, nodes_1: &str, nodes_2: &str) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = after)] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn after_with_str_3( this: &Element, nodes_1: &str, nodes_2: &str, nodes_3: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = after)] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn after_with_str_4( this: &Element, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = after)] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn after_with_str_5( this: &Element, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, nodes_5: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = after)] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn after_with_str_6( this: &Element, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, nodes_5: &str, nodes_6: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = after)] #[doc = "The `after()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/after)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn after_with_str_7( this: &Element, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, nodes_5: &str, nodes_6: &str, nodes_7: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , variadic , js_class = "Element" , js_name = before)] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn before_with_node(this: &Element, nodes: &::js_sys::Array) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = before)] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn before_with_node_0(this: &Element) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = before)] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn before_with_node_1(this: &Element, nodes_1: &Node) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = before)] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn before_with_node_2( this: &Element, nodes_1: &Node, nodes_2: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = before)] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn before_with_node_3( this: &Element, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = before)] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn before_with_node_4( this: &Element, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = before)] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn before_with_node_5( this: &Element, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, nodes_5: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = before)] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn before_with_node_6( this: &Element, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, nodes_5: &Node, nodes_6: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = before)] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn before_with_node_7( this: &Element, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, nodes_5: &Node, nodes_6: &Node, nodes_7: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , variadic , js_class = "Element" , js_name = before)] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn before_with_str(this: &Element, nodes: &::js_sys::Array) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = before)] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn before_with_str_0(this: &Element) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = before)] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn before_with_str_1(this: &Element, nodes_1: &str) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = before)] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn before_with_str_2(this: &Element, nodes_1: &str, nodes_2: &str) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = before)] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn before_with_str_3( this: &Element, nodes_1: &str, nodes_2: &str, nodes_3: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = before)] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn before_with_str_4( this: &Element, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = before)] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn before_with_str_5( this: &Element, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, nodes_5: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = before)] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn before_with_str_6( this: &Element, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, nodes_5: &str, nodes_6: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = before)] #[doc = "The `before()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/before)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn before_with_str_7( this: &Element, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, nodes_5: &str, nodes_6: &str, nodes_7: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (method , structural , js_class = "Element" , js_name = remove)] #[doc = "The `remove()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn remove(this: &Element); # [wasm_bindgen (catch , method , structural , variadic , js_class = "Element" , js_name = replaceWith)] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn replace_with_with_node(this: &Element, nodes: &::js_sys::Array) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = replaceWith)] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn replace_with_with_node_0(this: &Element) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = replaceWith)] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn replace_with_with_node_1(this: &Element, nodes_1: &Node) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = replaceWith)] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn replace_with_with_node_2( this: &Element, nodes_1: &Node, nodes_2: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = replaceWith)] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn replace_with_with_node_3( this: &Element, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = replaceWith)] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn replace_with_with_node_4( this: &Element, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = replaceWith)] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn replace_with_with_node_5( this: &Element, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, nodes_5: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = replaceWith)] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn replace_with_with_node_6( this: &Element, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, nodes_5: &Node, nodes_6: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = replaceWith)] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn replace_with_with_node_7( this: &Element, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, nodes_5: &Node, nodes_6: &Node, nodes_7: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , variadic , js_class = "Element" , js_name = replaceWith)] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn replace_with_with_str(this: &Element, nodes: &::js_sys::Array) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = replaceWith)] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn replace_with_with_str_0(this: &Element) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = replaceWith)] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn replace_with_with_str_1(this: &Element, nodes_1: &str) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = replaceWith)] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn replace_with_with_str_2( this: &Element, nodes_1: &str, nodes_2: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = replaceWith)] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn replace_with_with_str_3( this: &Element, nodes_1: &str, nodes_2: &str, nodes_3: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = replaceWith)] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn replace_with_with_str_4( this: &Element, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = replaceWith)] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn replace_with_with_str_5( this: &Element, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, nodes_5: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = replaceWith)] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn replace_with_with_str_6( this: &Element, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, nodes_5: &str, nodes_6: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = replaceWith)] #[doc = "The `replaceWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn replace_with_with_str_7( this: &Element, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, nodes_5: &str, nodes_6: &str, nodes_7: &str, ) -> Result<(), JsValue>; #[cfg(all(feature = "DomPoint", feature = "DomPointInit", feature = "Text",))] # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = convertPointFromNode)] #[doc = "The `convertPointFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/convertPointFromNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPoint`, `DomPointInit`, `Element`, `Text`*"] pub fn convert_point_from_node_with_text( this: &Element, point: &DomPointInit, from: &Text, ) -> Result; #[cfg(all(feature = "DomPoint", feature = "DomPointInit",))] # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = convertPointFromNode)] #[doc = "The `convertPointFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/convertPointFromNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPoint`, `DomPointInit`, `Element`*"] pub fn convert_point_from_node_with_element( this: &Element, point: &DomPointInit, from: &Element, ) -> Result; #[cfg(all(feature = "Document", feature = "DomPoint", feature = "DomPointInit",))] # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = convertPointFromNode)] #[doc = "The `convertPointFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/convertPointFromNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `DomPoint`, `DomPointInit`, `Element`*"] pub fn convert_point_from_node_with_document( this: &Element, point: &DomPointInit, from: &Document, ) -> Result; #[cfg(all( feature = "ConvertCoordinateOptions", feature = "DomPoint", feature = "DomPointInit", feature = "Text", ))] # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = convertPointFromNode)] #[doc = "The `convertPointFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/convertPointFromNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `DomPoint`, `DomPointInit`, `Element`, `Text`*"] pub fn convert_point_from_node_with_text_and_options( this: &Element, point: &DomPointInit, from: &Text, options: &ConvertCoordinateOptions, ) -> Result; #[cfg(all( feature = "ConvertCoordinateOptions", feature = "DomPoint", feature = "DomPointInit", ))] # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = convertPointFromNode)] #[doc = "The `convertPointFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/convertPointFromNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `DomPoint`, `DomPointInit`, `Element`*"] pub fn convert_point_from_node_with_element_and_options( this: &Element, point: &DomPointInit, from: &Element, options: &ConvertCoordinateOptions, ) -> Result; #[cfg(all( feature = "ConvertCoordinateOptions", feature = "Document", feature = "DomPoint", feature = "DomPointInit", ))] # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = convertPointFromNode)] #[doc = "The `convertPointFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/convertPointFromNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `Document`, `DomPoint`, `DomPointInit`, `Element`*"] pub fn convert_point_from_node_with_document_and_options( this: &Element, point: &DomPointInit, from: &Document, options: &ConvertCoordinateOptions, ) -> Result; #[cfg(all(feature = "DomQuad", feature = "Text",))] # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = convertQuadFromNode)] #[doc = "The `convertQuadFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/convertQuadFromNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomQuad`, `Element`, `Text`*"] pub fn convert_quad_from_node_with_text( this: &Element, quad: &DomQuad, from: &Text, ) -> Result; #[cfg(feature = "DomQuad")] # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = convertQuadFromNode)] #[doc = "The `convertQuadFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/convertQuadFromNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomQuad`, `Element`*"] pub fn convert_quad_from_node_with_element( this: &Element, quad: &DomQuad, from: &Element, ) -> Result; #[cfg(all(feature = "Document", feature = "DomQuad",))] # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = convertQuadFromNode)] #[doc = "The `convertQuadFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/convertQuadFromNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `DomQuad`, `Element`*"] pub fn convert_quad_from_node_with_document( this: &Element, quad: &DomQuad, from: &Document, ) -> Result; #[cfg(all( feature = "ConvertCoordinateOptions", feature = "DomQuad", feature = "Text", ))] # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = convertQuadFromNode)] #[doc = "The `convertQuadFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/convertQuadFromNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `DomQuad`, `Element`, `Text`*"] pub fn convert_quad_from_node_with_text_and_options( this: &Element, quad: &DomQuad, from: &Text, options: &ConvertCoordinateOptions, ) -> Result; #[cfg(all(feature = "ConvertCoordinateOptions", feature = "DomQuad",))] # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = convertQuadFromNode)] #[doc = "The `convertQuadFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/convertQuadFromNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `DomQuad`, `Element`*"] pub fn convert_quad_from_node_with_element_and_options( this: &Element, quad: &DomQuad, from: &Element, options: &ConvertCoordinateOptions, ) -> Result; #[cfg(all( feature = "ConvertCoordinateOptions", feature = "Document", feature = "DomQuad", ))] # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = convertQuadFromNode)] #[doc = "The `convertQuadFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/convertQuadFromNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `Document`, `DomQuad`, `Element`*"] pub fn convert_quad_from_node_with_document_and_options( this: &Element, quad: &DomQuad, from: &Document, options: &ConvertCoordinateOptions, ) -> Result; #[cfg(all(feature = "DomQuad", feature = "DomRectReadOnly", feature = "Text",))] # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = convertRectFromNode)] #[doc = "The `convertRectFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/convertRectFromNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomQuad`, `DomRectReadOnly`, `Element`, `Text`*"] pub fn convert_rect_from_node_with_text( this: &Element, rect: &DomRectReadOnly, from: &Text, ) -> Result; #[cfg(all(feature = "DomQuad", feature = "DomRectReadOnly",))] # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = convertRectFromNode)] #[doc = "The `convertRectFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/convertRectFromNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomQuad`, `DomRectReadOnly`, `Element`*"] pub fn convert_rect_from_node_with_element( this: &Element, rect: &DomRectReadOnly, from: &Element, ) -> Result; #[cfg(all(feature = "Document", feature = "DomQuad", feature = "DomRectReadOnly",))] # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = convertRectFromNode)] #[doc = "The `convertRectFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/convertRectFromNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `DomQuad`, `DomRectReadOnly`, `Element`*"] pub fn convert_rect_from_node_with_document( this: &Element, rect: &DomRectReadOnly, from: &Document, ) -> Result; #[cfg(all( feature = "ConvertCoordinateOptions", feature = "DomQuad", feature = "DomRectReadOnly", feature = "Text", ))] # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = convertRectFromNode)] #[doc = "The `convertRectFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/convertRectFromNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `DomQuad`, `DomRectReadOnly`, `Element`, `Text`*"] pub fn convert_rect_from_node_with_text_and_options( this: &Element, rect: &DomRectReadOnly, from: &Text, options: &ConvertCoordinateOptions, ) -> Result; #[cfg(all( feature = "ConvertCoordinateOptions", feature = "DomQuad", feature = "DomRectReadOnly", ))] # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = convertRectFromNode)] #[doc = "The `convertRectFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/convertRectFromNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `DomQuad`, `DomRectReadOnly`, `Element`*"] pub fn convert_rect_from_node_with_element_and_options( this: &Element, rect: &DomRectReadOnly, from: &Element, options: &ConvertCoordinateOptions, ) -> Result; #[cfg(all( feature = "ConvertCoordinateOptions", feature = "Document", feature = "DomQuad", feature = "DomRectReadOnly", ))] # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = convertRectFromNode)] #[doc = "The `convertRectFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/convertRectFromNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `Document`, `DomQuad`, `DomRectReadOnly`, `Element`*"] pub fn convert_rect_from_node_with_document_and_options( this: &Element, rect: &DomRectReadOnly, from: &Document, options: &ConvertCoordinateOptions, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = getBoxQuads)] #[doc = "The `getBoxQuads()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoxQuads)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn get_box_quads(this: &Element) -> Result<::js_sys::Array, JsValue>; #[cfg(feature = "BoxQuadOptions")] # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = getBoxQuads)] #[doc = "The `getBoxQuads()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoxQuads)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BoxQuadOptions`, `Element`*"] pub fn get_box_quads_with_options( this: &Element, options: &BoxQuadOptions, ) -> Result<::js_sys::Array, JsValue>; # [wasm_bindgen (catch , method , structural , variadic , js_class = "Element" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn append_with_node(this: &Element, nodes: &::js_sys::Array) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn append_with_node_0(this: &Element) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn append_with_node_1(this: &Element, nodes_1: &Node) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn append_with_node_2( this: &Element, nodes_1: &Node, nodes_2: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn append_with_node_3( this: &Element, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn append_with_node_4( this: &Element, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn append_with_node_5( this: &Element, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, nodes_5: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn append_with_node_6( this: &Element, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, nodes_5: &Node, nodes_6: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn append_with_node_7( this: &Element, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, nodes_5: &Node, nodes_6: &Node, nodes_7: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , variadic , js_class = "Element" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn append_with_str(this: &Element, nodes: &::js_sys::Array) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn append_with_str_0(this: &Element) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn append_with_str_1(this: &Element, nodes_1: &str) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn append_with_str_2(this: &Element, nodes_1: &str, nodes_2: &str) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn append_with_str_3( this: &Element, nodes_1: &str, nodes_2: &str, nodes_3: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn append_with_str_4( this: &Element, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn append_with_str_5( this: &Element, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, nodes_5: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn append_with_str_6( this: &Element, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, nodes_5: &str, nodes_6: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn append_with_str_7( this: &Element, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, nodes_5: &str, nodes_6: &str, nodes_7: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , variadic , js_class = "Element" , js_name = prepend)] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn prepend_with_node(this: &Element, nodes: &::js_sys::Array) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = prepend)] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn prepend_with_node_0(this: &Element) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = prepend)] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn prepend_with_node_1(this: &Element, nodes_1: &Node) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = prepend)] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn prepend_with_node_2( this: &Element, nodes_1: &Node, nodes_2: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = prepend)] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn prepend_with_node_3( this: &Element, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = prepend)] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn prepend_with_node_4( this: &Element, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = prepend)] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn prepend_with_node_5( this: &Element, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, nodes_5: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = prepend)] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn prepend_with_node_6( this: &Element, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, nodes_5: &Node, nodes_6: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = prepend)] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn prepend_with_node_7( this: &Element, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, nodes_5: &Node, nodes_6: &Node, nodes_7: &Node, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , variadic , js_class = "Element" , js_name = prepend)] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn prepend_with_str(this: &Element, nodes: &::js_sys::Array) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = prepend)] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn prepend_with_str_0(this: &Element) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = prepend)] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn prepend_with_str_1(this: &Element, nodes_1: &str) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = prepend)] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn prepend_with_str_2(this: &Element, nodes_1: &str, nodes_2: &str) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = prepend)] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn prepend_with_str_3( this: &Element, nodes_1: &str, nodes_2: &str, nodes_3: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = prepend)] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn prepend_with_str_4( this: &Element, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = prepend)] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn prepend_with_str_5( this: &Element, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, nodes_5: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = prepend)] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn prepend_with_str_6( this: &Element, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, nodes_5: &str, nodes_6: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Element" , js_name = prepend)] #[doc = "The `prepend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prepend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn prepend_with_str_7( this: &Element, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, nodes_5: &str, nodes_6: &str, nodes_7: &str, ) -> Result<(), JsValue>; } web-sys-0.3.55/src/features/gen_ElementCreationOptions.rs000064400000000000000000000037300072674642500216000ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ElementCreationOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ElementCreationOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ElementCreationOptions`*"] pub type ElementCreationOptions; } impl ElementCreationOptions { #[doc = "Construct a new `ElementCreationOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ElementCreationOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `is` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ElementCreationOptions`*"] pub fn is(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("is"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `pseudo` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ElementCreationOptions`*"] pub fn pseudo(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("pseudo"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for ElementCreationOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_ElementDefinitionOptions.rs000064400000000000000000000027750072674642500221340ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ElementDefinitionOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ElementDefinitionOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ElementDefinitionOptions`*"] pub type ElementDefinitionOptions; } impl ElementDefinitionOptions { #[doc = "Construct a new `ElementDefinitionOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ElementDefinitionOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `extends` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ElementDefinitionOptions`*"] pub fn extends(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("extends"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for ElementDefinitionOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_EndingTypes.rs000064400000000000000000000005200072674642500173710ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `EndingTypes` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EndingTypes`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum EndingTypes { Transparent = "transparent", Native = "native", } web-sys-0.3.55/src/features/gen_ErrorCallback.rs000064400000000000000000000026660072674642500176630ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ErrorCallback)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ErrorCallback` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorCallback`*"] pub type ErrorCallback; } impl ErrorCallback { #[doc = "Construct a new `ErrorCallback`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorCallback`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `handleEvent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorCallback`*"] pub fn handle_event(&mut self, val: &::js_sys::Function) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("handleEvent"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for ErrorCallback { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_ErrorEvent.rs000064400000000000000000000073120072674642500172410ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = ErrorEvent , typescript_type = "ErrorEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ErrorEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ErrorEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorEvent`*"] pub type ErrorEvent; # [wasm_bindgen (structural , method , getter , js_class = "ErrorEvent" , js_name = message)] #[doc = "Getter for the `message` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ErrorEvent/message)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorEvent`*"] pub fn message(this: &ErrorEvent) -> String; # [wasm_bindgen (structural , method , getter , js_class = "ErrorEvent" , js_name = filename)] #[doc = "Getter for the `filename` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ErrorEvent/filename)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorEvent`*"] pub fn filename(this: &ErrorEvent) -> String; # [wasm_bindgen (structural , method , getter , js_class = "ErrorEvent" , js_name = lineno)] #[doc = "Getter for the `lineno` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ErrorEvent/lineno)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorEvent`*"] pub fn lineno(this: &ErrorEvent) -> u32; # [wasm_bindgen (structural , method , getter , js_class = "ErrorEvent" , js_name = colno)] #[doc = "Getter for the `colno` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ErrorEvent/colno)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorEvent`*"] pub fn colno(this: &ErrorEvent) -> u32; # [wasm_bindgen (structural , method , getter , js_class = "ErrorEvent" , js_name = error)] #[doc = "Getter for the `error` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ErrorEvent/error)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorEvent`*"] pub fn error(this: &ErrorEvent) -> ::wasm_bindgen::JsValue; #[wasm_bindgen(catch, constructor, js_class = "ErrorEvent")] #[doc = "The `new ErrorEvent(..)` constructor, creating a new instance of `ErrorEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ErrorEvent/ErrorEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorEvent`*"] pub fn new(type_: &str) -> Result; #[cfg(feature = "ErrorEventInit")] #[wasm_bindgen(catch, constructor, js_class = "ErrorEvent")] #[doc = "The `new ErrorEvent(..)` constructor, creating a new instance of `ErrorEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ErrorEvent/ErrorEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorEvent`, `ErrorEventInit`*"] pub fn new_with_event_init_dict( type_: &str, event_init_dict: &ErrorEventInit, ) -> Result; } web-sys-0.3.55/src/features/gen_ErrorEventInit.rs000064400000000000000000000124630072674642500200700ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ErrorEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ErrorEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorEventInit`*"] pub type ErrorEventInit; } impl ErrorEventInit { #[doc = "Construct a new `ErrorEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `colno` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorEventInit`*"] pub fn colno(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("colno"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `error` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorEventInit`*"] pub fn error(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("error"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `filename` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorEventInit`*"] pub fn filename(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("filename"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `lineno` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorEventInit`*"] pub fn lineno(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("lineno"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `message` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorEventInit`*"] pub fn message(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("message"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for ErrorEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_Event.rs000064400000000000000000000244640072674642500162360ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Event , typescript_type = "Event")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Event` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Event`*"] pub type Event; # [wasm_bindgen (structural , method , getter , js_class = "Event" , js_name = type)] #[doc = "Getter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Event`*"] pub fn type_(this: &Event) -> String; #[cfg(feature = "EventTarget")] # [wasm_bindgen (structural , method , getter , js_class = "Event" , js_name = target)] #[doc = "Getter for the `target` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/target)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Event`, `EventTarget`*"] pub fn target(this: &Event) -> Option; #[cfg(feature = "EventTarget")] # [wasm_bindgen (structural , method , getter , js_class = "Event" , js_name = currentTarget)] #[doc = "Getter for the `currentTarget` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/currentTarget)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Event`, `EventTarget`*"] pub fn current_target(this: &Event) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "Event" , js_name = eventPhase)] #[doc = "Getter for the `eventPhase` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/eventPhase)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Event`*"] pub fn event_phase(this: &Event) -> u16; # [wasm_bindgen (structural , method , getter , js_class = "Event" , js_name = bubbles)] #[doc = "Getter for the `bubbles` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/bubbles)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Event`*"] pub fn bubbles(this: &Event) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "Event" , js_name = cancelable)] #[doc = "Getter for the `cancelable` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/cancelable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Event`*"] pub fn cancelable(this: &Event) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "Event" , js_name = defaultPrevented)] #[doc = "Getter for the `defaultPrevented` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/defaultPrevented)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Event`*"] pub fn default_prevented(this: &Event) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "Event" , js_name = composed)] #[doc = "Getter for the `composed` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/composed)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Event`*"] pub fn composed(this: &Event) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "Event" , js_name = isTrusted)] #[doc = "Getter for the `isTrusted` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/isTrusted)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Event`*"] pub fn is_trusted(this: &Event) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "Event" , js_name = timeStamp)] #[doc = "Getter for the `timeStamp` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/timeStamp)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Event`*"] pub fn time_stamp(this: &Event) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "Event" , js_name = cancelBubble)] #[doc = "Getter for the `cancelBubble` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/cancelBubble)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Event`*"] pub fn cancel_bubble(this: &Event) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "Event" , js_name = cancelBubble)] #[doc = "Setter for the `cancelBubble` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/cancelBubble)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Event`*"] pub fn set_cancel_bubble(this: &Event, value: bool); #[wasm_bindgen(catch, constructor, js_class = "Event")] #[doc = "The `new Event(..)` constructor, creating a new instance of `Event`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/Event)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Event`*"] pub fn new(type_: &str) -> Result; #[cfg(feature = "EventInit")] #[wasm_bindgen(catch, constructor, js_class = "Event")] #[doc = "The `new Event(..)` constructor, creating a new instance of `Event`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/Event)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Event`, `EventInit`*"] pub fn new_with_event_init_dict( type_: &str, event_init_dict: &EventInit, ) -> Result; # [wasm_bindgen (method , structural , js_class = "Event" , js_name = composedPath)] #[doc = "The `composedPath()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/composedPath)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Event`*"] pub fn composed_path(this: &Event) -> ::js_sys::Array; # [wasm_bindgen (method , structural , js_class = "Event" , js_name = initEvent)] #[doc = "The `initEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/initEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Event`*"] pub fn init_event(this: &Event, type_: &str); # [wasm_bindgen (method , structural , js_class = "Event" , js_name = initEvent)] #[doc = "The `initEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/initEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Event`*"] pub fn init_event_with_bubbles(this: &Event, type_: &str, bubbles: bool); # [wasm_bindgen (method , structural , js_class = "Event" , js_name = initEvent)] #[doc = "The `initEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/initEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Event`*"] pub fn init_event_with_bubbles_and_cancelable( this: &Event, type_: &str, bubbles: bool, cancelable: bool, ); # [wasm_bindgen (method , structural , js_class = "Event" , js_name = preventDefault)] #[doc = "The `preventDefault()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Event`*"] pub fn prevent_default(this: &Event); # [wasm_bindgen (method , structural , js_class = "Event" , js_name = stopImmediatePropagation)] #[doc = "The `stopImmediatePropagation()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/stopImmediatePropagation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Event`*"] pub fn stop_immediate_propagation(this: &Event); # [wasm_bindgen (method , structural , js_class = "Event" , js_name = stopPropagation)] #[doc = "The `stopPropagation()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/stopPropagation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Event`*"] pub fn stop_propagation(this: &Event); } impl Event { #[doc = "The `Event.NONE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Event`*"] pub const NONE: u16 = 0i64 as u16; #[doc = "The `Event.CAPTURING_PHASE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Event`*"] pub const CAPTURING_PHASE: u16 = 1u64 as u16; #[doc = "The `Event.AT_TARGET` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Event`*"] pub const AT_TARGET: u16 = 2u64 as u16; #[doc = "The `Event.BUBBLING_PHASE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Event`*"] pub const BUBBLING_PHASE: u16 = 3u64 as u16; } web-sys-0.3.55/src/features/gen_EventInit.rs000064400000000000000000000050120072674642500170460ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = EventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `EventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventInit`*"] pub type EventInit; } impl EventInit { #[doc = "Construct a new `EventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for EventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_EventListener.rs000064400000000000000000000026660072674642500177440ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = EventListener)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `EventListener` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventListener`*"] pub type EventListener; } impl EventListener { #[doc = "Construct a new `EventListener`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventListener`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `handleEvent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventListener`*"] pub fn handle_event(&mut self, val: &::js_sys::Function) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("handleEvent"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for EventListener { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_EventListenerOptions.rs000064400000000000000000000027310072674642500213110ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = EventListenerOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `EventListenerOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventListenerOptions`*"] pub type EventListenerOptions; } impl EventListenerOptions { #[doc = "Construct a new `EventListenerOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventListenerOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `capture` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventListenerOptions`*"] pub fn capture(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("capture"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for EventListenerOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_EventModifierInit.rs000064400000000000000000000265470072674642500205450ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = EventModifierInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `EventModifierInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] pub type EventModifierInit; } impl EventModifierInit { #[doc = "Construct a new `EventModifierInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `detail` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] pub fn detail(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("detail"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "Window")] #[doc = "Change the `view` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`, `Window`*"] pub fn view(&mut self, val: Option<&Window>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("view"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `altKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] pub fn alt_key(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("altKey"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `ctrlKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] pub fn ctrl_key(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("ctrlKey"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `metaKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] pub fn meta_key(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("metaKey"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierAltGraph` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] pub fn modifier_alt_graph(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierAltGraph"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierCapsLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] pub fn modifier_caps_lock(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierCapsLock"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierFn` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] pub fn modifier_fn(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierFn"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierFnLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] pub fn modifier_fn_lock(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierFnLock"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierNumLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] pub fn modifier_num_lock(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierNumLock"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierOS` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] pub fn modifier_os(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierOS"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierScrollLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] pub fn modifier_scroll_lock(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierScrollLock"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierSymbol` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] pub fn modifier_symbol(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierSymbol"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierSymbolLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] pub fn modifier_symbol_lock(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierSymbolLock"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `shiftKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] pub fn shift_key(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("shiftKey"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for EventModifierInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_EventSource.rs000064400000000000000000000152440072674642500174130ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = EventSource , typescript_type = "EventSource")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `EventSource` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventSource)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventSource`*"] pub type EventSource; # [wasm_bindgen (structural , method , getter , js_class = "EventSource" , js_name = url)] #[doc = "Getter for the `url` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventSource/url)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventSource`*"] pub fn url(this: &EventSource) -> String; # [wasm_bindgen (structural , method , getter , js_class = "EventSource" , js_name = withCredentials)] #[doc = "Getter for the `withCredentials` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventSource/withCredentials)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventSource`*"] pub fn with_credentials(this: &EventSource) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "EventSource" , js_name = readyState)] #[doc = "Getter for the `readyState` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventSource/readyState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventSource`*"] pub fn ready_state(this: &EventSource) -> u16; # [wasm_bindgen (structural , method , getter , js_class = "EventSource" , js_name = onopen)] #[doc = "Getter for the `onopen` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventSource/onopen)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventSource`*"] pub fn onopen(this: &EventSource) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "EventSource" , js_name = onopen)] #[doc = "Setter for the `onopen` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventSource/onopen)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventSource`*"] pub fn set_onopen(this: &EventSource, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "EventSource" , js_name = onmessage)] #[doc = "Getter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventSource/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventSource`*"] pub fn onmessage(this: &EventSource) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "EventSource" , js_name = onmessage)] #[doc = "Setter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventSource/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventSource`*"] pub fn set_onmessage(this: &EventSource, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "EventSource" , js_name = onerror)] #[doc = "Getter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventSource/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventSource`*"] pub fn onerror(this: &EventSource) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "EventSource" , js_name = onerror)] #[doc = "Setter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventSource/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventSource`*"] pub fn set_onerror(this: &EventSource, value: Option<&::js_sys::Function>); #[wasm_bindgen(catch, constructor, js_class = "EventSource")] #[doc = "The `new EventSource(..)` constructor, creating a new instance of `EventSource`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventSource/EventSource)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventSource`*"] pub fn new(url: &str) -> Result; #[cfg(feature = "EventSourceInit")] #[wasm_bindgen(catch, constructor, js_class = "EventSource")] #[doc = "The `new EventSource(..)` constructor, creating a new instance of `EventSource`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventSource/EventSource)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventSource`, `EventSourceInit`*"] pub fn new_with_event_source_init_dict( url: &str, event_source_init_dict: &EventSourceInit, ) -> Result; # [wasm_bindgen (method , structural , js_class = "EventSource" , js_name = close)] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventSource/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventSource`*"] pub fn close(this: &EventSource); } impl EventSource { #[doc = "The `EventSource.CONNECTING` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventSource`*"] pub const CONNECTING: u16 = 0i64 as u16; #[doc = "The `EventSource.OPEN` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventSource`*"] pub const OPEN: u16 = 1u64 as u16; #[doc = "The `EventSource.CLOSED` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventSource`*"] pub const CLOSED: u16 = 2u64 as u16; } web-sys-0.3.55/src/features/gen_EventSourceInit.rs000064400000000000000000000027050072674642500202350ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = EventSourceInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `EventSourceInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventSourceInit`*"] pub type EventSourceInit; } impl EventSourceInit { #[doc = "Construct a new `EventSourceInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventSourceInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `withCredentials` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventSourceInit`*"] pub fn with_credentials(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("withCredentials"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for EventSourceInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_EventTarget.rs000064400000000000000000000277330072674642500174070ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = EventTarget , typescript_type = "EventTarget")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `EventTarget` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventTarget`*"] pub type EventTarget; #[wasm_bindgen(catch, constructor, js_class = "EventTarget")] #[doc = "The `new EventTarget(..)` constructor, creating a new instance of `EventTarget`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/EventTarget)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventTarget`*"] pub fn new() -> Result; # [wasm_bindgen (catch , method , structural , js_class = "EventTarget" , js_name = addEventListener)] #[doc = "The `addEventListener()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventTarget`*"] pub fn add_event_listener_with_callback( this: &EventTarget, type_: &str, listener: &::js_sys::Function, ) -> Result<(), JsValue>; #[cfg(feature = "EventListener")] # [wasm_bindgen (catch , method , structural , js_class = "EventTarget" , js_name = addEventListener)] #[doc = "The `addEventListener()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventListener`, `EventTarget`*"] pub fn add_event_listener_with_event_listener( this: &EventTarget, type_: &str, listener: &EventListener, ) -> Result<(), JsValue>; #[cfg(feature = "AddEventListenerOptions")] # [wasm_bindgen (catch , method , structural , js_class = "EventTarget" , js_name = addEventListener)] #[doc = "The `addEventListener()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AddEventListenerOptions`, `EventTarget`*"] pub fn add_event_listener_with_callback_and_add_event_listener_options( this: &EventTarget, type_: &str, listener: &::js_sys::Function, options: &AddEventListenerOptions, ) -> Result<(), JsValue>; #[cfg(all(feature = "AddEventListenerOptions", feature = "EventListener",))] # [wasm_bindgen (catch , method , structural , js_class = "EventTarget" , js_name = addEventListener)] #[doc = "The `addEventListener()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AddEventListenerOptions`, `EventListener`, `EventTarget`*"] pub fn add_event_listener_with_event_listener_and_add_event_listener_options( this: &EventTarget, type_: &str, listener: &EventListener, options: &AddEventListenerOptions, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "EventTarget" , js_name = addEventListener)] #[doc = "The `addEventListener()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventTarget`*"] pub fn add_event_listener_with_callback_and_bool( this: &EventTarget, type_: &str, listener: &::js_sys::Function, options: bool, ) -> Result<(), JsValue>; #[cfg(feature = "EventListener")] # [wasm_bindgen (catch , method , structural , js_class = "EventTarget" , js_name = addEventListener)] #[doc = "The `addEventListener()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventListener`, `EventTarget`*"] pub fn add_event_listener_with_event_listener_and_bool( this: &EventTarget, type_: &str, listener: &EventListener, options: bool, ) -> Result<(), JsValue>; #[cfg(feature = "AddEventListenerOptions")] # [wasm_bindgen (catch , method , structural , js_class = "EventTarget" , js_name = addEventListener)] #[doc = "The `addEventListener()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AddEventListenerOptions`, `EventTarget`*"] pub fn add_event_listener_with_callback_and_add_event_listener_options_and_wants_untrusted( this: &EventTarget, type_: &str, listener: &::js_sys::Function, options: &AddEventListenerOptions, wants_untrusted: Option, ) -> Result<(), JsValue>; #[cfg(all(feature = "AddEventListenerOptions", feature = "EventListener",))] # [wasm_bindgen (catch , method , structural , js_class = "EventTarget" , js_name = addEventListener)] #[doc = "The `addEventListener()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AddEventListenerOptions`, `EventListener`, `EventTarget`*"] pub fn add_event_listener_with_event_listener_and_add_event_listener_options_and_wants_untrusted( this: &EventTarget, type_: &str, listener: &EventListener, options: &AddEventListenerOptions, wants_untrusted: Option, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "EventTarget" , js_name = addEventListener)] #[doc = "The `addEventListener()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventTarget`*"] pub fn add_event_listener_with_callback_and_bool_and_wants_untrusted( this: &EventTarget, type_: &str, listener: &::js_sys::Function, options: bool, wants_untrusted: Option, ) -> Result<(), JsValue>; #[cfg(feature = "EventListener")] # [wasm_bindgen (catch , method , structural , js_class = "EventTarget" , js_name = addEventListener)] #[doc = "The `addEventListener()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventListener`, `EventTarget`*"] pub fn add_event_listener_with_event_listener_and_bool_and_wants_untrusted( this: &EventTarget, type_: &str, listener: &EventListener, options: bool, wants_untrusted: Option, ) -> Result<(), JsValue>; #[cfg(feature = "Event")] # [wasm_bindgen (catch , method , structural , js_class = "EventTarget" , js_name = dispatchEvent)] #[doc = "The `dispatchEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/dispatchEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Event`, `EventTarget`*"] pub fn dispatch_event(this: &EventTarget, event: &Event) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "EventTarget" , js_name = removeEventListener)] #[doc = "The `removeEventListener()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventTarget`*"] pub fn remove_event_listener_with_callback( this: &EventTarget, type_: &str, listener: &::js_sys::Function, ) -> Result<(), JsValue>; #[cfg(feature = "EventListener")] # [wasm_bindgen (catch , method , structural , js_class = "EventTarget" , js_name = removeEventListener)] #[doc = "The `removeEventListener()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventListener`, `EventTarget`*"] pub fn remove_event_listener_with_event_listener( this: &EventTarget, type_: &str, listener: &EventListener, ) -> Result<(), JsValue>; #[cfg(feature = "EventListenerOptions")] # [wasm_bindgen (catch , method , structural , js_class = "EventTarget" , js_name = removeEventListener)] #[doc = "The `removeEventListener()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventListenerOptions`, `EventTarget`*"] pub fn remove_event_listener_with_callback_and_event_listener_options( this: &EventTarget, type_: &str, listener: &::js_sys::Function, options: &EventListenerOptions, ) -> Result<(), JsValue>; #[cfg(all(feature = "EventListener", feature = "EventListenerOptions",))] # [wasm_bindgen (catch , method , structural , js_class = "EventTarget" , js_name = removeEventListener)] #[doc = "The `removeEventListener()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventListener`, `EventListenerOptions`, `EventTarget`*"] pub fn remove_event_listener_with_event_listener_and_event_listener_options( this: &EventTarget, type_: &str, listener: &EventListener, options: &EventListenerOptions, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "EventTarget" , js_name = removeEventListener)] #[doc = "The `removeEventListener()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventTarget`*"] pub fn remove_event_listener_with_callback_and_bool( this: &EventTarget, type_: &str, listener: &::js_sys::Function, options: bool, ) -> Result<(), JsValue>; #[cfg(feature = "EventListener")] # [wasm_bindgen (catch , method , structural , js_class = "EventTarget" , js_name = removeEventListener)] #[doc = "The `removeEventListener()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventListener`, `EventTarget`*"] pub fn remove_event_listener_with_event_listener_and_bool( this: &EventTarget, type_: &str, listener: &EventListener, options: bool, ) -> Result<(), JsValue>; } web-sys-0.3.55/src/features/gen_Exception.rs000064400000000000000000000077230072674642500171120ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = Exception , typescript_type = "Exception")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Exception` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Exception)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Exception`*"] pub type Exception; # [wasm_bindgen (structural , method , getter , js_class = "Exception" , js_name = name)] #[doc = "Getter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Exception/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Exception`*"] pub fn name(this: &Exception) -> String; # [wasm_bindgen (structural , method , getter , js_class = "Exception" , js_name = message)] #[doc = "Getter for the `message` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Exception/message)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Exception`*"] pub fn message(this: &Exception) -> String; # [wasm_bindgen (structural , method , getter , js_class = "Exception" , js_name = result)] #[doc = "Getter for the `result` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Exception/result)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Exception`*"] pub fn result(this: &Exception) -> u32; # [wasm_bindgen (structural , method , getter , js_class = "Exception" , js_name = filename)] #[doc = "Getter for the `filename` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Exception/filename)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Exception`*"] pub fn filename(this: &Exception) -> String; # [wasm_bindgen (structural , method , getter , js_class = "Exception" , js_name = lineNumber)] #[doc = "Getter for the `lineNumber` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Exception/lineNumber)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Exception`*"] pub fn line_number(this: &Exception) -> u32; # [wasm_bindgen (structural , method , getter , js_class = "Exception" , js_name = columnNumber)] #[doc = "Getter for the `columnNumber` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Exception/columnNumber)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Exception`*"] pub fn column_number(this: &Exception) -> u32; # [wasm_bindgen (structural , method , getter , js_class = "Exception" , js_name = data)] #[doc = "Getter for the `data` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Exception/data)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Exception`*"] pub fn data(this: &Exception) -> Option<::js_sys::Object>; # [wasm_bindgen (structural , method , getter , js_class = "Exception" , js_name = stack)] #[doc = "Getter for the `stack` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Exception/stack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Exception`*"] pub fn stack(this: &Exception) -> String; } web-sys-0.3.55/src/features/gen_ExtBlendMinmax.rs000064400000000000000000000020260072674642500200220ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = EXT_blend_minmax , typescript_type = "EXT_blend_minmax")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ExtBlendMinmax` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EXT_blend_minmax)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtBlendMinmax`*"] pub type ExtBlendMinmax; } impl ExtBlendMinmax { #[doc = "The `EXT_blend_minmax.MIN_EXT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtBlendMinmax`*"] pub const MIN_EXT: u32 = 32775u64 as u32; #[doc = "The `EXT_blend_minmax.MAX_EXT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtBlendMinmax`*"] pub const MAX_EXT: u32 = 32776u64 as u32; } web-sys-0.3.55/src/features/gen_ExtColorBufferFloat.rs000064400000000000000000000011650072674642500210250ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = EXT_color_buffer_float , typescript_type = "EXT_color_buffer_float")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ExtColorBufferFloat` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EXT_color_buffer_float)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtColorBufferFloat`*"] pub type ExtColorBufferFloat; } web-sys-0.3.55/src/features/gen_ExtColorBufferHalfFloat.rs000064400000000000000000000033070072674642500216200ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = EXT_color_buffer_half_float , typescript_type = "EXT_color_buffer_half_float")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ExtColorBufferHalfFloat` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EXT_color_buffer_half_float)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtColorBufferHalfFloat`*"] pub type ExtColorBufferHalfFloat; } impl ExtColorBufferHalfFloat { #[doc = "The `EXT_color_buffer_half_float.RGBA16F_EXT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtColorBufferHalfFloat`*"] pub const RGBA16F_EXT: u32 = 34842u64 as u32; #[doc = "The `EXT_color_buffer_half_float.RGB16F_EXT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtColorBufferHalfFloat`*"] pub const RGB16F_EXT: u32 = 34843u64 as u32; #[doc = "The `EXT_color_buffer_half_float.FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtColorBufferHalfFloat`*"] pub const FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: u32 = 33297u64 as u32; #[doc = "The `EXT_color_buffer_half_float.UNSIGNED_NORMALIZED_EXT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtColorBufferHalfFloat`*"] pub const UNSIGNED_NORMALIZED_EXT: u32 = 35863u64 as u32; } web-sys-0.3.55/src/features/gen_ExtDisjointTimerQuery.rs000064400000000000000000000152730072674642500214460ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = EXT_disjoint_timer_query , typescript_type = "EXT_disjoint_timer_query")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ExtDisjointTimerQuery` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EXT_disjoint_timer_query)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtDisjointTimerQuery`*"] pub type ExtDisjointTimerQuery; #[cfg(feature = "WebGlQuery")] # [wasm_bindgen (method , structural , js_class = "EXT_disjoint_timer_query" , js_name = beginQueryEXT)] #[doc = "The `beginQueryEXT()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EXT_disjoint_timer_query/beginQueryEXT)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtDisjointTimerQuery`, `WebGlQuery`*"] pub fn begin_query_ext(this: &ExtDisjointTimerQuery, target: u32, query: &WebGlQuery); #[cfg(feature = "WebGlQuery")] # [wasm_bindgen (method , structural , js_class = "EXT_disjoint_timer_query" , js_name = createQueryEXT)] #[doc = "The `createQueryEXT()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EXT_disjoint_timer_query/createQueryEXT)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtDisjointTimerQuery`, `WebGlQuery`*"] pub fn create_query_ext(this: &ExtDisjointTimerQuery) -> Option; #[cfg(feature = "WebGlQuery")] # [wasm_bindgen (method , structural , js_class = "EXT_disjoint_timer_query" , js_name = deleteQueryEXT)] #[doc = "The `deleteQueryEXT()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EXT_disjoint_timer_query/deleteQueryEXT)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtDisjointTimerQuery`, `WebGlQuery`*"] pub fn delete_query_ext(this: &ExtDisjointTimerQuery, query: Option<&WebGlQuery>); # [wasm_bindgen (method , structural , js_class = "EXT_disjoint_timer_query" , js_name = endQueryEXT)] #[doc = "The `endQueryEXT()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EXT_disjoint_timer_query/endQueryEXT)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtDisjointTimerQuery`*"] pub fn end_query_ext(this: &ExtDisjointTimerQuery, target: u32); # [wasm_bindgen (method , structural , js_class = "EXT_disjoint_timer_query" , js_name = getQueryEXT)] #[doc = "The `getQueryEXT()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EXT_disjoint_timer_query/getQueryEXT)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtDisjointTimerQuery`*"] pub fn get_query_ext( this: &ExtDisjointTimerQuery, target: u32, pname: u32, ) -> ::wasm_bindgen::JsValue; #[cfg(feature = "WebGlQuery")] # [wasm_bindgen (method , structural , js_class = "EXT_disjoint_timer_query" , js_name = getQueryObjectEXT)] #[doc = "The `getQueryObjectEXT()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EXT_disjoint_timer_query/getQueryObjectEXT)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtDisjointTimerQuery`, `WebGlQuery`*"] pub fn get_query_object_ext( this: &ExtDisjointTimerQuery, query: &WebGlQuery, pname: u32, ) -> ::wasm_bindgen::JsValue; #[cfg(feature = "WebGlQuery")] # [wasm_bindgen (method , structural , js_class = "EXT_disjoint_timer_query" , js_name = isQueryEXT)] #[doc = "The `isQueryEXT()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EXT_disjoint_timer_query/isQueryEXT)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtDisjointTimerQuery`, `WebGlQuery`*"] pub fn is_query_ext(this: &ExtDisjointTimerQuery, query: Option<&WebGlQuery>) -> bool; #[cfg(feature = "WebGlQuery")] # [wasm_bindgen (method , structural , js_class = "EXT_disjoint_timer_query" , js_name = queryCounterEXT)] #[doc = "The `queryCounterEXT()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EXT_disjoint_timer_query/queryCounterEXT)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtDisjointTimerQuery`, `WebGlQuery`*"] pub fn query_counter_ext(this: &ExtDisjointTimerQuery, query: &WebGlQuery, target: u32); } impl ExtDisjointTimerQuery { #[doc = "The `EXT_disjoint_timer_query.QUERY_COUNTER_BITS_EXT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtDisjointTimerQuery`*"] pub const QUERY_COUNTER_BITS_EXT: u32 = 34916u64 as u32; #[doc = "The `EXT_disjoint_timer_query.CURRENT_QUERY_EXT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtDisjointTimerQuery`*"] pub const CURRENT_QUERY_EXT: u32 = 34917u64 as u32; #[doc = "The `EXT_disjoint_timer_query.QUERY_RESULT_EXT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtDisjointTimerQuery`*"] pub const QUERY_RESULT_EXT: u32 = 34918u64 as u32; #[doc = "The `EXT_disjoint_timer_query.QUERY_RESULT_AVAILABLE_EXT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtDisjointTimerQuery`*"] pub const QUERY_RESULT_AVAILABLE_EXT: u32 = 34919u64 as u32; #[doc = "The `EXT_disjoint_timer_query.TIME_ELAPSED_EXT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtDisjointTimerQuery`*"] pub const TIME_ELAPSED_EXT: u32 = 35007u64 as u32; #[doc = "The `EXT_disjoint_timer_query.TIMESTAMP_EXT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtDisjointTimerQuery`*"] pub const TIMESTAMP_EXT: u32 = 36392u64 as u32; #[doc = "The `EXT_disjoint_timer_query.GPU_DISJOINT_EXT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtDisjointTimerQuery`*"] pub const GPU_DISJOINT_EXT: u32 = 36795u64 as u32; } web-sys-0.3.55/src/features/gen_ExtFragDepth.rs000064400000000000000000000011100072674642500174610ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = EXT_frag_depth , typescript_type = "EXT_frag_depth")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ExtFragDepth` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EXT_frag_depth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtFragDepth`*"] pub type ExtFragDepth; } web-sys-0.3.55/src/features/gen_ExtSRgb.rs000064400000000000000000000026660072674642500164730ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = EXT_sRGB , typescript_type = "EXT_sRGB")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ExtSRgb` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EXT_sRGB)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtSRgb`*"] pub type ExtSRgb; } impl ExtSRgb { #[doc = "The `EXT_sRGB.SRGB_EXT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtSRgb`*"] pub const SRGB_EXT: u32 = 35904u64 as u32; #[doc = "The `EXT_sRGB.SRGB_ALPHA_EXT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtSRgb`*"] pub const SRGB_ALPHA_EXT: u32 = 35906u64 as u32; #[doc = "The `EXT_sRGB.SRGB8_ALPHA8_EXT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtSRgb`*"] pub const SRGB8_ALPHA8_EXT: u32 = 35907u64 as u32; #[doc = "The `EXT_sRGB.FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtSRgb`*"] pub const FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: u32 = 33296u64 as u32; } web-sys-0.3.55/src/features/gen_ExtShaderTextureLod.rs000064400000000000000000000011650072674642500210550ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = EXT_shader_texture_lod , typescript_type = "EXT_shader_texture_lod")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ExtShaderTextureLod` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EXT_shader_texture_lod)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtShaderTextureLod`*"] pub type ExtShaderTextureLod; } web-sys-0.3.55/src/features/gen_ExtTextureFilterAnisotropic.rs000064400000000000000000000023760072674642500226550ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = EXT_texture_filter_anisotropic , typescript_type = "EXT_texture_filter_anisotropic")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ExtTextureFilterAnisotropic` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EXT_texture_filter_anisotropic)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtTextureFilterAnisotropic`*"] pub type ExtTextureFilterAnisotropic; } impl ExtTextureFilterAnisotropic { #[doc = "The `EXT_texture_filter_anisotropic.TEXTURE_MAX_ANISOTROPY_EXT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtTextureFilterAnisotropic`*"] pub const TEXTURE_MAX_ANISOTROPY_EXT: u32 = 34046u64 as u32; #[doc = "The `EXT_texture_filter_anisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtTextureFilterAnisotropic`*"] pub const MAX_TEXTURE_MAX_ANISOTROPY_EXT: u32 = 34047u64 as u32; } web-sys-0.3.55/src/features/gen_ExtendableEvent.rs000064400000000000000000000042170072674642500202240ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = ExtendableEvent , typescript_type = "ExtendableEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ExtendableEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ExtendableEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableEvent`*"] pub type ExtendableEvent; #[wasm_bindgen(catch, constructor, js_class = "ExtendableEvent")] #[doc = "The `new ExtendableEvent(..)` constructor, creating a new instance of `ExtendableEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ExtendableEvent/ExtendableEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableEvent`*"] pub fn new(type_: &str) -> Result; #[cfg(feature = "ExtendableEventInit")] #[wasm_bindgen(catch, constructor, js_class = "ExtendableEvent")] #[doc = "The `new ExtendableEvent(..)` constructor, creating a new instance of `ExtendableEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ExtendableEvent/ExtendableEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableEvent`, `ExtendableEventInit`*"] pub fn new_with_event_init_dict( type_: &str, event_init_dict: &ExtendableEventInit, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "ExtendableEvent" , js_name = waitUntil)] #[doc = "The `waitUntil()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ExtendableEvent/waitUntil)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableEvent`*"] pub fn wait_until(this: &ExtendableEvent, p: &::js_sys::Promise) -> Result<(), JsValue>; } web-sys-0.3.55/src/features/gen_ExtendableEventInit.rs000064400000000000000000000051700072674642500210470ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ExtendableEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ExtendableEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableEventInit`*"] pub type ExtendableEventInit; } impl ExtendableEventInit { #[doc = "Construct a new `ExtendableEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for ExtendableEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_ExtendableMessageEvent.rs000064400000000000000000000104210072674642500215230ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = ExtendableEvent , extends = Event , extends = :: js_sys :: Object , js_name = ExtendableMessageEvent , typescript_type = "ExtendableMessageEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ExtendableMessageEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ExtendableMessageEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEvent`*"] pub type ExtendableMessageEvent; # [wasm_bindgen (structural , method , getter , js_class = "ExtendableMessageEvent" , js_name = data)] #[doc = "Getter for the `data` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ExtendableMessageEvent/data)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEvent`*"] pub fn data(this: &ExtendableMessageEvent) -> ::wasm_bindgen::JsValue; # [wasm_bindgen (structural , method , getter , js_class = "ExtendableMessageEvent" , js_name = origin)] #[doc = "Getter for the `origin` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ExtendableMessageEvent/origin)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEvent`*"] pub fn origin(this: &ExtendableMessageEvent) -> String; # [wasm_bindgen (structural , method , getter , js_class = "ExtendableMessageEvent" , js_name = lastEventId)] #[doc = "Getter for the `lastEventId` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ExtendableMessageEvent/lastEventId)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEvent`*"] pub fn last_event_id(this: &ExtendableMessageEvent) -> String; # [wasm_bindgen (structural , method , getter , js_class = "ExtendableMessageEvent" , js_name = source)] #[doc = "Getter for the `source` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ExtendableMessageEvent/source)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEvent`*"] pub fn source(this: &ExtendableMessageEvent) -> Option<::js_sys::Object>; # [wasm_bindgen (structural , method , getter , js_class = "ExtendableMessageEvent" , js_name = ports)] #[doc = "Getter for the `ports` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ExtendableMessageEvent/ports)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEvent`*"] pub fn ports(this: &ExtendableMessageEvent) -> ::js_sys::Array; #[wasm_bindgen(catch, constructor, js_class = "ExtendableMessageEvent")] #[doc = "The `new ExtendableMessageEvent(..)` constructor, creating a new instance of `ExtendableMessageEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ExtendableMessageEvent/ExtendableMessageEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEvent`*"] pub fn new(type_: &str) -> Result; #[cfg(feature = "ExtendableMessageEventInit")] #[wasm_bindgen(catch, constructor, js_class = "ExtendableMessageEvent")] #[doc = "The `new ExtendableMessageEvent(..)` constructor, creating a new instance of `ExtendableMessageEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ExtendableMessageEvent/ExtendableMessageEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEvent`, `ExtendableMessageEventInit`*"] pub fn new_with_event_init_dict( type_: &str, event_init_dict: &ExtendableMessageEventInit, ) -> Result; } web-sys-0.3.55/src/features/gen_ExtendableMessageEventInit.rs000064400000000000000000000130000072674642500223430ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ExtendableMessageEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ExtendableMessageEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEventInit`*"] pub type ExtendableMessageEventInit; } impl ExtendableMessageEventInit { #[doc = "Construct a new `ExtendableMessageEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `data` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEventInit`*"] pub fn data(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("data"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `lastEventId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEventInit`*"] pub fn last_event_id(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("lastEventId"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `origin` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEventInit`*"] pub fn origin(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("origin"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `ports` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEventInit`*"] pub fn ports(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("ports"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `source` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEventInit`*"] pub fn source(&mut self, val: Option<&::js_sys::Object>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("source"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for ExtendableMessageEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_External.rs000064400000000000000000000027350072674642500167340ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = External , typescript_type = "External")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `External` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/External)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `External`*"] pub type External; # [wasm_bindgen (method , structural , js_class = "External" , js_name = AddSearchProvider)] #[doc = "The `AddSearchProvider()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/External/AddSearchProvider)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `External`*"] pub fn add_search_provider(this: &External, a_description_url: &str); # [wasm_bindgen (method , structural , js_class = "External" , js_name = IsSearchProviderInstalled)] #[doc = "The `IsSearchProviderInstalled()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/External/IsSearchProviderInstalled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `External`*"] pub fn is_search_provider_installed(this: &External, a_search_url: &str) -> u32; } web-sys-0.3.55/src/features/gen_FakePluginMimeEntry.rs000064400000000000000000000050160072674642500210240ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FakePluginMimeEntry)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FakePluginMimeEntry` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginMimeEntry`*"] pub type FakePluginMimeEntry; } impl FakePluginMimeEntry { #[doc = "Construct a new `FakePluginMimeEntry`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginMimeEntry`*"] pub fn new(type_: &str) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.type_(type_); ret } #[doc = "Change the `description` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginMimeEntry`*"] pub fn description(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("description"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `extension` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginMimeEntry`*"] pub fn extension(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("extension"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginMimeEntry`*"] pub fn type_(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_FakePluginTagInit.rs000064400000000000000000000141470072674642500204570ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FakePluginTagInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FakePluginTagInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"] pub type FakePluginTagInit; } impl FakePluginTagInit { #[doc = "Construct a new `FakePluginTagInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"] pub fn new(handler_uri: &str, mime_entries: &::wasm_bindgen::JsValue) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.handler_uri(handler_uri); ret.mime_entries(mime_entries); ret } #[doc = "Change the `description` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"] pub fn description(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("description"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `fileName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"] pub fn file_name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("fileName"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `fullPath` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"] pub fn full_path(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("fullPath"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `handlerURI` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"] pub fn handler_uri(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("handlerURI"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `mimeEntries` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"] pub fn mime_entries(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("mimeEntries"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"] pub fn name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `niceName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"] pub fn nice_name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("niceName"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `sandboxScript` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"] pub fn sandbox_script(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("sandboxScript"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `version` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"] pub fn version(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("version"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_FetchEvent.rs000064400000000000000000000056350072674642500172070ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = ExtendableEvent , extends = Event , extends = :: js_sys :: Object , js_name = FetchEvent , typescript_type = "FetchEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FetchEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FetchEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FetchEvent`*"] pub type FetchEvent; #[cfg(feature = "Request")] # [wasm_bindgen (structural , method , getter , js_class = "FetchEvent" , js_name = request)] #[doc = "Getter for the `request` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FetchEvent/request)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FetchEvent`, `Request`*"] pub fn request(this: &FetchEvent) -> Request; # [wasm_bindgen (structural , method , getter , js_class = "FetchEvent" , js_name = clientId)] #[doc = "Getter for the `clientId` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FetchEvent/clientId)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FetchEvent`*"] pub fn client_id(this: &FetchEvent) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "FetchEvent" , js_name = isReload)] #[doc = "Getter for the `isReload` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FetchEvent/isReload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FetchEvent`*"] pub fn is_reload(this: &FetchEvent) -> bool; #[cfg(feature = "FetchEventInit")] #[wasm_bindgen(catch, constructor, js_class = "FetchEvent")] #[doc = "The `new FetchEvent(..)` constructor, creating a new instance of `FetchEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FetchEvent/FetchEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FetchEvent`, `FetchEventInit`*"] pub fn new(type_: &str, event_init_dict: &FetchEventInit) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "FetchEvent" , js_name = respondWith)] #[doc = "The `respondWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FetchEvent/respondWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FetchEvent`*"] pub fn respond_with(this: &FetchEvent, r: &::js_sys::Promise) -> Result<(), JsValue>; } web-sys-0.3.55/src/features/gen_FetchEventInit.rs000064400000000000000000000105340072674642500200250ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FetchEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FetchEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FetchEventInit`*"] pub type FetchEventInit; } impl FetchEventInit { #[cfg(feature = "Request")] #[doc = "Construct a new `FetchEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FetchEventInit`, `Request`*"] pub fn new(request: &Request) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.request(request); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FetchEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FetchEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FetchEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `clientId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FetchEventInit`*"] pub fn client_id(&mut self, val: Option<&str>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("clientId"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `isReload` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FetchEventInit`*"] pub fn is_reload(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("isReload"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "Request")] #[doc = "Change the `request` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FetchEventInit`, `Request`*"] pub fn request(&mut self, val: &Request) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("request"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_FetchObserver.rs000064400000000000000000000100650072674642500177060ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = FetchObserver , typescript_type = "FetchObserver")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FetchObserver` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FetchObserver)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FetchObserver`*"] pub type FetchObserver; #[cfg(feature = "FetchState")] # [wasm_bindgen (structural , method , getter , js_class = "FetchObserver" , js_name = state)] #[doc = "Getter for the `state` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FetchObserver/state)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FetchObserver`, `FetchState`*"] pub fn state(this: &FetchObserver) -> FetchState; # [wasm_bindgen (structural , method , getter , js_class = "FetchObserver" , js_name = onstatechange)] #[doc = "Getter for the `onstatechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FetchObserver/onstatechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FetchObserver`*"] pub fn onstatechange(this: &FetchObserver) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "FetchObserver" , js_name = onstatechange)] #[doc = "Setter for the `onstatechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FetchObserver/onstatechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FetchObserver`*"] pub fn set_onstatechange(this: &FetchObserver, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "FetchObserver" , js_name = onrequestprogress)] #[doc = "Getter for the `onrequestprogress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FetchObserver/onrequestprogress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FetchObserver`*"] pub fn onrequestprogress(this: &FetchObserver) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "FetchObserver" , js_name = onrequestprogress)] #[doc = "Setter for the `onrequestprogress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FetchObserver/onrequestprogress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FetchObserver`*"] pub fn set_onrequestprogress(this: &FetchObserver, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "FetchObserver" , js_name = onresponseprogress)] #[doc = "Getter for the `onresponseprogress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FetchObserver/onresponseprogress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FetchObserver`*"] pub fn onresponseprogress(this: &FetchObserver) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "FetchObserver" , js_name = onresponseprogress)] #[doc = "Setter for the `onresponseprogress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FetchObserver/onresponseprogress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FetchObserver`*"] pub fn set_onresponseprogress(this: &FetchObserver, value: Option<&::js_sys::Function>); } web-sys-0.3.55/src/features/gen_FetchReadableStreamReadDataArray.rs000064400000000000000000000017520072674642500233620ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FetchReadableStreamReadDataArray)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FetchReadableStreamReadDataArray` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FetchReadableStreamReadDataArray`*"] pub type FetchReadableStreamReadDataArray; } impl FetchReadableStreamReadDataArray { #[doc = "Construct a new `FetchReadableStreamReadDataArray`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FetchReadableStreamReadDataArray`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } } impl Default for FetchReadableStreamReadDataArray { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_FetchReadableStreamReadDataDone.rs000064400000000000000000000030040072674642500231610ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FetchReadableStreamReadDataDone)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FetchReadableStreamReadDataDone` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FetchReadableStreamReadDataDone`*"] pub type FetchReadableStreamReadDataDone; } impl FetchReadableStreamReadDataDone { #[doc = "Construct a new `FetchReadableStreamReadDataDone`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FetchReadableStreamReadDataDone`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `done` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FetchReadableStreamReadDataDone`*"] pub fn done(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("done"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for FetchReadableStreamReadDataDone { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_FetchState.rs000064400000000000000000000006400072674642500171750ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `FetchState` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FetchState`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum FetchState { Requesting = "requesting", Responding = "responding", Aborted = "aborted", Errored = "errored", Complete = "complete", } web-sys-0.3.55/src/features/gen_File.rs000064400000000000000000000131640072674642500160270ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Blob , extends = :: js_sys :: Object , js_name = File , typescript_type = "File")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `File` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/File)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `File`*"] pub type File; # [wasm_bindgen (structural , method , getter , js_class = "File" , js_name = name)] #[doc = "Getter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/File/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `File`*"] pub fn name(this: &File) -> String; # [wasm_bindgen (structural , method , getter , js_class = "File" , js_name = lastModified)] #[doc = "Getter for the `lastModified` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/File/lastModified)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `File`*"] pub fn last_modified(this: &File) -> f64; #[wasm_bindgen(catch, constructor, js_class = "File")] #[doc = "The `new File(..)` constructor, creating a new instance of `File`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/File/File)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `File`*"] pub fn new_with_buffer_source_sequence( file_bits: &::wasm_bindgen::JsValue, file_name: &str, ) -> Result; #[wasm_bindgen(catch, constructor, js_class = "File")] #[doc = "The `new File(..)` constructor, creating a new instance of `File`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/File/File)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `File`*"] pub fn new_with_u8_array_sequence( file_bits: &::wasm_bindgen::JsValue, file_name: &str, ) -> Result; #[wasm_bindgen(catch, constructor, js_class = "File")] #[doc = "The `new File(..)` constructor, creating a new instance of `File`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/File/File)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `File`*"] pub fn new_with_blob_sequence( file_bits: &::wasm_bindgen::JsValue, file_name: &str, ) -> Result; #[wasm_bindgen(catch, constructor, js_class = "File")] #[doc = "The `new File(..)` constructor, creating a new instance of `File`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/File/File)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `File`*"] pub fn new_with_str_sequence( file_bits: &::wasm_bindgen::JsValue, file_name: &str, ) -> Result; #[cfg(feature = "FilePropertyBag")] #[wasm_bindgen(catch, constructor, js_class = "File")] #[doc = "The `new File(..)` constructor, creating a new instance of `File`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/File/File)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `File`, `FilePropertyBag`*"] pub fn new_with_buffer_source_sequence_and_options( file_bits: &::wasm_bindgen::JsValue, file_name: &str, options: &FilePropertyBag, ) -> Result; #[cfg(feature = "FilePropertyBag")] #[wasm_bindgen(catch, constructor, js_class = "File")] #[doc = "The `new File(..)` constructor, creating a new instance of `File`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/File/File)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `File`, `FilePropertyBag`*"] pub fn new_with_u8_array_sequence_and_options( file_bits: &::wasm_bindgen::JsValue, file_name: &str, options: &FilePropertyBag, ) -> Result; #[cfg(feature = "FilePropertyBag")] #[wasm_bindgen(catch, constructor, js_class = "File")] #[doc = "The `new File(..)` constructor, creating a new instance of `File`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/File/File)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `File`, `FilePropertyBag`*"] pub fn new_with_blob_sequence_and_options( file_bits: &::wasm_bindgen::JsValue, file_name: &str, options: &FilePropertyBag, ) -> Result; #[cfg(feature = "FilePropertyBag")] #[wasm_bindgen(catch, constructor, js_class = "File")] #[doc = "The `new File(..)` constructor, creating a new instance of `File`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/File/File)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `File`, `FilePropertyBag`*"] pub fn new_with_str_sequence_and_options( file_bits: &::wasm_bindgen::JsValue, file_name: &str, options: &FilePropertyBag, ) -> Result; } web-sys-0.3.55/src/features/gen_FileCallback.rs000064400000000000000000000026550072674642500174470ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FileCallback)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FileCallback` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileCallback`*"] pub type FileCallback; } impl FileCallback { #[doc = "Construct a new `FileCallback`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileCallback`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `handleEvent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileCallback`*"] pub fn handle_event(&mut self, val: &::js_sys::Function) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("handleEvent"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for FileCallback { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_FileList.rs000064400000000000000000000033170072674642500166620ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FileList , typescript_type = "FileList")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FileList` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileList)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileList`*"] pub type FileList; # [wasm_bindgen (structural , method , getter , js_class = "FileList" , js_name = length)] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileList/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileList`*"] pub fn length(this: &FileList) -> u32; #[cfg(feature = "File")] # [wasm_bindgen (method , structural , js_class = "FileList" , js_name = item)] #[doc = "The `item()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileList/item)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `File`, `FileList`*"] pub fn item(this: &FileList, index: u32) -> Option; #[cfg(feature = "File")] #[wasm_bindgen(method, structural, js_class = "FileList", indexing_getter)] #[doc = "Indexing getter."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `File`, `FileList`*"] pub fn get(this: &FileList, index: u32) -> Option; } web-sys-0.3.55/src/features/gen_FilePropertyBag.rs000064400000000000000000000037160072674642500202100ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FilePropertyBag)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FilePropertyBag` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FilePropertyBag`*"] pub type FilePropertyBag; } impl FilePropertyBag { #[doc = "Construct a new `FilePropertyBag`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FilePropertyBag`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `lastModified` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FilePropertyBag`*"] pub fn last_modified(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("lastModified"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FilePropertyBag`*"] pub fn type_(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for FilePropertyBag { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_FileReader.rs000064400000000000000000000266020072674642500171530ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = FileReader , typescript_type = "FileReader")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FileReader` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileReader`*"] pub type FileReader; # [wasm_bindgen (structural , method , getter , js_class = "FileReader" , js_name = readyState)] #[doc = "Getter for the `readyState` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readyState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileReader`*"] pub fn ready_state(this: &FileReader) -> u16; # [wasm_bindgen (structural , catch , method , getter , js_class = "FileReader" , js_name = result)] #[doc = "Getter for the `result` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/result)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileReader`*"] pub fn result(this: &FileReader) -> Result<::wasm_bindgen::JsValue, JsValue>; #[cfg(feature = "DomException")] # [wasm_bindgen (structural , method , getter , js_class = "FileReader" , js_name = error)] #[doc = "Getter for the `error` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/error)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`, `FileReader`*"] pub fn error(this: &FileReader) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "FileReader" , js_name = onloadstart)] #[doc = "Getter for the `onloadstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onloadstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileReader`*"] pub fn onloadstart(this: &FileReader) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "FileReader" , js_name = onloadstart)] #[doc = "Setter for the `onloadstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onloadstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileReader`*"] pub fn set_onloadstart(this: &FileReader, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "FileReader" , js_name = onprogress)] #[doc = "Getter for the `onprogress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onprogress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileReader`*"] pub fn onprogress(this: &FileReader) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "FileReader" , js_name = onprogress)] #[doc = "Setter for the `onprogress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onprogress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileReader`*"] pub fn set_onprogress(this: &FileReader, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "FileReader" , js_name = onload)] #[doc = "Getter for the `onload` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileReader`*"] pub fn onload(this: &FileReader) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "FileReader" , js_name = onload)] #[doc = "Setter for the `onload` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileReader`*"] pub fn set_onload(this: &FileReader, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "FileReader" , js_name = onabort)] #[doc = "Getter for the `onabort` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onabort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileReader`*"] pub fn onabort(this: &FileReader) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "FileReader" , js_name = onabort)] #[doc = "Setter for the `onabort` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onabort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileReader`*"] pub fn set_onabort(this: &FileReader, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "FileReader" , js_name = onerror)] #[doc = "Getter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileReader`*"] pub fn onerror(this: &FileReader) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "FileReader" , js_name = onerror)] #[doc = "Setter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileReader`*"] pub fn set_onerror(this: &FileReader, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "FileReader" , js_name = onloadend)] #[doc = "Getter for the `onloadend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onloadend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileReader`*"] pub fn onloadend(this: &FileReader) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "FileReader" , js_name = onloadend)] #[doc = "Setter for the `onloadend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onloadend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileReader`*"] pub fn set_onloadend(this: &FileReader, value: Option<&::js_sys::Function>); #[wasm_bindgen(catch, constructor, js_class = "FileReader")] #[doc = "The `new FileReader(..)` constructor, creating a new instance of `FileReader`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/FileReader)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileReader`*"] pub fn new() -> Result; # [wasm_bindgen (method , structural , js_class = "FileReader" , js_name = abort)] #[doc = "The `abort()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/abort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileReader`*"] pub fn abort(this: &FileReader); #[cfg(feature = "Blob")] # [wasm_bindgen (catch , method , structural , js_class = "FileReader" , js_name = readAsArrayBuffer)] #[doc = "The `readAsArrayBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsArrayBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`, `FileReader`*"] pub fn read_as_array_buffer(this: &FileReader, blob: &Blob) -> Result<(), JsValue>; #[cfg(feature = "Blob")] # [wasm_bindgen (catch , method , structural , js_class = "FileReader" , js_name = readAsBinaryString)] #[doc = "The `readAsBinaryString()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsBinaryString)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`, `FileReader`*"] pub fn read_as_binary_string(this: &FileReader, filedata: &Blob) -> Result<(), JsValue>; #[cfg(feature = "Blob")] # [wasm_bindgen (catch , method , structural , js_class = "FileReader" , js_name = readAsDataURL)] #[doc = "The `readAsDataURL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsDataURL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`, `FileReader`*"] pub fn read_as_data_url(this: &FileReader, blob: &Blob) -> Result<(), JsValue>; #[cfg(feature = "Blob")] # [wasm_bindgen (catch , method , structural , js_class = "FileReader" , js_name = readAsText)] #[doc = "The `readAsText()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`, `FileReader`*"] pub fn read_as_text(this: &FileReader, blob: &Blob) -> Result<(), JsValue>; #[cfg(feature = "Blob")] # [wasm_bindgen (catch , method , structural , js_class = "FileReader" , js_name = readAsText)] #[doc = "The `readAsText()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`, `FileReader`*"] pub fn read_as_text_with_label( this: &FileReader, blob: &Blob, label: &str, ) -> Result<(), JsValue>; } impl FileReader { #[doc = "The `FileReader.EMPTY` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileReader`*"] pub const EMPTY: u16 = 0i64 as u16; #[doc = "The `FileReader.LOADING` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileReader`*"] pub const LOADING: u16 = 1u64 as u16; #[doc = "The `FileReader.DONE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileReader`*"] pub const DONE: u16 = 2u64 as u16; } web-sys-0.3.55/src/features/gen_FileReaderSync.rs000064400000000000000000000072660072674642500200150ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FileReaderSync , typescript_type = "FileReaderSync")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FileReaderSync` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReaderSync)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileReaderSync`*"] pub type FileReaderSync; #[wasm_bindgen(catch, constructor, js_class = "FileReaderSync")] #[doc = "The `new FileReaderSync(..)` constructor, creating a new instance of `FileReaderSync`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReaderSync/FileReaderSync)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileReaderSync`*"] pub fn new() -> Result; #[cfg(feature = "Blob")] # [wasm_bindgen (catch , method , structural , js_class = "FileReaderSync" , js_name = readAsArrayBuffer)] #[doc = "The `readAsArrayBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReaderSync/readAsArrayBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`, `FileReaderSync`*"] pub fn read_as_array_buffer( this: &FileReaderSync, blob: &Blob, ) -> Result<::js_sys::ArrayBuffer, JsValue>; #[cfg(feature = "Blob")] # [wasm_bindgen (catch , method , structural , js_class = "FileReaderSync" , js_name = readAsBinaryString)] #[doc = "The `readAsBinaryString()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReaderSync/readAsBinaryString)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`, `FileReaderSync`*"] pub fn read_as_binary_string(this: &FileReaderSync, blob: &Blob) -> Result; #[cfg(feature = "Blob")] # [wasm_bindgen (catch , method , structural , js_class = "FileReaderSync" , js_name = readAsDataURL)] #[doc = "The `readAsDataURL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReaderSync/readAsDataURL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`, `FileReaderSync`*"] pub fn read_as_data_url(this: &FileReaderSync, blob: &Blob) -> Result; #[cfg(feature = "Blob")] # [wasm_bindgen (catch , method , structural , js_class = "FileReaderSync" , js_name = readAsText)] #[doc = "The `readAsText()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReaderSync/readAsText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`, `FileReaderSync`*"] pub fn read_as_text(this: &FileReaderSync, blob: &Blob) -> Result; #[cfg(feature = "Blob")] # [wasm_bindgen (catch , method , structural , js_class = "FileReaderSync" , js_name = readAsText)] #[doc = "The `readAsText()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReaderSync/readAsText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`, `FileReaderSync`*"] pub fn read_as_text_with_encoding( this: &FileReaderSync, blob: &Blob, encoding: &str, ) -> Result; } web-sys-0.3.55/src/features/gen_FileSystem.rs000064400000000000000000000027200072674642500172300ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FileSystem , typescript_type = "FileSystem")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FileSystem` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystem`*"] pub type FileSystem; # [wasm_bindgen (structural , method , getter , js_class = "FileSystem" , js_name = name)] #[doc = "Getter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystem/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystem`*"] pub fn name(this: &FileSystem) -> String; #[cfg(feature = "FileSystemDirectoryEntry")] # [wasm_bindgen (structural , method , getter , js_class = "FileSystem" , js_name = root)] #[doc = "Getter for the `root` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystem/root)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystem`, `FileSystemDirectoryEntry`*"] pub fn root(this: &FileSystem) -> FileSystemDirectoryEntry; } web-sys-0.3.55/src/features/gen_FileSystemDirectoryEntry.rs000064400000000000000000000330510072674642500221400ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = FileSystemEntry , extends = :: js_sys :: Object , js_name = FileSystemDirectoryEntry , typescript_type = "FileSystemDirectoryEntry")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FileSystemDirectoryEntry` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryEntry`*"] pub type FileSystemDirectoryEntry; #[cfg(feature = "FileSystemDirectoryReader")] # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = createReader)] #[doc = "The `createReader()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/createReader)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryEntry`, `FileSystemDirectoryReader`*"] pub fn create_reader(this: &FileSystemDirectoryEntry) -> FileSystemDirectoryReader; # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getDirectory)] #[doc = "The `getDirectory()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getDirectory)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryEntry`*"] pub fn get_directory(this: &FileSystemDirectoryEntry); # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getDirectory)] #[doc = "The `getDirectory()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getDirectory)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryEntry`*"] pub fn get_directory_with_path(this: &FileSystemDirectoryEntry, path: Option<&str>); #[cfg(feature = "FileSystemFlags")] # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getDirectory)] #[doc = "The `getDirectory()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getDirectory)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryEntry`, `FileSystemFlags`*"] pub fn get_directory_with_path_and_options( this: &FileSystemDirectoryEntry, path: Option<&str>, options: &FileSystemFlags, ); #[cfg(feature = "FileSystemFlags")] # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getDirectory)] #[doc = "The `getDirectory()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getDirectory)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryEntry`, `FileSystemFlags`*"] pub fn get_directory_with_path_and_options_and_callback( this: &FileSystemDirectoryEntry, path: Option<&str>, options: &FileSystemFlags, success_callback: &::js_sys::Function, ); #[cfg(all(feature = "FileSystemEntryCallback", feature = "FileSystemFlags",))] # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getDirectory)] #[doc = "The `getDirectory()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getDirectory)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryEntry`, `FileSystemEntryCallback`, `FileSystemFlags`*"] pub fn get_directory_with_path_and_options_and_file_system_entry_callback( this: &FileSystemDirectoryEntry, path: Option<&str>, options: &FileSystemFlags, success_callback: &FileSystemEntryCallback, ); #[cfg(feature = "FileSystemFlags")] # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getDirectory)] #[doc = "The `getDirectory()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getDirectory)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryEntry`, `FileSystemFlags`*"] pub fn get_directory_with_path_and_options_and_callback_and_callback( this: &FileSystemDirectoryEntry, path: Option<&str>, options: &FileSystemFlags, success_callback: &::js_sys::Function, error_callback: &::js_sys::Function, ); #[cfg(all(feature = "FileSystemEntryCallback", feature = "FileSystemFlags",))] # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getDirectory)] #[doc = "The `getDirectory()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getDirectory)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryEntry`, `FileSystemEntryCallback`, `FileSystemFlags`*"] pub fn get_directory_with_path_and_options_and_file_system_entry_callback_and_callback( this: &FileSystemDirectoryEntry, path: Option<&str>, options: &FileSystemFlags, success_callback: &FileSystemEntryCallback, error_callback: &::js_sys::Function, ); #[cfg(all(feature = "ErrorCallback", feature = "FileSystemFlags",))] # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getDirectory)] #[doc = "The `getDirectory()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getDirectory)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorCallback`, `FileSystemDirectoryEntry`, `FileSystemFlags`*"] pub fn get_directory_with_path_and_options_and_callback_and_error_callback( this: &FileSystemDirectoryEntry, path: Option<&str>, options: &FileSystemFlags, success_callback: &::js_sys::Function, error_callback: &ErrorCallback, ); #[cfg(all( feature = "ErrorCallback", feature = "FileSystemEntryCallback", feature = "FileSystemFlags", ))] # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getDirectory)] #[doc = "The `getDirectory()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getDirectory)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorCallback`, `FileSystemDirectoryEntry`, `FileSystemEntryCallback`, `FileSystemFlags`*"] pub fn get_directory_with_path_and_options_and_file_system_entry_callback_and_error_callback( this: &FileSystemDirectoryEntry, path: Option<&str>, options: &FileSystemFlags, success_callback: &FileSystemEntryCallback, error_callback: &ErrorCallback, ); # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getFile)] #[doc = "The `getFile()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getFile)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryEntry`*"] pub fn get_file(this: &FileSystemDirectoryEntry); # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getFile)] #[doc = "The `getFile()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getFile)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryEntry`*"] pub fn get_file_with_path(this: &FileSystemDirectoryEntry, path: Option<&str>); #[cfg(feature = "FileSystemFlags")] # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getFile)] #[doc = "The `getFile()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getFile)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryEntry`, `FileSystemFlags`*"] pub fn get_file_with_path_and_options( this: &FileSystemDirectoryEntry, path: Option<&str>, options: &FileSystemFlags, ); #[cfg(feature = "FileSystemFlags")] # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getFile)] #[doc = "The `getFile()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getFile)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryEntry`, `FileSystemFlags`*"] pub fn get_file_with_path_and_options_and_callback( this: &FileSystemDirectoryEntry, path: Option<&str>, options: &FileSystemFlags, success_callback: &::js_sys::Function, ); #[cfg(all(feature = "FileSystemEntryCallback", feature = "FileSystemFlags",))] # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getFile)] #[doc = "The `getFile()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getFile)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryEntry`, `FileSystemEntryCallback`, `FileSystemFlags`*"] pub fn get_file_with_path_and_options_and_file_system_entry_callback( this: &FileSystemDirectoryEntry, path: Option<&str>, options: &FileSystemFlags, success_callback: &FileSystemEntryCallback, ); #[cfg(feature = "FileSystemFlags")] # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getFile)] #[doc = "The `getFile()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getFile)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryEntry`, `FileSystemFlags`*"] pub fn get_file_with_path_and_options_and_callback_and_callback( this: &FileSystemDirectoryEntry, path: Option<&str>, options: &FileSystemFlags, success_callback: &::js_sys::Function, error_callback: &::js_sys::Function, ); #[cfg(all(feature = "FileSystemEntryCallback", feature = "FileSystemFlags",))] # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getFile)] #[doc = "The `getFile()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getFile)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryEntry`, `FileSystemEntryCallback`, `FileSystemFlags`*"] pub fn get_file_with_path_and_options_and_file_system_entry_callback_and_callback( this: &FileSystemDirectoryEntry, path: Option<&str>, options: &FileSystemFlags, success_callback: &FileSystemEntryCallback, error_callback: &::js_sys::Function, ); #[cfg(all(feature = "ErrorCallback", feature = "FileSystemFlags",))] # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getFile)] #[doc = "The `getFile()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getFile)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorCallback`, `FileSystemDirectoryEntry`, `FileSystemFlags`*"] pub fn get_file_with_path_and_options_and_callback_and_error_callback( this: &FileSystemDirectoryEntry, path: Option<&str>, options: &FileSystemFlags, success_callback: &::js_sys::Function, error_callback: &ErrorCallback, ); #[cfg(all( feature = "ErrorCallback", feature = "FileSystemEntryCallback", feature = "FileSystemFlags", ))] # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getFile)] #[doc = "The `getFile()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getFile)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorCallback`, `FileSystemDirectoryEntry`, `FileSystemEntryCallback`, `FileSystemFlags`*"] pub fn get_file_with_path_and_options_and_file_system_entry_callback_and_error_callback( this: &FileSystemDirectoryEntry, path: Option<&str>, options: &FileSystemFlags, success_callback: &FileSystemEntryCallback, error_callback: &ErrorCallback, ); } web-sys-0.3.55/src/features/gen_FileSystemDirectoryReader.rs000064400000000000000000000112440072674642500222410ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FileSystemDirectoryReader , typescript_type = "FileSystemDirectoryReader")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FileSystemDirectoryReader` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryReader)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryReader`*"] pub type FileSystemDirectoryReader; # [wasm_bindgen (catch , method , structural , js_class = "FileSystemDirectoryReader" , js_name = readEntries)] #[doc = "The `readEntries()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryReader/readEntries)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryReader`*"] pub fn read_entries_with_callback( this: &FileSystemDirectoryReader, success_callback: &::js_sys::Function, ) -> Result<(), JsValue>; #[cfg(feature = "FileSystemEntriesCallback")] # [wasm_bindgen (catch , method , structural , js_class = "FileSystemDirectoryReader" , js_name = readEntries)] #[doc = "The `readEntries()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryReader/readEntries)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryReader`, `FileSystemEntriesCallback`*"] pub fn read_entries_with_file_system_entries_callback( this: &FileSystemDirectoryReader, success_callback: &FileSystemEntriesCallback, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "FileSystemDirectoryReader" , js_name = readEntries)] #[doc = "The `readEntries()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryReader/readEntries)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryReader`*"] pub fn read_entries_with_callback_and_callback( this: &FileSystemDirectoryReader, success_callback: &::js_sys::Function, error_callback: &::js_sys::Function, ) -> Result<(), JsValue>; #[cfg(feature = "FileSystemEntriesCallback")] # [wasm_bindgen (catch , method , structural , js_class = "FileSystemDirectoryReader" , js_name = readEntries)] #[doc = "The `readEntries()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryReader/readEntries)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryReader`, `FileSystemEntriesCallback`*"] pub fn read_entries_with_file_system_entries_callback_and_callback( this: &FileSystemDirectoryReader, success_callback: &FileSystemEntriesCallback, error_callback: &::js_sys::Function, ) -> Result<(), JsValue>; #[cfg(feature = "ErrorCallback")] # [wasm_bindgen (catch , method , structural , js_class = "FileSystemDirectoryReader" , js_name = readEntries)] #[doc = "The `readEntries()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryReader/readEntries)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorCallback`, `FileSystemDirectoryReader`*"] pub fn read_entries_with_callback_and_error_callback( this: &FileSystemDirectoryReader, success_callback: &::js_sys::Function, error_callback: &ErrorCallback, ) -> Result<(), JsValue>; #[cfg(all(feature = "ErrorCallback", feature = "FileSystemEntriesCallback",))] # [wasm_bindgen (catch , method , structural , js_class = "FileSystemDirectoryReader" , js_name = readEntries)] #[doc = "The `readEntries()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryReader/readEntries)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorCallback`, `FileSystemDirectoryReader`, `FileSystemEntriesCallback`*"] pub fn read_entries_with_file_system_entries_callback_and_error_callback( this: &FileSystemDirectoryReader, success_callback: &FileSystemEntriesCallback, error_callback: &ErrorCallback, ) -> Result<(), JsValue>; } web-sys-0.3.55/src/features/gen_FileSystemEntriesCallback.rs000064400000000000000000000030420072674642500221750ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FileSystemEntriesCallback)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FileSystemEntriesCallback` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemEntriesCallback`*"] pub type FileSystemEntriesCallback; } impl FileSystemEntriesCallback { #[doc = "Construct a new `FileSystemEntriesCallback`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemEntriesCallback`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `handleEvent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemEntriesCallback`*"] pub fn handle_event(&mut self, val: &::js_sys::Function) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("handleEvent"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for FileSystemEntriesCallback { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_FileSystemEntry.rs000064400000000000000000000155040072674642500202560ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FileSystemEntry , typescript_type = "FileSystemEntry")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FileSystemEntry` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemEntry`*"] pub type FileSystemEntry; # [wasm_bindgen (structural , method , getter , js_class = "FileSystemEntry" , js_name = isFile)] #[doc = "Getter for the `isFile` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry/isFile)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemEntry`*"] pub fn is_file(this: &FileSystemEntry) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "FileSystemEntry" , js_name = isDirectory)] #[doc = "Getter for the `isDirectory` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry/isDirectory)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemEntry`*"] pub fn is_directory(this: &FileSystemEntry) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "FileSystemEntry" , js_name = name)] #[doc = "Getter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemEntry`*"] pub fn name(this: &FileSystemEntry) -> String; # [wasm_bindgen (structural , method , getter , js_class = "FileSystemEntry" , js_name = fullPath)] #[doc = "Getter for the `fullPath` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry/fullPath)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemEntry`*"] pub fn full_path(this: &FileSystemEntry) -> String; #[cfg(feature = "FileSystem")] # [wasm_bindgen (structural , method , getter , js_class = "FileSystemEntry" , js_name = filesystem)] #[doc = "Getter for the `filesystem` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry/filesystem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystem`, `FileSystemEntry`*"] pub fn filesystem(this: &FileSystemEntry) -> FileSystem; # [wasm_bindgen (method , structural , js_class = "FileSystemEntry" , js_name = getParent)] #[doc = "The `getParent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry/getParent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemEntry`*"] pub fn get_parent(this: &FileSystemEntry); # [wasm_bindgen (method , structural , js_class = "FileSystemEntry" , js_name = getParent)] #[doc = "The `getParent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry/getParent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemEntry`*"] pub fn get_parent_with_callback(this: &FileSystemEntry, success_callback: &::js_sys::Function); #[cfg(feature = "FileSystemEntryCallback")] # [wasm_bindgen (method , structural , js_class = "FileSystemEntry" , js_name = getParent)] #[doc = "The `getParent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry/getParent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemEntry`, `FileSystemEntryCallback`*"] pub fn get_parent_with_file_system_entry_callback( this: &FileSystemEntry, success_callback: &FileSystemEntryCallback, ); # [wasm_bindgen (method , structural , js_class = "FileSystemEntry" , js_name = getParent)] #[doc = "The `getParent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry/getParent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemEntry`*"] pub fn get_parent_with_callback_and_callback( this: &FileSystemEntry, success_callback: &::js_sys::Function, error_callback: &::js_sys::Function, ); #[cfg(feature = "FileSystemEntryCallback")] # [wasm_bindgen (method , structural , js_class = "FileSystemEntry" , js_name = getParent)] #[doc = "The `getParent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry/getParent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemEntry`, `FileSystemEntryCallback`*"] pub fn get_parent_with_file_system_entry_callback_and_callback( this: &FileSystemEntry, success_callback: &FileSystemEntryCallback, error_callback: &::js_sys::Function, ); #[cfg(feature = "ErrorCallback")] # [wasm_bindgen (method , structural , js_class = "FileSystemEntry" , js_name = getParent)] #[doc = "The `getParent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry/getParent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorCallback`, `FileSystemEntry`*"] pub fn get_parent_with_callback_and_error_callback( this: &FileSystemEntry, success_callback: &::js_sys::Function, error_callback: &ErrorCallback, ); #[cfg(all(feature = "ErrorCallback", feature = "FileSystemEntryCallback",))] # [wasm_bindgen (method , structural , js_class = "FileSystemEntry" , js_name = getParent)] #[doc = "The `getParent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry/getParent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorCallback`, `FileSystemEntry`, `FileSystemEntryCallback`*"] pub fn get_parent_with_file_system_entry_callback_and_error_callback( this: &FileSystemEntry, success_callback: &FileSystemEntryCallback, error_callback: &ErrorCallback, ); } web-sys-0.3.55/src/features/gen_FileSystemEntryCallback.rs000064400000000000000000000030200072674642500216610ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FileSystemEntryCallback)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FileSystemEntryCallback` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemEntryCallback`*"] pub type FileSystemEntryCallback; } impl FileSystemEntryCallback { #[doc = "Construct a new `FileSystemEntryCallback`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemEntryCallback`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `handleEvent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemEntryCallback`*"] pub fn handle_event(&mut self, val: &::js_sys::Function) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("handleEvent"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for FileSystemEntryCallback { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_FileSystemFileEntry.rs000064400000000000000000000077240072674642500210630ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = FileSystemEntry , extends = :: js_sys :: Object , js_name = FileSystemFileEntry , typescript_type = "FileSystemFileEntry")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FileSystemFileEntry` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemFileEntry)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemFileEntry`*"] pub type FileSystemFileEntry; # [wasm_bindgen (method , structural , js_class = "FileSystemFileEntry" , js_name = file)] #[doc = "The `file()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemFileEntry/file)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemFileEntry`*"] pub fn file_with_callback(this: &FileSystemFileEntry, success_callback: &::js_sys::Function); #[cfg(feature = "FileCallback")] # [wasm_bindgen (method , structural , js_class = "FileSystemFileEntry" , js_name = file)] #[doc = "The `file()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemFileEntry/file)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileCallback`, `FileSystemFileEntry`*"] pub fn file_with_file_callback(this: &FileSystemFileEntry, success_callback: &FileCallback); # [wasm_bindgen (method , structural , js_class = "FileSystemFileEntry" , js_name = file)] #[doc = "The `file()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemFileEntry/file)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemFileEntry`*"] pub fn file_with_callback_and_callback( this: &FileSystemFileEntry, success_callback: &::js_sys::Function, error_callback: &::js_sys::Function, ); #[cfg(feature = "FileCallback")] # [wasm_bindgen (method , structural , js_class = "FileSystemFileEntry" , js_name = file)] #[doc = "The `file()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemFileEntry/file)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileCallback`, `FileSystemFileEntry`*"] pub fn file_with_file_callback_and_callback( this: &FileSystemFileEntry, success_callback: &FileCallback, error_callback: &::js_sys::Function, ); #[cfg(feature = "ErrorCallback")] # [wasm_bindgen (method , structural , js_class = "FileSystemFileEntry" , js_name = file)] #[doc = "The `file()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemFileEntry/file)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorCallback`, `FileSystemFileEntry`*"] pub fn file_with_callback_and_error_callback( this: &FileSystemFileEntry, success_callback: &::js_sys::Function, error_callback: &ErrorCallback, ); #[cfg(all(feature = "ErrorCallback", feature = "FileCallback",))] # [wasm_bindgen (method , structural , js_class = "FileSystemFileEntry" , js_name = file)] #[doc = "The `file()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemFileEntry/file)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorCallback`, `FileCallback`, `FileSystemFileEntry`*"] pub fn file_with_file_callback_and_error_callback( this: &FileSystemFileEntry, success_callback: &FileCallback, error_callback: &ErrorCallback, ); } web-sys-0.3.55/src/features/gen_FileSystemFlags.rs000064400000000000000000000037260072674642500202140ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FileSystemFlags)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FileSystemFlags` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemFlags`*"] pub type FileSystemFlags; } impl FileSystemFlags { #[doc = "Construct a new `FileSystemFlags`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemFlags`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `create` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemFlags`*"] pub fn create(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("create"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `exclusive` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemFlags`*"] pub fn exclusive(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("exclusive"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for FileSystemFlags { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_FillMode.rs000064400000000000000000000006000072674642500166320ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `FillMode` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FillMode`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum FillMode { None = "none", Forwards = "forwards", Backwards = "backwards", Both = "both", Auto = "auto", } web-sys-0.3.55/src/features/gen_FlashClassification.rs000064400000000000000000000006340072674642500210570ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `FlashClassification` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FlashClassification`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum FlashClassification { Unclassified = "unclassified", Unknown = "unknown", Allowed = "allowed", Denied = "denied", } web-sys-0.3.55/src/features/gen_FlexLineGrowthState.rs000064400000000000000000000006030072674642500210440ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `FlexLineGrowthState` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FlexLineGrowthState`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum FlexLineGrowthState { Unchanged = "unchanged", Shrinking = "shrinking", Growing = "growing", } web-sys-0.3.55/src/features/gen_FocusEvent.rs000064400000000000000000000041620072674642500172270ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = UiEvent , extends = Event , extends = :: js_sys :: Object , js_name = FocusEvent , typescript_type = "FocusEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FocusEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FocusEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FocusEvent`*"] pub type FocusEvent; #[cfg(feature = "EventTarget")] # [wasm_bindgen (structural , method , getter , js_class = "FocusEvent" , js_name = relatedTarget)] #[doc = "Getter for the `relatedTarget` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FocusEvent/relatedTarget)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventTarget`, `FocusEvent`*"] pub fn related_target(this: &FocusEvent) -> Option; #[wasm_bindgen(catch, constructor, js_class = "FocusEvent")] #[doc = "The `new FocusEvent(..)` constructor, creating a new instance of `FocusEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FocusEvent/FocusEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FocusEvent`*"] pub fn new(type_arg: &str) -> Result; #[cfg(feature = "FocusEventInit")] #[wasm_bindgen(catch, constructor, js_class = "FocusEvent")] #[doc = "The `new FocusEvent(..)` constructor, creating a new instance of `FocusEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FocusEvent/FocusEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FocusEvent`, `FocusEventInit`*"] pub fn new_with_focus_event_init_dict( type_arg: &str, focus_event_init_dict: &FocusEventInit, ) -> Result; } web-sys-0.3.55/src/features/gen_FocusEventInit.rs000064400000000000000000000105070072674642500200530ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FocusEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FocusEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FocusEventInit`*"] pub type FocusEventInit; } impl FocusEventInit { #[doc = "Construct a new `FocusEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FocusEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FocusEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FocusEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FocusEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `detail` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FocusEventInit`*"] pub fn detail(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("detail"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "Window")] #[doc = "Change the `view` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FocusEventInit`, `Window`*"] pub fn view(&mut self, val: Option<&Window>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("view"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "EventTarget")] #[doc = "Change the `relatedTarget` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventTarget`, `FocusEventInit`*"] pub fn related_target(&mut self, val: Option<&EventTarget>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("relatedTarget"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for FocusEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_FontFace.rs000064400000000000000000000340320072674642500166320ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FontFace , typescript_type = "FontFace")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FontFace` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] pub type FontFace; # [wasm_bindgen (structural , method , getter , js_class = "FontFace" , js_name = family)] #[doc = "Getter for the `family` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/family)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] pub fn family(this: &FontFace) -> String; # [wasm_bindgen (structural , method , setter , js_class = "FontFace" , js_name = family)] #[doc = "Setter for the `family` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/family)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] pub fn set_family(this: &FontFace, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "FontFace" , js_name = style)] #[doc = "Getter for the `style` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/style)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] pub fn style(this: &FontFace) -> String; # [wasm_bindgen (structural , method , setter , js_class = "FontFace" , js_name = style)] #[doc = "Setter for the `style` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/style)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] pub fn set_style(this: &FontFace, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "FontFace" , js_name = weight)] #[doc = "Getter for the `weight` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/weight)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] pub fn weight(this: &FontFace) -> String; # [wasm_bindgen (structural , method , setter , js_class = "FontFace" , js_name = weight)] #[doc = "Setter for the `weight` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/weight)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] pub fn set_weight(this: &FontFace, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "FontFace" , js_name = stretch)] #[doc = "Getter for the `stretch` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/stretch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] pub fn stretch(this: &FontFace) -> String; # [wasm_bindgen (structural , method , setter , js_class = "FontFace" , js_name = stretch)] #[doc = "Setter for the `stretch` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/stretch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] pub fn set_stretch(this: &FontFace, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "FontFace" , js_name = unicodeRange)] #[doc = "Getter for the `unicodeRange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/unicodeRange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] pub fn unicode_range(this: &FontFace) -> String; # [wasm_bindgen (structural , method , setter , js_class = "FontFace" , js_name = unicodeRange)] #[doc = "Setter for the `unicodeRange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/unicodeRange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] pub fn set_unicode_range(this: &FontFace, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "FontFace" , js_name = variant)] #[doc = "Getter for the `variant` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/variant)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] pub fn variant(this: &FontFace) -> String; # [wasm_bindgen (structural , method , setter , js_class = "FontFace" , js_name = variant)] #[doc = "Setter for the `variant` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/variant)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] pub fn set_variant(this: &FontFace, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "FontFace" , js_name = featureSettings)] #[doc = "Getter for the `featureSettings` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/featureSettings)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] pub fn feature_settings(this: &FontFace) -> String; # [wasm_bindgen (structural , method , setter , js_class = "FontFace" , js_name = featureSettings)] #[doc = "Setter for the `featureSettings` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/featureSettings)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] pub fn set_feature_settings(this: &FontFace, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "FontFace" , js_name = variationSettings)] #[doc = "Getter for the `variationSettings` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/variationSettings)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] pub fn variation_settings(this: &FontFace) -> String; # [wasm_bindgen (structural , method , setter , js_class = "FontFace" , js_name = variationSettings)] #[doc = "Setter for the `variationSettings` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/variationSettings)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] pub fn set_variation_settings(this: &FontFace, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "FontFace" , js_name = display)] #[doc = "Getter for the `display` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/display)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] pub fn display(this: &FontFace) -> String; # [wasm_bindgen (structural , method , setter , js_class = "FontFace" , js_name = display)] #[doc = "Setter for the `display` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/display)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] pub fn set_display(this: &FontFace, value: &str); #[cfg(feature = "FontFaceLoadStatus")] # [wasm_bindgen (structural , method , getter , js_class = "FontFace" , js_name = status)] #[doc = "Getter for the `status` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/status)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFace`, `FontFaceLoadStatus`*"] pub fn status(this: &FontFace) -> FontFaceLoadStatus; # [wasm_bindgen (structural , catch , method , getter , js_class = "FontFace" , js_name = loaded)] #[doc = "Getter for the `loaded` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/loaded)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] pub fn loaded(this: &FontFace) -> Result<::js_sys::Promise, JsValue>; #[wasm_bindgen(catch, constructor, js_class = "FontFace")] #[doc = "The `new FontFace(..)` constructor, creating a new instance of `FontFace`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/FontFace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] pub fn new_with_str(family: &str, source: &str) -> Result; #[wasm_bindgen(catch, constructor, js_class = "FontFace")] #[doc = "The `new FontFace(..)` constructor, creating a new instance of `FontFace`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/FontFace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] pub fn new_with_array_buffer( family: &str, source: &::js_sys::ArrayBuffer, ) -> Result; #[wasm_bindgen(catch, constructor, js_class = "FontFace")] #[doc = "The `new FontFace(..)` constructor, creating a new instance of `FontFace`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/FontFace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] pub fn new_with_array_buffer_view( family: &str, source: &::js_sys::Object, ) -> Result; #[wasm_bindgen(catch, constructor, js_class = "FontFace")] #[doc = "The `new FontFace(..)` constructor, creating a new instance of `FontFace`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/FontFace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] pub fn new_with_u8_array(family: &str, source: &mut [u8]) -> Result; #[cfg(feature = "FontFaceDescriptors")] #[wasm_bindgen(catch, constructor, js_class = "FontFace")] #[doc = "The `new FontFace(..)` constructor, creating a new instance of `FontFace`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/FontFace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFace`, `FontFaceDescriptors`*"] pub fn new_with_str_and_descriptors( family: &str, source: &str, descriptors: &FontFaceDescriptors, ) -> Result; #[cfg(feature = "FontFaceDescriptors")] #[wasm_bindgen(catch, constructor, js_class = "FontFace")] #[doc = "The `new FontFace(..)` constructor, creating a new instance of `FontFace`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/FontFace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFace`, `FontFaceDescriptors`*"] pub fn new_with_array_buffer_and_descriptors( family: &str, source: &::js_sys::ArrayBuffer, descriptors: &FontFaceDescriptors, ) -> Result; #[cfg(feature = "FontFaceDescriptors")] #[wasm_bindgen(catch, constructor, js_class = "FontFace")] #[doc = "The `new FontFace(..)` constructor, creating a new instance of `FontFace`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/FontFace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFace`, `FontFaceDescriptors`*"] pub fn new_with_array_buffer_view_and_descriptors( family: &str, source: &::js_sys::Object, descriptors: &FontFaceDescriptors, ) -> Result; #[cfg(feature = "FontFaceDescriptors")] #[wasm_bindgen(catch, constructor, js_class = "FontFace")] #[doc = "The `new FontFace(..)` constructor, creating a new instance of `FontFace`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/FontFace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFace`, `FontFaceDescriptors`*"] pub fn new_with_u8_array_and_descriptors( family: &str, source: &mut [u8], descriptors: &FontFaceDescriptors, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "FontFace" , js_name = load)] #[doc = "The `load()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/load)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] pub fn load(this: &FontFace) -> Result<::js_sys::Promise, JsValue>; } web-sys-0.3.55/src/features/gen_FontFaceDescriptors.rs000064400000000000000000000127370072674642500210640ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FontFaceDescriptors)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FontFaceDescriptors` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceDescriptors`*"] pub type FontFaceDescriptors; } impl FontFaceDescriptors { #[doc = "Construct a new `FontFaceDescriptors`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceDescriptors`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `display` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceDescriptors`*"] pub fn display(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("display"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `featureSettings` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceDescriptors`*"] pub fn feature_settings(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("featureSettings"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `stretch` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceDescriptors`*"] pub fn stretch(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("stretch"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `style` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceDescriptors`*"] pub fn style(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("style"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `unicodeRange` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceDescriptors`*"] pub fn unicode_range(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("unicodeRange"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `variant` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceDescriptors`*"] pub fn variant(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("variant"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `variationSettings` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceDescriptors`*"] pub fn variation_settings(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("variationSettings"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `weight` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceDescriptors`*"] pub fn weight(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("weight"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for FontFaceDescriptors { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_FontFaceLoadStatus.rs000064400000000000000000000006150072674642500206360ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `FontFaceLoadStatus` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceLoadStatus`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum FontFaceLoadStatus { Unloaded = "unloaded", Loading = "loading", Loaded = "loaded", Error = "error", } web-sys-0.3.55/src/features/gen_FontFaceSet.rs000064400000000000000000000243250072674642500173120ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = FontFaceSet , typescript_type = "FontFaceSet")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FontFaceSet` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"] pub type FontFaceSet; # [wasm_bindgen (structural , method , getter , js_class = "FontFaceSet" , js_name = size)] #[doc = "Getter for the `size` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/size)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"] pub fn size(this: &FontFaceSet) -> u32; # [wasm_bindgen (structural , method , getter , js_class = "FontFaceSet" , js_name = onloading)] #[doc = "Getter for the `onloading` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/onloading)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"] pub fn onloading(this: &FontFaceSet) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "FontFaceSet" , js_name = onloading)] #[doc = "Setter for the `onloading` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/onloading)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"] pub fn set_onloading(this: &FontFaceSet, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "FontFaceSet" , js_name = onloadingdone)] #[doc = "Getter for the `onloadingdone` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/onloadingdone)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"] pub fn onloadingdone(this: &FontFaceSet) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "FontFaceSet" , js_name = onloadingdone)] #[doc = "Setter for the `onloadingdone` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/onloadingdone)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"] pub fn set_onloadingdone(this: &FontFaceSet, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "FontFaceSet" , js_name = onloadingerror)] #[doc = "Getter for the `onloadingerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/onloadingerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"] pub fn onloadingerror(this: &FontFaceSet) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "FontFaceSet" , js_name = onloadingerror)] #[doc = "Setter for the `onloadingerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/onloadingerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"] pub fn set_onloadingerror(this: &FontFaceSet, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , catch , method , getter , js_class = "FontFaceSet" , js_name = ready)] #[doc = "Getter for the `ready` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/ready)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"] pub fn ready(this: &FontFaceSet) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "FontFaceSetLoadStatus")] # [wasm_bindgen (structural , method , getter , js_class = "FontFaceSet" , js_name = status)] #[doc = "Getter for the `status` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/status)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`, `FontFaceSetLoadStatus`*"] pub fn status(this: &FontFaceSet) -> FontFaceSetLoadStatus; #[cfg(feature = "FontFace")] # [wasm_bindgen (catch , method , structural , js_class = "FontFaceSet" , js_name = add)] #[doc = "The `add()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/add)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFace`, `FontFaceSet`*"] pub fn add(this: &FontFaceSet, font: &FontFace) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "FontFaceSet" , js_name = check)] #[doc = "The `check()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/check)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"] pub fn check(this: &FontFaceSet, font: &str) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "FontFaceSet" , js_name = check)] #[doc = "The `check()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/check)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"] pub fn check_with_text(this: &FontFaceSet, font: &str, text: &str) -> Result; # [wasm_bindgen (method , structural , js_class = "FontFaceSet" , js_name = clear)] #[doc = "The `clear()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/clear)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"] pub fn clear(this: &FontFaceSet); #[cfg(feature = "FontFace")] # [wasm_bindgen (method , structural , js_class = "FontFaceSet" , js_name = delete)] #[doc = "The `delete()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/delete)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFace`, `FontFaceSet`*"] pub fn delete(this: &FontFaceSet, font: &FontFace) -> bool; #[cfg(feature = "FontFaceSetIterator")] # [wasm_bindgen (method , structural , js_class = "FontFaceSet" , js_name = entries)] #[doc = "The `entries()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/entries)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`, `FontFaceSetIterator`*"] pub fn entries(this: &FontFaceSet) -> FontFaceSetIterator; # [wasm_bindgen (catch , method , structural , js_class = "FontFaceSet" , js_name = forEach)] #[doc = "The `forEach()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/forEach)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"] pub fn for_each(this: &FontFaceSet, cb: &::js_sys::Function) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "FontFaceSet" , js_name = forEach)] #[doc = "The `forEach()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/forEach)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"] pub fn for_each_with_this_arg( this: &FontFaceSet, cb: &::js_sys::Function, this_arg: &::wasm_bindgen::JsValue, ) -> Result<(), JsValue>; #[cfg(feature = "FontFace")] # [wasm_bindgen (method , structural , js_class = "FontFaceSet" , js_name = has)] #[doc = "The `has()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/has)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFace`, `FontFaceSet`*"] pub fn has(this: &FontFaceSet, font: &FontFace) -> bool; # [wasm_bindgen (method , structural , js_class = "FontFaceSet" , js_name = load)] #[doc = "The `load()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/load)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"] pub fn load(this: &FontFaceSet, font: &str) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "FontFaceSet" , js_name = load)] #[doc = "The `load()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/load)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"] pub fn load_with_text(this: &FontFaceSet, font: &str, text: &str) -> ::js_sys::Promise; #[cfg(feature = "FontFaceSetIterator")] # [wasm_bindgen (method , structural , js_class = "FontFaceSet" , js_name = values)] #[doc = "The `values()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/values)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`, `FontFaceSetIterator`*"] pub fn values(this: &FontFaceSet) -> FontFaceSetIterator; } web-sys-0.3.55/src/features/gen_FontFaceSetIterator.rs000064400000000000000000000022260072674642500210200ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = FontFaceSetIterator , typescript_type = "FontFaceSetIterator")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FontFaceSetIterator` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSetIterator)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSetIterator`*"] pub type FontFaceSetIterator; #[cfg(feature = "FontFaceSetIteratorResult")] # [wasm_bindgen (catch , method , structural , js_class = "FontFaceSetIterator" , js_name = next)] #[doc = "The `next()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSetIterator/next)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSetIterator`, `FontFaceSetIteratorResult`*"] pub fn next(this: &FontFaceSetIterator) -> Result; } web-sys-0.3.55/src/features/gen_FontFaceSetIteratorResult.rs000064400000000000000000000037720072674642500222260ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FontFaceSetIteratorResult)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FontFaceSetIteratorResult` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSetIteratorResult`*"] pub type FontFaceSetIteratorResult; } impl FontFaceSetIteratorResult { #[doc = "Construct a new `FontFaceSetIteratorResult`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSetIteratorResult`*"] pub fn new(done: bool, value: &::wasm_bindgen::JsValue) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.done(done); ret.value(value); ret } #[doc = "Change the `done` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSetIteratorResult`*"] pub fn done(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("done"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `value` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSetIteratorResult`*"] pub fn value(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("value"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_FontFaceSetLoadEvent.rs000064400000000000000000000044220072674642500211100ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = FontFaceSetLoadEvent , typescript_type = "FontFaceSetLoadEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FontFaceSetLoadEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSetLoadEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSetLoadEvent`*"] pub type FontFaceSetLoadEvent; # [wasm_bindgen (structural , method , getter , js_class = "FontFaceSetLoadEvent" , js_name = fontfaces)] #[doc = "Getter for the `fontfaces` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSetLoadEvent/fontfaces)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSetLoadEvent`*"] pub fn fontfaces(this: &FontFaceSetLoadEvent) -> ::js_sys::Array; #[wasm_bindgen(catch, constructor, js_class = "FontFaceSetLoadEvent")] #[doc = "The `new FontFaceSetLoadEvent(..)` constructor, creating a new instance of `FontFaceSetLoadEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSetLoadEvent/FontFaceSetLoadEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSetLoadEvent`*"] pub fn new(type_: &str) -> Result; #[cfg(feature = "FontFaceSetLoadEventInit")] #[wasm_bindgen(catch, constructor, js_class = "FontFaceSetLoadEvent")] #[doc = "The `new FontFaceSetLoadEvent(..)` constructor, creating a new instance of `FontFaceSetLoadEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSetLoadEvent/FontFaceSetLoadEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSetLoadEvent`, `FontFaceSetLoadEventInit`*"] pub fn new_with_event_init_dict( type_: &str, event_init_dict: &FontFaceSetLoadEventInit, ) -> Result; } web-sys-0.3.55/src/features/gen_FontFaceSetLoadEventInit.rs000064400000000000000000000064340072674642500217410ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FontFaceSetLoadEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FontFaceSetLoadEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSetLoadEventInit`*"] pub type FontFaceSetLoadEventInit; } impl FontFaceSetLoadEventInit { #[doc = "Construct a new `FontFaceSetLoadEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSetLoadEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSetLoadEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSetLoadEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSetLoadEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `fontfaces` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSetLoadEventInit`*"] pub fn fontfaces(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("fontfaces"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for FontFaceSetLoadEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_FontFaceSetLoadStatus.rs000064400000000000000000000005460072674642500213150ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `FontFaceSetLoadStatus` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSetLoadStatus`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum FontFaceSetLoadStatus { Loading = "loading", Loaded = "loaded", } web-sys-0.3.55/src/features/gen_FormData.rs000064400000000000000000000136370072674642500166520ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FormData , typescript_type = "FormData")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FormData` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FormData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FormData`*"] pub type FormData; #[wasm_bindgen(catch, constructor, js_class = "FormData")] #[doc = "The `new FormData(..)` constructor, creating a new instance of `FormData`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FormData/FormData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FormData`*"] pub fn new() -> Result; #[cfg(feature = "HtmlFormElement")] #[wasm_bindgen(catch, constructor, js_class = "FormData")] #[doc = "The `new FormData(..)` constructor, creating a new instance of `FormData`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FormData/FormData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FormData`, `HtmlFormElement`*"] pub fn new_with_form(form: &HtmlFormElement) -> Result; #[cfg(feature = "Blob")] # [wasm_bindgen (catch , method , structural , js_class = "FormData" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FormData/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`, `FormData`*"] pub fn append_with_blob(this: &FormData, name: &str, value: &Blob) -> Result<(), JsValue>; #[cfg(feature = "Blob")] # [wasm_bindgen (catch , method , structural , js_class = "FormData" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FormData/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`, `FormData`*"] pub fn append_with_blob_and_filename( this: &FormData, name: &str, value: &Blob, filename: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "FormData" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FormData/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FormData`*"] pub fn append_with_str(this: &FormData, name: &str, value: &str) -> Result<(), JsValue>; # [wasm_bindgen (method , structural , js_class = "FormData" , js_name = delete)] #[doc = "The `delete()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FormData/delete)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FormData`*"] pub fn delete(this: &FormData, name: &str); # [wasm_bindgen (method , structural , js_class = "FormData" , js_name = get)] #[doc = "The `get()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FormData/get)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FormData`*"] pub fn get(this: &FormData, name: &str) -> ::wasm_bindgen::JsValue; # [wasm_bindgen (method , structural , js_class = "FormData" , js_name = getAll)] #[doc = "The `getAll()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FormData/getAll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FormData`*"] pub fn get_all(this: &FormData, name: &str) -> ::js_sys::Array; # [wasm_bindgen (method , structural , js_class = "FormData" , js_name = has)] #[doc = "The `has()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FormData/has)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FormData`*"] pub fn has(this: &FormData, name: &str) -> bool; #[cfg(feature = "Blob")] # [wasm_bindgen (catch , method , structural , js_class = "FormData" , js_name = set)] #[doc = "The `set()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FormData/set)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`, `FormData`*"] pub fn set_with_blob(this: &FormData, name: &str, value: &Blob) -> Result<(), JsValue>; #[cfg(feature = "Blob")] # [wasm_bindgen (catch , method , structural , js_class = "FormData" , js_name = set)] #[doc = "The `set()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FormData/set)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`, `FormData`*"] pub fn set_with_blob_and_filename( this: &FormData, name: &str, value: &Blob, filename: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "FormData" , js_name = set)] #[doc = "The `set()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FormData/set)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FormData`*"] pub fn set_with_str(this: &FormData, name: &str, value: &str) -> Result<(), JsValue>; } web-sys-0.3.55/src/features/gen_FrameType.rs000064400000000000000000000005650072674642500170450ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `FrameType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FrameType`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum FrameType { Auxiliary = "auxiliary", TopLevel = "top-level", Nested = "nested", None = "none", } web-sys-0.3.55/src/features/gen_FuzzingFunctions.rs000064400000000000000000000036330072674642500204750ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FuzzingFunctions , typescript_type = "FuzzingFunctions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FuzzingFunctions` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FuzzingFunctions)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FuzzingFunctions`*"] pub type FuzzingFunctions; # [wasm_bindgen (static_method_of = FuzzingFunctions , js_class = "FuzzingFunctions" , js_name = cycleCollect)] #[doc = "The `cycleCollect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FuzzingFunctions/cycleCollect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FuzzingFunctions`*"] pub fn cycle_collect(); # [wasm_bindgen (catch , static_method_of = FuzzingFunctions , js_class = "FuzzingFunctions" , js_name = enableAccessibility)] #[doc = "The `enableAccessibility()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FuzzingFunctions/enableAccessibility)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FuzzingFunctions`*"] pub fn enable_accessibility() -> Result<(), JsValue>; # [wasm_bindgen (static_method_of = FuzzingFunctions , js_class = "FuzzingFunctions" , js_name = garbageCollect)] #[doc = "The `garbageCollect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FuzzingFunctions/garbageCollect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FuzzingFunctions`*"] pub fn garbage_collect(); } web-sys-0.3.55/src/features/gen_GainNode.rs000064400000000000000000000042020072674642500166250ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = GainNode , typescript_type = "GainNode")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GainNode` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GainNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GainNode`*"] pub type GainNode; #[cfg(feature = "AudioParam")] # [wasm_bindgen (structural , method , getter , js_class = "GainNode" , js_name = gain)] #[doc = "Getter for the `gain` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GainNode/gain)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `GainNode`*"] pub fn gain(this: &GainNode) -> AudioParam; #[cfg(feature = "BaseAudioContext")] #[wasm_bindgen(catch, constructor, js_class = "GainNode")] #[doc = "The `new GainNode(..)` constructor, creating a new instance of `GainNode`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GainNode/GainNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `GainNode`*"] pub fn new(context: &BaseAudioContext) -> Result; #[cfg(all(feature = "BaseAudioContext", feature = "GainOptions",))] #[wasm_bindgen(catch, constructor, js_class = "GainNode")] #[doc = "The `new GainNode(..)` constructor, creating a new instance of `GainNode`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GainNode/GainNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `GainNode`, `GainOptions`*"] pub fn new_with_options( context: &BaseAudioContext, options: &GainOptions, ) -> Result; } web-sys-0.3.55/src/features/gen_GainOptions.rs000064400000000000000000000064310072674642500174010ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GainOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GainOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GainOptions`*"] pub type GainOptions; } impl GainOptions { #[doc = "Construct a new `GainOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GainOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GainOptions`*"] pub fn channel_count(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("channelCount"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "ChannelCountMode")] #[doc = "Change the `channelCountMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelCountMode`, `GainOptions`*"] pub fn channel_count_mode(&mut self, val: ChannelCountMode) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("channelCountMode"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "ChannelInterpretation")] #[doc = "Change the `channelInterpretation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelInterpretation`, `GainOptions`*"] pub fn channel_interpretation(&mut self, val: ChannelInterpretation) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("channelInterpretation"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `gain` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GainOptions`*"] pub fn gain(&mut self, val: f32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("gain"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for GainOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_Gamepad.rs000064400000000000000000000124610072674642500165050ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Gamepad , typescript_type = "Gamepad")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Gamepad` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Gamepad)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Gamepad`*"] pub type Gamepad; # [wasm_bindgen (structural , method , getter , js_class = "Gamepad" , js_name = id)] #[doc = "Getter for the `id` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/id)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Gamepad`*"] pub fn id(this: &Gamepad) -> String; # [wasm_bindgen (structural , method , getter , js_class = "Gamepad" , js_name = index)] #[doc = "Getter for the `index` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/index)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Gamepad`*"] pub fn index(this: &Gamepad) -> u32; #[cfg(feature = "GamepadMappingType")] # [wasm_bindgen (structural , method , getter , js_class = "Gamepad" , js_name = mapping)] #[doc = "Getter for the `mapping` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/mapping)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Gamepad`, `GamepadMappingType`*"] pub fn mapping(this: &Gamepad) -> GamepadMappingType; #[cfg(feature = "GamepadHand")] # [wasm_bindgen (structural , method , getter , js_class = "Gamepad" , js_name = hand)] #[doc = "Getter for the `hand` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/hand)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Gamepad`, `GamepadHand`*"] pub fn hand(this: &Gamepad) -> GamepadHand; # [wasm_bindgen (structural , method , getter , js_class = "Gamepad" , js_name = displayId)] #[doc = "Getter for the `displayId` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/displayId)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Gamepad`*"] pub fn display_id(this: &Gamepad) -> u32; # [wasm_bindgen (structural , method , getter , js_class = "Gamepad" , js_name = connected)] #[doc = "Getter for the `connected` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/connected)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Gamepad`*"] pub fn connected(this: &Gamepad) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "Gamepad" , js_name = buttons)] #[doc = "Getter for the `buttons` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/buttons)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Gamepad`*"] pub fn buttons(this: &Gamepad) -> ::js_sys::Array; # [wasm_bindgen (structural , method , getter , js_class = "Gamepad" , js_name = axes)] #[doc = "Getter for the `axes` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/axes)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Gamepad`*"] pub fn axes(this: &Gamepad) -> ::js_sys::Array; # [wasm_bindgen (structural , method , getter , js_class = "Gamepad" , js_name = timestamp)] #[doc = "Getter for the `timestamp` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/timestamp)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Gamepad`*"] pub fn timestamp(this: &Gamepad) -> f64; #[cfg(feature = "GamepadPose")] # [wasm_bindgen (structural , method , getter , js_class = "Gamepad" , js_name = pose)] #[doc = "Getter for the `pose` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/pose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Gamepad`, `GamepadPose`*"] pub fn pose(this: &Gamepad) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "Gamepad" , js_name = hapticActuators)] #[doc = "Getter for the `hapticActuators` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/hapticActuators)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Gamepad`*"] pub fn haptic_actuators(this: &Gamepad) -> ::js_sys::Array; } web-sys-0.3.55/src/features/gen_GamepadAxisMoveEvent.rs000064400000000000000000000053370072674642500211670ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = GamepadEvent , extends = Event , extends = :: js_sys :: Object , js_name = GamepadAxisMoveEvent , typescript_type = "GamepadAxisMoveEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GamepadAxisMoveEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadAxisMoveEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadAxisMoveEvent`*"] pub type GamepadAxisMoveEvent; # [wasm_bindgen (structural , method , getter , js_class = "GamepadAxisMoveEvent" , js_name = axis)] #[doc = "Getter for the `axis` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadAxisMoveEvent/axis)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadAxisMoveEvent`*"] pub fn axis(this: &GamepadAxisMoveEvent) -> u32; # [wasm_bindgen (structural , method , getter , js_class = "GamepadAxisMoveEvent" , js_name = value)] #[doc = "Getter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadAxisMoveEvent/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadAxisMoveEvent`*"] pub fn value(this: &GamepadAxisMoveEvent) -> f64; #[wasm_bindgen(catch, constructor, js_class = "GamepadAxisMoveEvent")] #[doc = "The `new GamepadAxisMoveEvent(..)` constructor, creating a new instance of `GamepadAxisMoveEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadAxisMoveEvent/GamepadAxisMoveEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadAxisMoveEvent`*"] pub fn new(type_: &str) -> Result; #[cfg(feature = "GamepadAxisMoveEventInit")] #[wasm_bindgen(catch, constructor, js_class = "GamepadAxisMoveEvent")] #[doc = "The `new GamepadAxisMoveEvent(..)` constructor, creating a new instance of `GamepadAxisMoveEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadAxisMoveEvent/GamepadAxisMoveEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadAxisMoveEvent`, `GamepadAxisMoveEventInit`*"] pub fn new_with_event_init_dict( type_: &str, event_init_dict: &GamepadAxisMoveEventInit, ) -> Result; } web-sys-0.3.55/src/features/gen_GamepadAxisMoveEventInit.rs000064400000000000000000000105600072674642500220050ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GamepadAxisMoveEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GamepadAxisMoveEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadAxisMoveEventInit`*"] pub type GamepadAxisMoveEventInit; } impl GamepadAxisMoveEventInit { #[doc = "Construct a new `GamepadAxisMoveEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadAxisMoveEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadAxisMoveEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadAxisMoveEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadAxisMoveEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "Gamepad")] #[doc = "Change the `gamepad` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Gamepad`, `GamepadAxisMoveEventInit`*"] pub fn gamepad(&mut self, val: Option<&Gamepad>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("gamepad"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `axis` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadAxisMoveEventInit`*"] pub fn axis(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("axis"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `value` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadAxisMoveEventInit`*"] pub fn value(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("value"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for GamepadAxisMoveEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_GamepadButton.rs000064400000000000000000000035470072674642500177060ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GamepadButton , typescript_type = "GamepadButton")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GamepadButton` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadButton)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadButton`*"] pub type GamepadButton; # [wasm_bindgen (structural , method , getter , js_class = "GamepadButton" , js_name = pressed)] #[doc = "Getter for the `pressed` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadButton/pressed)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadButton`*"] pub fn pressed(this: &GamepadButton) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "GamepadButton" , js_name = touched)] #[doc = "Getter for the `touched` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadButton/touched)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadButton`*"] pub fn touched(this: &GamepadButton) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "GamepadButton" , js_name = value)] #[doc = "Getter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadButton/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadButton`*"] pub fn value(this: &GamepadButton) -> f64; } web-sys-0.3.55/src/features/gen_GamepadButtonEvent.rs000064400000000000000000000043350072674642500207040ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = GamepadEvent , extends = Event , extends = :: js_sys :: Object , js_name = GamepadButtonEvent , typescript_type = "GamepadButtonEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GamepadButtonEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadButtonEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadButtonEvent`*"] pub type GamepadButtonEvent; # [wasm_bindgen (structural , method , getter , js_class = "GamepadButtonEvent" , js_name = button)] #[doc = "Getter for the `button` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadButtonEvent/button)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadButtonEvent`*"] pub fn button(this: &GamepadButtonEvent) -> u32; #[wasm_bindgen(catch, constructor, js_class = "GamepadButtonEvent")] #[doc = "The `new GamepadButtonEvent(..)` constructor, creating a new instance of `GamepadButtonEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadButtonEvent/GamepadButtonEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadButtonEvent`*"] pub fn new(type_: &str) -> Result; #[cfg(feature = "GamepadButtonEventInit")] #[wasm_bindgen(catch, constructor, js_class = "GamepadButtonEvent")] #[doc = "The `new GamepadButtonEvent(..)` constructor, creating a new instance of `GamepadButtonEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadButtonEvent/GamepadButtonEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadButtonEvent`, `GamepadButtonEventInit`*"] pub fn new_with_event_init_dict( type_: &str, event_init_dict: &GamepadButtonEventInit, ) -> Result; } web-sys-0.3.55/src/features/gen_GamepadButtonEventInit.rs000064400000000000000000000075130072674642500215310ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GamepadButtonEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GamepadButtonEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadButtonEventInit`*"] pub type GamepadButtonEventInit; } impl GamepadButtonEventInit { #[doc = "Construct a new `GamepadButtonEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadButtonEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadButtonEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadButtonEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadButtonEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "Gamepad")] #[doc = "Change the `gamepad` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Gamepad`, `GamepadButtonEventInit`*"] pub fn gamepad(&mut self, val: Option<&Gamepad>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("gamepad"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `button` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadButtonEventInit`*"] pub fn button(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("button"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for GamepadButtonEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_GamepadEvent.rs000064400000000000000000000041350072674642500175060ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = GamepadEvent , typescript_type = "GamepadEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GamepadEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadEvent`*"] pub type GamepadEvent; #[cfg(feature = "Gamepad")] # [wasm_bindgen (structural , method , getter , js_class = "GamepadEvent" , js_name = gamepad)] #[doc = "Getter for the `gamepad` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadEvent/gamepad)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Gamepad`, `GamepadEvent`*"] pub fn gamepad(this: &GamepadEvent) -> Option; #[wasm_bindgen(catch, constructor, js_class = "GamepadEvent")] #[doc = "The `new GamepadEvent(..)` constructor, creating a new instance of `GamepadEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadEvent/GamepadEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadEvent`*"] pub fn new(type_: &str) -> Result; #[cfg(feature = "GamepadEventInit")] #[wasm_bindgen(catch, constructor, js_class = "GamepadEvent")] #[doc = "The `new GamepadEvent(..)` constructor, creating a new instance of `GamepadEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadEvent/GamepadEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadEvent`, `GamepadEventInit`*"] pub fn new_with_event_init_dict( type_: &str, event_init_dict: &GamepadEventInit, ) -> Result; } web-sys-0.3.55/src/features/gen_GamepadEventInit.rs000064400000000000000000000063310072674642500203320ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GamepadEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GamepadEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadEventInit`*"] pub type GamepadEventInit; } impl GamepadEventInit { #[doc = "Construct a new `GamepadEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "Gamepad")] #[doc = "Change the `gamepad` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Gamepad`, `GamepadEventInit`*"] pub fn gamepad(&mut self, val: Option<&Gamepad>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("gamepad"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for GamepadEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_GamepadHand.rs000064400000000000000000000005170072674642500172770ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `GamepadHand` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadHand`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GamepadHand { None = "", Left = "left", Right = "right", } web-sys-0.3.55/src/features/gen_GamepadHapticActuator.rs000064400000000000000000000032600072674642500213360ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GamepadHapticActuator , typescript_type = "GamepadHapticActuator")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GamepadHapticActuator` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadHapticActuator)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadHapticActuator`*"] pub type GamepadHapticActuator; #[cfg(feature = "GamepadHapticActuatorType")] # [wasm_bindgen (structural , method , getter , js_class = "GamepadHapticActuator" , js_name = type)] #[doc = "Getter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadHapticActuator/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadHapticActuator`, `GamepadHapticActuatorType`*"] pub fn type_(this: &GamepadHapticActuator) -> GamepadHapticActuatorType; # [wasm_bindgen (catch , method , structural , js_class = "GamepadHapticActuator" , js_name = pulse)] #[doc = "The `pulse()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadHapticActuator/pulse)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadHapticActuator`*"] pub fn pulse( this: &GamepadHapticActuator, value: f64, duration: f64, ) -> Result<::js_sys::Promise, JsValue>; } web-sys-0.3.55/src/features/gen_GamepadHapticActuatorType.rs000064400000000000000000000005370072674642500222040ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `GamepadHapticActuatorType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadHapticActuatorType`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GamepadHapticActuatorType { Vibration = "vibration", } web-sys-0.3.55/src/features/gen_GamepadMappingType.rs000064400000000000000000000005270072674642500206630ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `GamepadMappingType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadMappingType`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GamepadMappingType { None = "", Standard = "standard", } web-sys-0.3.55/src/features/gen_GamepadPose.rs000064400000000000000000000106450072674642500173360ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GamepadPose , typescript_type = "GamepadPose")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GamepadPose` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadPose`*"] pub type GamepadPose; # [wasm_bindgen (structural , method , getter , js_class = "GamepadPose" , js_name = hasOrientation)] #[doc = "Getter for the `hasOrientation` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose/hasOrientation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadPose`*"] pub fn has_orientation(this: &GamepadPose) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "GamepadPose" , js_name = hasPosition)] #[doc = "Getter for the `hasPosition` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose/hasPosition)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadPose`*"] pub fn has_position(this: &GamepadPose) -> bool; # [wasm_bindgen (structural , catch , method , getter , js_class = "GamepadPose" , js_name = position)] #[doc = "Getter for the `position` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose/position)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadPose`*"] pub fn position(this: &GamepadPose) -> Result>, JsValue>; # [wasm_bindgen (structural , catch , method , getter , js_class = "GamepadPose" , js_name = linearVelocity)] #[doc = "Getter for the `linearVelocity` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose/linearVelocity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadPose`*"] pub fn linear_velocity(this: &GamepadPose) -> Result>, JsValue>; # [wasm_bindgen (structural , catch , method , getter , js_class = "GamepadPose" , js_name = linearAcceleration)] #[doc = "Getter for the `linearAcceleration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose/linearAcceleration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadPose`*"] pub fn linear_acceleration(this: &GamepadPose) -> Result>, JsValue>; # [wasm_bindgen (structural , catch , method , getter , js_class = "GamepadPose" , js_name = orientation)] #[doc = "Getter for the `orientation` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose/orientation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadPose`*"] pub fn orientation(this: &GamepadPose) -> Result>, JsValue>; # [wasm_bindgen (structural , catch , method , getter , js_class = "GamepadPose" , js_name = angularVelocity)] #[doc = "Getter for the `angularVelocity` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose/angularVelocity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadPose`*"] pub fn angular_velocity(this: &GamepadPose) -> Result>, JsValue>; # [wasm_bindgen (structural , catch , method , getter , js_class = "GamepadPose" , js_name = angularAcceleration)] #[doc = "Getter for the `angularAcceleration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose/angularAcceleration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadPose`*"] pub fn angular_acceleration(this: &GamepadPose) -> Result>, JsValue>; } web-sys-0.3.55/src/features/gen_GamepadServiceTest.rs000064400000000000000000000154430072674642500206710ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GamepadServiceTest , typescript_type = "GamepadServiceTest")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GamepadServiceTest` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadServiceTest)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadServiceTest`*"] pub type GamepadServiceTest; #[cfg(feature = "GamepadMappingType")] # [wasm_bindgen (structural , method , getter , js_class = "GamepadServiceTest" , js_name = noMapping)] #[doc = "Getter for the `noMapping` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadServiceTest/noMapping)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadMappingType`, `GamepadServiceTest`*"] pub fn no_mapping(this: &GamepadServiceTest) -> GamepadMappingType; #[cfg(feature = "GamepadMappingType")] # [wasm_bindgen (structural , method , getter , js_class = "GamepadServiceTest" , js_name = standardMapping)] #[doc = "Getter for the `standardMapping` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadServiceTest/standardMapping)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadMappingType`, `GamepadServiceTest`*"] pub fn standard_mapping(this: &GamepadServiceTest) -> GamepadMappingType; #[cfg(feature = "GamepadHand")] # [wasm_bindgen (structural , method , getter , js_class = "GamepadServiceTest" , js_name = noHand)] #[doc = "Getter for the `noHand` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadServiceTest/noHand)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadHand`, `GamepadServiceTest`*"] pub fn no_hand(this: &GamepadServiceTest) -> GamepadHand; #[cfg(feature = "GamepadHand")] # [wasm_bindgen (structural , method , getter , js_class = "GamepadServiceTest" , js_name = leftHand)] #[doc = "Getter for the `leftHand` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadServiceTest/leftHand)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadHand`, `GamepadServiceTest`*"] pub fn left_hand(this: &GamepadServiceTest) -> GamepadHand; #[cfg(feature = "GamepadHand")] # [wasm_bindgen (structural , method , getter , js_class = "GamepadServiceTest" , js_name = rightHand)] #[doc = "Getter for the `rightHand` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadServiceTest/rightHand)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadHand`, `GamepadServiceTest`*"] pub fn right_hand(this: &GamepadServiceTest) -> GamepadHand; #[cfg(all(feature = "GamepadHand", feature = "GamepadMappingType",))] # [wasm_bindgen (catch , method , structural , js_class = "GamepadServiceTest" , js_name = addGamepad)] #[doc = "The `addGamepad()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadServiceTest/addGamepad)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadHand`, `GamepadMappingType`, `GamepadServiceTest`*"] pub fn add_gamepad( this: &GamepadServiceTest, id: &str, mapping: GamepadMappingType, hand: GamepadHand, num_buttons: u32, num_axes: u32, num_haptics: u32, ) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (method , structural , js_class = "GamepadServiceTest" , js_name = newAxisMoveEvent)] #[doc = "The `newAxisMoveEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadServiceTest/newAxisMoveEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadServiceTest`*"] pub fn new_axis_move_event(this: &GamepadServiceTest, index: u32, axis: u32, value: f64); # [wasm_bindgen (method , structural , js_class = "GamepadServiceTest" , js_name = newButtonEvent)] #[doc = "The `newButtonEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadServiceTest/newButtonEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadServiceTest`*"] pub fn new_button_event( this: &GamepadServiceTest, index: u32, button: u32, pressed: bool, touched: bool, ); # [wasm_bindgen (method , structural , js_class = "GamepadServiceTest" , js_name = newButtonValueEvent)] #[doc = "The `newButtonValueEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadServiceTest/newButtonValueEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadServiceTest`*"] pub fn new_button_value_event( this: &GamepadServiceTest, index: u32, button: u32, pressed: bool, touched: bool, value: f64, ); # [wasm_bindgen (method , structural , js_class = "GamepadServiceTest" , js_name = newPoseMove)] #[doc = "The `newPoseMove()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadServiceTest/newPoseMove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadServiceTest`*"] pub fn new_pose_move( this: &GamepadServiceTest, index: u32, orient: Option<&mut [f32]>, pos: Option<&mut [f32]>, ang_velocity: Option<&mut [f32]>, ang_acceleration: Option<&mut [f32]>, lin_velocity: Option<&mut [f32]>, lin_acceleration: Option<&mut [f32]>, ); # [wasm_bindgen (method , structural , js_class = "GamepadServiceTest" , js_name = removeGamepad)] #[doc = "The `removeGamepad()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadServiceTest/removeGamepad)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadServiceTest`*"] pub fn remove_gamepad(this: &GamepadServiceTest, index: u32); } web-sys-0.3.55/src/features/gen_Geolocation.rs000064400000000000000000000111150072674642500174050ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = Geolocation , typescript_type = "Geolocation")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Geolocation` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Geolocation`*"] pub type Geolocation; # [wasm_bindgen (method , structural , js_class = "Geolocation" , js_name = clearWatch)] #[doc = "The `clearWatch()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation/clearWatch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Geolocation`*"] pub fn clear_watch(this: &Geolocation, watch_id: i32); # [wasm_bindgen (catch , method , structural , js_class = "Geolocation" , js_name = getCurrentPosition)] #[doc = "The `getCurrentPosition()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation/getCurrentPosition)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Geolocation`*"] pub fn get_current_position( this: &Geolocation, success_callback: &::js_sys::Function, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Geolocation" , js_name = getCurrentPosition)] #[doc = "The `getCurrentPosition()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation/getCurrentPosition)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Geolocation`*"] pub fn get_current_position_with_error_callback( this: &Geolocation, success_callback: &::js_sys::Function, error_callback: Option<&::js_sys::Function>, ) -> Result<(), JsValue>; #[cfg(feature = "PositionOptions")] # [wasm_bindgen (catch , method , structural , js_class = "Geolocation" , js_name = getCurrentPosition)] #[doc = "The `getCurrentPosition()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation/getCurrentPosition)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Geolocation`, `PositionOptions`*"] pub fn get_current_position_with_error_callback_and_options( this: &Geolocation, success_callback: &::js_sys::Function, error_callback: Option<&::js_sys::Function>, options: &PositionOptions, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Geolocation" , js_name = watchPosition)] #[doc = "The `watchPosition()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation/watchPosition)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Geolocation`*"] pub fn watch_position( this: &Geolocation, success_callback: &::js_sys::Function, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Geolocation" , js_name = watchPosition)] #[doc = "The `watchPosition()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation/watchPosition)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Geolocation`*"] pub fn watch_position_with_error_callback( this: &Geolocation, success_callback: &::js_sys::Function, error_callback: Option<&::js_sys::Function>, ) -> Result; #[cfg(feature = "PositionOptions")] # [wasm_bindgen (catch , method , structural , js_class = "Geolocation" , js_name = watchPosition)] #[doc = "The `watchPosition()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation/watchPosition)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Geolocation`, `PositionOptions`*"] pub fn watch_position_with_error_callback_and_options( this: &Geolocation, success_callback: &::js_sys::Function, error_callback: Option<&::js_sys::Function>, options: &PositionOptions, ) -> Result; } web-sys-0.3.55/src/features/gen_GetNotificationOptions.rs000064400000000000000000000026600072674642500216110ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GetNotificationOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GetNotificationOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GetNotificationOptions`*"] pub type GetNotificationOptions; } impl GetNotificationOptions { #[doc = "Construct a new `GetNotificationOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GetNotificationOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `tag` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GetNotificationOptions`*"] pub fn tag(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("tag"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for GetNotificationOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_GetRootNodeOptions.rs000064400000000000000000000027120072674642500207120ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GetRootNodeOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GetRootNodeOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GetRootNodeOptions`*"] pub type GetRootNodeOptions; } impl GetRootNodeOptions { #[doc = "Construct a new `GetRootNodeOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GetRootNodeOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GetRootNodeOptions`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for GetRootNodeOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_GetUserMediaRequest.rs000064400000000000000000000107560072674642500210430ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = GetUserMediaRequest , typescript_type = "GetUserMediaRequest")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GetUserMediaRequest` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GetUserMediaRequest)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GetUserMediaRequest`*"] pub type GetUserMediaRequest; # [wasm_bindgen (structural , method , getter , js_class = "GetUserMediaRequest" , js_name = windowID)] #[doc = "Getter for the `windowID` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GetUserMediaRequest/windowID)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GetUserMediaRequest`*"] pub fn window_id(this: &GetUserMediaRequest) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "GetUserMediaRequest" , js_name = innerWindowID)] #[doc = "Getter for the `innerWindowID` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GetUserMediaRequest/innerWindowID)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GetUserMediaRequest`*"] pub fn inner_window_id(this: &GetUserMediaRequest) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "GetUserMediaRequest" , js_name = callID)] #[doc = "Getter for the `callID` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GetUserMediaRequest/callID)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GetUserMediaRequest`*"] pub fn call_id(this: &GetUserMediaRequest) -> String; # [wasm_bindgen (structural , method , getter , js_class = "GetUserMediaRequest" , js_name = rawID)] #[doc = "Getter for the `rawID` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GetUserMediaRequest/rawID)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GetUserMediaRequest`*"] pub fn raw_id(this: &GetUserMediaRequest) -> String; # [wasm_bindgen (structural , method , getter , js_class = "GetUserMediaRequest" , js_name = mediaSource)] #[doc = "Getter for the `mediaSource` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GetUserMediaRequest/mediaSource)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GetUserMediaRequest`*"] pub fn media_source(this: &GetUserMediaRequest) -> String; # [wasm_bindgen (structural , method , getter , js_class = "GetUserMediaRequest" , js_name = isSecure)] #[doc = "Getter for the `isSecure` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GetUserMediaRequest/isSecure)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GetUserMediaRequest`*"] pub fn is_secure(this: &GetUserMediaRequest) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "GetUserMediaRequest" , js_name = isHandlingUserInput)] #[doc = "Getter for the `isHandlingUserInput` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GetUserMediaRequest/isHandlingUserInput)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GetUserMediaRequest`*"] pub fn is_handling_user_input(this: &GetUserMediaRequest) -> bool; #[cfg(feature = "MediaStreamConstraints")] # [wasm_bindgen (method , structural , js_class = "GetUserMediaRequest" , js_name = getConstraints)] #[doc = "The `getConstraints()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GetUserMediaRequest/getConstraints)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GetUserMediaRequest`, `MediaStreamConstraints`*"] pub fn get_constraints(this: &GetUserMediaRequest) -> MediaStreamConstraints; } web-sys-0.3.55/src/features/gen_Gpu.rs000064400000000000000000000044150072674642500157020ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPU , typescript_type = "GPU")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Gpu` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPU)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Gpu`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type Gpu; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GPU" , js_name = requestAdapter)] #[doc = "The `requestAdapter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPU/requestAdapter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Gpu`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn request_adapter(this: &Gpu) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuRequestAdapterOptions")] # [wasm_bindgen (method , structural , js_class = "GPU" , js_name = requestAdapter)] #[doc = "The `requestAdapter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPU/requestAdapter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Gpu`, `GpuRequestAdapterOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn request_adapter_with_options( this: &Gpu, options: &GpuRequestAdapterOptions, ) -> ::js_sys::Promise; } web-sys-0.3.55/src/features/gen_GpuAdapter.rs000064400000000000000000000124650072674642500172070ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUAdapter , typescript_type = "GPUAdapter")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuAdapter` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuAdapter`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuAdapter; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUAdapter" , js_name = name)] #[doc = "Getter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapter/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuAdapter`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn name(this: &GpuAdapter) -> String; #[cfg(web_sys_unstable_apis)] #[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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn limits(this: &GpuAdapter) -> GpuSupportedLimits; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUAdapter" , js_name = isSoftware)] #[doc = "Getter for the `isSoftware` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapter/isSoftware)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuAdapter`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn is_software(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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn request_device(this: &GpuAdapter) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuDeviceDescriptor")] # [wasm_bindgen (method , structural , js_class = "GPUAdapter" , js_name = requestDevice)] #[doc = "The `requestDevice()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapter/requestDevice)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuAdapter`, `GpuDeviceDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn request_device_with_descriptor( this: &GpuAdapter, descriptor: &GpuDeviceDescriptor, ) -> ::js_sys::Promise; } web-sys-0.3.55/src/features/gen_GpuAddressMode.rs000064400000000000000000000012060072674642500200100ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `GpuAddressMode` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuAddressMode`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GpuAddressMode { ClampToEdge = "clamp-to-edge", Repeat = "repeat", MirrorRepeat = "mirror-repeat", } web-sys-0.3.55/src/features/gen_GpuBindGroup.rs000064400000000000000000000043550072674642500175170ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUBindGroup , typescript_type = "GPUBindGroup")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuBindGroup` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBindGroup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuBindGroup; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUBindGroup" , js_name = label)] #[doc = "Getter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBindGroup/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuBindGroup) -> Option; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "GPUBindGroup" , js_name = label)] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBindGroup/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_label(this: &GpuBindGroup, value: Option<&str>); } web-sys-0.3.55/src/features/gen_GpuBindGroupDescriptor.rs000064400000000000000000000101310072674642500215430ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUBindGroupDescriptor)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuBindGroupDescriptor` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuBindGroupDescriptor; } #[cfg(web_sys_unstable_apis)] impl GpuBindGroupDescriptor { #[cfg(feature = "GpuBindGroupLayout")] #[doc = "Construct a new `GpuBindGroupDescriptor`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupDescriptor`, `GpuBindGroupLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(entries: &::wasm_bindgen::JsValue, layout: &GpuBindGroupLayout) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.entries(entries); ret.layout(layout); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `label` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn entries(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("entries"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBindGroupLayout")] #[doc = "Change the `layout` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupDescriptor`, `GpuBindGroupLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn layout(&mut self, val: &GpuBindGroupLayout) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("layout"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_GpuBindGroupEntry.rs000064400000000000000000000062060072674642500205360ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuBindGroupEntry; } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(binding: u32, resource: &::wasm_bindgen::JsValue) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.binding(binding); ret.resource(resource); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `binding` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn binding(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("binding"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `resource` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn resource(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("resource"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_GpuBindGroupLayout.rs000064400000000000000000000045010072674642500207060ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUBindGroupLayout , typescript_type = "GPUBindGroupLayout")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuBindGroupLayout` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBindGroupLayout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuBindGroupLayout; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUBindGroupLayout" , js_name = label)] #[doc = "Getter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBindGroupLayout/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuBindGroupLayout) -> Option; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "GPUBindGroupLayout" , js_name = label)] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBindGroupLayout/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_label(this: &GpuBindGroupLayout, value: Option<&str>); } web-sys-0.3.55/src/features/gen_GpuBindGroupLayoutDescriptor.rs000064400000000000000000000062030072674642500227460ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUBindGroupLayoutDescriptor)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuBindGroupLayoutDescriptor` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuBindGroupLayoutDescriptor; } #[cfg(web_sys_unstable_apis)] impl GpuBindGroupLayoutDescriptor { #[doc = "Construct a new `GpuBindGroupLayoutDescriptor`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(entries: &::wasm_bindgen::JsValue) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.entries(entries); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `label` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn entries(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("entries"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_GpuBindGroupLayoutEntry.rs000064400000000000000000000176710072674642500217440ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuBindGroupLayoutEntry; } #[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://rustwasm.github.io/docs/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.binding(binding); ret.visibility(visibility); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `binding` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn binding(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("binding"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn buffer(&mut self, val: &GpuBufferBindingLayout) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("buffer"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn external_texture(&mut self, val: &GpuExternalTextureBindingLayout) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("externalTexture"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn sampler(&mut self, val: &GpuSamplerBindingLayout) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("sampler"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn storage_texture(&mut self, val: &GpuStorageTextureBindingLayout) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("storageTexture"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn texture(&mut self, val: &GpuTextureBindingLayout) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("texture"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn visibility(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("visibility"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_GpuBlendComponent.rs000064400000000000000000000103050072674642500205250ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuBlendComponent; } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBlendFactor")] #[doc = "Change the `dstFactor` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn dst_factor(&mut self, val: GpuBlendFactor) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("dstFactor"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBlendOperation")] #[doc = "Change the `operation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn operation(&mut self, val: GpuBlendOperation) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("operation"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBlendFactor")] #[doc = "Change the `srcFactor` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn src_factor(&mut self, val: GpuBlendFactor) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("srcFactor"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } #[cfg(web_sys_unstable_apis)] impl Default for GpuBlendComponent { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_GpuBlendFactor.rs000064400000000000000000000016770072674642500200150ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `GpuBlendFactor` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBlendFactor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GpuBlendFactor { Zero = "zero", One = "one", 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", } web-sys-0.3.55/src/features/gen_GpuBlendOperation.rs000064400000000000000000000012510072674642500205230ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `GpuBlendOperation` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBlendOperation`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GpuBlendOperation { Add = "add", Subtract = "subtract", ReverseSubtract = "reverse-subtract", Min = "min", Max = "max", } web-sys-0.3.55/src/features/gen_GpuBlendState.rs000064400000000000000000000062650072674642500176550ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuBlendState; } #[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://rustwasm.github.io/docs/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.alpha(alpha); ret.color(color); ret } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn alpha(&mut self, val: &GpuBlendComponent) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("alpha"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn color(&mut self, val: &GpuBlendComponent) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("color"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_GpuBuffer.rs000064400000000000000000000337670072674642500170500ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUBuffer , typescript_type = "GPUBuffer")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuBuffer` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuBuffer; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUBuffer" , js_name = label)] #[doc = "Getter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuBuffer) -> Option; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "GPUBuffer" , js_name = label)] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_label(this: &GpuBuffer, value: Option<&str>); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GPUBuffer" , js_name = destroy)] #[doc = "The `destroy()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/destroy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn destroy(this: &GpuBuffer); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GPUBuffer" , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_mapped_range(this: &GpuBuffer) -> ::js_sys::ArrayBuffer; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_mapped_range_with_u32(this: &GpuBuffer, offset: u32) -> ::js_sys::ArrayBuffer; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_mapped_range_with_f64(this: &GpuBuffer, offset: f64) -> ::js_sys::ArrayBuffer; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_mapped_range_with_u32_and_u32( this: &GpuBuffer, offset: u32, size: u32, ) -> ::js_sys::ArrayBuffer; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_mapped_range_with_f64_and_u32( this: &GpuBuffer, offset: f64, size: u32, ) -> ::js_sys::ArrayBuffer; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_mapped_range_with_u32_and_f64( this: &GpuBuffer, offset: u32, size: f64, ) -> ::js_sys::ArrayBuffer; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_mapped_range_with_f64_and_f64( this: &GpuBuffer, offset: f64, size: f64, ) -> ::js_sys::ArrayBuffer; #[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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn unmap(this: &GpuBuffer); } web-sys-0.3.55/src/features/gen_GpuBufferBinding.rs000064400000000000000000000075470072674642500203400ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUBufferBinding)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuBufferBinding` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBufferBinding`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuBufferBinding; } #[cfg(web_sys_unstable_apis)] impl GpuBufferBinding { #[cfg(feature = "GpuBuffer")] #[doc = "Construct a new `GpuBufferBinding`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuBufferBinding`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(buffer: &GpuBuffer) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.buffer(buffer); ret } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] #[doc = "Change the `buffer` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuBufferBinding`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn buffer(&mut self, val: &GpuBuffer) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("buffer"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `offset` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBufferBinding`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn offset(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("offset"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `size` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBufferBinding`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn size(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("size"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_GpuBufferBindingLayout.rs000064400000000000000000000101470072674642500215240ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuBufferBindingLayout; } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn has_dynamic_offset(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("hasDynamicOffset"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn min_binding_size(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("minBindingSize"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn type_(&mut self, val: GpuBufferBindingType) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } #[cfg(web_sys_unstable_apis)] impl Default for GpuBufferBindingLayout { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_GpuBufferBindingType.rs000064400000000000000000000012270072674642500211670ustar 00000000000000#![allow(unused_imports)] 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://rustwasm.github.io/docs/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.55/src/features/gen_GpuBufferDescriptor.rs000064400000000000000000000112360072674642500210720ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUBufferDescriptor)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuBufferDescriptor` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBufferDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuBufferDescriptor; } #[cfg(web_sys_unstable_apis)] impl GpuBufferDescriptor { #[doc = "Construct a new `GpuBufferDescriptor`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBufferDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(size: f64, usage: u32) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.size(size); ret.usage(usage); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `label` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBufferDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn mapped_at_creation(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("mappedAtCreation"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `size` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBufferDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn size(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("size"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `usage` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBufferDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn usage(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("usage"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_GpuBufferUsage.rs000064400000000000000000000132230072674642500200160ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUBufferUsage , typescript_type = "GPUBufferUsage")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuBufferUsage` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBufferUsage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBufferUsage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuBufferUsage; } #[cfg(web_sys_unstable_apis)] impl GpuBufferUsage { #[cfg(web_sys_unstable_apis)] #[doc = "The `GPUBufferUsage.MAP_READ` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBufferUsage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub const MAP_READ: u32 = 1u64 as u32; #[cfg(web_sys_unstable_apis)] #[doc = "The `GPUBufferUsage.MAP_WRITE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBufferUsage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub const MAP_WRITE: u32 = 2u64 as u32; #[cfg(web_sys_unstable_apis)] #[doc = "The `GPUBufferUsage.COPY_SRC` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBufferUsage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub const COPY_SRC: u32 = 4u64 as u32; #[cfg(web_sys_unstable_apis)] #[doc = "The `GPUBufferUsage.COPY_DST` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBufferUsage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub const COPY_DST: u32 = 8u64 as u32; #[cfg(web_sys_unstable_apis)] #[doc = "The `GPUBufferUsage.INDEX` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBufferUsage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub const INDEX: u32 = 16u64 as u32; #[cfg(web_sys_unstable_apis)] #[doc = "The `GPUBufferUsage.VERTEX` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBufferUsage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub const VERTEX: u32 = 32u64 as u32; #[cfg(web_sys_unstable_apis)] #[doc = "The `GPUBufferUsage.UNIFORM` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBufferUsage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub const UNIFORM: u32 = 64u64 as u32; #[cfg(web_sys_unstable_apis)] #[doc = "The `GPUBufferUsage.STORAGE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBufferUsage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub const STORAGE: u32 = 128u64 as u32; #[cfg(web_sys_unstable_apis)] #[doc = "The `GPUBufferUsage.INDIRECT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBufferUsage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub const INDIRECT: u32 = 256u64 as u32; #[cfg(web_sys_unstable_apis)] #[doc = "The `GPUBufferUsage.QUERY_RESOLVE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBufferUsage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub const QUERY_RESOLVE: u32 = 512u64 as u32; } web-sys-0.3.55/src/features/gen_GpuCanvasCompositingAlphaMode.rs000064400000000000000000000012210072674642500230150ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `GpuCanvasCompositingAlphaMode` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCanvasCompositingAlphaMode`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GpuCanvasCompositingAlphaMode { Opaque = "opaque", Premultiplied = "premultiplied", } web-sys-0.3.55/src/features/gen_GpuCanvasConfiguration.rs000064400000000000000000000155630072674642500215740ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuCanvasConfiguration; } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(device: &GpuDevice, format: GpuTextureFormat) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.device(device); ret.format(format); ret } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuPredefinedColorSpace")] #[doc = "Change the `colorSpace` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCanvasConfiguration`, `GpuPredefinedColorSpace`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn color_space(&mut self, val: GpuPredefinedColorSpace) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("colorSpace"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuCanvasCompositingAlphaMode")] #[doc = "Change the `compositingAlphaMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCanvasCompositingAlphaMode`, `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn compositing_alpha_mode(&mut self, val: GpuCanvasCompositingAlphaMode) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("compositingAlphaMode"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuDevice")] #[doc = "Change the `device` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn device(&mut self, val: &GpuDevice) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("device"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureFormat")] #[doc = "Change the `format` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn format(&mut self, val: GpuTextureFormat) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("format"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `size` 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn size(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("size"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `usage` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn usage(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("usage"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_GpuCanvasContext.rs000064400000000000000000000113410072674642500203770ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUCanvasContext , typescript_type = "GPUCanvasContext")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuCanvasContext` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCanvasContext)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCanvasContext`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuCanvasContext; #[cfg(web_sys_unstable_apis)] # [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://rustwasm.github.io/docs/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 (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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn configure(this: &GpuCanvasContext, configuration: &GpuCanvasConfiguration); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTexture")] # [wasm_bindgen (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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_current_texture(this: &GpuCanvasContext) -> GpuTexture; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuAdapter", feature = "GpuTextureFormat",))] # [wasm_bindgen (method , structural , js_class = "GPUCanvasContext" , js_name = getPreferredFormat)] #[doc = "The `getPreferredFormat()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCanvasContext/getPreferredFormat)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuAdapter`, `GpuCanvasContext`, `GpuTextureFormat`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_preferred_format(this: &GpuCanvasContext, adapter: &GpuAdapter) -> GpuTextureFormat; #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn unconfigure(this: &GpuCanvasContext); } web-sys-0.3.55/src/features/gen_GpuColorDict.rs000064400000000000000000000107570072674642500175130ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUColorDict)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuColorDict` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuColorDict`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuColorDict; } #[cfg(web_sys_unstable_apis)] impl GpuColorDict { #[doc = "Construct a new `GpuColorDict`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuColorDict`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(a: f64, b: f64, g: f64, r: f64) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.a(a); ret.b(b); ret.g(g); ret.r(r); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `a` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuColorDict`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn a(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("a"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `b` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuColorDict`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn b(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("b"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `g` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuColorDict`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn g(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("g"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `r` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuColorDict`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn r(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("r"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_GpuColorTargetState.rs000064400000000000000000000100370072674642500210460ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuColorTargetState; } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(format: GpuTextureFormat) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.format(format); ret } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn blend(&mut self, val: &GpuBlendState) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("blend"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureFormat")] #[doc = "Change the `format` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn format(&mut self, val: GpuTextureFormat) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("format"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `writeMask` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_mask(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("writeMask"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_GpuColorWrite.rs000064400000000000000000000063140072674642500177140ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUColorWrite , typescript_type = "GPUColorWrite")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuColorWrite` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUColorWrite)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuColorWrite`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuColorWrite; } #[cfg(web_sys_unstable_apis)] impl GpuColorWrite { #[cfg(web_sys_unstable_apis)] #[doc = "The `GPUColorWrite.RED` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuColorWrite`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub const RED: u32 = 1u64 as u32; #[cfg(web_sys_unstable_apis)] #[doc = "The `GPUColorWrite.GREEN` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuColorWrite`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub const GREEN: u32 = 2u64 as u32; #[cfg(web_sys_unstable_apis)] #[doc = "The `GPUColorWrite.BLUE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuColorWrite`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub const BLUE: u32 = 4u64 as u32; #[cfg(web_sys_unstable_apis)] #[doc = "The `GPUColorWrite.ALPHA` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuColorWrite`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub const ALPHA: u32 = 8u64 as u32; #[cfg(web_sys_unstable_apis)] #[doc = "The `GPUColorWrite.ALL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuColorWrite`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub const ALL: u32 = 15u64 as u32; } web-sys-0.3.55/src/features/gen_GpuCommandBuffer.rs000064400000000000000000000060570072674642500203370ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUCommandBuffer , typescript_type = "GPUCommandBuffer")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuCommandBuffer` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCommandBuffer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuCommandBuffer; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUCommandBuffer" , js_name = executionTime)] #[doc = "Getter for the `executionTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandBuffer/executionTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCommandBuffer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn execution_time(this: &GpuCommandBuffer) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUCommandBuffer" , js_name = label)] #[doc = "Getter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandBuffer/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCommandBuffer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuCommandBuffer) -> Option; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "GPUCommandBuffer" , js_name = label)] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandBuffer/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCommandBuffer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_label(this: &GpuCommandBuffer, value: Option<&str>); } web-sys-0.3.55/src/features/gen_GpuCommandBufferDescriptor.rs000064400000000000000000000044650072674642500223770ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUCommandBufferDescriptor)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuCommandBufferDescriptor` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCommandBufferDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuCommandBufferDescriptor; } #[cfg(web_sys_unstable_apis)] impl GpuCommandBufferDescriptor { #[doc = "Construct a new `GpuCommandBufferDescriptor`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCommandBufferDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `label` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCommandBufferDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } #[cfg(web_sys_unstable_apis)] impl Default for GpuCommandBufferDescriptor { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_GpuCommandEncoder.rs000064400000000000000000000630310072674642500205000ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUCommandEncoder , typescript_type = "GPUCommandEncoder")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuCommandEncoder` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuCommandEncoder; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUCommandEncoder" , js_name = label)] #[doc = "Getter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuCommandEncoder) -> Option; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "GPUCommandEncoder" , js_name = label)] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_label(this: &GpuCommandEncoder, value: Option<&str>); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuComputePassEncoder")] # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = beginComputePass)] #[doc = "The `beginComputePass()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/beginComputePass)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuComputePassEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn begin_compute_pass(this: &GpuCommandEncoder) -> GpuComputePassEncoder; #[cfg(web_sys_unstable_apis)] #[cfg(all( feature = "GpuComputePassDescriptor", feature = "GpuComputePassEncoder", ))] # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = beginComputePass)] #[doc = "The `beginComputePass()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/beginComputePass)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuComputePassDescriptor`, `GpuComputePassEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn begin_compute_pass_with_descriptor( this: &GpuCommandEncoder, descriptor: &GpuComputePassDescriptor, ) -> GpuComputePassEncoder; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuRenderPassDescriptor", feature = "GpuRenderPassEncoder",))] # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = beginRenderPass)] #[doc = "The `beginRenderPass()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/beginRenderPass)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuRenderPassDescriptor`, `GpuRenderPassEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn begin_render_pass( this: &GpuCommandEncoder, descriptor: &GpuRenderPassDescriptor, ) -> GpuRenderPassEncoder; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)] #[doc = "The `copyBufferToBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn copy_buffer_to_buffer_with_u32_and_u32_and_u32( this: &GpuCommandEncoder, source: &GpuBuffer, source_offset: u32, destination: &GpuBuffer, destination_offset: u32, size: u32, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)] #[doc = "The `copyBufferToBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn copy_buffer_to_buffer_with_f64_and_u32_and_u32( this: &GpuCommandEncoder, source: &GpuBuffer, source_offset: f64, destination: &GpuBuffer, destination_offset: u32, size: u32, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)] #[doc = "The `copyBufferToBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn copy_buffer_to_buffer_with_u32_and_f64_and_u32( this: &GpuCommandEncoder, source: &GpuBuffer, source_offset: u32, destination: &GpuBuffer, destination_offset: f64, size: u32, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)] #[doc = "The `copyBufferToBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn copy_buffer_to_buffer_with_f64_and_f64_and_u32( this: &GpuCommandEncoder, source: &GpuBuffer, source_offset: f64, destination: &GpuBuffer, destination_offset: f64, size: u32, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)] #[doc = "The `copyBufferToBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn copy_buffer_to_buffer_with_u32_and_u32_and_f64( this: &GpuCommandEncoder, source: &GpuBuffer, source_offset: u32, destination: &GpuBuffer, destination_offset: u32, size: f64, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)] #[doc = "The `copyBufferToBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn copy_buffer_to_buffer_with_f64_and_u32_and_f64( this: &GpuCommandEncoder, source: &GpuBuffer, source_offset: f64, destination: &GpuBuffer, destination_offset: u32, size: f64, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)] #[doc = "The `copyBufferToBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn copy_buffer_to_buffer_with_u32_and_f64_and_f64( this: &GpuCommandEncoder, source: &GpuBuffer, source_offset: u32, destination: &GpuBuffer, destination_offset: f64, size: f64, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)] #[doc = "The `copyBufferToBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn copy_buffer_to_buffer_with_f64_and_f64_and_f64( this: &GpuCommandEncoder, source: &GpuBuffer, source_offset: f64, destination: &GpuBuffer, destination_offset: f64, size: f64, ); #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuImageCopyBuffer", feature = "GpuImageCopyTexture",))] # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToTexture)] #[doc = "The `copyBufferToTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToTexture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuImageCopyBuffer`, `GpuImageCopyTexture`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn copy_buffer_to_texture_with_u32_sequence( this: &GpuCommandEncoder, source: &GpuImageCopyBuffer, destination: &GpuImageCopyTexture, copy_size: &::wasm_bindgen::JsValue, ); #[cfg(web_sys_unstable_apis)] #[cfg(all( feature = "GpuExtent3dDict", feature = "GpuImageCopyBuffer", feature = "GpuImageCopyTexture", ))] # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToTexture)] #[doc = "The `copyBufferToTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToTexture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuExtent3dDict`, `GpuImageCopyBuffer`, `GpuImageCopyTexture`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn copy_buffer_to_texture_with_gpu_extent_3d_dict( this: &GpuCommandEncoder, source: &GpuImageCopyBuffer, destination: &GpuImageCopyTexture, copy_size: &GpuExtent3dDict, ); #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuImageCopyBuffer", feature = "GpuImageCopyTexture",))] # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyTextureToBuffer)] #[doc = "The `copyTextureToBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyTextureToBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuImageCopyBuffer`, `GpuImageCopyTexture`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn copy_texture_to_buffer_with_u32_sequence( this: &GpuCommandEncoder, source: &GpuImageCopyTexture, destination: &GpuImageCopyBuffer, copy_size: &::wasm_bindgen::JsValue, ); #[cfg(web_sys_unstable_apis)] #[cfg(all( feature = "GpuExtent3dDict", feature = "GpuImageCopyBuffer", feature = "GpuImageCopyTexture", ))] # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyTextureToBuffer)] #[doc = "The `copyTextureToBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyTextureToBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuExtent3dDict`, `GpuImageCopyBuffer`, `GpuImageCopyTexture`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn copy_texture_to_buffer_with_gpu_extent_3d_dict( this: &GpuCommandEncoder, source: &GpuImageCopyTexture, destination: &GpuImageCopyBuffer, copy_size: &GpuExtent3dDict, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuImageCopyTexture")] # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyTextureToTexture)] #[doc = "The `copyTextureToTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyTextureToTexture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuImageCopyTexture`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn copy_texture_to_texture_with_u32_sequence( this: &GpuCommandEncoder, source: &GpuImageCopyTexture, destination: &GpuImageCopyTexture, copy_size: &::wasm_bindgen::JsValue, ); #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuExtent3dDict", feature = "GpuImageCopyTexture",))] # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyTextureToTexture)] #[doc = "The `copyTextureToTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyTextureToTexture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuExtent3dDict`, `GpuImageCopyTexture`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn copy_texture_to_texture_with_gpu_extent_3d_dict( this: &GpuCommandEncoder, source: &GpuImageCopyTexture, destination: &GpuImageCopyTexture, copy_size: &GpuExtent3dDict, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuCommandBuffer")] # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = finish)] #[doc = "The `finish()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/finish)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCommandBuffer`, `GpuCommandEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn finish(this: &GpuCommandEncoder) -> GpuCommandBuffer; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuCommandBuffer", feature = "GpuCommandBufferDescriptor",))] # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = finish)] #[doc = "The `finish()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/finish)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCommandBuffer`, `GpuCommandBufferDescriptor`, `GpuCommandEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn finish_with_descriptor( this: &GpuCommandEncoder, descriptor: &GpuCommandBufferDescriptor, ) -> GpuCommandBuffer; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = insertDebugMarker)] #[doc = "The `insertDebugMarker()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/insertDebugMarker)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn insert_debug_marker(this: &GpuCommandEncoder, marker_label: &str); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = popDebugGroup)] #[doc = "The `popDebugGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/popDebugGroup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn pop_debug_group(this: &GpuCommandEncoder); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = pushDebugGroup)] #[doc = "The `pushDebugGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/pushDebugGroup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn push_debug_group(this: &GpuCommandEncoder, group_label: &str); #[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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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)] #[cfg(feature = "GpuQuerySet")] # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = writeTimestamp)] #[doc = "The `writeTimestamp()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/writeTimestamp)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_timestamp(this: &GpuCommandEncoder, query_set: &GpuQuerySet, query_index: u32); } web-sys-0.3.55/src/features/gen_GpuCommandEncoderDescriptor.rs000064400000000000000000000063240072674642500225410ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUCommandEncoderDescriptor)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuCommandEncoderDescriptor` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoderDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuCommandEncoderDescriptor; } #[cfg(web_sys_unstable_apis)] impl GpuCommandEncoderDescriptor { #[doc = "Construct a new `GpuCommandEncoderDescriptor`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoderDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `label` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoderDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `measureExecutionTime` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoderDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn measure_execution_time(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("measureExecutionTime"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } #[cfg(web_sys_unstable_apis)] impl Default for GpuCommandEncoderDescriptor { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_GpuCompareFunction.rs000064400000000000000000000013770072674642500207230ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `GpuCompareFunction` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCompareFunction`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GpuCompareFunction { Never = "never", Less = "less", Equal = "equal", LessEqual = "less-equal", Greater = "greater", NotEqual = "not-equal", GreaterEqual = "greater-equal", Always = "always", } web-sys-0.3.55/src/features/gen_GpuCompilationInfo.rs000064400000000000000000000031310072674642500207070ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn messages(this: &GpuCompilationInfo) -> ::js_sys::Array; } web-sys-0.3.55/src/features/gen_GpuCompilationMessage.rs000064400000000000000000000126210072674642500214040ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn message(this: &GpuCompilationMessage) -> 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn length(this: &GpuCompilationMessage) -> f64; } web-sys-0.3.55/src/features/gen_GpuCompilationMessageType.rs000064400000000000000000000012120072674642500222400ustar 00000000000000#![allow(unused_imports)] 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://rustwasm.github.io/docs/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.55/src/features/gen_GpuComputePassDescriptor.rs000064400000000000000000000044430072674642500221260ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUComputePassDescriptor)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuComputePassDescriptor` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuComputePassDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuComputePassDescriptor; } #[cfg(web_sys_unstable_apis)] impl GpuComputePassDescriptor { #[doc = "Construct a new `GpuComputePassDescriptor`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuComputePassDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `label` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuComputePassDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } #[cfg(web_sys_unstable_apis)] impl Default for GpuComputePassDescriptor { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_GpuComputePassEncoder.rs000064400000000000000000000405140072674642500213660ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUComputePassEncoder , typescript_type = "GPUComputePassEncoder")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuComputePassEncoder` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuComputePassEncoder; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUComputePassEncoder" , js_name = label)] #[doc = "Getter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuComputePassEncoder) -> Option; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "GPUComputePassEncoder" , js_name = label)] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_label(this: &GpuComputePassEncoder, value: Option<&str>); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuQuerySet")] # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = beginPipelineStatisticsQuery)] #[doc = "The `beginPipelineStatisticsQuery()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/beginPipelineStatisticsQuery)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`, `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn begin_pipeline_statistics_query( this: &GpuComputePassEncoder, query_set: &GpuQuerySet, query_index: u32, ); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = dispatch)] #[doc = "The `dispatch()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/dispatch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn dispatch(this: &GpuComputePassEncoder, x: u32); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = dispatch)] #[doc = "The `dispatch()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/dispatch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn dispatch_with_y(this: &GpuComputePassEncoder, x: u32, y: u32); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = dispatch)] #[doc = "The `dispatch()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/dispatch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn dispatch_with_y_and_z(this: &GpuComputePassEncoder, x: u32, y: u32, z: u32); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = dispatchIndirect)] #[doc = "The `dispatchIndirect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/dispatchIndirect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuComputePassEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn dispatch_indirect_with_u32( this: &GpuComputePassEncoder, indirect_buffer: &GpuBuffer, indirect_offset: u32, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = dispatchIndirect)] #[doc = "The `dispatchIndirect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/dispatchIndirect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuComputePassEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn dispatch_indirect_with_f64( this: &GpuComputePassEncoder, indirect_buffer: &GpuBuffer, indirect_offset: f64, ); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = endPass)] #[doc = "The `endPass()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/endPass)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn end_pass(this: &GpuComputePassEncoder); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = endPipelineStatisticsQuery)] #[doc = "The `endPipelineStatisticsQuery()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/endPipelineStatisticsQuery)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn end_pipeline_statistics_query(this: &GpuComputePassEncoder); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuComputePipeline")] # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = setPipeline)] #[doc = "The `setPipeline()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setPipeline)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`, `GpuComputePipeline`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_pipeline(this: &GpuComputePassEncoder, pipeline: &GpuComputePipeline); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuQuerySet")] # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = writeTimestamp)] #[doc = "The `writeTimestamp()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/writeTimestamp)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`, `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_timestamp(this: &GpuComputePassEncoder, query_set: &GpuQuerySet, query_index: u32); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = insertDebugMarker)] #[doc = "The `insertDebugMarker()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/insertDebugMarker)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn insert_debug_marker(this: &GpuComputePassEncoder, marker_label: &str); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = popDebugGroup)] #[doc = "The `popDebugGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/popDebugGroup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn pop_debug_group(this: &GpuComputePassEncoder); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = pushDebugGroup)] #[doc = "The `pushDebugGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/pushDebugGroup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn push_debug_group(this: &GpuComputePassEncoder, group_label: &str); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBindGroup")] # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = setBindGroup)] #[doc = "The `setBindGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setBindGroup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuComputePassEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_bind_group(this: &GpuComputePassEncoder, index: u32, bind_group: &GpuBindGroup); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBindGroup")] # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = setBindGroup)] #[doc = "The `setBindGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setBindGroup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuComputePassEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_bind_group_with_u32_sequence( this: &GpuComputePassEncoder, index: u32, bind_group: &GpuBindGroup, dynamic_offsets: &::wasm_bindgen::JsValue, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBindGroup")] # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = setBindGroup)] #[doc = "The `setBindGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setBindGroup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuComputePassEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_bind_group_with_u32_array_and_u32_and_dynamic_offsets_data_length( this: &GpuComputePassEncoder, index: u32, bind_group: &GpuBindGroup, dynamic_offsets_data: &[u32], dynamic_offsets_data_start: u32, dynamic_offsets_data_length: u32, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBindGroup")] # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = setBindGroup)] #[doc = "The `setBindGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setBindGroup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuComputePassEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_bind_group_with_u32_array_and_f64_and_dynamic_offsets_data_length( this: &GpuComputePassEncoder, index: u32, bind_group: &GpuBindGroup, dynamic_offsets_data: &[u32], dynamic_offsets_data_start: f64, dynamic_offsets_data_length: u32, ); } web-sys-0.3.55/src/features/gen_GpuComputePipeline.rs000064400000000000000000000062270072674642500207300ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUComputePipeline , typescript_type = "GPUComputePipeline")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuComputePipeline` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePipeline)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuComputePipeline`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuComputePipeline; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUComputePipeline" , js_name = label)] #[doc = "Getter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePipeline/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuComputePipeline`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuComputePipeline) -> Option; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "GPUComputePipeline" , js_name = label)] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePipeline/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuComputePipeline`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_label(this: &GpuComputePipeline, value: Option<&str>); #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_bind_group_layout(this: &GpuComputePipeline, index: u32) -> GpuBindGroupLayout; } web-sys-0.3.55/src/features/gen_GpuComputePipelineDescriptor.rs000064400000000000000000000102340072674642500227600ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUComputePipelineDescriptor)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuComputePipelineDescriptor` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuComputePipelineDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuComputePipelineDescriptor; } #[cfg(web_sys_unstable_apis)] impl GpuComputePipelineDescriptor { #[cfg(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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(compute: &GpuProgrammableStage) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.compute(compute); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `label` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuComputePipelineDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuPipelineLayout")] #[doc = "Change the `layout` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuComputePipelineDescriptor`, `GpuPipelineLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn layout(&mut self, val: &GpuPipelineLayout) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("layout"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn compute(&mut self, val: &GpuProgrammableStage) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("compute"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_GpuCullMode.rs000064400000000000000000000011320072674642500173200ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `GpuCullMode` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCullMode`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GpuCullMode { None = "none", Front = "front", Back = "back", } web-sys-0.3.55/src/features/gen_GpuDepthStencilState.rs000064400000000000000000000246320072674642500212150ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuDepthStencilState; } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(format: GpuTextureFormat) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.format(format); ret } #[cfg(web_sys_unstable_apis)] #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn depth_bias(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("depthBias"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `depthBiasClamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn depth_bias_clamp(&mut self, val: f32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("depthBiasClamp"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `depthBiasSlopeScale` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn depth_bias_slope_scale(&mut self, val: f32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("depthBiasSlopeScale"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn depth_compare(&mut self, val: GpuCompareFunction) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("depthCompare"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `depthWriteEnabled` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn depth_write_enabled(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("depthWriteEnabled"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureFormat")] #[doc = "Change the `format` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn format(&mut self, val: GpuTextureFormat) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("format"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn stencil_back(&mut self, val: &GpuStencilFaceState) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("stencilBack"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn stencil_front(&mut self, val: &GpuStencilFaceState) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("stencilFront"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `stencilReadMask` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn stencil_read_mask(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("stencilReadMask"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `stencilWriteMask` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn stencil_write_mask(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("stencilWriteMask"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_GpuDevice.rs000064400000000000000000000600500072674642500170170ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = GPUDevice , typescript_type = "GPUDevice")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuDevice` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuDevice; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn limits(this: &GpuDevice) -> GpuSupportedLimits; #[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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn lost(this: &GpuDevice) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUDevice" , js_name = onuncapturederror)] #[doc = "Getter for the `onuncapturederror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/onuncapturederror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onuncapturederror(this: &GpuDevice) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "GPUDevice" , js_name = onuncapturederror)] #[doc = "Setter for the `onuncapturederror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/onuncapturederror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onuncapturederror(this: &GpuDevice, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUDevice" , js_name = label)] #[doc = "Getter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuDevice) -> Option; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "GPUDevice" , js_name = label)] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_label(this: &GpuDevice, value: Option<&str>); #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuBindGroup", feature = "GpuBindGroupDescriptor",))] # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createBindGroup)] #[doc = "The `createBindGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createBindGroup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuBindGroupDescriptor`, `GpuDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn create_bind_group(this: &GpuDevice, descriptor: &GpuBindGroupDescriptor) -> GpuBindGroup; #[cfg(web_sys_unstable_apis)] #[cfg(all( feature = "GpuBindGroupLayout", feature = "GpuBindGroupLayoutDescriptor", ))] # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createBindGroupLayout)] #[doc = "The `createBindGroupLayout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createBindGroupLayout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayout`, `GpuBindGroupLayoutDescriptor`, `GpuDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn create_bind_group_layout( this: &GpuDevice, descriptor: &GpuBindGroupLayoutDescriptor, ) -> GpuBindGroupLayout; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuBuffer", feature = "GpuBufferDescriptor",))] # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createBuffer)] #[doc = "The `createBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuBufferDescriptor`, `GpuDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn create_buffer(this: &GpuDevice, descriptor: &GpuBufferDescriptor) -> GpuBuffer; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuCommandEncoder")] # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createCommandEncoder)] #[doc = "The `createCommandEncoder()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createCommandEncoder)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn create_command_encoder(this: &GpuDevice) -> GpuCommandEncoder; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuCommandEncoder", feature = "GpuCommandEncoderDescriptor",))] # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createCommandEncoder)] #[doc = "The `createCommandEncoder()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createCommandEncoder)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuCommandEncoderDescriptor`, `GpuDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn create_command_encoder_with_descriptor( this: &GpuDevice, descriptor: &GpuCommandEncoderDescriptor, ) -> GpuCommandEncoder; #[cfg(web_sys_unstable_apis)] #[cfg(all( feature = "GpuComputePipeline", feature = "GpuComputePipelineDescriptor", ))] # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createComputePipeline)] #[doc = "The `createComputePipeline()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createComputePipeline)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuComputePipeline`, `GpuComputePipelineDescriptor`, `GpuDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn create_compute_pipeline( this: &GpuDevice, descriptor: &GpuComputePipelineDescriptor, ) -> GpuComputePipeline; #[cfg(web_sys_unstable_apis)] #[cfg(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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn create_pipeline_layout( this: &GpuDevice, descriptor: &GpuPipelineLayoutDescriptor, ) -> GpuPipelineLayout; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuQuerySet", feature = "GpuQuerySetDescriptor",))] # [wasm_bindgen (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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn create_query_set(this: &GpuDevice, descriptor: &GpuQuerySetDescriptor) -> GpuQuerySet; #[cfg(web_sys_unstable_apis)] #[cfg(all( feature = "GpuRenderBundleEncoder", feature = "GpuRenderBundleEncoderDescriptor", ))] # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createRenderBundleEncoder)] #[doc = "The `createRenderBundleEncoder()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createRenderBundleEncoder)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuRenderBundleEncoder`, `GpuRenderBundleEncoderDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn create_render_bundle_encoder( this: &GpuDevice, descriptor: &GpuRenderBundleEncoderDescriptor, ) -> GpuRenderBundleEncoder; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuRenderPipeline", feature = "GpuRenderPipelineDescriptor",))] # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createRenderPipeline)] #[doc = "The `createRenderPipeline()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createRenderPipeline)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuRenderPipeline`, `GpuRenderPipelineDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn create_render_pipeline( this: &GpuDevice, descriptor: &GpuRenderPipelineDescriptor, ) -> GpuRenderPipeline; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn create_sampler(this: &GpuDevice) -> GpuSampler; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuSampler", feature = "GpuSamplerDescriptor",))] # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createSampler)] #[doc = "The `createSampler()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createSampler)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuSampler`, `GpuSamplerDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn create_sampler_with_descriptor( this: &GpuDevice, descriptor: &GpuSamplerDescriptor, ) -> GpuSampler; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuShaderModule", feature = "GpuShaderModuleDescriptor",))] # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createShaderModule)] #[doc = "The `createShaderModule()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createShaderModule)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuShaderModule`, `GpuShaderModuleDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn create_shader_module( this: &GpuDevice, descriptor: &GpuShaderModuleDescriptor, ) -> GpuShaderModule; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuTexture", feature = "GpuTextureDescriptor",))] # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createTexture)] #[doc = "The `createTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createTexture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuTexture`, `GpuTextureDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn create_texture(this: &GpuDevice, descriptor: &GpuTextureDescriptor) -> GpuTexture; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = 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://rustwasm.github.io/docs/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 (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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn import_external_texture( this: &GpuDevice, descriptor: &GpuExternalTextureDescriptor, ) -> GpuExternalTexture; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = popErrorScope)] #[doc = "The `popErrorScope()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/popErrorScope)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn pop_error_scope(this: &GpuDevice) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuErrorFilter")] # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = pushErrorScope)] #[doc = "The `pushErrorScope()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/pushErrorScope)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuErrorFilter`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn push_error_scope(this: &GpuDevice, filter: GpuErrorFilter); } web-sys-0.3.55/src/features/gen_GpuDeviceDescriptor.rs000064400000000000000000000062130072674642500210570ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUDeviceDescriptor)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuDeviceDescriptor` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuDeviceDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuDeviceDescriptor; } #[cfg(web_sys_unstable_apis)] impl GpuDeviceDescriptor { #[doc = "Construct a new `GpuDeviceDescriptor`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuDeviceDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `label` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuDeviceDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn required_features(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("requiredFeatures"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } #[cfg(web_sys_unstable_apis)] impl Default for GpuDeviceDescriptor { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_GpuDeviceLostInfo.rs000064400000000000000000000044710072674642500205020ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUDeviceLostInfo , typescript_type = "GPUDeviceLostInfo")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuDeviceLostInfo` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDeviceLostInfo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuDeviceLostInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuDeviceLostInfo; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUDeviceLostInfo" , js_name = 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`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn reason(this: &GpuDeviceLostInfo) -> ::wasm_bindgen::JsValue; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUDeviceLostInfo" , js_name = message)] #[doc = "Getter for the `message` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDeviceLostInfo/message)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuDeviceLostInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn message(this: &GpuDeviceLostInfo) -> String; } web-sys-0.3.55/src/features/gen_GpuDeviceLostReason.rs000064400000000000000000000011240072674642500210260ustar 00000000000000#![allow(unused_imports)] 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GpuDeviceLostReason { Destroyed = "destroyed", } web-sys-0.3.55/src/features/gen_GpuErrorFilter.rs000064400000000000000000000011520072674642500200550ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `GpuErrorFilter` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuErrorFilter`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GpuErrorFilter { OutOfMemory = "out-of-memory", Validation = "validation", } web-sys-0.3.55/src/features/gen_GpuExtent3dDict.rs000064400000000000000000000074730072674642500201340ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUExtent3DDict)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuExtent3dDict` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuExtent3dDict`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuExtent3dDict; } #[cfg(web_sys_unstable_apis)] impl GpuExtent3dDict { #[doc = "Construct a new `GpuExtent3dDict`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuExtent3dDict`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(width: u32) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.width(width); ret } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn depth_or_array_layers(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("depthOrArrayLayers"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `height` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuExtent3dDict`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn height(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("height"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `width` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuExtent3dDict`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn width(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("width"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_GpuExternalTexture.rs000064400000000000000000000045010072674642500207620ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuExternalTexture) -> Option; #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_label(this: &GpuExternalTexture, value: Option<&str>); } web-sys-0.3.55/src/features/gen_GpuExternalTextureBindingLayout.rs000064400000000000000000000030460072674642500234560ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } } #[cfg(web_sys_unstable_apis)] impl Default for GpuExternalTextureBindingLayout { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_GpuExternalTextureDescriptor.rs000064400000000000000000000102340072674642500230210ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuExternalTextureDescriptor; } #[cfg(web_sys_unstable_apis)] impl GpuExternalTextureDescriptor { #[cfg(feature = "HtmlVideoElement")] #[doc = "Construct a new `GpuExternalTextureDescriptor`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuExternalTextureDescriptor`, `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(source: &HtmlVideoElement) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.source(source); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `label` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuPredefinedColorSpace")] #[doc = "Change the `colorSpace` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuExternalTextureDescriptor`, `GpuPredefinedColorSpace`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn color_space(&mut self, val: GpuPredefinedColorSpace) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("colorSpace"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "HtmlVideoElement")] #[doc = "Change the `source` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuExternalTextureDescriptor`, `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn source(&mut self, val: &HtmlVideoElement) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("source"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_GpuFeatureName.rs000064400000000000000000000015160072674642500200160ustar 00000000000000#![allow(unused_imports)] 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GpuFeatureName { DepthClamping = "depth-clamping", Depth24unormStencil8 = "depth24unorm-stencil8", Depth32floatStencil8 = "depth32float-stencil8", PipelineStatisticsQuery = "pipeline-statistics-query", TextureCompressionBc = "texture-compression-bc", TimestampQuery = "timestamp-query", } web-sys-0.3.55/src/features/gen_GpuFilterMode.rs000064400000000000000000000011250072674642500176500ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `GpuFilterMode` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuFilterMode`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GpuFilterMode { Nearest = "nearest", Linear = "linear", } web-sys-0.3.55/src/features/gen_GpuFragmentState.rs000064400000000000000000000102420072674642500203620ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuFragmentState; } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new( entry_point: &str, module: &GpuShaderModule, targets: &::wasm_bindgen::JsValue, ) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.entry_point(entry_point); ret.module(module); ret.targets(targets); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `entryPoint` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn entry_point(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("entryPoint"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuShaderModule")] #[doc = "Change the `module` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn module(&mut self, val: &GpuShaderModule) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("module"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn targets(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("targets"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_GpuFrontFace.rs000064400000000000000000000011020072674642500174600ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `GpuFrontFace` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuFrontFace`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GpuFrontFace { Ccw = "ccw", Cw = "cw", } web-sys-0.3.55/src/features/gen_GpuImageCopyBuffer.rs000064400000000000000000000114650072674642500206350ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUImageCopyBuffer)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuImageCopyBuffer` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyBuffer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuImageCopyBuffer; } #[cfg(web_sys_unstable_apis)] impl GpuImageCopyBuffer { #[cfg(feature = "GpuBuffer")] #[doc = "Construct a new `GpuImageCopyBuffer`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuImageCopyBuffer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(buffer: &GpuBuffer) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.buffer(buffer); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `bytesPerRow` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyBuffer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn bytes_per_row(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bytesPerRow"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `offset` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyBuffer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn offset(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("offset"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `rowsPerImage` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyBuffer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn rows_per_image(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("rowsPerImage"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] #[doc = "Change the `buffer` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuImageCopyBuffer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn buffer(&mut self, val: &GpuBuffer) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("buffer"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_GpuImageCopyExternalImage.rs000064400000000000000000000061240072674642500221450ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUImageCopyExternalImage)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuImageCopyExternalImage` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyExternalImage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuImageCopyExternalImage; } #[cfg(web_sys_unstable_apis)] impl GpuImageCopyExternalImage { #[doc = "Construct a new `GpuImageCopyExternalImage`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyExternalImage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(source: &::js_sys::Object) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.source(source); ret } #[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: `GpuImageCopyExternalImage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn origin(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("origin"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `source` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyExternalImage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn source(&mut self, val: &::js_sys::Object) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("source"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_GpuImageCopyTexture.rs000064400000000000000000000116150072674642500210610ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUImageCopyTexture)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuImageCopyTexture` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyTexture`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuImageCopyTexture; } #[cfg(web_sys_unstable_apis)] impl GpuImageCopyTexture { #[cfg(feature = "GpuTexture")] #[doc = "Construct a new `GpuImageCopyTexture`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyTexture`, `GpuTexture`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(texture: &GpuTexture) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.texture(texture); ret } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureAspect")] #[doc = "Change the `aspect` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyTexture`, `GpuTextureAspect`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn aspect(&mut self, val: GpuTextureAspect) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("aspect"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `mipLevel` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyTexture`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn mip_level(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("mipLevel"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `origin` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyTexture`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn origin(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("origin"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTexture")] #[doc = "Change the `texture` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyTexture`, `GpuTexture`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn texture(&mut self, val: &GpuTexture) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("texture"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_GpuImageCopyTextureTagged.rs000064400000000000000000000154570072674642500222050ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUImageCopyTextureTagged)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuImageCopyTextureTagged` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyTextureTagged`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuImageCopyTextureTagged; } #[cfg(web_sys_unstable_apis)] impl GpuImageCopyTextureTagged { #[cfg(feature = "GpuTexture")] #[doc = "Construct a new `GpuImageCopyTextureTagged`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyTextureTagged`, `GpuTexture`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(texture: &GpuTexture) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.texture(texture); ret } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureAspect")] #[doc = "Change the `aspect` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyTextureTagged`, `GpuTextureAspect`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn aspect(&mut self, val: GpuTextureAspect) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("aspect"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `mipLevel` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyTextureTagged`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn mip_level(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("mipLevel"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `origin` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyTextureTagged`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn origin(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("origin"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTexture")] #[doc = "Change the `texture` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyTextureTagged`, `GpuTexture`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn texture(&mut self, val: &GpuTexture) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("texture"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuPredefinedColorSpace")] #[doc = "Change the `colorSpace` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyTextureTagged`, `GpuPredefinedColorSpace`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn color_space(&mut self, val: GpuPredefinedColorSpace) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("colorSpace"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `premultipliedAlpha` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyTextureTagged`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn premultiplied_alpha(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("premultipliedAlpha"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_GpuImageDataLayout.rs000064400000000000000000000077400072674642500206410ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUImageDataLayout)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuImageDataLayout` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuImageDataLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuImageDataLayout; } #[cfg(web_sys_unstable_apis)] impl GpuImageDataLayout { #[doc = "Construct a new `GpuImageDataLayout`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuImageDataLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `bytesPerRow` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuImageDataLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn bytes_per_row(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bytesPerRow"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `offset` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuImageDataLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn offset(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("offset"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `rowsPerImage` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuImageDataLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn rows_per_image(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("rowsPerImage"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } #[cfg(web_sys_unstable_apis)] impl Default for GpuImageDataLayout { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_GpuIndexFormat.rs000064400000000000000000000011260072674642500200370ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `GpuIndexFormat` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuIndexFormat`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GpuIndexFormat { Uint16 = "uint16", Uint32 = "uint32", } web-sys-0.3.55/src/features/gen_GpuLoadOp.rs000064400000000000000000000010540072674642500167750ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `GpuLoadOp` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuLoadOp`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GpuLoadOp { Load = "load", } web-sys-0.3.55/src/features/gen_GpuMapMode.rs000064400000000000000000000034220072674642500171420ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUMapMode , typescript_type = "GPUMapMode")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuMapMode` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUMapMode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuMapMode`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuMapMode; } #[cfg(web_sys_unstable_apis)] impl GpuMapMode { #[cfg(web_sys_unstable_apis)] #[doc = "The `GPUMapMode.READ` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuMapMode`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub const 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: `GpuMapMode`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub const WRITE: u32 = 2u64 as u32; } web-sys-0.3.55/src/features/gen_GpuMultisampleState.rs000064400000000000000000000076660072674642500211330ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuMultisampleState; } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn alpha_to_coverage_enabled(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("alphaToCoverageEnabled"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn count(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("count"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn mask(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("mask"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } #[cfg(web_sys_unstable_apis)] impl Default for GpuMultisampleState { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_GpuObjectDescriptorBase.rs000064400000000000000000000044320072674642500216620ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUObjectDescriptorBase)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuObjectDescriptorBase` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuObjectDescriptorBase`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuObjectDescriptorBase; } #[cfg(web_sys_unstable_apis)] impl GpuObjectDescriptorBase { #[doc = "Construct a new `GpuObjectDescriptorBase`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuObjectDescriptorBase`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `label` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuObjectDescriptorBase`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } #[cfg(web_sys_unstable_apis)] impl Default for GpuObjectDescriptorBase { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_GpuOrigin2dDict.rs000064400000000000000000000057440072674642500201120ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUOrigin2DDict)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuOrigin2dDict` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuOrigin2dDict`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuOrigin2dDict; } #[cfg(web_sys_unstable_apis)] impl GpuOrigin2dDict { #[doc = "Construct a new `GpuOrigin2dDict`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuOrigin2dDict`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `x` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuOrigin2dDict`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn x(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("x"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `y` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuOrigin2dDict`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn y(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("y"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } #[cfg(web_sys_unstable_apis)] impl Default for GpuOrigin2dDict { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_GpuOrigin3dDict.rs000064400000000000000000000074030072674642500201050ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUOrigin3DDict)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuOrigin3dDict` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuOrigin3dDict`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuOrigin3dDict; } #[cfg(web_sys_unstable_apis)] impl GpuOrigin3dDict { #[doc = "Construct a new `GpuOrigin3dDict`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuOrigin3dDict`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `x` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuOrigin3dDict`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn x(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("x"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `y` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuOrigin3dDict`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn y(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("y"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `z` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuOrigin3dDict`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn z(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("z"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } #[cfg(web_sys_unstable_apis)] impl Default for GpuOrigin3dDict { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_GpuOutOfMemoryError.rs000064400000000000000000000015440072674642500210620ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUOutOfMemoryError , typescript_type = "GPUOutOfMemoryError")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuOutOfMemoryError` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUOutOfMemoryError)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuOutOfMemoryError`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuOutOfMemoryError; } web-sys-0.3.55/src/features/gen_GpuPipelineDescriptorBase.rs000064400000000000000000000062760072674642500222310ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUPipelineDescriptorBase)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuPipelineDescriptorBase` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuPipelineDescriptorBase`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuPipelineDescriptorBase; } #[cfg(web_sys_unstable_apis)] impl GpuPipelineDescriptorBase { #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `label` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuPipelineDescriptorBase`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuPipelineLayout")] #[doc = "Change the `layout` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuPipelineDescriptorBase`, `GpuPipelineLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn layout(&mut self, val: &GpuPipelineLayout) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("layout"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } #[cfg(web_sys_unstable_apis)] impl Default for GpuPipelineDescriptorBase { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_GpuPipelineLayout.rs000064400000000000000000000044630072674642500205710ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUPipelineLayout , typescript_type = "GPUPipelineLayout")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuPipelineLayout` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUPipelineLayout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuPipelineLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuPipelineLayout; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUPipelineLayout" , js_name = label)] #[doc = "Getter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUPipelineLayout/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuPipelineLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuPipelineLayout) -> Option; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "GPUPipelineLayout" , js_name = label)] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUPipelineLayout/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuPipelineLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_label(this: &GpuPipelineLayout, value: Option<&str>); } web-sys-0.3.55/src/features/gen_GpuPipelineLayoutDescriptor.rs000064400000000000000000000062700072674642500226260ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUPipelineLayoutDescriptor)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuPipelineLayoutDescriptor` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuPipelineLayoutDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuPipelineLayoutDescriptor; } #[cfg(web_sys_unstable_apis)] impl GpuPipelineLayoutDescriptor { #[doc = "Construct a new `GpuPipelineLayoutDescriptor`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuPipelineLayoutDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(bind_group_layouts: &::wasm_bindgen::JsValue) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.bind_group_layouts(bind_group_layouts); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `label` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuPipelineLayoutDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `bindGroupLayouts` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuPipelineLayoutDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn bind_group_layouts(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bindGroupLayouts"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_GpuPipelineStatisticName.rs000064400000000000000000000015420072674642500220570ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `GpuPipelineStatisticName` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuPipelineStatisticName`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GpuPipelineStatisticName { VertexShaderInvocations = "vertex-shader-invocations", ClipperInvocations = "clipper-invocations", ClipperPrimitivesOut = "clipper-primitives-out", FragmentShaderInvocations = "fragment-shader-invocations", ComputeShaderInvocations = "compute-shader-invocations", } web-sys-0.3.55/src/features/gen_GpuPowerPreference.rs000064400000000000000000000011720072674642500207130ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `GpuPowerPreference` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuPowerPreference`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GpuPowerPreference { LowPower = "low-power", HighPerformance = "high-performance", } web-sys-0.3.55/src/features/gen_GpuPredefinedColorSpace.rs000064400000000000000000000011260072674642500216370ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `GpuPredefinedColorSpace` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuPredefinedColorSpace`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GpuPredefinedColorSpace { Srgb = "srgb", } web-sys-0.3.55/src/features/gen_GpuPrimitiveState.rs000064400000000000000000000137510072674642500205770ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuPrimitiveState; } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `clampDepth` 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn clamp_depth(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("clampDepth"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn cull_mode(&mut self, val: GpuCullMode) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cullMode"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn front_face(&mut self, val: GpuFrontFace) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("frontFace"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn strip_index_format(&mut self, val: GpuIndexFormat) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("stripIndexFormat"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuPrimitiveTopology")] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn topology(&mut self, val: GpuPrimitiveTopology) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("topology"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } #[cfg(web_sys_unstable_apis)] impl Default for GpuPrimitiveState { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_GpuPrimitiveTopology.rs000064400000000000000000000013340072674642500213250ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `GpuPrimitiveTopology` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuPrimitiveTopology`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GpuPrimitiveTopology { PointList = "point-list", LineList = "line-list", LineStrip = "line-strip", TriangleList = "triangle-list", TriangleStrip = "triangle-strip", } web-sys-0.3.55/src/features/gen_GpuProgrammableStage.rs000064400000000000000000000063600072674642500212200ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuProgrammableStage; } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(entry_point: &str, module: &GpuShaderModule) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.entry_point(entry_point); ret.module(module); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `entryPoint` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn entry_point(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("entryPoint"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuShaderModule")] #[doc = "Change the `module` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn module(&mut self, val: &GpuShaderModule) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("module"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_GpuQuerySet.rs000064400000000000000000000056070072674642500174100ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuQuerySet; #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuQuerySet) -> Option; #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_label(this: &GpuQuerySet, value: Option<&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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn destroy(this: &GpuQuerySet); } web-sys-0.3.55/src/features/gen_GpuQuerySetDescriptor.rs000064400000000000000000000115150072674642500214420ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuQuerySetDescriptor; } #[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://rustwasm.github.io/docs/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.count(count); ret.type_(type_); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `label` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn count(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("count"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `pipelineStatistics` 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn pipeline_statistics(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("pipelineStatistics"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn type_(&mut self, val: GpuQueryType) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_GpuQueryType.rs000064400000000000000000000012140072674642500175640ustar 00000000000000#![allow(unused_imports)] 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GpuQueryType { Occlusion = "occlusion", PipelineStatistics = "pipeline-statistics", Timestamp = "timestamp", } web-sys-0.3.55/src/features/gen_GpuQueue.rs000064400000000000000000001047560072674642500167200ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUQueue , typescript_type = "GPUQueue")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuQueue` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuQueue`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuQueue; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUQueue" , js_name = label)] #[doc = "Getter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuQueue`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuQueue) -> Option; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "GPUQueue" , js_name = label)] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuQueue`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_label(this: &GpuQueue, value: Option<&str>); #[cfg(web_sys_unstable_apis)] #[cfg(all( feature = "GpuImageCopyExternalImage", feature = "GpuImageCopyTextureTagged", ))] # [wasm_bindgen (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: `GpuImageCopyExternalImage`, `GpuImageCopyTextureTagged`, `GpuQueue`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn copy_external_image_to_texture_with_u32_sequence( this: &GpuQueue, source: &GpuImageCopyExternalImage, destination: &GpuImageCopyTextureTagged, copy_size: &::wasm_bindgen::JsValue, ); #[cfg(web_sys_unstable_apis)] #[cfg(all( feature = "GpuExtent3dDict", feature = "GpuImageCopyExternalImage", feature = "GpuImageCopyTextureTagged", ))] # [wasm_bindgen (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: `GpuExtent3dDict`, `GpuImageCopyExternalImage`, `GpuImageCopyTextureTagged`, `GpuQueue`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn copy_external_image_to_texture_with_gpu_extent_3d_dict( this: &GpuQueue, source: &GpuImageCopyExternalImage, destination: &GpuImageCopyTextureTagged, copy_size: &GpuExtent3dDict, ); #[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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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 (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://rustwasm.github.io/docs/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, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (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://rustwasm.github.io/docs/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, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_buffer_with_u32_and_u8_array( this: &GpuQueue, buffer: &GpuBuffer, buffer_offset: u32, data: &[u8], ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_buffer_with_f64_and_u8_array( this: &GpuQueue, buffer: &GpuBuffer, buffer_offset: f64, data: &[u8], ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (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://rustwasm.github.io/docs/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, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (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://rustwasm.github.io/docs/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, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (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://rustwasm.github.io/docs/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: &[u8], data_offset: u32, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (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://rustwasm.github.io/docs/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: &[u8], data_offset: u32, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (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://rustwasm.github.io/docs/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, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (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://rustwasm.github.io/docs/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, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (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://rustwasm.github.io/docs/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: &[u8], data_offset: f64, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (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://rustwasm.github.io/docs/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: &[u8], data_offset: f64, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (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://rustwasm.github.io/docs/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, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (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://rustwasm.github.io/docs/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, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (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://rustwasm.github.io/docs/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: &[u8], data_offset: u32, size: u32, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (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://rustwasm.github.io/docs/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: &[u8], data_offset: u32, size: u32, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (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://rustwasm.github.io/docs/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, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (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://rustwasm.github.io/docs/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, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (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://rustwasm.github.io/docs/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: &[u8], data_offset: f64, size: u32, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (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://rustwasm.github.io/docs/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: &[u8], data_offset: f64, size: u32, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (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://rustwasm.github.io/docs/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, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (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://rustwasm.github.io/docs/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, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (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://rustwasm.github.io/docs/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: &[u8], data_offset: u32, size: f64, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (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://rustwasm.github.io/docs/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: &[u8], data_offset: u32, size: f64, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (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://rustwasm.github.io/docs/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, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (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://rustwasm.github.io/docs/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, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (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://rustwasm.github.io/docs/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: &[u8], data_offset: f64, size: f64, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (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://rustwasm.github.io/docs/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: &[u8], data_offset: f64, size: f64, ); #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuImageCopyTexture", feature = "GpuImageDataLayout",))] # [wasm_bindgen (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: `GpuImageCopyTexture`, `GpuImageDataLayout`, `GpuQueue`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_texture_with_buffer_source_and_u32_sequence( this: &GpuQueue, destination: &GpuImageCopyTexture, data: &::js_sys::Object, data_layout: &GpuImageDataLayout, size: &::wasm_bindgen::JsValue, ); #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuImageCopyTexture", feature = "GpuImageDataLayout",))] # [wasm_bindgen (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: `GpuImageCopyTexture`, `GpuImageDataLayout`, `GpuQueue`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_texture_with_u8_array_and_u32_sequence( this: &GpuQueue, destination: &GpuImageCopyTexture, data: &[u8], data_layout: &GpuImageDataLayout, size: &::wasm_bindgen::JsValue, ); #[cfg(web_sys_unstable_apis)] #[cfg(all( feature = "GpuExtent3dDict", feature = "GpuImageCopyTexture", feature = "GpuImageDataLayout", ))] # [wasm_bindgen (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`, `GpuImageCopyTexture`, `GpuImageDataLayout`, `GpuQueue`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_texture_with_buffer_source_and_gpu_extent_3d_dict( this: &GpuQueue, destination: &GpuImageCopyTexture, data: &::js_sys::Object, data_layout: &GpuImageDataLayout, size: &GpuExtent3dDict, ); #[cfg(web_sys_unstable_apis)] #[cfg(all( feature = "GpuExtent3dDict", feature = "GpuImageCopyTexture", feature = "GpuImageDataLayout", ))] # [wasm_bindgen (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`, `GpuImageCopyTexture`, `GpuImageDataLayout`, `GpuQueue`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_texture_with_u8_array_and_gpu_extent_3d_dict( this: &GpuQueue, destination: &GpuImageCopyTexture, data: &[u8], data_layout: &GpuImageDataLayout, size: &GpuExtent3dDict, ); } web-sys-0.3.55/src/features/gen_GpuRenderBundle.rs000064400000000000000000000044270072674642500201770ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPURenderBundle , typescript_type = "GPURenderBundle")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuRenderBundle` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundle`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuRenderBundle; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPURenderBundle" , js_name = label)] #[doc = "Getter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundle/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundle`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuRenderBundle) -> Option; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "GPURenderBundle" , js_name = label)] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundle/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundle`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_label(this: &GpuRenderBundle, value: Option<&str>); } web-sys-0.3.55/src/features/gen_GpuRenderBundleDescriptor.rs000064400000000000000000000044540072674642500222360ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPURenderBundleDescriptor)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuRenderBundleDescriptor` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuRenderBundleDescriptor; } #[cfg(web_sys_unstable_apis)] impl GpuRenderBundleDescriptor { #[doc = "Construct a new `GpuRenderBundleDescriptor`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `label` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } #[cfg(web_sys_unstable_apis)] impl Default for GpuRenderBundleDescriptor { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_GpuRenderBundleEncoder.rs000064400000000000000000001053260072674642500214770ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPURenderBundleEncoder , typescript_type = "GPURenderBundleEncoder")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuRenderBundleEncoder` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuRenderBundleEncoder; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPURenderBundleEncoder" , js_name = label)] #[doc = "Getter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuRenderBundleEncoder) -> Option; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "GPURenderBundleEncoder" , js_name = label)] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_label(this: &GpuRenderBundleEncoder, value: Option<&str>); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuRenderBundle")] # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = finish)] #[doc = "The `finish()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/finish)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundle`, `GpuRenderBundleEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn finish(this: &GpuRenderBundleEncoder) -> GpuRenderBundle; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuRenderBundle", feature = "GpuRenderBundleDescriptor",))] # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = finish)] #[doc = "The `finish()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/finish)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundle`, `GpuRenderBundleDescriptor`, `GpuRenderBundleEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn finish_with_descriptor( this: &GpuRenderBundleEncoder, descriptor: &GpuRenderBundleDescriptor, ) -> GpuRenderBundle; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = insertDebugMarker)] #[doc = "The `insertDebugMarker()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/insertDebugMarker)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn insert_debug_marker(this: &GpuRenderBundleEncoder, marker_label: &str); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = popDebugGroup)] #[doc = "The `popDebugGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/popDebugGroup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn pop_debug_group(this: &GpuRenderBundleEncoder); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = pushDebugGroup)] #[doc = "The `pushDebugGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/pushDebugGroup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn push_debug_group(this: &GpuRenderBundleEncoder, group_label: &str); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBindGroup")] # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setBindGroup)] #[doc = "The `setBindGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setBindGroup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuRenderBundleEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_bind_group(this: &GpuRenderBundleEncoder, index: u32, bind_group: &GpuBindGroup); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBindGroup")] # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setBindGroup)] #[doc = "The `setBindGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setBindGroup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuRenderBundleEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_bind_group_with_u32_sequence( this: &GpuRenderBundleEncoder, index: u32, bind_group: &GpuBindGroup, dynamic_offsets: &::wasm_bindgen::JsValue, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBindGroup")] # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setBindGroup)] #[doc = "The `setBindGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setBindGroup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuRenderBundleEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_bind_group_with_u32_array_and_u32_and_dynamic_offsets_data_length( this: &GpuRenderBundleEncoder, index: u32, bind_group: &GpuBindGroup, dynamic_offsets_data: &[u32], dynamic_offsets_data_start: u32, dynamic_offsets_data_length: u32, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBindGroup")] # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setBindGroup)] #[doc = "The `setBindGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setBindGroup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuRenderBundleEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_bind_group_with_u32_array_and_f64_and_dynamic_offsets_data_length( this: &GpuRenderBundleEncoder, index: u32, bind_group: &GpuBindGroup, dynamic_offsets_data: &[u32], dynamic_offsets_data_start: f64, dynamic_offsets_data_length: u32, ); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = draw)] #[doc = "The `draw()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/draw)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn draw(this: &GpuRenderBundleEncoder, vertex_count: u32); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = draw)] #[doc = "The `draw()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/draw)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn draw_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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn draw_indexed_indirect_with_u32( this: &GpuRenderBundleEncoder, indirect_buffer: &GpuBuffer, indirect_offset: u32, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = drawIndexedIndirect)] #[doc = "The `drawIndexedIndirect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/drawIndexedIndirect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderBundleEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn draw_indexed_indirect_with_f64( this: &GpuRenderBundleEncoder, indirect_buffer: &GpuBuffer, indirect_offset: f64, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = drawIndirect)] #[doc = "The `drawIndirect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/drawIndirect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderBundleEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn draw_indirect_with_u32( this: &GpuRenderBundleEncoder, indirect_buffer: &GpuBuffer, indirect_offset: u32, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = drawIndirect)] #[doc = "The `drawIndirect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/drawIndirect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderBundleEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn draw_indirect_with_f64( this: &GpuRenderBundleEncoder, indirect_buffer: &GpuBuffer, indirect_offset: f64, ); #[cfg(web_sys_unstable_apis)] #[cfg(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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_pipeline(this: &GpuRenderBundleEncoder, pipeline: &GpuRenderPipeline); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setVertexBuffer)] #[doc = "The `setVertexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setVertexBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderBundleEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_vertex_buffer(this: &GpuRenderBundleEncoder, slot: u32, buffer: &GpuBuffer); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setVertexBuffer)] #[doc = "The `setVertexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setVertexBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderBundleEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_vertex_buffer_with_u32( this: &GpuRenderBundleEncoder, slot: u32, buffer: &GpuBuffer, offset: u32, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setVertexBuffer)] #[doc = "The `setVertexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setVertexBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderBundleEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_vertex_buffer_with_f64( this: &GpuRenderBundleEncoder, slot: u32, buffer: &GpuBuffer, offset: f64, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setVertexBuffer)] #[doc = "The `setVertexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setVertexBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderBundleEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_vertex_buffer_with_u32_and_u32( this: &GpuRenderBundleEncoder, slot: u32, buffer: &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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_vertex_buffer_with_f64_and_u32( this: &GpuRenderBundleEncoder, slot: u32, buffer: &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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_vertex_buffer_with_u32_and_f64( this: &GpuRenderBundleEncoder, slot: u32, buffer: &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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_vertex_buffer_with_f64_and_f64( this: &GpuRenderBundleEncoder, slot: u32, buffer: &GpuBuffer, offset: f64, size: f64, ); } web-sys-0.3.55/src/features/gen_GpuRenderBundleEncoderDescriptor.rs000064400000000000000000000154670072674642500235440ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPURenderBundleEncoderDescriptor)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuRenderBundleEncoderDescriptor` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoderDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuRenderBundleEncoderDescriptor; } #[cfg(web_sys_unstable_apis)] impl GpuRenderBundleEncoderDescriptor { #[doc = "Construct a new `GpuRenderBundleEncoderDescriptor`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoderDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(color_formats: &::wasm_bindgen::JsValue) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.color_formats(color_formats); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `label` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoderDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `colorFormats` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoderDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn color_formats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("colorFormats"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureFormat")] #[doc = "Change the `depthStencilFormat` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoderDescriptor`, `GpuTextureFormat`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn depth_stencil_format(&mut self, val: GpuTextureFormat) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("depthStencilFormat"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `sampleCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoderDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn sample_count(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("sampleCount"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn depth_read_only(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("depthReadOnly"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn stencil_read_only(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("stencilReadOnly"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_GpuRenderPassColorAttachment.rs000064400000000000000000000124500072674642500226770ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuRenderPassColorAttachment; } #[cfg(web_sys_unstable_apis)] impl GpuRenderPassColorAttachment { #[cfg(all(feature = "GpuStoreOp", feature = "GpuTextureView",))] #[doc = "Construct a new `GpuRenderPassColorAttachment`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new( load_value: &::wasm_bindgen::JsValue, store_op: GpuStoreOp, view: &GpuTextureView, ) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.load_value(load_value); ret.store_op(store_op); ret.view(view); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `loadValue` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn load_value(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("loadValue"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureView")] #[doc = "Change the `resolveTarget` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn resolve_target(&mut self, val: &GpuTextureView) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("resolveTarget"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuStoreOp")] #[doc = "Change the `storeOp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn store_op(&mut self, val: GpuStoreOp) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("storeOp"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn view(&mut self, val: &GpuTextureView) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("view"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_GpuRenderPassDepthStencilAttachment.rs000064400000000000000000000204560072674642500242140ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuRenderPassDepthStencilAttachment; } #[cfg(web_sys_unstable_apis)] impl GpuRenderPassDepthStencilAttachment { #[cfg(all(feature = "GpuStoreOp", feature = "GpuTextureView",))] #[doc = "Construct a new `GpuRenderPassDepthStencilAttachment`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDepthStencilAttachment`, `GpuStoreOp`, `GpuTextureView`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new( depth_load_value: &::wasm_bindgen::JsValue, depth_store_op: GpuStoreOp, stencil_load_value: &::wasm_bindgen::JsValue, stencil_store_op: GpuStoreOp, view: &GpuTextureView, ) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.depth_load_value(depth_load_value); ret.depth_store_op(depth_store_op); ret.stencil_load_value(stencil_load_value); ret.stencil_store_op(stencil_store_op); ret.view(view); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `depthLoadValue` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn depth_load_value(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("depthLoadValue"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn depth_read_only(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("depthReadOnly"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuStoreOp")] #[doc = "Change the `depthStoreOp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn depth_store_op(&mut self, val: GpuStoreOp) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("depthStoreOp"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `stencilLoadValue` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn stencil_load_value(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("stencilLoadValue"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn stencil_read_only(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("stencilReadOnly"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuStoreOp")] #[doc = "Change the `stencilStoreOp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn stencil_store_op(&mut self, val: GpuStoreOp) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("stencilStoreOp"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn view(&mut self, val: &GpuTextureView) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("view"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_GpuRenderPassDescriptor.rs000064400000000000000000000122060072674642500217250ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPURenderPassDescriptor)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuRenderPassDescriptor` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuRenderPassDescriptor; } #[cfg(web_sys_unstable_apis)] impl GpuRenderPassDescriptor { #[doc = "Construct a new `GpuRenderPassDescriptor`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(color_attachments: &::wasm_bindgen::JsValue) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.color_attachments(color_attachments); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `label` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `colorAttachments` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn color_attachments(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("colorAttachments"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn depth_stencil_attachment( &mut self, val: &GpuRenderPassDepthStencilAttachment, ) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("depthStencilAttachment"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn occlusion_query_set(&mut self, val: &GpuQuerySet) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("occlusionQuerySet"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_GpuRenderPassEncoder.rs000064400000000000000000001243300072674642500211700ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPURenderPassEncoder , typescript_type = "GPURenderPassEncoder")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuRenderPassEncoder` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuRenderPassEncoder; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPURenderPassEncoder" , js_name = label)] #[doc = "Getter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuRenderPassEncoder) -> Option; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "GPURenderPassEncoder" , js_name = label)] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_label(this: &GpuRenderPassEncoder, value: Option<&str>); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn begin_occlusion_query(this: &GpuRenderPassEncoder, query_index: u32); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuQuerySet")] # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = beginPipelineStatisticsQuery)] #[doc = "The `beginPipelineStatisticsQuery()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/beginPipelineStatisticsQuery)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuQuerySet`, `GpuRenderPassEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn begin_pipeline_statistics_query( this: &GpuRenderPassEncoder, query_set: &GpuQuerySet, query_index: u32, ); #[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://rustwasm.github.io/docs/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 = endPass)] #[doc = "The `endPass()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/endPass)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn end_pass(this: &GpuRenderPassEncoder); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = endPipelineStatisticsQuery)] #[doc = "The `endPipelineStatisticsQuery()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/endPipelineStatisticsQuery)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn end_pipeline_statistics_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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn execute_bundles(this: &GpuRenderPassEncoder, bundles: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_blend_constant_with_f64_sequence( this: &GpuRenderPassEncoder, color: &::wasm_bindgen::JsValue, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuColorDict")] # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_blend_constant_with_gpu_color_dict( this: &GpuRenderPassEncoder, color: &GpuColorDict, ); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setScissorRect)] #[doc = "The `setScissorRect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setScissorRect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_scissor_rect(this: &GpuRenderPassEncoder, x: u32, y: u32, width: u32, height: u32); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setStencilReference)] #[doc = "The `setStencilReference()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setStencilReference)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_stencil_reference(this: &GpuRenderPassEncoder, reference: u32); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setViewport)] #[doc = "The `setViewport()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setViewport)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_viewport( this: &GpuRenderPassEncoder, x: f32, y: f32, width: f32, height: f32, min_depth: f32, max_depth: f32, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuQuerySet")] # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = writeTimestamp)] #[doc = "The `writeTimestamp()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/writeTimestamp)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuQuerySet`, `GpuRenderPassEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_timestamp(this: &GpuRenderPassEncoder, query_set: &GpuQuerySet, query_index: u32); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = insertDebugMarker)] #[doc = "The `insertDebugMarker()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/insertDebugMarker)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn insert_debug_marker(this: &GpuRenderPassEncoder, marker_label: &str); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = popDebugGroup)] #[doc = "The `popDebugGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/popDebugGroup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn pop_debug_group(this: &GpuRenderPassEncoder); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = pushDebugGroup)] #[doc = "The `pushDebugGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/pushDebugGroup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn push_debug_group(this: &GpuRenderPassEncoder, group_label: &str); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBindGroup")] # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setBindGroup)] #[doc = "The `setBindGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setBindGroup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuRenderPassEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_bind_group(this: &GpuRenderPassEncoder, index: u32, bind_group: &GpuBindGroup); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBindGroup")] # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setBindGroup)] #[doc = "The `setBindGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setBindGroup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuRenderPassEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_bind_group_with_u32_sequence( this: &GpuRenderPassEncoder, index: u32, bind_group: &GpuBindGroup, dynamic_offsets: &::wasm_bindgen::JsValue, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBindGroup")] # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setBindGroup)] #[doc = "The `setBindGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setBindGroup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuRenderPassEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_bind_group_with_u32_array_and_u32_and_dynamic_offsets_data_length( this: &GpuRenderPassEncoder, index: u32, bind_group: &GpuBindGroup, dynamic_offsets_data: &[u32], dynamic_offsets_data_start: u32, dynamic_offsets_data_length: u32, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBindGroup")] # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setBindGroup)] #[doc = "The `setBindGroup()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setBindGroup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuRenderPassEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_bind_group_with_u32_array_and_f64_and_dynamic_offsets_data_length( this: &GpuRenderPassEncoder, index: u32, bind_group: &GpuBindGroup, dynamic_offsets_data: &[u32], dynamic_offsets_data_start: f64, dynamic_offsets_data_length: u32, ); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = draw)] #[doc = "The `draw()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/draw)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn draw(this: &GpuRenderPassEncoder, vertex_count: u32); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = draw)] #[doc = "The `draw()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/draw)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn draw_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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn draw_indexed_indirect_with_u32( this: &GpuRenderPassEncoder, indirect_buffer: &GpuBuffer, indirect_offset: u32, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = drawIndexedIndirect)] #[doc = "The `drawIndexedIndirect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/drawIndexedIndirect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderPassEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn draw_indexed_indirect_with_f64( this: &GpuRenderPassEncoder, indirect_buffer: &GpuBuffer, indirect_offset: f64, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = drawIndirect)] #[doc = "The `drawIndirect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/drawIndirect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderPassEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn draw_indirect_with_u32( this: &GpuRenderPassEncoder, indirect_buffer: &GpuBuffer, indirect_offset: u32, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = drawIndirect)] #[doc = "The `drawIndirect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/drawIndirect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderPassEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn draw_indirect_with_f64( this: &GpuRenderPassEncoder, indirect_buffer: &GpuBuffer, indirect_offset: f64, ); #[cfg(web_sys_unstable_apis)] #[cfg(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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_pipeline(this: &GpuRenderPassEncoder, pipeline: &GpuRenderPipeline); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setVertexBuffer)] #[doc = "The `setVertexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setVertexBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderPassEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_vertex_buffer(this: &GpuRenderPassEncoder, slot: u32, buffer: &GpuBuffer); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setVertexBuffer)] #[doc = "The `setVertexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setVertexBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderPassEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_vertex_buffer_with_u32( this: &GpuRenderPassEncoder, slot: u32, buffer: &GpuBuffer, offset: u32, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setVertexBuffer)] #[doc = "The `setVertexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setVertexBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderPassEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_vertex_buffer_with_f64( this: &GpuRenderPassEncoder, slot: u32, buffer: &GpuBuffer, offset: f64, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setVertexBuffer)] #[doc = "The `setVertexBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setVertexBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderPassEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_vertex_buffer_with_u32_and_u32( this: &GpuRenderPassEncoder, slot: u32, buffer: &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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_vertex_buffer_with_f64_and_u32( this: &GpuRenderPassEncoder, slot: u32, buffer: &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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_vertex_buffer_with_u32_and_f64( this: &GpuRenderPassEncoder, slot: u32, buffer: &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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_vertex_buffer_with_f64_and_f64( this: &GpuRenderPassEncoder, slot: u32, buffer: &GpuBuffer, offset: f64, size: f64, ); } web-sys-0.3.55/src/features/gen_GpuRenderPassLayout.rs000064400000000000000000000116260072674642500210710ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuRenderPassLayout; } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(color_formats: &::wasm_bindgen::JsValue) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.color_formats(color_formats); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `label` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `colorFormats` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn color_formats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("colorFormats"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureFormat")] #[doc = "Change the `depthStencilFormat` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn depth_stencil_format(&mut self, val: GpuTextureFormat) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("depthStencilFormat"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `sampleCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn sample_count(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("sampleCount"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_GpuRenderPipeline.rs000064400000000000000000000062050072674642500205270ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPURenderPipeline , typescript_type = "GPURenderPipeline")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuRenderPipeline` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPipeline)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPipeline`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuRenderPipeline; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPURenderPipeline" , js_name = label)] #[doc = "Getter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPipeline/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPipeline`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuRenderPipeline) -> Option; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "GPURenderPipeline" , js_name = label)] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPipeline/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPipeline`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_label(this: &GpuRenderPipeline, value: Option<&str>); #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_bind_group_layout(this: &GpuRenderPipeline, index: u32) -> GpuBindGroupLayout; } web-sys-0.3.55/src/features/gen_GpuRenderPipelineDescriptor.rs000064400000000000000000000175360072674642500225770ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPURenderPipelineDescriptor)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuRenderPipelineDescriptor` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPipelineDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuRenderPipelineDescriptor; } #[cfg(web_sys_unstable_apis)] impl GpuRenderPipelineDescriptor { #[cfg(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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(vertex: &GpuVertexState) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.vertex(vertex); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `label` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPipelineDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuPipelineLayout")] #[doc = "Change the `layout` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuPipelineLayout`, `GpuRenderPipelineDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn layout(&mut self, val: &GpuPipelineLayout) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("layout"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn depth_stencil(&mut self, val: &GpuDepthStencilState) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("depthStencil"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn fragment(&mut self, val: &GpuFragmentState) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("fragment"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn multisample(&mut self, val: &GpuMultisampleState) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("multisample"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn primitive(&mut self, val: &GpuPrimitiveState) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("primitive"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn vertex(&mut self, val: &GpuVertexState) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("vertex"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_GpuRequestAdapterOptions.rs000064400000000000000000000064750072674642500221400ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPURequestAdapterOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuRequestAdapterOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRequestAdapterOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuRequestAdapterOptions; } #[cfg(web_sys_unstable_apis)] impl GpuRequestAdapterOptions { #[doc = "Construct a new `GpuRequestAdapterOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRequestAdapterOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `forceSoftware` 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn force_software(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("forceSoftware"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuPowerPreference")] #[doc = "Change the `powerPreference` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuPowerPreference`, `GpuRequestAdapterOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn power_preference(&mut self, val: GpuPowerPreference) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("powerPreference"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } #[cfg(web_sys_unstable_apis)] impl Default for GpuRequestAdapterOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_GpuSampler.rs000064400000000000000000000043210072674642500172220ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUSampler , typescript_type = "GPUSampler")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuSampler` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSampler)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuSampler`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuSampler; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUSampler" , js_name = label)] #[doc = "Getter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSampler/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuSampler`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuSampler) -> Option; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "GPUSampler" , js_name = label)] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSampler/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuSampler`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_label(this: &GpuSampler, value: Option<&str>); } web-sys-0.3.55/src/features/gen_GpuSamplerBindingLayout.rs000064400000000000000000000045600072674642500217200ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuSamplerBindingLayout; } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn type_(&mut self, val: GpuSamplerBindingType) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } #[cfg(web_sys_unstable_apis)] impl Default for GpuSamplerBindingLayout { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_GpuSamplerBindingType.rs000064400000000000000000000012350072674642500213600ustar 00000000000000#![allow(unused_imports)] 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://rustwasm.github.io/docs/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.55/src/features/gen_GpuSamplerDescriptor.rs000064400000000000000000000265200072674642500212660ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUSamplerDescriptor)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuSamplerDescriptor` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuSamplerDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuSamplerDescriptor; } #[cfg(web_sys_unstable_apis)] impl GpuSamplerDescriptor { #[doc = "Construct a new `GpuSamplerDescriptor`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuSamplerDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `label` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuSamplerDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuAddressMode")] #[doc = "Change the `addressModeU` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuAddressMode`, `GpuSamplerDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn address_mode_u(&mut self, val: GpuAddressMode) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("addressModeU"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuAddressMode")] #[doc = "Change the `addressModeV` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuAddressMode`, `GpuSamplerDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn address_mode_v(&mut self, val: GpuAddressMode) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("addressModeV"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuAddressMode")] #[doc = "Change the `addressModeW` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuAddressMode`, `GpuSamplerDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn address_mode_w(&mut self, val: GpuAddressMode) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("addressModeW"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuCompareFunction")] #[doc = "Change the `compare` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCompareFunction`, `GpuSamplerDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn compare(&mut self, val: GpuCompareFunction) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("compare"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `lodMaxClamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuSamplerDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn lod_max_clamp(&mut self, val: f32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("lodMaxClamp"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `lodMinClamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuSamplerDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn lod_min_clamp(&mut self, val: f32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("lodMinClamp"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuFilterMode")] #[doc = "Change the `magFilter` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuFilterMode`, `GpuSamplerDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn mag_filter(&mut self, val: GpuFilterMode) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("magFilter"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_anisotropy(&mut self, val: u16) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("maxAnisotropy"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuFilterMode")] #[doc = "Change the `minFilter` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuFilterMode`, `GpuSamplerDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn min_filter(&mut self, val: GpuFilterMode) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("minFilter"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuFilterMode")] #[doc = "Change the `mipmapFilter` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuFilterMode`, `GpuSamplerDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn mipmap_filter(&mut self, val: GpuFilterMode) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("mipmapFilter"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } #[cfg(web_sys_unstable_apis)] impl Default for GpuSamplerDescriptor { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_GpuShaderModule.rs000064400000000000000000000060050072674642500201740ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUShaderModule , typescript_type = "GPUShaderModule")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuShaderModule` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUShaderModule)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuShaderModule`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuShaderModule; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUShaderModule" , js_name = label)] #[doc = "Getter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUShaderModule/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuShaderModule`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuShaderModule) -> Option; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "GPUShaderModule" , js_name = label)] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUShaderModule/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuShaderModule`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_label(this: &GpuShaderModule, value: Option<&str>); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GPUShaderModule" , js_name = compilationInfo)] #[doc = "The `compilationInfo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUShaderModule/compilationInfo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuShaderModule`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn compilation_info(this: &GpuShaderModule) -> ::js_sys::Promise; } web-sys-0.3.55/src/features/gen_GpuShaderModuleDescriptor.rs000064400000000000000000000075760072674642500222510ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUShaderModuleDescriptor)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuShaderModuleDescriptor` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuShaderModuleDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuShaderModuleDescriptor; } #[cfg(web_sys_unstable_apis)] impl GpuShaderModuleDescriptor { #[doc = "Construct a new `GpuShaderModuleDescriptor`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuShaderModuleDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(code: &str) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.code(code); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `label` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuShaderModuleDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `code` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuShaderModuleDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn code(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("code"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `sourceMap` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuShaderModuleDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn source_map(&mut self, val: &::js_sys::Object) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("sourceMap"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_GpuShaderStage.rs000064400000000000000000000044560072674642500200220ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUShaderStage , typescript_type = "GPUShaderStage")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuShaderStage` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUShaderStage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuShaderStage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuShaderStage; } #[cfg(web_sys_unstable_apis)] impl GpuShaderStage { #[cfg(web_sys_unstable_apis)] #[doc = "The `GPUShaderStage.VERTEX` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuShaderStage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub const VERTEX: u32 = 1u64 as u32; #[cfg(web_sys_unstable_apis)] #[doc = "The `GPUShaderStage.FRAGMENT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuShaderStage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub const FRAGMENT: u32 = 2u64 as u32; #[cfg(web_sys_unstable_apis)] #[doc = "The `GPUShaderStage.COMPUTE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuShaderStage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub const COMPUTE: u32 = 4u64 as u32; } web-sys-0.3.55/src/features/gen_GpuStencilFaceState.rs000064400000000000000000000121430072674642500210010ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuStencilFaceState; } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuCompareFunction")] #[doc = "Change the `compare` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCompareFunction`, `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn compare(&mut self, val: GpuCompareFunction) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("compare"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuStencilOperation")] #[doc = "Change the `depthFailOp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn depth_fail_op(&mut self, val: GpuStencilOperation) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("depthFailOp"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuStencilOperation")] #[doc = "Change the `failOp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn fail_op(&mut self, val: GpuStencilOperation) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("failOp"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuStencilOperation")] #[doc = "Change the `passOp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn pass_op(&mut self, val: GpuStencilOperation) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("passOp"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } #[cfg(web_sys_unstable_apis)] impl Default for GpuStencilFaceState { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_GpuStencilOperation.rs000064400000000000000000000014510072674642500211020ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `GpuStencilOperation` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuStencilOperation`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GpuStencilOperation { Keep = "keep", Zero = "zero", Replace = "replace", Invert = "invert", IncrementClamp = "increment-clamp", DecrementClamp = "decrement-clamp", IncrementWrap = "increment-wrap", DecrementWrap = "decrement-wrap", } web-sys-0.3.55/src/features/gen_GpuStorageTextureAccess.rs000064400000000000000000000011410072674642500217230ustar 00000000000000#![allow(unused_imports)] 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GpuStorageTextureAccess { WriteOnly = "write-only", } web-sys-0.3.55/src/features/gen_GpuStorageTextureBindingLayout.rs000064400000000000000000000104440072674642500233000ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuStorageTextureBindingLayout; } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(format: GpuTextureFormat) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.format(format); ret } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn access(&mut self, val: GpuStorageTextureAccess) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("access"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureFormat")] #[doc = "Change the `format` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn format(&mut self, val: GpuTextureFormat) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("format"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn view_dimension(&mut self, val: GpuTextureViewDimension) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("viewDimension"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_GpuStoreOp.rs000064400000000000000000000011120072674642500172050ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `GpuStoreOp` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuStoreOp`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GpuStoreOp { Store = "store", Discard = "discard", } web-sys-0.3.55/src/features/gen_GpuSupportedFeatures.rs000064400000000000000000000015520072674642500213060ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuSupportedFeatures; } web-sys-0.3.55/src/features/gen_GpuSupportedLimits.rs000064400000000000000000000537060072674642500210010ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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 = 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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 = 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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 = maxInterStageShaderComponents)] #[doc = "Getter for the `maxInterStageShaderComponents` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxInterStageShaderComponents)"] #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_inter_stage_shader_components(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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_compute_workgroups_per_dimension(this: &GpuSupportedLimits) -> u32; } web-sys-0.3.55/src/features/gen_GpuTexture.rs000064400000000000000000000110030072674642500172520ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUTexture , typescript_type = "GPUTexture")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuTexture` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUTexture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTexture`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuTexture; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUTexture" , js_name = label)] #[doc = "Getter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUTexture/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTexture`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuTexture) -> Option; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "GPUTexture" , js_name = label)] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUTexture/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTexture`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_label(this: &GpuTexture, value: Option<&str>); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureView")] # [wasm_bindgen (method , structural , js_class = "GPUTexture" , js_name = createView)] #[doc = "The `createView()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUTexture/createView)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTexture`, `GpuTextureView`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn create_view(this: &GpuTexture) -> GpuTextureView; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuTextureView", feature = "GpuTextureViewDescriptor",))] # [wasm_bindgen (method , structural , js_class = "GPUTexture" , js_name = createView)] #[doc = "The `createView()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUTexture/createView)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTexture`, `GpuTextureView`, `GpuTextureViewDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn create_view_with_descriptor( this: &GpuTexture, descriptor: &GpuTextureViewDescriptor, ) -> GpuTextureView; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GPUTexture" , js_name = destroy)] #[doc = "The `destroy()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUTexture/destroy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTexture`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn destroy(this: &GpuTexture); } web-sys-0.3.55/src/features/gen_GpuTextureAspect.rs000064400000000000000000000011770072674642500204250ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `GpuTextureAspect` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTextureAspect`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GpuTextureAspect { All = "all", StencilOnly = "stencil-only", DepthOnly = "depth-only", } web-sys-0.3.55/src/features/gen_GpuTextureBindingLayout.rs000064400000000000000000000104000072674642500217430ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuTextureBindingLayout; } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn multisampled(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("multisampled"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn sample_type(&mut self, val: GpuTextureSampleType) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("sampleType"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureViewDimension")] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn view_dimension(&mut self, val: GpuTextureViewDimension) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("viewDimension"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } #[cfg(web_sys_unstable_apis)] impl Default for GpuTextureBindingLayout { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_GpuTextureDescriptor.rs000064400000000000000000000167650072674642500213350ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUTextureDescriptor)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuTextureDescriptor` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTextureDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuTextureDescriptor; } #[cfg(web_sys_unstable_apis)] impl GpuTextureDescriptor { #[cfg(feature = "GpuTextureFormat")] #[doc = "Construct a new `GpuTextureDescriptor`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTextureDescriptor`, `GpuTextureFormat`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(format: GpuTextureFormat, size: &::wasm_bindgen::JsValue, usage: u32) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.format(format); ret.size(size); ret.usage(usage); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `label` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTextureDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureDimension")] #[doc = "Change the `dimension` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTextureDescriptor`, `GpuTextureDimension`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn dimension(&mut self, val: GpuTextureDimension) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("dimension"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureFormat")] #[doc = "Change the `format` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTextureDescriptor`, `GpuTextureFormat`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn format(&mut self, val: GpuTextureFormat) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("format"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `mipLevelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTextureDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn mip_level_count(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("mipLevelCount"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `sampleCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTextureDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn sample_count(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("sampleCount"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `size` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTextureDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn size(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("size"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `usage` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTextureDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn usage(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("usage"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_GpuTextureDimension.rs000064400000000000000000000011470072674642500211300ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `GpuTextureDimension` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTextureDimension`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GpuTextureDimension { N1d = "1d", N2d = "2d", N3d = "3d", } web-sys-0.3.55/src/features/gen_GpuTextureFormat.rs000064400000000000000000000045720072674642500204400ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `GpuTextureFormat` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTextureFormat`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GpuTextureFormat { R8unorm = "r8unorm", R8snorm = "r8snorm", R8uint = "r8uint", R8sint = "r8sint", R16uint = "r16uint", R16sint = "r16sint", R16float = "r16float", Rg8unorm = "rg8unorm", Rg8snorm = "rg8snorm", Rg8uint = "rg8uint", Rg8sint = "rg8sint", R32uint = "r32uint", R32sint = "r32sint", R32float = "r32float", Rg16uint = "rg16uint", Rg16sint = "rg16sint", Rg16float = "rg16float", Rgba8unorm = "rgba8unorm", Rgba8unormSrgb = "rgba8unorm-srgb", Rgba8snorm = "rgba8snorm", Rgba8uint = "rgba8uint", Rgba8sint = "rgba8sint", Bgra8unorm = "bgra8unorm", Bgra8unormSrgb = "bgra8unorm-srgb", Rgb9e5ufloat = "rgb9e5ufloat", 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", 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", Depth24unormStencil8 = "depth24unorm-stencil8", Depth32floatStencil8 = "depth32float-stencil8", } web-sys-0.3.55/src/features/gen_GpuTextureSampleType.rs000064400000000000000000000012700072674642500212630ustar 00000000000000#![allow(unused_imports)] 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://rustwasm.github.io/docs/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.55/src/features/gen_GpuTextureUsage.rs000064400000000000000000000065040072674642500202510ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUTextureUsage , typescript_type = "GPUTextureUsage")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuTextureUsage` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUTextureUsage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTextureUsage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuTextureUsage; } #[cfg(web_sys_unstable_apis)] impl GpuTextureUsage { #[cfg(web_sys_unstable_apis)] #[doc = "The `GPUTextureUsage.COPY_SRC` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTextureUsage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub const COPY_SRC: u32 = 1u64 as u32; #[cfg(web_sys_unstable_apis)] #[doc = "The `GPUTextureUsage.COPY_DST` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTextureUsage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub const COPY_DST: u32 = 2u64 as u32; #[cfg(web_sys_unstable_apis)] #[doc = "The `GPUTextureUsage.TEXTURE_BINDING` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTextureUsage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub const 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: `GpuTextureUsage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub const STORAGE_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: `GpuTextureUsage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub const RENDER_ATTACHMENT: u32 = 16u64 as u32; } web-sys-0.3.55/src/features/gen_GpuTextureView.rs000064400000000000000000000044110072674642500201120ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUTextureView , typescript_type = "GPUTextureView")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuTextureView` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUTextureView)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTextureView`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuTextureView; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUTextureView" , js_name = label)] #[doc = "Getter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUTextureView/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTextureView`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuTextureView) -> Option; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "GPUTextureView" , js_name = label)] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUTextureView/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTextureView`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_label(this: &GpuTextureView, value: Option<&str>); } web-sys-0.3.55/src/features/gen_GpuTextureViewDescriptor.rs000064400000000000000000000210050072674642500221470ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUTextureViewDescriptor)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuTextureViewDescriptor` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTextureViewDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuTextureViewDescriptor; } #[cfg(web_sys_unstable_apis)] impl GpuTextureViewDescriptor { #[doc = "Construct a new `GpuTextureViewDescriptor`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTextureViewDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `label` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTextureViewDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `arrayLayerCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTextureViewDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn array_layer_count(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("arrayLayerCount"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureAspect")] #[doc = "Change the `aspect` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTextureAspect`, `GpuTextureViewDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn aspect(&mut self, val: GpuTextureAspect) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("aspect"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `baseArrayLayer` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTextureViewDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn base_array_layer(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("baseArrayLayer"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `baseMipLevel` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTextureViewDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn base_mip_level(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("baseMipLevel"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureViewDimension")] #[doc = "Change the `dimension` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTextureViewDescriptor`, `GpuTextureViewDimension`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn dimension(&mut self, val: GpuTextureViewDimension) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("dimension"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureFormat")] #[doc = "Change the `format` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTextureFormat`, `GpuTextureViewDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn format(&mut self, val: GpuTextureFormat) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("format"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `mipLevelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTextureViewDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn mip_level_count(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("mipLevelCount"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } #[cfg(web_sys_unstable_apis)] impl Default for GpuTextureViewDescriptor { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_GpuTextureViewDimension.rs000064400000000000000000000012770072674642500217670ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `GpuTextureViewDimension` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTextureViewDimension`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GpuTextureViewDimension { N1d = "1d", N2d = "2d", N2dArray = "2d-array", Cube = "cube", CubeArray = "cube-array", N3d = "3d", } web-sys-0.3.55/src/features/gen_GpuUncapturedErrorEvent.rs000064400000000000000000000032220072674642500217440ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = GPUUncapturedErrorEvent , typescript_type = "GPUUncapturedErrorEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuUncapturedErrorEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUUncapturedErrorEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuUncapturedErrorEvent`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuUncapturedErrorEvent; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUUncapturedErrorEvent" , js_name = error)] #[doc = "Getter for the `error` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUUncapturedErrorEvent/error)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuUncapturedErrorEvent`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn error(this: &GpuUncapturedErrorEvent) -> ::js_sys::Object; } web-sys-0.3.55/src/features/gen_GpuUncapturedErrorEventInit.rs000064400000000000000000000115140072674642500225730ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUUncapturedErrorEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuUncapturedErrorEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuUncapturedErrorEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuUncapturedErrorEventInit; } #[cfg(web_sys_unstable_apis)] impl GpuUncapturedErrorEventInit { #[doc = "Construct a new `GpuUncapturedErrorEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuUncapturedErrorEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(error: &::js_sys::Object) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.error(error); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuUncapturedErrorEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuUncapturedErrorEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuUncapturedErrorEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `error` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuUncapturedErrorEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn error(&mut self, val: &::js_sys::Object) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("error"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_GpuValidationError.rs000064400000000000000000000031140072674642500207220ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUValidationError , typescript_type = "GPUValidationError")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuValidationError` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUValidationError)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuValidationError`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuValidationError; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUValidationError" , js_name = message)] #[doc = "Getter for the `message` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUValidationError/message)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuValidationError`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn message(this: &GpuValidationError) -> String; } web-sys-0.3.55/src/features/gen_GpuVertexAttribute.rs000064400000000000000000000101300072674642500207530ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuVertexAttribute; } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(format: GpuVertexFormat, offset: f64, shader_location: u32) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.format(format); ret.offset(offset); ret.shader_location(shader_location); ret } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuVertexFormat")] #[doc = "Change the `format` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn format(&mut self, val: GpuVertexFormat) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("format"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `offset` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn offset(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("offset"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `shaderLocation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn shader_location(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("shaderLocation"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_GpuVertexBufferLayout.rs000064400000000000000000000102110072674642500214170ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuVertexBufferLayout; } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(array_stride: f64, attributes: &::wasm_bindgen::JsValue) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.array_stride(array_stride); ret.attributes(attributes); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `arrayStride` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn array_stride(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("arrayStride"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `attributes` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn attributes(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("attributes"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn step_mode(&mut self, val: GpuVertexStepMode) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("stepMode"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_GpuVertexFormat.rs000064400000000000000000000025250072674642500202510ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `GpuVertexFormat` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuVertexFormat`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GpuVertexFormat { Uint8x2 = "uint8x2", Uint8x4 = "uint8x4", Sint8x2 = "sint8x2", Sint8x4 = "sint8x4", Unorm8x2 = "unorm8x2", Unorm8x4 = "unorm8x4", Snorm8x2 = "snorm8x2", Snorm8x4 = "snorm8x4", Uint16x2 = "uint16x2", Uint16x4 = "uint16x4", Sint16x2 = "sint16x2", Sint16x4 = "sint16x4", Unorm16x2 = "unorm16x2", Unorm16x4 = "unorm16x4", Snorm16x2 = "snorm16x2", Snorm16x4 = "snorm16x4", 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", } web-sys-0.3.55/src/features/gen_GpuVertexState.rs000064400000000000000000000100560072674642500200770ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuVertexState; } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(entry_point: &str, module: &GpuShaderModule) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.entry_point(entry_point); ret.module(module); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `entryPoint` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn entry_point(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("entryPoint"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuShaderModule")] #[doc = "Change the `module` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn module(&mut self, val: &GpuShaderModule) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("module"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn buffers(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("buffers"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_GpuVertexStepMode.rs000064400000000000000000000011430072674642500205340ustar 00000000000000#![allow(unused_imports)] 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GpuVertexStepMode { Vertex = "vertex", Instance = "instance", } web-sys-0.3.55/src/features/gen_GridDeclaration.rs000064400000000000000000000005320072674642500201760ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `GridDeclaration` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GridDeclaration`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GridDeclaration { Explicit = "explicit", Implicit = "implicit", } web-sys-0.3.55/src/features/gen_GridTrackState.rs000064400000000000000000000005500072674642500200160ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `GridTrackState` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GridTrackState`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GridTrackState { Static = "static", Repeat = "repeat", Removed = "removed", } web-sys-0.3.55/src/features/gen_GroupedHistoryEventInit.rs000064400000000000000000000064750072674642500217740ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GroupedHistoryEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GroupedHistoryEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GroupedHistoryEventInit`*"] pub type GroupedHistoryEventInit; } impl GroupedHistoryEventInit { #[doc = "Construct a new `GroupedHistoryEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GroupedHistoryEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GroupedHistoryEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GroupedHistoryEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GroupedHistoryEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "Element")] #[doc = "Change the `otherBrowser` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `GroupedHistoryEventInit`*"] pub fn other_browser(&mut self, val: Option<&Element>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("otherBrowser"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for GroupedHistoryEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_HalfOpenInfoDict.rs000064400000000000000000000027010072674642500202570ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = HalfOpenInfoDict)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HalfOpenInfoDict` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HalfOpenInfoDict`*"] pub type HalfOpenInfoDict; } impl HalfOpenInfoDict { #[doc = "Construct a new `HalfOpenInfoDict`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HalfOpenInfoDict`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `speculative` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HalfOpenInfoDict`*"] pub fn speculative(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("speculative"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for HalfOpenInfoDict { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_HashChangeEvent.rs000064400000000000000000000127530072674642500201460ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = HashChangeEvent , typescript_type = "HashChangeEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HashChangeEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HashChangeEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HashChangeEvent`*"] pub type HashChangeEvent; # [wasm_bindgen (structural , method , getter , js_class = "HashChangeEvent" , js_name = oldURL)] #[doc = "Getter for the `oldURL` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HashChangeEvent/oldURL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HashChangeEvent`*"] pub fn old_url(this: &HashChangeEvent) -> String; # [wasm_bindgen (structural , method , getter , js_class = "HashChangeEvent" , js_name = newURL)] #[doc = "Getter for the `newURL` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HashChangeEvent/newURL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HashChangeEvent`*"] pub fn new_url(this: &HashChangeEvent) -> String; #[wasm_bindgen(catch, constructor, js_class = "HashChangeEvent")] #[doc = "The `new HashChangeEvent(..)` constructor, creating a new instance of `HashChangeEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HashChangeEvent/HashChangeEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HashChangeEvent`*"] pub fn new(type_: &str) -> Result; #[cfg(feature = "HashChangeEventInit")] #[wasm_bindgen(catch, constructor, js_class = "HashChangeEvent")] #[doc = "The `new HashChangeEvent(..)` constructor, creating a new instance of `HashChangeEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HashChangeEvent/HashChangeEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HashChangeEvent`, `HashChangeEventInit`*"] pub fn new_with_event_init_dict( type_: &str, event_init_dict: &HashChangeEventInit, ) -> Result; # [wasm_bindgen (method , structural , js_class = "HashChangeEvent" , js_name = initHashChangeEvent)] #[doc = "The `initHashChangeEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HashChangeEvent/initHashChangeEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HashChangeEvent`*"] pub fn init_hash_change_event(this: &HashChangeEvent, type_arg: &str); # [wasm_bindgen (method , structural , js_class = "HashChangeEvent" , js_name = initHashChangeEvent)] #[doc = "The `initHashChangeEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HashChangeEvent/initHashChangeEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HashChangeEvent`*"] pub fn init_hash_change_event_with_can_bubble_arg( this: &HashChangeEvent, type_arg: &str, can_bubble_arg: bool, ); # [wasm_bindgen (method , structural , js_class = "HashChangeEvent" , js_name = initHashChangeEvent)] #[doc = "The `initHashChangeEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HashChangeEvent/initHashChangeEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HashChangeEvent`*"] pub fn init_hash_change_event_with_can_bubble_arg_and_cancelable_arg( this: &HashChangeEvent, type_arg: &str, can_bubble_arg: bool, cancelable_arg: bool, ); # [wasm_bindgen (method , structural , js_class = "HashChangeEvent" , js_name = initHashChangeEvent)] #[doc = "The `initHashChangeEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HashChangeEvent/initHashChangeEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HashChangeEvent`*"] pub fn init_hash_change_event_with_can_bubble_arg_and_cancelable_arg_and_old_url_arg( this: &HashChangeEvent, type_arg: &str, can_bubble_arg: bool, cancelable_arg: bool, old_url_arg: &str, ); # [wasm_bindgen (method , structural , js_class = "HashChangeEvent" , js_name = initHashChangeEvent)] #[doc = "The `initHashChangeEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HashChangeEvent/initHashChangeEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HashChangeEvent`*"] pub fn init_hash_change_event_with_can_bubble_arg_and_cancelable_arg_and_old_url_arg_and_new_url_arg( this: &HashChangeEvent, type_arg: &str, can_bubble_arg: bool, cancelable_arg: bool, old_url_arg: &str, new_url_arg: &str, ); } web-sys-0.3.55/src/features/gen_HashChangeEventInit.rs000064400000000000000000000073120072674642500207650ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = HashChangeEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HashChangeEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HashChangeEventInit`*"] pub type HashChangeEventInit; } impl HashChangeEventInit { #[doc = "Construct a new `HashChangeEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HashChangeEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HashChangeEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HashChangeEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HashChangeEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `newURL` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HashChangeEventInit`*"] pub fn new_url(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("newURL"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `oldURL` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HashChangeEventInit`*"] pub fn old_url(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("oldURL"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for HashChangeEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_Headers.rs000064400000000000000000000076440072674642500165310ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Headers , typescript_type = "Headers")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Headers` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Headers)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Headers`*"] pub type Headers; #[wasm_bindgen(catch, constructor, js_class = "Headers")] #[doc = "The `new Headers(..)` constructor, creating a new instance of `Headers`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Headers/Headers)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Headers`*"] pub fn new() -> Result; #[wasm_bindgen(catch, constructor, js_class = "Headers")] #[doc = "The `new Headers(..)` constructor, creating a new instance of `Headers`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Headers/Headers)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Headers`*"] pub fn new_with_headers(init: &Headers) -> Result; #[wasm_bindgen(catch, constructor, js_class = "Headers")] #[doc = "The `new Headers(..)` constructor, creating a new instance of `Headers`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Headers/Headers)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Headers`*"] pub fn new_with_str_sequence_sequence( init: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Headers" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Headers/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Headers`*"] pub fn append(this: &Headers, name: &str, value: &str) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Headers" , js_name = delete)] #[doc = "The `delete()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Headers/delete)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Headers`*"] pub fn delete(this: &Headers, name: &str) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Headers" , js_name = get)] #[doc = "The `get()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Headers/get)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Headers`*"] pub fn get(this: &Headers, name: &str) -> Result, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Headers" , js_name = has)] #[doc = "The `has()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Headers/has)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Headers`*"] pub fn has(this: &Headers, name: &str) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Headers" , js_name = set)] #[doc = "The `set()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Headers/set)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Headers`*"] pub fn set(this: &Headers, name: &str, value: &str) -> Result<(), JsValue>; } web-sys-0.3.55/src/features/gen_HeadersGuardEnum.rs000064400000000000000000000006620072674642500203320ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `HeadersGuardEnum` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HeadersGuardEnum`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum HeadersGuardEnum { None = "none", Request = "request", RequestNoCors = "request-no-cors", Response = "response", Immutable = "immutable", } web-sys-0.3.55/src/features/gen_Hid.rs000064400000000000000000000121160072674642500156500ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn request_device(this: &Hid, options: &HidDeviceRequestOptions) -> ::js_sys::Promise; } web-sys-0.3.55/src/features/gen_HidCollectionInfo.rs000064400000000000000000000166160072674642500205110ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type HidCollectionInfo; } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn children(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("children"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn feature_reports(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("featureReports"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn input_reports(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("inputReports"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn output_reports(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("outputReports"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn type_(&mut self, val: u8) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn usage(&mut self, val: u16) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("usage"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn usage_page(&mut self, val: u16) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("usagePage"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } #[cfg(web_sys_unstable_apis)] impl Default for HidCollectionInfo { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_HidConnectionEvent.rs000064400000000000000000000032140072674642500206710ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn device(this: &HidConnectionEvent) -> HidDevice; } web-sys-0.3.55/src/features/gen_HidConnectionEventInit.rs000064400000000000000000000115670072674642500215270ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type HidConnectionEventInit; } #[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://rustwasm.github.io/docs/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.device(device); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn device(&mut self, val: &HidDevice) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("device"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_HidDevice.rs000064400000000000000000000260640072674642500167770ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn product_name(this: &HidDevice) -> 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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 (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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn send_feature_report_with_buffer_source( this: &HidDevice, report_id: u8, data: &::js_sys::Object, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn send_feature_report_with_u8_array( this: &HidDevice, report_id: u8, data: &mut [u8], ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn send_report_with_buffer_source( this: &HidDevice, report_id: u8, data: &::js_sys::Object, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn send_report_with_u8_array( this: &HidDevice, report_id: u8, data: &mut [u8], ) -> ::js_sys::Promise; } web-sys-0.3.55/src/features/gen_HidDeviceFilter.rs000064400000000000000000000114030072674642500201340ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type HidDeviceFilter; } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn product_id(&mut self, val: u16) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("productId"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `usage` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn usage(&mut self, val: u16) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("usage"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn usage_page(&mut self, val: u16) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("usagePage"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn vendor_id(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("vendorId"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } #[cfg(web_sys_unstable_apis)] impl Default for HidDeviceFilter { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_HidDeviceRequestOptions.rs000064400000000000000000000044420072674642500217200ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type HidDeviceRequestOptions; } #[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://rustwasm.github.io/docs/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.filters(filters); ret } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn filters(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("filters"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_HidInputReportEvent.rs000064400000000000000000000061730072674642500210740ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn data(this: &HidInputReportEvent) -> ::js_sys::DataView; } web-sys-0.3.55/src/features/gen_HidInputReportEventInit.rs000064400000000000000000000152210072674642500217120ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type HidInputReportEventInit; } #[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://rustwasm.github.io/docs/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.data(data); ret.device(device); ret.report_id(report_id); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn data(&mut self, val: &::js_sys::DataView) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("data"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn device(&mut self, val: &HidDevice) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("device"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn report_id(&mut self, val: u8) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("reportId"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_HidReportInfo.rs000064400000000000000000000060650072674642500176660ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type HidReportInfo; } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn items(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("items"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn report_id(&mut self, val: u8) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("reportId"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } #[cfg(web_sys_unstable_apis)] impl Default for HidReportInfo { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_HidReportItem.rs000064400000000000000000000631500072674642500176670ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type HidReportItem; } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn has_null(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("hasNull"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn has_preferred_state(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("hasPreferredState"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn is_absolute(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("isAbsolute"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn is_array(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("isArray"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn is_buffered_bytes(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("isBufferedBytes"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn is_constant(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("isConstant"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn is_linear(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("isLinear"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn is_range(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("isRange"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn is_volatile(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("isVolatile"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn logical_maximum(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("logicalMaximum"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn logical_minimum(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("logicalMinimum"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn physical_maximum(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("physicalMaximum"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn physical_minimum(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("physicalMinimum"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn report_count(&mut self, val: u16) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("reportCount"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn report_size(&mut self, val: u16) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("reportSize"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn strings(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("strings"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn unit_exponent(&mut self, val: i8) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("unitExponent"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn unit_factor_current_exponent(&mut self, val: i8) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("unitFactorCurrentExponent"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn unit_factor_length_exponent(&mut self, val: i8) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("unitFactorLengthExponent"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn unit_factor_luminous_intensity_exponent(&mut self, val: i8) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("unitFactorLuminousIntensityExponent"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn unit_factor_mass_exponent(&mut self, val: i8) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("unitFactorMassExponent"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn unit_factor_temperature_exponent(&mut self, val: i8) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("unitFactorTemperatureExponent"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn unit_factor_time_exponent(&mut self, val: i8) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("unitFactorTimeExponent"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn unit_system(&mut self, val: HidUnitSystem) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("unitSystem"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn usage_maximum(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("usageMaximum"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn usage_minimum(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("usageMinimum"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn usages(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("usages"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn wrap(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("wrap"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } #[cfg(web_sys_unstable_apis)] impl Default for HidReportItem { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_HidUnitSystem.rs000064400000000000000000000014050072674642500177140ustar 00000000000000#![allow(unused_imports)] 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://rustwasm.github.io/docs/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.55/src/features/gen_HiddenPluginEventInit.rs000064400000000000000000000052160072674642500213470ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = HiddenPluginEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HiddenPluginEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HiddenPluginEventInit`*"] pub type HiddenPluginEventInit; } impl HiddenPluginEventInit { #[doc = "Construct a new `HiddenPluginEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HiddenPluginEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HiddenPluginEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HiddenPluginEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HiddenPluginEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for HiddenPluginEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_History.rs000064400000000000000000000142470072674642500166140ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = History , typescript_type = "History")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `History` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/History)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `History`*"] pub type History; # [wasm_bindgen (structural , catch , method , getter , js_class = "History" , js_name = length)] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/History/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `History`*"] pub fn length(this: &History) -> Result; #[cfg(feature = "ScrollRestoration")] # [wasm_bindgen (structural , catch , method , getter , js_class = "History" , js_name = scrollRestoration)] #[doc = "Getter for the `scrollRestoration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/History/scrollRestoration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `History`, `ScrollRestoration`*"] pub fn scroll_restoration(this: &History) -> Result; #[cfg(feature = "ScrollRestoration")] # [wasm_bindgen (structural , catch , method , setter , js_class = "History" , js_name = scrollRestoration)] #[doc = "Setter for the `scrollRestoration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/History/scrollRestoration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `History`, `ScrollRestoration`*"] pub fn set_scroll_restoration(this: &History, value: ScrollRestoration) -> Result<(), JsValue>; # [wasm_bindgen (structural , catch , method , getter , js_class = "History" , js_name = state)] #[doc = "Getter for the `state` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/History/state)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `History`*"] pub fn state(this: &History) -> Result<::wasm_bindgen::JsValue, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "History" , js_name = back)] #[doc = "The `back()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/History/back)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `History`*"] pub fn back(this: &History) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "History" , js_name = forward)] #[doc = "The `forward()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/History/forward)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `History`*"] pub fn forward(this: &History) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "History" , js_name = go)] #[doc = "The `go()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/History/go)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `History`*"] pub fn go(this: &History) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "History" , js_name = go)] #[doc = "The `go()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/History/go)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `History`*"] pub fn go_with_delta(this: &History, delta: i32) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "History" , js_name = pushState)] #[doc = "The `pushState()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/History/pushState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `History`*"] pub fn push_state( this: &History, data: &::wasm_bindgen::JsValue, title: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "History" , js_name = pushState)] #[doc = "The `pushState()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/History/pushState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `History`*"] pub fn push_state_with_url( this: &History, data: &::wasm_bindgen::JsValue, title: &str, url: Option<&str>, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "History" , js_name = replaceState)] #[doc = "The `replaceState()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/History/replaceState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `History`*"] pub fn replace_state( this: &History, data: &::wasm_bindgen::JsValue, title: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "History" , js_name = replaceState)] #[doc = "The `replaceState()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/History/replaceState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `History`*"] pub fn replace_state_with_url( this: &History, data: &::wasm_bindgen::JsValue, title: &str, url: Option<&str>, ) -> Result<(), JsValue>; } web-sys-0.3.55/src/features/gen_HitRegionOptions.rs000064400000000000000000000051000072674642500204030ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = HitRegionOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HitRegionOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HitRegionOptions`*"] pub type HitRegionOptions; } impl HitRegionOptions { #[doc = "Construct a new `HitRegionOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HitRegionOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(feature = "Element")] #[doc = "Change the `control` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `HitRegionOptions`*"] pub fn control(&mut self, val: Option<&Element>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("control"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HitRegionOptions`*"] pub fn id(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("id"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "Path2d")] #[doc = "Change the `path` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HitRegionOptions`, `Path2d`*"] pub fn path(&mut self, val: Option<&Path2d>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("path"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for HitRegionOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_HkdfParams.rs000064400000000000000000000060520072674642500171660ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = HkdfParams)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HkdfParams` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HkdfParams`*"] pub type HkdfParams; } impl HkdfParams { #[doc = "Construct a new `HkdfParams`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HkdfParams`*"] pub fn new( name: &str, hash: &::wasm_bindgen::JsValue, info: &::js_sys::Object, salt: &::js_sys::Object, ) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.name(name); ret.hash(hash); ret.info(info); ret.salt(salt); ret } #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HkdfParams`*"] pub fn name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `hash` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HkdfParams`*"] pub fn hash(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("hash"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `info` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HkdfParams`*"] pub fn info(&mut self, val: &::js_sys::Object) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("info"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `salt` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HkdfParams`*"] pub fn salt(&mut self, val: &::js_sys::Object) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("salt"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_HmacDerivedKeyParams.rs000064400000000000000000000047570072674642500211500ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = HmacDerivedKeyParams)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HmacDerivedKeyParams` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HmacDerivedKeyParams`*"] pub type HmacDerivedKeyParams; } impl HmacDerivedKeyParams { #[doc = "Construct a new `HmacDerivedKeyParams`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HmacDerivedKeyParams`*"] pub fn new(name: &str, hash: &::wasm_bindgen::JsValue) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.name(name); ret.hash(hash); ret } #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HmacDerivedKeyParams`*"] pub fn name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `hash` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HmacDerivedKeyParams`*"] pub fn hash(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("hash"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `length` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HmacDerivedKeyParams`*"] pub fn length(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("length"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_HmacImportParams.rs000064400000000000000000000036430072674642500203600ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = HmacImportParams)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HmacImportParams` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HmacImportParams`*"] pub type HmacImportParams; } impl HmacImportParams { #[doc = "Construct a new `HmacImportParams`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HmacImportParams`*"] pub fn new(name: &str, hash: &::wasm_bindgen::JsValue) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.name(name); ret.hash(hash); ret } #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HmacImportParams`*"] pub fn name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `hash` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HmacImportParams`*"] pub fn hash(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("hash"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_HmacKeyAlgorithm.rs000064400000000000000000000051040072674642500203330ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = HmacKeyAlgorithm)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HmacKeyAlgorithm` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HmacKeyAlgorithm`*"] pub type HmacKeyAlgorithm; } impl HmacKeyAlgorithm { #[cfg(feature = "KeyAlgorithm")] #[doc = "Construct a new `HmacKeyAlgorithm`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HmacKeyAlgorithm`, `KeyAlgorithm`*"] pub fn new(name: &str, hash: &KeyAlgorithm, length: u32) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.name(name); ret.hash(hash); ret.length(length); ret } #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HmacKeyAlgorithm`*"] pub fn name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "KeyAlgorithm")] #[doc = "Change the `hash` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HmacKeyAlgorithm`, `KeyAlgorithm`*"] pub fn hash(&mut self, val: &KeyAlgorithm) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("hash"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `length` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HmacKeyAlgorithm`*"] pub fn length(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("length"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_HmacKeyGenParams.rs000064400000000000000000000047070072674642500202720ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = HmacKeyGenParams)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HmacKeyGenParams` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HmacKeyGenParams`*"] pub type HmacKeyGenParams; } impl HmacKeyGenParams { #[doc = "Construct a new `HmacKeyGenParams`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HmacKeyGenParams`*"] pub fn new(name: &str, hash: &::wasm_bindgen::JsValue) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.name(name); ret.hash(hash); ret } #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HmacKeyGenParams`*"] pub fn name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `hash` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HmacKeyGenParams`*"] pub fn hash(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("hash"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `length` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HmacKeyGenParams`*"] pub fn length(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("length"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_HtmlAllCollection.rs000064400000000000000000000062210072674642500205150ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = HTMLAllCollection , typescript_type = "HTMLAllCollection")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlAllCollection` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAllCollection)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAllCollection`*"] pub type HtmlAllCollection; # [wasm_bindgen (structural , method , getter , js_class = "HTMLAllCollection" , js_name = length)] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAllCollection/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAllCollection`*"] pub fn length(this: &HtmlAllCollection) -> u32; #[cfg(feature = "Node")] # [wasm_bindgen (method , structural , js_class = "HTMLAllCollection" , js_name = item)] #[doc = "The `item()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAllCollection/item)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAllCollection`, `Node`*"] pub fn item_with_index(this: &HtmlAllCollection, index: u32) -> Option; # [wasm_bindgen (method , structural , js_class = "HTMLAllCollection" , js_name = item)] #[doc = "The `item()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAllCollection/item)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAllCollection`*"] pub fn item_with_name(this: &HtmlAllCollection, name: &str) -> Option<::js_sys::Object>; # [wasm_bindgen (method , structural , js_class = "HTMLAllCollection" , js_name = namedItem)] #[doc = "The `namedItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAllCollection/namedItem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAllCollection`*"] pub fn named_item(this: &HtmlAllCollection, name: &str) -> Option<::js_sys::Object>; #[cfg(feature = "Node")] #[wasm_bindgen(method, structural, js_class = "HTMLAllCollection", indexing_getter)] #[doc = "Indexing getter."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAllCollection`, `Node`*"] pub fn get_with_index(this: &HtmlAllCollection, index: u32) -> Option; #[wasm_bindgen(method, structural, js_class = "HTMLAllCollection", indexing_getter)] #[doc = "Indexing getter."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAllCollection`*"] pub fn get_with_name(this: &HtmlAllCollection, name: &str) -> Option<::js_sys::Object>; } web-sys-0.3.55/src/features/gen_HtmlAnchorElement.rs000064400000000000000000000552060072674642500205240ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLAnchorElement , typescript_type = "HTMLAnchorElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlAnchorElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub type HtmlAnchorElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLAnchorElement" , js_name = target)] #[doc = "Getter for the `target` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/target)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn target(this: &HtmlAnchorElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = target)] #[doc = "Setter for the `target` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/target)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn set_target(this: &HtmlAnchorElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLAnchorElement" , js_name = download)] #[doc = "Getter for the `download` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/download)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn download(this: &HtmlAnchorElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = download)] #[doc = "Setter for the `download` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/download)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn set_download(this: &HtmlAnchorElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLAnchorElement" , js_name = ping)] #[doc = "Getter for the `ping` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/ping)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn ping(this: &HtmlAnchorElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = ping)] #[doc = "Setter for the `ping` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/ping)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn set_ping(this: &HtmlAnchorElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLAnchorElement" , js_name = rel)] #[doc = "Getter for the `rel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/rel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn rel(this: &HtmlAnchorElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = rel)] #[doc = "Setter for the `rel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/rel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn set_rel(this: &HtmlAnchorElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLAnchorElement" , js_name = referrerPolicy)] #[doc = "Getter for the `referrerPolicy` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/referrerPolicy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn referrer_policy(this: &HtmlAnchorElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = referrerPolicy)] #[doc = "Setter for the `referrerPolicy` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/referrerPolicy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn set_referrer_policy(this: &HtmlAnchorElement, value: &str); #[cfg(feature = "DomTokenList")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLAnchorElement" , js_name = relList)] #[doc = "Getter for the `relList` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/relList)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`, `HtmlAnchorElement`*"] pub fn rel_list(this: &HtmlAnchorElement) -> DomTokenList; # [wasm_bindgen (structural , method , getter , js_class = "HTMLAnchorElement" , js_name = hreflang)] #[doc = "Getter for the `hreflang` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/hreflang)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn hreflang(this: &HtmlAnchorElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = hreflang)] #[doc = "Setter for the `hreflang` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/hreflang)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn set_hreflang(this: &HtmlAnchorElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLAnchorElement" , js_name = type)] #[doc = "Getter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn type_(this: &HtmlAnchorElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = type)] #[doc = "Setter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn set_type(this: &HtmlAnchorElement, value: &str); # [wasm_bindgen (structural , catch , method , getter , js_class = "HTMLAnchorElement" , js_name = text)] #[doc = "Getter for the `text` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/text)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn text(this: &HtmlAnchorElement) -> Result; # [wasm_bindgen (structural , catch , method , setter , js_class = "HTMLAnchorElement" , js_name = text)] #[doc = "Setter for the `text` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/text)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn set_text(this: &HtmlAnchorElement, value: &str) -> Result<(), JsValue>; # [wasm_bindgen (structural , method , getter , js_class = "HTMLAnchorElement" , js_name = coords)] #[doc = "Getter for the `coords` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/coords)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn coords(this: &HtmlAnchorElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = coords)] #[doc = "Setter for the `coords` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/coords)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn set_coords(this: &HtmlAnchorElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLAnchorElement" , js_name = charset)] #[doc = "Getter for the `charset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/charset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn charset(this: &HtmlAnchorElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = charset)] #[doc = "Setter for the `charset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/charset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn set_charset(this: &HtmlAnchorElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLAnchorElement" , js_name = name)] #[doc = "Getter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn name(this: &HtmlAnchorElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = name)] #[doc = "Setter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn set_name(this: &HtmlAnchorElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLAnchorElement" , js_name = rev)] #[doc = "Getter for the `rev` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/rev)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn rev(this: &HtmlAnchorElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = rev)] #[doc = "Setter for the `rev` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/rev)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn set_rev(this: &HtmlAnchorElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLAnchorElement" , js_name = shape)] #[doc = "Getter for the `shape` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/shape)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn shape(this: &HtmlAnchorElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = shape)] #[doc = "Setter for the `shape` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/shape)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn set_shape(this: &HtmlAnchorElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLAnchorElement" , js_name = href)] #[doc = "Getter for the `href` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/href)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn href(this: &HtmlAnchorElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = href)] #[doc = "Setter for the `href` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/href)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn set_href(this: &HtmlAnchorElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLAnchorElement" , js_name = origin)] #[doc = "Getter for the `origin` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/origin)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn origin(this: &HtmlAnchorElement) -> String; # [wasm_bindgen (structural , method , getter , js_class = "HTMLAnchorElement" , js_name = protocol)] #[doc = "Getter for the `protocol` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/protocol)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn protocol(this: &HtmlAnchorElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = protocol)] #[doc = "Setter for the `protocol` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/protocol)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn set_protocol(this: &HtmlAnchorElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLAnchorElement" , js_name = username)] #[doc = "Getter for the `username` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/username)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn username(this: &HtmlAnchorElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = username)] #[doc = "Setter for the `username` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/username)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn set_username(this: &HtmlAnchorElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLAnchorElement" , js_name = password)] #[doc = "Getter for the `password` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/password)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn password(this: &HtmlAnchorElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = password)] #[doc = "Setter for the `password` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/password)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn set_password(this: &HtmlAnchorElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLAnchorElement" , js_name = host)] #[doc = "Getter for the `host` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/host)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn host(this: &HtmlAnchorElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = host)] #[doc = "Setter for the `host` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/host)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn set_host(this: &HtmlAnchorElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLAnchorElement" , js_name = hostname)] #[doc = "Getter for the `hostname` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/hostname)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn hostname(this: &HtmlAnchorElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = hostname)] #[doc = "Setter for the `hostname` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/hostname)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn set_hostname(this: &HtmlAnchorElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLAnchorElement" , js_name = port)] #[doc = "Getter for the `port` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/port)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn port(this: &HtmlAnchorElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = port)] #[doc = "Setter for the `port` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/port)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn set_port(this: &HtmlAnchorElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLAnchorElement" , js_name = pathname)] #[doc = "Getter for the `pathname` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/pathname)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn pathname(this: &HtmlAnchorElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = pathname)] #[doc = "Setter for the `pathname` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/pathname)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn set_pathname(this: &HtmlAnchorElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLAnchorElement" , js_name = search)] #[doc = "Getter for the `search` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/search)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn search(this: &HtmlAnchorElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = search)] #[doc = "Setter for the `search` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/search)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn set_search(this: &HtmlAnchorElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLAnchorElement" , js_name = hash)] #[doc = "Getter for the `hash` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/hash)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn hash(this: &HtmlAnchorElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = hash)] #[doc = "Setter for the `hash` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/hash)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] pub fn set_hash(this: &HtmlAnchorElement, value: &str); } web-sys-0.3.55/src/features/gen_HtmlAreaElement.rs000064400000000000000000000452050072674642500201600ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLAreaElement , typescript_type = "HTMLAreaElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlAreaElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] pub type HtmlAreaElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = alt)] #[doc = "Getter for the `alt` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/alt)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] pub fn alt(this: &HtmlAreaElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = alt)] #[doc = "Setter for the `alt` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/alt)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] pub fn set_alt(this: &HtmlAreaElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = coords)] #[doc = "Getter for the `coords` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/coords)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] pub fn coords(this: &HtmlAreaElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = coords)] #[doc = "Setter for the `coords` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/coords)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] pub fn set_coords(this: &HtmlAreaElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = shape)] #[doc = "Getter for the `shape` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/shape)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] pub fn shape(this: &HtmlAreaElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = shape)] #[doc = "Setter for the `shape` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/shape)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] pub fn set_shape(this: &HtmlAreaElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = target)] #[doc = "Getter for the `target` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/target)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] pub fn target(this: &HtmlAreaElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = target)] #[doc = "Setter for the `target` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/target)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] pub fn set_target(this: &HtmlAreaElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = download)] #[doc = "Getter for the `download` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/download)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] pub fn download(this: &HtmlAreaElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = download)] #[doc = "Setter for the `download` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/download)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] pub fn set_download(this: &HtmlAreaElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = ping)] #[doc = "Getter for the `ping` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/ping)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] pub fn ping(this: &HtmlAreaElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = ping)] #[doc = "Setter for the `ping` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/ping)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] pub fn set_ping(this: &HtmlAreaElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = rel)] #[doc = "Getter for the `rel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/rel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] pub fn rel(this: &HtmlAreaElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = rel)] #[doc = "Setter for the `rel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/rel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] pub fn set_rel(this: &HtmlAreaElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = referrerPolicy)] #[doc = "Getter for the `referrerPolicy` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/referrerPolicy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] pub fn referrer_policy(this: &HtmlAreaElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = referrerPolicy)] #[doc = "Setter for the `referrerPolicy` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/referrerPolicy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] pub fn set_referrer_policy(this: &HtmlAreaElement, value: &str); #[cfg(feature = "DomTokenList")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = relList)] #[doc = "Getter for the `relList` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/relList)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`, `HtmlAreaElement`*"] pub fn rel_list(this: &HtmlAreaElement) -> DomTokenList; # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = noHref)] #[doc = "Getter for the `noHref` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/noHref)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] pub fn no_href(this: &HtmlAreaElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = noHref)] #[doc = "Setter for the `noHref` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/noHref)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] pub fn set_no_href(this: &HtmlAreaElement, value: bool); # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = href)] #[doc = "Getter for the `href` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/href)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] pub fn href(this: &HtmlAreaElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = href)] #[doc = "Setter for the `href` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/href)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] pub fn set_href(this: &HtmlAreaElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = origin)] #[doc = "Getter for the `origin` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/origin)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] pub fn origin(this: &HtmlAreaElement) -> String; # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = protocol)] #[doc = "Getter for the `protocol` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/protocol)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] pub fn protocol(this: &HtmlAreaElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = protocol)] #[doc = "Setter for the `protocol` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/protocol)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] pub fn set_protocol(this: &HtmlAreaElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = username)] #[doc = "Getter for the `username` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/username)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] pub fn username(this: &HtmlAreaElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = username)] #[doc = "Setter for the `username` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/username)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] pub fn set_username(this: &HtmlAreaElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = password)] #[doc = "Getter for the `password` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/password)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] pub fn password(this: &HtmlAreaElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = password)] #[doc = "Setter for the `password` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/password)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] pub fn set_password(this: &HtmlAreaElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = host)] #[doc = "Getter for the `host` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/host)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] pub fn host(this: &HtmlAreaElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = host)] #[doc = "Setter for the `host` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/host)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] pub fn set_host(this: &HtmlAreaElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = hostname)] #[doc = "Getter for the `hostname` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/hostname)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] pub fn hostname(this: &HtmlAreaElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = hostname)] #[doc = "Setter for the `hostname` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/hostname)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] pub fn set_hostname(this: &HtmlAreaElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = port)] #[doc = "Getter for the `port` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/port)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] pub fn port(this: &HtmlAreaElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = port)] #[doc = "Setter for the `port` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/port)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] pub fn set_port(this: &HtmlAreaElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = pathname)] #[doc = "Getter for the `pathname` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/pathname)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] pub fn pathname(this: &HtmlAreaElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = pathname)] #[doc = "Setter for the `pathname` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/pathname)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] pub fn set_pathname(this: &HtmlAreaElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = search)] #[doc = "Getter for the `search` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/search)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] pub fn search(this: &HtmlAreaElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = search)] #[doc = "Setter for the `search` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/search)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] pub fn set_search(this: &HtmlAreaElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = hash)] #[doc = "Getter for the `hash` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/hash)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] pub fn hash(this: &HtmlAreaElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = hash)] #[doc = "Setter for the `hash` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/hash)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] pub fn set_hash(this: &HtmlAreaElement, value: &str); } web-sys-0.3.55/src/features/gen_HtmlAudioElement.rs000064400000000000000000000031630072674642500203460ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlMediaElement , extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLAudioElement , typescript_type = "HTMLAudioElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlAudioElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAudioElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAudioElement`*"] pub type HtmlAudioElement; #[wasm_bindgen(catch, constructor, js_class = "Audio")] #[doc = "The `new HtmlAudioElement(..)` constructor, creating a new instance of `HtmlAudioElement`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAudioElement/HTMLAudioElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAudioElement`*"] pub fn new() -> Result; #[wasm_bindgen(catch, constructor, js_class = "Audio")] #[doc = "The `new HtmlAudioElement(..)` constructor, creating a new instance of `HtmlAudioElement`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAudioElement/HTMLAudioElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAudioElement`*"] pub fn new_with_src(src: &str) -> Result; } web-sys-0.3.55/src/features/gen_HtmlBaseElement.rs000064400000000000000000000046500072674642500201610ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLBaseElement , typescript_type = "HTMLBaseElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlBaseElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBaseElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBaseElement`*"] pub type HtmlBaseElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLBaseElement" , js_name = href)] #[doc = "Getter for the `href` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBaseElement/href)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBaseElement`*"] pub fn href(this: &HtmlBaseElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLBaseElement" , js_name = href)] #[doc = "Setter for the `href` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBaseElement/href)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBaseElement`*"] pub fn set_href(this: &HtmlBaseElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLBaseElement" , js_name = target)] #[doc = "Getter for the `target` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBaseElement/target)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBaseElement`*"] pub fn target(this: &HtmlBaseElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLBaseElement" , js_name = target)] #[doc = "Setter for the `target` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBaseElement/target)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBaseElement`*"] pub fn set_target(this: &HtmlBaseElement, value: &str); } web-sys-0.3.55/src/features/gen_HtmlBodyElement.rs000064400000000000000000000472720072674642500202130ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLBodyElement , typescript_type = "HTMLBodyElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlBodyElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub type HtmlBodyElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLBodyElement" , js_name = text)] #[doc = "Getter for the `text` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/text)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn text(this: &HtmlBodyElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLBodyElement" , js_name = text)] #[doc = "Setter for the `text` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/text)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn set_text(this: &HtmlBodyElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLBodyElement" , js_name = link)] #[doc = "Getter for the `link` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/link)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn link(this: &HtmlBodyElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLBodyElement" , js_name = link)] #[doc = "Setter for the `link` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/link)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn set_link(this: &HtmlBodyElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLBodyElement" , js_name = vLink)] #[doc = "Getter for the `vLink` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/vLink)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn v_link(this: &HtmlBodyElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLBodyElement" , js_name = vLink)] #[doc = "Setter for the `vLink` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/vLink)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn set_v_link(this: &HtmlBodyElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLBodyElement" , js_name = aLink)] #[doc = "Getter for the `aLink` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/aLink)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn a_link(this: &HtmlBodyElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLBodyElement" , js_name = aLink)] #[doc = "Setter for the `aLink` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/aLink)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn set_a_link(this: &HtmlBodyElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLBodyElement" , js_name = bgColor)] #[doc = "Getter for the `bgColor` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/bgColor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn bg_color(this: &HtmlBodyElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLBodyElement" , js_name = bgColor)] #[doc = "Setter for the `bgColor` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/bgColor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn set_bg_color(this: &HtmlBodyElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLBodyElement" , js_name = background)] #[doc = "Getter for the `background` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/background)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn background(this: &HtmlBodyElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLBodyElement" , js_name = background)] #[doc = "Setter for the `background` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/background)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn set_background(this: &HtmlBodyElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLBodyElement" , js_name = onafterprint)] #[doc = "Getter for the `onafterprint` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onafterprint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn onafterprint(this: &HtmlBodyElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLBodyElement" , js_name = onafterprint)] #[doc = "Setter for the `onafterprint` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onafterprint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn set_onafterprint(this: &HtmlBodyElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLBodyElement" , js_name = onbeforeprint)] #[doc = "Getter for the `onbeforeprint` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onbeforeprint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn onbeforeprint(this: &HtmlBodyElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLBodyElement" , js_name = onbeforeprint)] #[doc = "Setter for the `onbeforeprint` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onbeforeprint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn set_onbeforeprint(this: &HtmlBodyElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLBodyElement" , js_name = onbeforeunload)] #[doc = "Getter for the `onbeforeunload` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onbeforeunload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn onbeforeunload(this: &HtmlBodyElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLBodyElement" , js_name = onbeforeunload)] #[doc = "Setter for the `onbeforeunload` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onbeforeunload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn set_onbeforeunload(this: &HtmlBodyElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLBodyElement" , js_name = onhashchange)] #[doc = "Getter for the `onhashchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onhashchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn onhashchange(this: &HtmlBodyElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLBodyElement" , js_name = onhashchange)] #[doc = "Setter for the `onhashchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onhashchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn set_onhashchange(this: &HtmlBodyElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLBodyElement" , js_name = onlanguagechange)] #[doc = "Getter for the `onlanguagechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onlanguagechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn onlanguagechange(this: &HtmlBodyElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLBodyElement" , js_name = onlanguagechange)] #[doc = "Setter for the `onlanguagechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onlanguagechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn set_onlanguagechange(this: &HtmlBodyElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLBodyElement" , js_name = onmessage)] #[doc = "Getter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn onmessage(this: &HtmlBodyElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLBodyElement" , js_name = onmessage)] #[doc = "Setter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn set_onmessage(this: &HtmlBodyElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLBodyElement" , js_name = onmessageerror)] #[doc = "Getter for the `onmessageerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onmessageerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn onmessageerror(this: &HtmlBodyElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLBodyElement" , js_name = onmessageerror)] #[doc = "Setter for the `onmessageerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onmessageerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn set_onmessageerror(this: &HtmlBodyElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLBodyElement" , js_name = onoffline)] #[doc = "Getter for the `onoffline` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onoffline)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn onoffline(this: &HtmlBodyElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLBodyElement" , js_name = onoffline)] #[doc = "Setter for the `onoffline` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onoffline)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn set_onoffline(this: &HtmlBodyElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLBodyElement" , js_name = ononline)] #[doc = "Getter for the `ononline` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/ononline)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn ononline(this: &HtmlBodyElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLBodyElement" , js_name = ononline)] #[doc = "Setter for the `ononline` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/ononline)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn set_ononline(this: &HtmlBodyElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLBodyElement" , js_name = onpagehide)] #[doc = "Getter for the `onpagehide` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onpagehide)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn onpagehide(this: &HtmlBodyElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLBodyElement" , js_name = onpagehide)] #[doc = "Setter for the `onpagehide` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onpagehide)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn set_onpagehide(this: &HtmlBodyElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLBodyElement" , js_name = onpageshow)] #[doc = "Getter for the `onpageshow` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onpageshow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn onpageshow(this: &HtmlBodyElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLBodyElement" , js_name = onpageshow)] #[doc = "Setter for the `onpageshow` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onpageshow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn set_onpageshow(this: &HtmlBodyElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLBodyElement" , js_name = onpopstate)] #[doc = "Getter for the `onpopstate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onpopstate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn onpopstate(this: &HtmlBodyElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLBodyElement" , js_name = onpopstate)] #[doc = "Setter for the `onpopstate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onpopstate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn set_onpopstate(this: &HtmlBodyElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLBodyElement" , js_name = onstorage)] #[doc = "Getter for the `onstorage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onstorage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn onstorage(this: &HtmlBodyElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLBodyElement" , js_name = onstorage)] #[doc = "Setter for the `onstorage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onstorage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn set_onstorage(this: &HtmlBodyElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLBodyElement" , js_name = onunload)] #[doc = "Getter for the `onunload` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onunload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn onunload(this: &HtmlBodyElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLBodyElement" , js_name = onunload)] #[doc = "Setter for the `onunload` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onunload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] pub fn set_onunload(this: &HtmlBodyElement, value: Option<&::js_sys::Function>); } web-sys-0.3.55/src/features/gen_HtmlBrElement.rs000064400000000000000000000027770072674642500176620ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLBRElement , typescript_type = "HTMLBRElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlBrElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBRElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBrElement`*"] pub type HtmlBrElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLBRElement" , js_name = clear)] #[doc = "Getter for the `clear` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBRElement/clear)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBrElement`*"] pub fn clear(this: &HtmlBrElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLBRElement" , js_name = clear)] #[doc = "Setter for the `clear` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBRElement/clear)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBrElement`*"] pub fn set_clear(this: &HtmlBrElement, value: &str); } web-sys-0.3.55/src/features/gen_HtmlButtonElement.rs000064400000000000000000000335640072674642500205700ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLButtonElement , typescript_type = "HTMLButtonElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlButtonElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] pub type HtmlButtonElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = autofocus)] #[doc = "Getter for the `autofocus` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/autofocus)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] pub fn autofocus(this: &HtmlButtonElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLButtonElement" , js_name = autofocus)] #[doc = "Setter for the `autofocus` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/autofocus)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] pub fn set_autofocus(this: &HtmlButtonElement, value: bool); # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = disabled)] #[doc = "Getter for the `disabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/disabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] pub fn disabled(this: &HtmlButtonElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLButtonElement" , js_name = disabled)] #[doc = "Setter for the `disabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/disabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] pub fn set_disabled(this: &HtmlButtonElement, value: bool); #[cfg(feature = "HtmlFormElement")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = form)] #[doc = "Getter for the `form` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/form)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`, `HtmlFormElement`*"] pub fn form(this: &HtmlButtonElement) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = formAction)] #[doc = "Getter for the `formAction` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/formAction)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] pub fn form_action(this: &HtmlButtonElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLButtonElement" , js_name = formAction)] #[doc = "Setter for the `formAction` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/formAction)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] pub fn set_form_action(this: &HtmlButtonElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = formEnctype)] #[doc = "Getter for the `formEnctype` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/formEnctype)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] pub fn form_enctype(this: &HtmlButtonElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLButtonElement" , js_name = formEnctype)] #[doc = "Setter for the `formEnctype` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/formEnctype)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] pub fn set_form_enctype(this: &HtmlButtonElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = formMethod)] #[doc = "Getter for the `formMethod` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/formMethod)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] pub fn form_method(this: &HtmlButtonElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLButtonElement" , js_name = formMethod)] #[doc = "Setter for the `formMethod` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/formMethod)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] pub fn set_form_method(this: &HtmlButtonElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = formNoValidate)] #[doc = "Getter for the `formNoValidate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/formNoValidate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] pub fn form_no_validate(this: &HtmlButtonElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLButtonElement" , js_name = formNoValidate)] #[doc = "Setter for the `formNoValidate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/formNoValidate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] pub fn set_form_no_validate(this: &HtmlButtonElement, value: bool); # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = formTarget)] #[doc = "Getter for the `formTarget` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/formTarget)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] pub fn form_target(this: &HtmlButtonElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLButtonElement" , js_name = formTarget)] #[doc = "Setter for the `formTarget` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/formTarget)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] pub fn set_form_target(this: &HtmlButtonElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = name)] #[doc = "Getter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] pub fn name(this: &HtmlButtonElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLButtonElement" , js_name = name)] #[doc = "Setter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] pub fn set_name(this: &HtmlButtonElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = type)] #[doc = "Getter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] pub fn type_(this: &HtmlButtonElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLButtonElement" , js_name = type)] #[doc = "Setter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] pub fn set_type(this: &HtmlButtonElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = value)] #[doc = "Getter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] pub fn value(this: &HtmlButtonElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLButtonElement" , js_name = value)] #[doc = "Setter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] pub fn set_value(this: &HtmlButtonElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = willValidate)] #[doc = "Getter for the `willValidate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/willValidate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] pub fn will_validate(this: &HtmlButtonElement) -> bool; #[cfg(feature = "ValidityState")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = validity)] #[doc = "Getter for the `validity` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/validity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`, `ValidityState`*"] pub fn validity(this: &HtmlButtonElement) -> ValidityState; # [wasm_bindgen (structural , catch , method , getter , js_class = "HTMLButtonElement" , js_name = validationMessage)] #[doc = "Getter for the `validationMessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/validationMessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] pub fn validation_message(this: &HtmlButtonElement) -> Result; #[cfg(feature = "NodeList")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = labels)] #[doc = "Getter for the `labels` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/labels)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`, `NodeList`*"] pub fn labels(this: &HtmlButtonElement) -> NodeList; # [wasm_bindgen (method , structural , js_class = "HTMLButtonElement" , js_name = checkValidity)] #[doc = "The `checkValidity()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/checkValidity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] pub fn check_validity(this: &HtmlButtonElement) -> bool; # [wasm_bindgen (method , structural , js_class = "HTMLButtonElement" , js_name = reportValidity)] #[doc = "The `reportValidity()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/reportValidity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] pub fn report_validity(this: &HtmlButtonElement) -> bool; # [wasm_bindgen (method , structural , js_class = "HTMLButtonElement" , js_name = setCustomValidity)] #[doc = "The `setCustomValidity()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/setCustomValidity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] pub fn set_custom_validity(this: &HtmlButtonElement, error: &str); } web-sys-0.3.55/src/features/gen_HtmlCanvasElement.rs000064400000000000000000000164370072674642500205300ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLCanvasElement , typescript_type = "HTMLCanvasElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlCanvasElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`*"] pub type HtmlCanvasElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLCanvasElement" , js_name = width)] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`*"] pub fn width(this: &HtmlCanvasElement) -> u32; # [wasm_bindgen (structural , method , setter , js_class = "HTMLCanvasElement" , js_name = width)] #[doc = "Setter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`*"] pub fn set_width(this: &HtmlCanvasElement, value: u32); # [wasm_bindgen (structural , method , getter , js_class = "HTMLCanvasElement" , js_name = height)] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`*"] pub fn height(this: &HtmlCanvasElement) -> u32; # [wasm_bindgen (structural , method , setter , js_class = "HTMLCanvasElement" , js_name = height)] #[doc = "Setter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`*"] pub fn set_height(this: &HtmlCanvasElement, value: u32); # [wasm_bindgen (catch , method , structural , js_class = "HTMLCanvasElement" , js_name = getContext)] #[doc = "The `getContext()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/getContext)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`*"] pub fn get_context( this: &HtmlCanvasElement, context_id: &str, ) -> Result, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "HTMLCanvasElement" , js_name = getContext)] #[doc = "The `getContext()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/getContext)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`*"] pub fn get_context_with_context_options( this: &HtmlCanvasElement, context_id: &str, context_options: &::wasm_bindgen::JsValue, ) -> Result, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "HTMLCanvasElement" , js_name = toBlob)] #[doc = "The `toBlob()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toBlob)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`*"] pub fn to_blob(this: &HtmlCanvasElement, callback: &::js_sys::Function) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "HTMLCanvasElement" , js_name = toBlob)] #[doc = "The `toBlob()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toBlob)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`*"] pub fn to_blob_with_type( this: &HtmlCanvasElement, callback: &::js_sys::Function, type_: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "HTMLCanvasElement" , js_name = toBlob)] #[doc = "The `toBlob()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toBlob)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`*"] pub fn to_blob_with_type_and_encoder_options( this: &HtmlCanvasElement, callback: &::js_sys::Function, type_: &str, encoder_options: &::wasm_bindgen::JsValue, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "HTMLCanvasElement" , js_name = toDataURL)] #[doc = "The `toDataURL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toDataURL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`*"] pub fn to_data_url(this: &HtmlCanvasElement) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "HTMLCanvasElement" , js_name = toDataURL)] #[doc = "The `toDataURL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toDataURL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`*"] pub fn to_data_url_with_type(this: &HtmlCanvasElement, type_: &str) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "HTMLCanvasElement" , js_name = toDataURL)] #[doc = "The `toDataURL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toDataURL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`*"] pub fn to_data_url_with_type_and_encoder_options( this: &HtmlCanvasElement, type_: &str, encoder_options: &::wasm_bindgen::JsValue, ) -> Result; #[cfg(feature = "OffscreenCanvas")] # [wasm_bindgen (catch , method , structural , js_class = "HTMLCanvasElement" , js_name = transferControlToOffscreen)] #[doc = "The `transferControlToOffscreen()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/transferControlToOffscreen)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `OffscreenCanvas`*"] pub fn transfer_control_to_offscreen( this: &HtmlCanvasElement, ) -> Result; } web-sys-0.3.55/src/features/gen_HtmlCollection.rs000064400000000000000000000053050072674642500200660ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = HTMLCollection , typescript_type = "HTMLCollection")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlCollection` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCollection)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`*"] pub type HtmlCollection; # [wasm_bindgen (structural , method , getter , js_class = "HTMLCollection" , js_name = length)] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCollection/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`*"] pub fn length(this: &HtmlCollection) -> u32; #[cfg(feature = "Element")] # [wasm_bindgen (method , structural , js_class = "HTMLCollection" , js_name = item)] #[doc = "The `item()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCollection/item)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `HtmlCollection`*"] pub fn item(this: &HtmlCollection, index: u32) -> Option; #[cfg(feature = "Element")] # [wasm_bindgen (method , structural , js_class = "HTMLCollection" , js_name = namedItem)] #[doc = "The `namedItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCollection/namedItem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `HtmlCollection`*"] pub fn named_item(this: &HtmlCollection, name: &str) -> Option; #[cfg(feature = "Element")] #[wasm_bindgen(method, structural, js_class = "HTMLCollection", indexing_getter)] #[doc = "Indexing getter."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `HtmlCollection`*"] pub fn get_with_index(this: &HtmlCollection, index: u32) -> Option; #[cfg(feature = "Element")] #[wasm_bindgen(method, structural, js_class = "HTMLCollection", indexing_getter)] #[doc = "Indexing getter."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `HtmlCollection`*"] pub fn get_with_name(this: &HtmlCollection, name: &str) -> Option; } web-sys-0.3.55/src/features/gen_HtmlDListElement.rs000064400000000000000000000030670072674642500203270ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLDListElement , typescript_type = "HTMLDListElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlDListElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDListElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDListElement`*"] pub type HtmlDListElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLDListElement" , js_name = compact)] #[doc = "Getter for the `compact` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDListElement/compact)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDListElement`*"] pub fn compact(this: &HtmlDListElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLDListElement" , js_name = compact)] #[doc = "Setter for the `compact` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDListElement/compact)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDListElement`*"] pub fn set_compact(this: &HtmlDListElement, value: bool); } web-sys-0.3.55/src/features/gen_HtmlDataElement.rs000064400000000000000000000030330072674642500201520ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLDataElement , typescript_type = "HTMLDataElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlDataElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDataElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDataElement`*"] pub type HtmlDataElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLDataElement" , js_name = value)] #[doc = "Getter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDataElement/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDataElement`*"] pub fn value(this: &HtmlDataElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLDataElement" , js_name = value)] #[doc = "Setter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDataElement/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDataElement`*"] pub fn set_value(this: &HtmlDataElement, value: &str); } web-sys-0.3.55/src/features/gen_HtmlDataListElement.rs000064400000000000000000000023020072674642500210040ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLDataListElement , typescript_type = "HTMLDataListElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlDataListElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDataListElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDataListElement`*"] pub type HtmlDataListElement; #[cfg(feature = "HtmlCollection")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLDataListElement" , js_name = options)] #[doc = "Getter for the `options` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDataListElement/options)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`, `HtmlDataListElement`*"] pub fn options(this: &HtmlDataListElement) -> HtmlCollection; } web-sys-0.3.55/src/features/gen_HtmlDetailsElement.rs000064400000000000000000000030730072674642500206720ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLDetailsElement , typescript_type = "HTMLDetailsElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlDetailsElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDetailsElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDetailsElement`*"] pub type HtmlDetailsElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLDetailsElement" , js_name = open)] #[doc = "Getter for the `open` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDetailsElement/open)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDetailsElement`*"] pub fn open(this: &HtmlDetailsElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLDetailsElement" , js_name = open)] #[doc = "Setter for the `open` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDetailsElement/open)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDetailsElement`*"] pub fn set_open(this: &HtmlDetailsElement, value: bool); } web-sys-0.3.55/src/features/gen_HtmlDialogElement.rs000064400000000000000000000103220072674642500204770ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLDialogElement , typescript_type = "HTMLDialogElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlDialogElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDialogElement`*"] pub type HtmlDialogElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLDialogElement" , js_name = open)] #[doc = "Getter for the `open` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/open)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDialogElement`*"] pub fn open(this: &HtmlDialogElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLDialogElement" , js_name = open)] #[doc = "Setter for the `open` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/open)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDialogElement`*"] pub fn set_open(this: &HtmlDialogElement, value: bool); # [wasm_bindgen (structural , method , getter , js_class = "HTMLDialogElement" , js_name = returnValue)] #[doc = "Getter for the `returnValue` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/returnValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDialogElement`*"] pub fn return_value(this: &HtmlDialogElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLDialogElement" , js_name = returnValue)] #[doc = "Setter for the `returnValue` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/returnValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDialogElement`*"] pub fn set_return_value(this: &HtmlDialogElement, value: &str); # [wasm_bindgen (method , structural , js_class = "HTMLDialogElement" , js_name = close)] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDialogElement`*"] pub fn close(this: &HtmlDialogElement); # [wasm_bindgen (method , structural , js_class = "HTMLDialogElement" , js_name = close)] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDialogElement`*"] pub fn close_with_return_value(this: &HtmlDialogElement, return_value: &str); # [wasm_bindgen (method , structural , js_class = "HTMLDialogElement" , js_name = show)] #[doc = "The `show()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/show)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDialogElement`*"] pub fn show(this: &HtmlDialogElement); # [wasm_bindgen (catch , method , structural , js_class = "HTMLDialogElement" , js_name = showModal)] #[doc = "The `showModal()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/showModal)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDialogElement`*"] pub fn show_modal(this: &HtmlDialogElement) -> Result<(), JsValue>; } web-sys-0.3.55/src/features/gen_HtmlDirectoryElement.rs000064400000000000000000000031570072674642500212540ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLDirectoryElement , typescript_type = "HTMLDirectoryElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlDirectoryElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDirectoryElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDirectoryElement`*"] pub type HtmlDirectoryElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLDirectoryElement" , js_name = compact)] #[doc = "Getter for the `compact` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDirectoryElement/compact)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDirectoryElement`*"] pub fn compact(this: &HtmlDirectoryElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLDirectoryElement" , js_name = compact)] #[doc = "Setter for the `compact` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDirectoryElement/compact)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDirectoryElement`*"] pub fn set_compact(this: &HtmlDirectoryElement, value: bool); } web-sys-0.3.55/src/features/gen_HtmlDivElement.rs000064400000000000000000000030150072674642500200230ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLDivElement , typescript_type = "HTMLDivElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlDivElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDivElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDivElement`*"] pub type HtmlDivElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLDivElement" , js_name = align)] #[doc = "Getter for the `align` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDivElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDivElement`*"] pub fn align(this: &HtmlDivElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLDivElement" , js_name = align)] #[doc = "Setter for the `align` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDivElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDivElement`*"] pub fn set_align(this: &HtmlDivElement, value: &str); } web-sys-0.3.55/src/features/gen_HtmlDocument.rs000064400000000000000000000634240072674642500175570ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Document , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLDocument , typescript_type = "HTMLDocument")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlDocument` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub type HtmlDocument; # [wasm_bindgen (structural , method , getter , js_class = "HTMLDocument" , js_name = domain)] #[doc = "Getter for the `domain` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/domain)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn domain(this: &HtmlDocument) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLDocument" , js_name = domain)] #[doc = "Setter for the `domain` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/domain)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn set_domain(this: &HtmlDocument, value: &str); # [wasm_bindgen (structural , catch , method , getter , js_class = "HTMLDocument" , js_name = cookie)] #[doc = "Getter for the `cookie` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/cookie)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn cookie(this: &HtmlDocument) -> Result; # [wasm_bindgen (structural , catch , method , setter , js_class = "HTMLDocument" , js_name = cookie)] #[doc = "Setter for the `cookie` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/cookie)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn set_cookie(this: &HtmlDocument, value: &str) -> Result<(), JsValue>; # [wasm_bindgen (structural , method , getter , js_class = "HTMLDocument" , js_name = designMode)] #[doc = "Getter for the `designMode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/designMode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn design_mode(this: &HtmlDocument) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLDocument" , js_name = designMode)] #[doc = "Setter for the `designMode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/designMode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn set_design_mode(this: &HtmlDocument, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLDocument" , js_name = fgColor)] #[doc = "Getter for the `fgColor` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/fgColor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn fg_color(this: &HtmlDocument) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLDocument" , js_name = fgColor)] #[doc = "Setter for the `fgColor` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/fgColor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn set_fg_color(this: &HtmlDocument, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLDocument" , js_name = linkColor)] #[doc = "Getter for the `linkColor` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/linkColor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn link_color(this: &HtmlDocument) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLDocument" , js_name = linkColor)] #[doc = "Setter for the `linkColor` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/linkColor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn set_link_color(this: &HtmlDocument, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLDocument" , js_name = vlinkColor)] #[doc = "Getter for the `vlinkColor` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/vlinkColor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn vlink_color(this: &HtmlDocument) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLDocument" , js_name = vlinkColor)] #[doc = "Setter for the `vlinkColor` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/vlinkColor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn set_vlink_color(this: &HtmlDocument, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLDocument" , js_name = alinkColor)] #[doc = "Getter for the `alinkColor` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/alinkColor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn alink_color(this: &HtmlDocument) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLDocument" , js_name = alinkColor)] #[doc = "Setter for the `alinkColor` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/alinkColor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn set_alink_color(this: &HtmlDocument, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLDocument" , js_name = bgColor)] #[doc = "Getter for the `bgColor` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/bgColor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn bg_color(this: &HtmlDocument) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLDocument" , js_name = bgColor)] #[doc = "Setter for the `bgColor` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/bgColor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn set_bg_color(this: &HtmlDocument, value: &str); #[cfg(feature = "HtmlAllCollection")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLDocument" , js_name = all)] #[doc = "Getter for the `all` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/all)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAllCollection`, `HtmlDocument`*"] pub fn all(this: &HtmlDocument) -> HtmlAllCollection; # [wasm_bindgen (method , structural , js_class = "HTMLDocument" , js_name = captureEvents)] #[doc = "The `captureEvents()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/captureEvents)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn capture_events(this: &HtmlDocument); # [wasm_bindgen (method , structural , js_class = "HTMLDocument" , js_name = clear)] #[doc = "The `clear()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/clear)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn clear(this: &HtmlDocument); # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = close)] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn close(this: &HtmlDocument) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = execCommand)] #[doc = "The `execCommand()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/execCommand)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn exec_command(this: &HtmlDocument, command_id: &str) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = execCommand)] #[doc = "The `execCommand()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/execCommand)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn exec_command_with_show_ui( this: &HtmlDocument, command_id: &str, show_ui: bool, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = execCommand)] #[doc = "The `execCommand()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/execCommand)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn exec_command_with_show_ui_and_value( this: &HtmlDocument, command_id: &str, show_ui: bool, value: &str, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = open)] #[doc = "The `open()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/open)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn open(this: &HtmlDocument) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = open)] #[doc = "The `open()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/open)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn open_with_type(this: &HtmlDocument, type_: &str) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = open)] #[doc = "The `open()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/open)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn open_with_type_and_replace( this: &HtmlDocument, type_: &str, replace: &str, ) -> Result; #[cfg(feature = "Window")] # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = open)] #[doc = "The `open()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/open)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`, `Window`*"] pub fn open_with_url_and_name_and_features( this: &HtmlDocument, url: &str, name: &str, features: &str, ) -> Result, JsValue>; #[cfg(feature = "Window")] # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = open)] #[doc = "The `open()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/open)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`, `Window`*"] pub fn open_with_url_and_name_and_features_and_replace( this: &HtmlDocument, url: &str, name: &str, features: &str, replace: bool, ) -> Result, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = queryCommandEnabled)] #[doc = "The `queryCommandEnabled()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/queryCommandEnabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn query_command_enabled(this: &HtmlDocument, command_id: &str) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = queryCommandIndeterm)] #[doc = "The `queryCommandIndeterm()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/queryCommandIndeterm)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn query_command_indeterm(this: &HtmlDocument, command_id: &str) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = queryCommandState)] #[doc = "The `queryCommandState()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/queryCommandState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn query_command_state(this: &HtmlDocument, command_id: &str) -> Result; # [wasm_bindgen (method , structural , js_class = "HTMLDocument" , js_name = queryCommandSupported)] #[doc = "The `queryCommandSupported()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/queryCommandSupported)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn query_command_supported(this: &HtmlDocument, command_id: &str) -> bool; # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = queryCommandValue)] #[doc = "The `queryCommandValue()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/queryCommandValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn query_command_value(this: &HtmlDocument, command_id: &str) -> Result; # [wasm_bindgen (method , structural , js_class = "HTMLDocument" , js_name = releaseEvents)] #[doc = "The `releaseEvents()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/releaseEvents)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn release_events(this: &HtmlDocument); # [wasm_bindgen (catch , method , structural , variadic , js_class = "HTMLDocument" , js_name = write)] #[doc = "The `write()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/write)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn write(this: &HtmlDocument, text: &::js_sys::Array) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = write)] #[doc = "The `write()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/write)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn write_0(this: &HtmlDocument) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = write)] #[doc = "The `write()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/write)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn write_1(this: &HtmlDocument, text_1: &str) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = write)] #[doc = "The `write()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/write)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn write_2(this: &HtmlDocument, text_1: &str, text_2: &str) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = write)] #[doc = "The `write()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/write)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn write_3( this: &HtmlDocument, text_1: &str, text_2: &str, text_3: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = write)] #[doc = "The `write()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/write)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn write_4( this: &HtmlDocument, text_1: &str, text_2: &str, text_3: &str, text_4: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = write)] #[doc = "The `write()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/write)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn write_5( this: &HtmlDocument, text_1: &str, text_2: &str, text_3: &str, text_4: &str, text_5: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = write)] #[doc = "The `write()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/write)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn write_6( this: &HtmlDocument, text_1: &str, text_2: &str, text_3: &str, text_4: &str, text_5: &str, text_6: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = write)] #[doc = "The `write()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/write)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn write_7( this: &HtmlDocument, text_1: &str, text_2: &str, text_3: &str, text_4: &str, text_5: &str, text_6: &str, text_7: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , variadic , js_class = "HTMLDocument" , js_name = writeln)] #[doc = "The `writeln()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/writeln)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn writeln(this: &HtmlDocument, text: &::js_sys::Array) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = writeln)] #[doc = "The `writeln()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/writeln)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn writeln_0(this: &HtmlDocument) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = writeln)] #[doc = "The `writeln()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/writeln)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn writeln_1(this: &HtmlDocument, text_1: &str) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = writeln)] #[doc = "The `writeln()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/writeln)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn writeln_2(this: &HtmlDocument, text_1: &str, text_2: &str) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = writeln)] #[doc = "The `writeln()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/writeln)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn writeln_3( this: &HtmlDocument, text_1: &str, text_2: &str, text_3: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = writeln)] #[doc = "The `writeln()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/writeln)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn writeln_4( this: &HtmlDocument, text_1: &str, text_2: &str, text_3: &str, text_4: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = writeln)] #[doc = "The `writeln()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/writeln)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn writeln_5( this: &HtmlDocument, text_1: &str, text_2: &str, text_3: &str, text_4: &str, text_5: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = writeln)] #[doc = "The `writeln()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/writeln)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn writeln_6( this: &HtmlDocument, text_1: &str, text_2: &str, text_3: &str, text_4: &str, text_5: &str, text_6: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = writeln)] #[doc = "The `writeln()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/writeln)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn writeln_7( this: &HtmlDocument, text_1: &str, text_2: &str, text_3: &str, text_4: &str, text_5: &str, text_6: &str, text_7: &str, ) -> Result<(), JsValue>; #[wasm_bindgen(catch, method, structural, js_class = "HTMLDocument", indexing_getter)] #[doc = "Indexing getter."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] pub fn get(this: &HtmlDocument, name: &str) -> Result<::js_sys::Object, JsValue>; } web-sys-0.3.55/src/features/gen_HtmlElement.rs000064400000000000000000003133230072674642500173660ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLElement , typescript_type = "HTMLElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub type HtmlElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = title)] #[doc = "Getter for the `title` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/title)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn title(this: &HtmlElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = title)] #[doc = "Setter for the `title` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/title)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_title(this: &HtmlElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = 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) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = lang)] #[doc = "Setter for the `lang` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/lang)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_lang(this: &HtmlElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = dir)] #[doc = "Getter for the `dir` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/dir)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn dir(this: &HtmlElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = dir)] #[doc = "Setter for the `dir` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/dir)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_dir(this: &HtmlElement, value: &str); #[cfg(feature = "DomStringMap")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = dataset)] #[doc = "Getter for the `dataset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/dataset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomStringMap`, `HtmlElement`*"] pub fn dataset(this: &HtmlElement) -> DomStringMap; # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = innerText)] #[doc = "Getter for the `innerText` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/innerText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn inner_text(this: &HtmlElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = innerText)] #[doc = "Setter for the `innerText` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/innerText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_inner_text(this: &HtmlElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = hidden)] #[doc = "Getter for the `hidden` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/hidden)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn hidden(this: &HtmlElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = hidden)] #[doc = "Setter for the `hidden` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/hidden)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_hidden(this: &HtmlElement, value: bool); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = tabIndex)] #[doc = "Getter for the `tabIndex` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/tabIndex)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn tab_index(this: &HtmlElement) -> i32; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = tabIndex)] #[doc = "Setter for the `tabIndex` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/tabIndex)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_tab_index(this: &HtmlElement, value: i32); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = accessKey)] #[doc = "Getter for the `accessKey` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/accessKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn access_key(this: &HtmlElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = accessKey)] #[doc = "Setter for the `accessKey` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/accessKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_access_key(this: &HtmlElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = accessKeyLabel)] #[doc = "Getter for the `accessKeyLabel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/accessKeyLabel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn access_key_label(this: &HtmlElement) -> String; # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = draggable)] #[doc = "Getter for the `draggable` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/draggable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn draggable(this: &HtmlElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = draggable)] #[doc = "Setter for the `draggable` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/draggable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_draggable(this: &HtmlElement, value: bool); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = contentEditable)] #[doc = "Getter for the `contentEditable` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/contentEditable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn content_editable(this: &HtmlElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = contentEditable)] #[doc = "Setter for the `contentEditable` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/contentEditable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_content_editable(this: &HtmlElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = isContentEditable)] #[doc = "Getter for the `isContentEditable` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/isContentEditable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn is_content_editable(this: &HtmlElement) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = spellcheck)] #[doc = "Getter for the `spellcheck` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/spellcheck)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn spellcheck(this: &HtmlElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = spellcheck)] #[doc = "Setter for the `spellcheck` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/spellcheck)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_spellcheck(this: &HtmlElement, value: bool); #[cfg(feature = "CssStyleDeclaration")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = style)] #[doc = "Getter for the `style` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/style)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssStyleDeclaration`, `HtmlElement`*"] pub fn style(this: &HtmlElement) -> CssStyleDeclaration; # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = offsetParent)] #[doc = "Getter for the `offsetParent` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetParent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn offset_parent(this: &HtmlElement) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = offsetTop)] #[doc = "Getter for the `offsetTop` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetTop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn offset_top(this: &HtmlElement) -> i32; # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = offsetLeft)] #[doc = "Getter for the `offsetLeft` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetLeft)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn offset_left(this: &HtmlElement) -> i32; # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = offsetWidth)] #[doc = "Getter for the `offsetWidth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetWidth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn offset_width(this: &HtmlElement) -> i32; # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = offsetHeight)] #[doc = "Getter for the `offsetHeight` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetHeight)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn offset_height(this: &HtmlElement) -> i32; # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = oncopy)] #[doc = "Getter for the `oncopy` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/oncopy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn oncopy(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = oncopy)] #[doc = "Setter for the `oncopy` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/oncopy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_oncopy(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = oncut)] #[doc = "Getter for the `oncut` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/oncut)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn oncut(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = oncut)] #[doc = "Setter for the `oncut` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/oncut)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_oncut(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onpaste)] #[doc = "Getter for the `onpaste` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpaste)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onpaste(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onpaste)] #[doc = "Setter for the `onpaste` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpaste)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onpaste(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onabort)] #[doc = "Getter for the `onabort` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onabort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onabort(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onabort)] #[doc = "Setter for the `onabort` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onabort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onabort(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onblur)] #[doc = "Getter for the `onblur` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onblur)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onblur(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onblur)] #[doc = "Setter for the `onblur` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onblur)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onblur(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onfocus)] #[doc = "Getter for the `onfocus` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onfocus)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onfocus(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onfocus)] #[doc = "Setter for the `onfocus` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onfocus)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onfocus(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onauxclick)] #[doc = "Getter for the `onauxclick` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onauxclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onauxclick(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onauxclick)] #[doc = "Setter for the `onauxclick` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onauxclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onauxclick(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = oncanplay)] #[doc = "Getter for the `oncanplay` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/oncanplay)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn oncanplay(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = oncanplay)] #[doc = "Setter for the `oncanplay` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/oncanplay)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_oncanplay(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = oncanplaythrough)] #[doc = "Getter for the `oncanplaythrough` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/oncanplaythrough)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn oncanplaythrough(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = oncanplaythrough)] #[doc = "Setter for the `oncanplaythrough` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/oncanplaythrough)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_oncanplaythrough(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onchange)] #[doc = "Getter for the `onchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onchange(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onchange)] #[doc = "Setter for the `onchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onchange(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onclick)] #[doc = "Getter for the `onclick` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onclick(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onclick)] #[doc = "Setter for the `onclick` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onclick(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onclose)] #[doc = "Getter for the `onclose` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onclose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onclose(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onclose)] #[doc = "Setter for the `onclose` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onclose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onclose(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = oncontextmenu)] #[doc = "Getter for the `oncontextmenu` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/oncontextmenu)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn oncontextmenu(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = oncontextmenu)] #[doc = "Setter for the `oncontextmenu` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/oncontextmenu)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_oncontextmenu(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = ondblclick)] #[doc = "Getter for the `ondblclick` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondblclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn ondblclick(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = ondblclick)] #[doc = "Setter for the `ondblclick` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondblclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_ondblclick(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = ondrag)] #[doc = "Getter for the `ondrag` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondrag)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn ondrag(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = ondrag)] #[doc = "Setter for the `ondrag` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondrag)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_ondrag(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = ondragend)] #[doc = "Getter for the `ondragend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondragend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn ondragend(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = ondragend)] #[doc = "Setter for the `ondragend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondragend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_ondragend(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = ondragenter)] #[doc = "Getter for the `ondragenter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondragenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn ondragenter(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = ondragenter)] #[doc = "Setter for the `ondragenter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondragenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_ondragenter(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = ondragexit)] #[doc = "Getter for the `ondragexit` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondragexit)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn ondragexit(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = ondragexit)] #[doc = "Setter for the `ondragexit` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondragexit)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_ondragexit(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = ondragleave)] #[doc = "Getter for the `ondragleave` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondragleave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn ondragleave(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = ondragleave)] #[doc = "Setter for the `ondragleave` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondragleave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_ondragleave(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = ondragover)] #[doc = "Getter for the `ondragover` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondragover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn ondragover(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = ondragover)] #[doc = "Setter for the `ondragover` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondragover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_ondragover(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = ondragstart)] #[doc = "Getter for the `ondragstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondragstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn ondragstart(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = ondragstart)] #[doc = "Setter for the `ondragstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondragstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_ondragstart(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = ondrop)] #[doc = "Getter for the `ondrop` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondrop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn ondrop(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = ondrop)] #[doc = "Setter for the `ondrop` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondrop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_ondrop(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = ondurationchange)] #[doc = "Getter for the `ondurationchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondurationchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn ondurationchange(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = ondurationchange)] #[doc = "Setter for the `ondurationchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondurationchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_ondurationchange(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onemptied)] #[doc = "Getter for the `onemptied` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onemptied)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onemptied(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onemptied)] #[doc = "Setter for the `onemptied` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onemptied)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onemptied(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onended)] #[doc = "Getter for the `onended` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onended)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onended(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onended)] #[doc = "Setter for the `onended` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onended)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onended(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = oninput)] #[doc = "Getter for the `oninput` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/oninput)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn oninput(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = oninput)] #[doc = "Setter for the `oninput` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/oninput)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_oninput(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = oninvalid)] #[doc = "Getter for the `oninvalid` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/oninvalid)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn oninvalid(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = oninvalid)] #[doc = "Setter for the `oninvalid` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/oninvalid)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_oninvalid(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onkeydown)] #[doc = "Getter for the `onkeydown` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onkeydown)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onkeydown(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onkeydown)] #[doc = "Setter for the `onkeydown` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onkeydown)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onkeydown(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onkeypress)] #[doc = "Getter for the `onkeypress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onkeypress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onkeypress(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onkeypress)] #[doc = "Setter for the `onkeypress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onkeypress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onkeypress(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onkeyup)] #[doc = "Getter for the `onkeyup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onkeyup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onkeyup(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onkeyup)] #[doc = "Setter for the `onkeyup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onkeyup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onkeyup(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onload)] #[doc = "Getter for the `onload` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onload(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onload)] #[doc = "Setter for the `onload` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onload(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onloadeddata)] #[doc = "Getter for the `onloadeddata` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onloadeddata)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onloadeddata(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onloadeddata)] #[doc = "Setter for the `onloadeddata` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onloadeddata)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onloadeddata(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onloadedmetadata)] #[doc = "Getter for the `onloadedmetadata` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onloadedmetadata)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onloadedmetadata(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onloadedmetadata)] #[doc = "Setter for the `onloadedmetadata` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onloadedmetadata)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onloadedmetadata(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onloadend)] #[doc = "Getter for the `onloadend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onloadend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onloadend(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onloadend)] #[doc = "Setter for the `onloadend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onloadend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onloadend(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onloadstart)] #[doc = "Getter for the `onloadstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onloadstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onloadstart(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onloadstart)] #[doc = "Setter for the `onloadstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onloadstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onloadstart(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onmousedown)] #[doc = "Getter for the `onmousedown` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onmousedown)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onmousedown(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onmousedown)] #[doc = "Setter for the `onmousedown` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onmousedown)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onmousedown(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onmouseenter)] #[doc = "Getter for the `onmouseenter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onmouseenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onmouseenter(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onmouseenter)] #[doc = "Setter for the `onmouseenter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onmouseenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onmouseenter(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onmouseleave)] #[doc = "Getter for the `onmouseleave` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onmouseleave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onmouseleave(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onmouseleave)] #[doc = "Setter for the `onmouseleave` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onmouseleave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onmouseleave(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onmousemove)] #[doc = "Getter for the `onmousemove` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onmousemove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onmousemove(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onmousemove)] #[doc = "Setter for the `onmousemove` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onmousemove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onmousemove(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onmouseout)] #[doc = "Getter for the `onmouseout` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onmouseout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onmouseout(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onmouseout)] #[doc = "Setter for the `onmouseout` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onmouseout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onmouseout(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onmouseover)] #[doc = "Getter for the `onmouseover` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onmouseover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onmouseover(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onmouseover)] #[doc = "Setter for the `onmouseover` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onmouseover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onmouseover(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onmouseup)] #[doc = "Getter for the `onmouseup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onmouseup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onmouseup(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onmouseup)] #[doc = "Setter for the `onmouseup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onmouseup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onmouseup(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onwheel)] #[doc = "Getter for the `onwheel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onwheel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onwheel(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onwheel)] #[doc = "Setter for the `onwheel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onwheel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onwheel(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onpause)] #[doc = "Getter for the `onpause` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpause)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onpause(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onpause)] #[doc = "Setter for the `onpause` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpause)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onpause(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onplay)] #[doc = "Getter for the `onplay` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onplay)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onplay(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onplay)] #[doc = "Setter for the `onplay` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onplay)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onplay(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onplaying)] #[doc = "Getter for the `onplaying` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onplaying)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onplaying(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onplaying)] #[doc = "Setter for the `onplaying` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onplaying)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onplaying(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onprogress)] #[doc = "Getter for the `onprogress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onprogress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onprogress(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onprogress)] #[doc = "Setter for the `onprogress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onprogress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onprogress(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onratechange)] #[doc = "Getter for the `onratechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onratechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onratechange(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onratechange)] #[doc = "Setter for the `onratechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onratechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onratechange(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onreset)] #[doc = "Getter for the `onreset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onreset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onreset(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onreset)] #[doc = "Setter for the `onreset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onreset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onreset(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onresize)] #[doc = "Getter for the `onresize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onresize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onresize(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onresize)] #[doc = "Setter for the `onresize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onresize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onresize(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onscroll)] #[doc = "Getter for the `onscroll` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onscroll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onscroll(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onscroll)] #[doc = "Setter for the `onscroll` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onscroll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onscroll(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onseeked)] #[doc = "Getter for the `onseeked` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onseeked)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onseeked(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onseeked)] #[doc = "Setter for the `onseeked` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onseeked)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onseeked(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onseeking)] #[doc = "Getter for the `onseeking` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onseeking)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onseeking(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onseeking)] #[doc = "Setter for the `onseeking` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onseeking)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onseeking(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onselect)] #[doc = "Getter for the `onselect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onselect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onselect(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onselect)] #[doc = "Setter for the `onselect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onselect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onselect(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onshow)] #[doc = "Getter for the `onshow` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onshow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onshow(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onshow)] #[doc = "Setter for the `onshow` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onshow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onshow(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onstalled)] #[doc = "Getter for the `onstalled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onstalled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onstalled(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onstalled)] #[doc = "Setter for the `onstalled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onstalled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onstalled(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onsubmit)] #[doc = "Getter for the `onsubmit` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onsubmit)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onsubmit(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onsubmit)] #[doc = "Setter for the `onsubmit` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onsubmit)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onsubmit(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onsuspend)] #[doc = "Getter for the `onsuspend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onsuspend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onsuspend(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onsuspend)] #[doc = "Setter for the `onsuspend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onsuspend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onsuspend(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = ontimeupdate)] #[doc = "Getter for the `ontimeupdate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontimeupdate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn ontimeupdate(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = ontimeupdate)] #[doc = "Setter for the `ontimeupdate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontimeupdate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_ontimeupdate(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onvolumechange)] #[doc = "Getter for the `onvolumechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onvolumechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onvolumechange(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onvolumechange)] #[doc = "Setter for the `onvolumechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onvolumechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onvolumechange(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onwaiting)] #[doc = "Getter for the `onwaiting` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onwaiting)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onwaiting(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onwaiting)] #[doc = "Setter for the `onwaiting` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onwaiting)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onwaiting(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onselectstart)] #[doc = "Getter for the `onselectstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onselectstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onselectstart(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onselectstart)] #[doc = "Setter for the `onselectstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onselectstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onselectstart(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = ontoggle)] #[doc = "Getter for the `ontoggle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontoggle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn ontoggle(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = ontoggle)] #[doc = "Setter for the `ontoggle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontoggle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_ontoggle(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onpointercancel)] #[doc = "Getter for the `onpointercancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpointercancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onpointercancel(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onpointercancel)] #[doc = "Setter for the `onpointercancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpointercancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onpointercancel(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onpointerdown)] #[doc = "Getter for the `onpointerdown` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpointerdown)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onpointerdown(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onpointerdown)] #[doc = "Setter for the `onpointerdown` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpointerdown)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onpointerdown(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onpointerup)] #[doc = "Getter for the `onpointerup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpointerup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onpointerup(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onpointerup)] #[doc = "Setter for the `onpointerup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpointerup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onpointerup(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onpointermove)] #[doc = "Getter for the `onpointermove` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpointermove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onpointermove(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onpointermove)] #[doc = "Setter for the `onpointermove` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpointermove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onpointermove(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onpointerout)] #[doc = "Getter for the `onpointerout` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpointerout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onpointerout(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onpointerout)] #[doc = "Setter for the `onpointerout` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpointerout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onpointerout(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onpointerover)] #[doc = "Getter for the `onpointerover` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpointerover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onpointerover(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onpointerover)] #[doc = "Setter for the `onpointerover` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpointerover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onpointerover(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onpointerenter)] #[doc = "Getter for the `onpointerenter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpointerenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onpointerenter(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onpointerenter)] #[doc = "Setter for the `onpointerenter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpointerenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onpointerenter(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onpointerleave)] #[doc = "Getter for the `onpointerleave` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpointerleave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onpointerleave(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onpointerleave)] #[doc = "Setter for the `onpointerleave` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpointerleave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onpointerleave(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = ongotpointercapture)] #[doc = "Getter for the `ongotpointercapture` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ongotpointercapture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn ongotpointercapture(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = ongotpointercapture)] #[doc = "Setter for the `ongotpointercapture` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ongotpointercapture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_ongotpointercapture(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onlostpointercapture)] #[doc = "Getter for the `onlostpointercapture` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onlostpointercapture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onlostpointercapture(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onlostpointercapture)] #[doc = "Setter for the `onlostpointercapture` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onlostpointercapture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onlostpointercapture(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onanimationcancel)] #[doc = "Getter for the `onanimationcancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onanimationcancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onanimationcancel(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onanimationcancel)] #[doc = "Setter for the `onanimationcancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onanimationcancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onanimationcancel(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onanimationend)] #[doc = "Getter for the `onanimationend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onanimationend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onanimationend(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onanimationend)] #[doc = "Setter for the `onanimationend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onanimationend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onanimationend(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onanimationiteration)] #[doc = "Getter for the `onanimationiteration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onanimationiteration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onanimationiteration(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onanimationiteration)] #[doc = "Setter for the `onanimationiteration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onanimationiteration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onanimationiteration(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onanimationstart)] #[doc = "Getter for the `onanimationstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onanimationstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onanimationstart(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onanimationstart)] #[doc = "Setter for the `onanimationstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onanimationstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onanimationstart(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = ontransitioncancel)] #[doc = "Getter for the `ontransitioncancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontransitioncancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn ontransitioncancel(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = ontransitioncancel)] #[doc = "Setter for the `ontransitioncancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontransitioncancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_ontransitioncancel(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = ontransitionend)] #[doc = "Getter for the `ontransitionend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontransitionend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn ontransitionend(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = ontransitionend)] #[doc = "Setter for the `ontransitionend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontransitionend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_ontransitionend(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = ontransitionrun)] #[doc = "Getter for the `ontransitionrun` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontransitionrun)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn ontransitionrun(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = ontransitionrun)] #[doc = "Setter for the `ontransitionrun` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontransitionrun)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_ontransitionrun(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = ontransitionstart)] #[doc = "Getter for the `ontransitionstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontransitionstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn ontransitionstart(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = ontransitionstart)] #[doc = "Setter for the `ontransitionstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontransitionstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_ontransitionstart(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onwebkitanimationend)] #[doc = "Getter for the `onwebkitanimationend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onwebkitanimationend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onwebkitanimationend(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onwebkitanimationend)] #[doc = "Setter for the `onwebkitanimationend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onwebkitanimationend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onwebkitanimationend(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onwebkitanimationiteration)] #[doc = "Getter for the `onwebkitanimationiteration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onwebkitanimationiteration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onwebkitanimationiteration(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onwebkitanimationiteration)] #[doc = "Setter for the `onwebkitanimationiteration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onwebkitanimationiteration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onwebkitanimationiteration(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onwebkitanimationstart)] #[doc = "Getter for the `onwebkitanimationstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onwebkitanimationstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onwebkitanimationstart(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onwebkitanimationstart)] #[doc = "Setter for the `onwebkitanimationstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onwebkitanimationstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onwebkitanimationstart(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onwebkittransitionend)] #[doc = "Getter for the `onwebkittransitionend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onwebkittransitionend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onwebkittransitionend(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onwebkittransitionend)] #[doc = "Setter for the `onwebkittransitionend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onwebkittransitionend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onwebkittransitionend(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = onerror)] #[doc = "Getter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onerror(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onerror)] #[doc = "Setter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onerror(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = ontouchstart)] #[doc = "Getter for the `ontouchstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontouchstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn ontouchstart(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = ontouchstart)] #[doc = "Setter for the `ontouchstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontouchstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_ontouchstart(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = ontouchend)] #[doc = "Getter for the `ontouchend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontouchend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn ontouchend(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = ontouchend)] #[doc = "Setter for the `ontouchend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontouchend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_ontouchend(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = ontouchmove)] #[doc = "Getter for the `ontouchmove` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontouchmove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn ontouchmove(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = ontouchmove)] #[doc = "Setter for the `ontouchmove` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontouchmove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_ontouchmove(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = ontouchcancel)] #[doc = "Getter for the `ontouchcancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontouchcancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn ontouchcancel(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = ontouchcancel)] #[doc = "Setter for the `ontouchcancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontouchcancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_ontouchcancel(this: &HtmlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (catch , method , structural , js_class = "HTMLElement" , js_name = blur)] #[doc = "The `blur()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/blur)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn blur(this: &HtmlElement) -> Result<(), JsValue>; # [wasm_bindgen (method , structural , js_class = "HTMLElement" , js_name = click)] #[doc = "The `click()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/click)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn click(this: &HtmlElement); # [wasm_bindgen (catch , method , structural , js_class = "HTMLElement" , js_name = focus)] #[doc = "The `focus()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn focus(this: &HtmlElement) -> Result<(), JsValue>; } web-sys-0.3.55/src/features/gen_HtmlEmbedElement.rs000064400000000000000000000147770072674642500203360ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLEmbedElement , typescript_type = "HTMLEmbedElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlEmbedElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLEmbedElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlEmbedElement`*"] pub type HtmlEmbedElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLEmbedElement" , js_name = src)] #[doc = "Getter for the `src` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLEmbedElement/src)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlEmbedElement`*"] pub fn src(this: &HtmlEmbedElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLEmbedElement" , js_name = src)] #[doc = "Setter for the `src` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLEmbedElement/src)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlEmbedElement`*"] pub fn set_src(this: &HtmlEmbedElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLEmbedElement" , js_name = type)] #[doc = "Getter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLEmbedElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlEmbedElement`*"] pub fn type_(this: &HtmlEmbedElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLEmbedElement" , js_name = type)] #[doc = "Setter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLEmbedElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlEmbedElement`*"] pub fn set_type(this: &HtmlEmbedElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLEmbedElement" , js_name = width)] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLEmbedElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlEmbedElement`*"] pub fn width(this: &HtmlEmbedElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLEmbedElement" , js_name = width)] #[doc = "Setter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLEmbedElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlEmbedElement`*"] pub fn set_width(this: &HtmlEmbedElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLEmbedElement" , js_name = height)] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLEmbedElement/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlEmbedElement`*"] pub fn height(this: &HtmlEmbedElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLEmbedElement" , js_name = height)] #[doc = "Setter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLEmbedElement/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlEmbedElement`*"] pub fn set_height(this: &HtmlEmbedElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLEmbedElement" , js_name = align)] #[doc = "Getter for the `align` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLEmbedElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlEmbedElement`*"] pub fn align(this: &HtmlEmbedElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLEmbedElement" , js_name = align)] #[doc = "Setter for the `align` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLEmbedElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlEmbedElement`*"] pub fn set_align(this: &HtmlEmbedElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLEmbedElement" , js_name = name)] #[doc = "Getter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLEmbedElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlEmbedElement`*"] pub fn name(this: &HtmlEmbedElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLEmbedElement" , js_name = name)] #[doc = "Setter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLEmbedElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlEmbedElement`*"] pub fn set_name(this: &HtmlEmbedElement, value: &str); #[cfg(feature = "Document")] # [wasm_bindgen (method , structural , js_class = "HTMLEmbedElement" , js_name = getSVGDocument)] #[doc = "The `getSVGDocument()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLEmbedElement/getSVGDocument)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlEmbedElement`*"] pub fn get_svg_document(this: &HtmlEmbedElement) -> Option; } web-sys-0.3.55/src/features/gen_HtmlFieldSetElement.rs000064400000000000000000000157210072674642500210070ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLFieldSetElement , typescript_type = "HTMLFieldSetElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlFieldSetElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFieldSetElement`*"] pub type HtmlFieldSetElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLFieldSetElement" , js_name = disabled)] #[doc = "Getter for the `disabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement/disabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFieldSetElement`*"] pub fn disabled(this: &HtmlFieldSetElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFieldSetElement" , js_name = disabled)] #[doc = "Setter for the `disabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement/disabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFieldSetElement`*"] pub fn set_disabled(this: &HtmlFieldSetElement, value: bool); #[cfg(feature = "HtmlFormElement")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLFieldSetElement" , js_name = form)] #[doc = "Getter for the `form` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement/form)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFieldSetElement`, `HtmlFormElement`*"] pub fn form(this: &HtmlFieldSetElement) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "HTMLFieldSetElement" , js_name = name)] #[doc = "Getter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFieldSetElement`*"] pub fn name(this: &HtmlFieldSetElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFieldSetElement" , js_name = name)] #[doc = "Setter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFieldSetElement`*"] pub fn set_name(this: &HtmlFieldSetElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLFieldSetElement" , js_name = type)] #[doc = "Getter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFieldSetElement`*"] pub fn type_(this: &HtmlFieldSetElement) -> String; #[cfg(feature = "HtmlCollection")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLFieldSetElement" , js_name = elements)] #[doc = "Getter for the `elements` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement/elements)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`, `HtmlFieldSetElement`*"] pub fn elements(this: &HtmlFieldSetElement) -> HtmlCollection; # [wasm_bindgen (structural , method , getter , js_class = "HTMLFieldSetElement" , js_name = willValidate)] #[doc = "Getter for the `willValidate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement/willValidate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFieldSetElement`*"] pub fn will_validate(this: &HtmlFieldSetElement) -> bool; #[cfg(feature = "ValidityState")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLFieldSetElement" , js_name = validity)] #[doc = "Getter for the `validity` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement/validity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFieldSetElement`, `ValidityState`*"] pub fn validity(this: &HtmlFieldSetElement) -> ValidityState; # [wasm_bindgen (structural , catch , method , getter , js_class = "HTMLFieldSetElement" , js_name = validationMessage)] #[doc = "Getter for the `validationMessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement/validationMessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFieldSetElement`*"] pub fn validation_message(this: &HtmlFieldSetElement) -> Result; # [wasm_bindgen (method , structural , js_class = "HTMLFieldSetElement" , js_name = checkValidity)] #[doc = "The `checkValidity()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement/checkValidity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFieldSetElement`*"] pub fn check_validity(this: &HtmlFieldSetElement) -> bool; # [wasm_bindgen (method , structural , js_class = "HTMLFieldSetElement" , js_name = reportValidity)] #[doc = "The `reportValidity()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement/reportValidity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFieldSetElement`*"] pub fn report_validity(this: &HtmlFieldSetElement) -> bool; # [wasm_bindgen (method , structural , js_class = "HTMLFieldSetElement" , js_name = setCustomValidity)] #[doc = "The `setCustomValidity()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement/setCustomValidity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFieldSetElement`*"] pub fn set_custom_validity(this: &HtmlFieldSetElement, error: &str); } web-sys-0.3.55/src/features/gen_HtmlFontElement.rs000064400000000000000000000064450072674642500202210ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLFontElement , typescript_type = "HTMLFontElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlFontElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFontElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFontElement`*"] pub type HtmlFontElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLFontElement" , js_name = color)] #[doc = "Getter for the `color` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFontElement/color)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFontElement`*"] pub fn color(this: &HtmlFontElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFontElement" , js_name = color)] #[doc = "Setter for the `color` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFontElement/color)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFontElement`*"] pub fn set_color(this: &HtmlFontElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLFontElement" , js_name = face)] #[doc = "Getter for the `face` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFontElement/face)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFontElement`*"] pub fn face(this: &HtmlFontElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFontElement" , js_name = face)] #[doc = "Setter for the `face` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFontElement/face)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFontElement`*"] pub fn set_face(this: &HtmlFontElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLFontElement" , js_name = size)] #[doc = "Getter for the `size` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFontElement/size)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFontElement`*"] pub fn size(this: &HtmlFontElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFontElement" , js_name = size)] #[doc = "Setter for the `size` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFontElement/size)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFontElement`*"] pub fn set_size(this: &HtmlFontElement, value: &str); } web-sys-0.3.55/src/features/gen_HtmlFormControlsCollection.rs000064400000000000000000000030650072674642500224370ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlCollection , extends = :: js_sys :: Object , js_name = HTMLFormControlsCollection , typescript_type = "HTMLFormControlsCollection")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlFormControlsCollection` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormControlsCollection)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormControlsCollection`*"] pub type HtmlFormControlsCollection; # [wasm_bindgen (method , structural , js_class = "HTMLFormControlsCollection" , js_name = namedItem)] #[doc = "The `namedItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormControlsCollection/namedItem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormControlsCollection`*"] pub fn named_item(this: &HtmlFormControlsCollection, name: &str) -> Option<::js_sys::Object>; #[wasm_bindgen( method, structural, js_class = "HTMLFormControlsCollection", indexing_getter )] #[doc = "Indexing getter."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormControlsCollection`*"] pub fn get(this: &HtmlFormControlsCollection, name: &str) -> Option<::js_sys::Object>; } web-sys-0.3.55/src/features/gen_HtmlFormElement.rs000064400000000000000000000303160072674642500202100ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLFormElement , typescript_type = "HTMLFormElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlFormElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] pub type HtmlFormElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLFormElement" , js_name = acceptCharset)] #[doc = "Getter for the `acceptCharset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/acceptCharset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] pub fn accept_charset(this: &HtmlFormElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFormElement" , js_name = acceptCharset)] #[doc = "Setter for the `acceptCharset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/acceptCharset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] pub fn set_accept_charset(this: &HtmlFormElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLFormElement" , js_name = action)] #[doc = "Getter for the `action` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/action)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] pub fn action(this: &HtmlFormElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFormElement" , js_name = action)] #[doc = "Setter for the `action` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/action)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] pub fn set_action(this: &HtmlFormElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLFormElement" , js_name = autocomplete)] #[doc = "Getter for the `autocomplete` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/autocomplete)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] pub fn autocomplete(this: &HtmlFormElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFormElement" , js_name = autocomplete)] #[doc = "Setter for the `autocomplete` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/autocomplete)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] pub fn set_autocomplete(this: &HtmlFormElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLFormElement" , js_name = enctype)] #[doc = "Getter for the `enctype` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/enctype)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] pub fn enctype(this: &HtmlFormElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFormElement" , js_name = enctype)] #[doc = "Setter for the `enctype` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/enctype)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] pub fn set_enctype(this: &HtmlFormElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLFormElement" , js_name = encoding)] #[doc = "Getter for the `encoding` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/encoding)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] pub fn encoding(this: &HtmlFormElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFormElement" , js_name = encoding)] #[doc = "Setter for the `encoding` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/encoding)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] pub fn set_encoding(this: &HtmlFormElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLFormElement" , js_name = method)] #[doc = "Getter for the `method` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/method)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] pub fn method(this: &HtmlFormElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFormElement" , js_name = method)] #[doc = "Setter for the `method` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/method)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] pub fn set_method(this: &HtmlFormElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLFormElement" , js_name = name)] #[doc = "Getter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] pub fn name(this: &HtmlFormElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFormElement" , js_name = name)] #[doc = "Setter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] pub fn set_name(this: &HtmlFormElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLFormElement" , js_name = noValidate)] #[doc = "Getter for the `noValidate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/noValidate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] pub fn no_validate(this: &HtmlFormElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFormElement" , js_name = noValidate)] #[doc = "Setter for the `noValidate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/noValidate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] pub fn set_no_validate(this: &HtmlFormElement, value: bool); # [wasm_bindgen (structural , method , getter , js_class = "HTMLFormElement" , js_name = target)] #[doc = "Getter for the `target` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/target)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] pub fn target(this: &HtmlFormElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFormElement" , js_name = target)] #[doc = "Setter for the `target` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/target)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] pub fn set_target(this: &HtmlFormElement, value: &str); #[cfg(feature = "HtmlCollection")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLFormElement" , js_name = elements)] #[doc = "Getter for the `elements` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/elements)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`, `HtmlFormElement`*"] pub fn elements(this: &HtmlFormElement) -> HtmlCollection; # [wasm_bindgen (structural , method , getter , js_class = "HTMLFormElement" , js_name = length)] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] pub fn length(this: &HtmlFormElement) -> i32; # [wasm_bindgen (method , structural , js_class = "HTMLFormElement" , js_name = checkValidity)] #[doc = "The `checkValidity()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/checkValidity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] pub fn check_validity(this: &HtmlFormElement) -> bool; # [wasm_bindgen (method , structural , js_class = "HTMLFormElement" , js_name = reportValidity)] #[doc = "The `reportValidity()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/reportValidity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] pub fn report_validity(this: &HtmlFormElement) -> bool; # [wasm_bindgen (method , structural , js_class = "HTMLFormElement" , js_name = reset)] #[doc = "The `reset()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/reset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] pub fn reset(this: &HtmlFormElement); # [wasm_bindgen (catch , method , structural , js_class = "HTMLFormElement" , js_name = submit)] #[doc = "The `submit()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/submit)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] pub fn submit(this: &HtmlFormElement) -> Result<(), JsValue>; #[wasm_bindgen(method, structural, js_class = "HTMLFormElement", indexing_getter)] #[doc = "Indexing getter."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] pub fn get_with_index(this: &HtmlFormElement, index: u32) -> Option; #[wasm_bindgen(method, structural, js_class = "HTMLFormElement", indexing_getter)] #[doc = "Indexing getter."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] pub fn get_with_name(this: &HtmlFormElement, name: &str) -> Option<::js_sys::Object>; } web-sys-0.3.55/src/features/gen_HtmlFrameElement.rs000064400000000000000000000221240072674642500203350ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLFrameElement , typescript_type = "HTMLFrameElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlFrameElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"] pub type HtmlFrameElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLFrameElement" , js_name = name)] #[doc = "Getter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"] pub fn name(this: &HtmlFrameElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameElement" , js_name = name)] #[doc = "Setter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"] pub fn set_name(this: &HtmlFrameElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLFrameElement" , js_name = scrolling)] #[doc = "Getter for the `scrolling` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/scrolling)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"] pub fn scrolling(this: &HtmlFrameElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameElement" , js_name = scrolling)] #[doc = "Setter for the `scrolling` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/scrolling)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"] pub fn set_scrolling(this: &HtmlFrameElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLFrameElement" , js_name = src)] #[doc = "Getter for the `src` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/src)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"] pub fn src(this: &HtmlFrameElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameElement" , js_name = src)] #[doc = "Setter for the `src` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/src)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"] pub fn set_src(this: &HtmlFrameElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLFrameElement" , js_name = frameBorder)] #[doc = "Getter for the `frameBorder` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/frameBorder)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"] pub fn frame_border(this: &HtmlFrameElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameElement" , js_name = frameBorder)] #[doc = "Setter for the `frameBorder` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/frameBorder)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"] pub fn set_frame_border(this: &HtmlFrameElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLFrameElement" , js_name = longDesc)] #[doc = "Getter for the `longDesc` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/longDesc)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"] pub fn long_desc(this: &HtmlFrameElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameElement" , js_name = longDesc)] #[doc = "Setter for the `longDesc` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/longDesc)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"] pub fn set_long_desc(this: &HtmlFrameElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLFrameElement" , js_name = noResize)] #[doc = "Getter for the `noResize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/noResize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"] pub fn no_resize(this: &HtmlFrameElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameElement" , js_name = noResize)] #[doc = "Setter for the `noResize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/noResize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"] pub fn set_no_resize(this: &HtmlFrameElement, value: bool); #[cfg(feature = "Document")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLFrameElement" , js_name = contentDocument)] #[doc = "Getter for the `contentDocument` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/contentDocument)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlFrameElement`*"] pub fn content_document(this: &HtmlFrameElement) -> Option; #[cfg(feature = "Window")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLFrameElement" , js_name = contentWindow)] #[doc = "Getter for the `contentWindow` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/contentWindow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`, `Window`*"] pub fn content_window(this: &HtmlFrameElement) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "HTMLFrameElement" , js_name = marginHeight)] #[doc = "Getter for the `marginHeight` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/marginHeight)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"] pub fn margin_height(this: &HtmlFrameElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameElement" , js_name = marginHeight)] #[doc = "Setter for the `marginHeight` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/marginHeight)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"] pub fn set_margin_height(this: &HtmlFrameElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLFrameElement" , js_name = marginWidth)] #[doc = "Getter for the `marginWidth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/marginWidth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"] pub fn margin_width(this: &HtmlFrameElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameElement" , js_name = marginWidth)] #[doc = "Setter for the `marginWidth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/marginWidth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"] pub fn set_margin_width(this: &HtmlFrameElement, value: &str); } web-sys-0.3.55/src/features/gen_HtmlFrameSetElement.rs000064400000000000000000000411400072674642500210100ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLFrameSetElement , typescript_type = "HTMLFrameSetElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlFrameSetElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub type HtmlFrameSetElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLFrameSetElement" , js_name = cols)] #[doc = "Getter for the `cols` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/cols)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn cols(this: &HtmlFrameSetElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameSetElement" , js_name = cols)] #[doc = "Setter for the `cols` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/cols)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn set_cols(this: &HtmlFrameSetElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLFrameSetElement" , js_name = rows)] #[doc = "Getter for the `rows` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/rows)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn rows(this: &HtmlFrameSetElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameSetElement" , js_name = rows)] #[doc = "Setter for the `rows` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/rows)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn set_rows(this: &HtmlFrameSetElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLFrameSetElement" , js_name = onafterprint)] #[doc = "Getter for the `onafterprint` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onafterprint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn onafterprint(this: &HtmlFrameSetElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameSetElement" , js_name = onafterprint)] #[doc = "Setter for the `onafterprint` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onafterprint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn set_onafterprint(this: &HtmlFrameSetElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLFrameSetElement" , js_name = onbeforeprint)] #[doc = "Getter for the `onbeforeprint` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onbeforeprint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn onbeforeprint(this: &HtmlFrameSetElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameSetElement" , js_name = onbeforeprint)] #[doc = "Setter for the `onbeforeprint` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onbeforeprint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn set_onbeforeprint(this: &HtmlFrameSetElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLFrameSetElement" , js_name = onbeforeunload)] #[doc = "Getter for the `onbeforeunload` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onbeforeunload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn onbeforeunload(this: &HtmlFrameSetElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameSetElement" , js_name = onbeforeunload)] #[doc = "Setter for the `onbeforeunload` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onbeforeunload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn set_onbeforeunload(this: &HtmlFrameSetElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLFrameSetElement" , js_name = onhashchange)] #[doc = "Getter for the `onhashchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onhashchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn onhashchange(this: &HtmlFrameSetElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameSetElement" , js_name = onhashchange)] #[doc = "Setter for the `onhashchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onhashchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn set_onhashchange(this: &HtmlFrameSetElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLFrameSetElement" , js_name = onlanguagechange)] #[doc = "Getter for the `onlanguagechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onlanguagechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn onlanguagechange(this: &HtmlFrameSetElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameSetElement" , js_name = onlanguagechange)] #[doc = "Setter for the `onlanguagechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onlanguagechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn set_onlanguagechange(this: &HtmlFrameSetElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLFrameSetElement" , js_name = onmessage)] #[doc = "Getter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn onmessage(this: &HtmlFrameSetElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameSetElement" , js_name = onmessage)] #[doc = "Setter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn set_onmessage(this: &HtmlFrameSetElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLFrameSetElement" , js_name = onmessageerror)] #[doc = "Getter for the `onmessageerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onmessageerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn onmessageerror(this: &HtmlFrameSetElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameSetElement" , js_name = onmessageerror)] #[doc = "Setter for the `onmessageerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onmessageerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn set_onmessageerror(this: &HtmlFrameSetElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLFrameSetElement" , js_name = onoffline)] #[doc = "Getter for the `onoffline` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onoffline)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn onoffline(this: &HtmlFrameSetElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameSetElement" , js_name = onoffline)] #[doc = "Setter for the `onoffline` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onoffline)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn set_onoffline(this: &HtmlFrameSetElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLFrameSetElement" , js_name = ononline)] #[doc = "Getter for the `ononline` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/ononline)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn ononline(this: &HtmlFrameSetElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameSetElement" , js_name = ononline)] #[doc = "Setter for the `ononline` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/ononline)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn set_ononline(this: &HtmlFrameSetElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLFrameSetElement" , js_name = onpagehide)] #[doc = "Getter for the `onpagehide` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onpagehide)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn onpagehide(this: &HtmlFrameSetElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameSetElement" , js_name = onpagehide)] #[doc = "Setter for the `onpagehide` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onpagehide)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn set_onpagehide(this: &HtmlFrameSetElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLFrameSetElement" , js_name = onpageshow)] #[doc = "Getter for the `onpageshow` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onpageshow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn onpageshow(this: &HtmlFrameSetElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameSetElement" , js_name = onpageshow)] #[doc = "Setter for the `onpageshow` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onpageshow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn set_onpageshow(this: &HtmlFrameSetElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLFrameSetElement" , js_name = onpopstate)] #[doc = "Getter for the `onpopstate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onpopstate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn onpopstate(this: &HtmlFrameSetElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameSetElement" , js_name = onpopstate)] #[doc = "Setter for the `onpopstate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onpopstate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn set_onpopstate(this: &HtmlFrameSetElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLFrameSetElement" , js_name = onstorage)] #[doc = "Getter for the `onstorage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onstorage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn onstorage(this: &HtmlFrameSetElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameSetElement" , js_name = onstorage)] #[doc = "Setter for the `onstorage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onstorage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn set_onstorage(this: &HtmlFrameSetElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLFrameSetElement" , js_name = onunload)] #[doc = "Getter for the `onunload` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onunload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn onunload(this: &HtmlFrameSetElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameSetElement" , js_name = onunload)] #[doc = "Setter for the `onunload` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onunload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] pub fn set_onunload(this: &HtmlFrameSetElement, value: Option<&::js_sys::Function>); } web-sys-0.3.55/src/features/gen_HtmlHeadElement.rs000064400000000000000000000012160072674642500201430ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLHeadElement , typescript_type = "HTMLHeadElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlHeadElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHeadElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlHeadElement`*"] pub type HtmlHeadElement; } web-sys-0.3.55/src/features/gen_HtmlHeadingElement.rs000064400000000000000000000031050072674642500206400ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLHeadingElement , typescript_type = "HTMLHeadingElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlHeadingElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHeadingElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlHeadingElement`*"] pub type HtmlHeadingElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLHeadingElement" , js_name = align)] #[doc = "Getter for the `align` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHeadingElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlHeadingElement`*"] pub fn align(this: &HtmlHeadingElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLHeadingElement" , js_name = align)] #[doc = "Setter for the `align` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHeadingElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlHeadingElement`*"] pub fn set_align(this: &HtmlHeadingElement, value: &str); } web-sys-0.3.55/src/features/gen_HtmlHrElement.rs000064400000000000000000000117730072674642500176640ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLHRElement , typescript_type = "HTMLHRElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlHrElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHRElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlHrElement`*"] pub type HtmlHrElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLHRElement" , js_name = align)] #[doc = "Getter for the `align` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHRElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlHrElement`*"] pub fn align(this: &HtmlHrElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLHRElement" , js_name = align)] #[doc = "Setter for the `align` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHRElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlHrElement`*"] pub fn set_align(this: &HtmlHrElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLHRElement" , js_name = color)] #[doc = "Getter for the `color` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHRElement/color)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlHrElement`*"] pub fn color(this: &HtmlHrElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLHRElement" , js_name = color)] #[doc = "Setter for the `color` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHRElement/color)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlHrElement`*"] pub fn set_color(this: &HtmlHrElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLHRElement" , js_name = noShade)] #[doc = "Getter for the `noShade` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHRElement/noShade)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlHrElement`*"] pub fn no_shade(this: &HtmlHrElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLHRElement" , js_name = noShade)] #[doc = "Setter for the `noShade` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHRElement/noShade)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlHrElement`*"] pub fn set_no_shade(this: &HtmlHrElement, value: bool); # [wasm_bindgen (structural , method , getter , js_class = "HTMLHRElement" , js_name = size)] #[doc = "Getter for the `size` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHRElement/size)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlHrElement`*"] pub fn size(this: &HtmlHrElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLHRElement" , js_name = size)] #[doc = "Setter for the `size` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHRElement/size)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlHrElement`*"] pub fn set_size(this: &HtmlHrElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLHRElement" , js_name = width)] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHRElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlHrElement`*"] pub fn width(this: &HtmlHrElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLHRElement" , js_name = width)] #[doc = "Setter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHRElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlHrElement`*"] pub fn set_width(this: &HtmlHrElement, value: &str); } web-sys-0.3.55/src/features/gen_HtmlHtmlElement.rs000064400000000000000000000030530072674642500202070ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLHtmlElement , typescript_type = "HTMLHtmlElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlHtmlElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHtmlElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlHtmlElement`*"] pub type HtmlHtmlElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLHtmlElement" , js_name = version)] #[doc = "Getter for the `version` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHtmlElement/version)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlHtmlElement`*"] pub fn version(this: &HtmlHtmlElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLHtmlElement" , js_name = version)] #[doc = "Setter for the `version` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHtmlElement/version)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlHtmlElement`*"] pub fn set_version(this: &HtmlHtmlElement, value: &str); } web-sys-0.3.55/src/features/gen_HtmlIFrameElement.rs000064400000000000000000000375520072674642500204610ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLIFrameElement , typescript_type = "HTMLIFrameElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlIFrameElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] pub type HtmlIFrameElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLIFrameElement" , js_name = src)] #[doc = "Getter for the `src` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/src)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] pub fn src(this: &HtmlIFrameElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLIFrameElement" , js_name = src)] #[doc = "Setter for the `src` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/src)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] pub fn set_src(this: &HtmlIFrameElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLIFrameElement" , js_name = srcdoc)] #[doc = "Getter for the `srcdoc` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/srcdoc)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] pub fn srcdoc(this: &HtmlIFrameElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLIFrameElement" , js_name = srcdoc)] #[doc = "Setter for the `srcdoc` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/srcdoc)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] pub fn set_srcdoc(this: &HtmlIFrameElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLIFrameElement" , js_name = name)] #[doc = "Getter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] pub fn name(this: &HtmlIFrameElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLIFrameElement" , js_name = name)] #[doc = "Setter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] pub fn set_name(this: &HtmlIFrameElement, value: &str); #[cfg(feature = "DomTokenList")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLIFrameElement" , js_name = sandbox)] #[doc = "Getter for the `sandbox` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/sandbox)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`, `HtmlIFrameElement`*"] pub fn sandbox(this: &HtmlIFrameElement) -> DomTokenList; # [wasm_bindgen (structural , method , getter , js_class = "HTMLIFrameElement" , js_name = allowFullscreen)] #[doc = "Getter for the `allowFullscreen` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/allowFullscreen)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] pub fn allow_fullscreen(this: &HtmlIFrameElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLIFrameElement" , js_name = allowFullscreen)] #[doc = "Setter for the `allowFullscreen` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/allowFullscreen)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] pub fn set_allow_fullscreen(this: &HtmlIFrameElement, value: bool); # [wasm_bindgen (structural , method , getter , js_class = "HTMLIFrameElement" , js_name = allowPaymentRequest)] #[doc = "Getter for the `allowPaymentRequest` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/allowPaymentRequest)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] pub fn allow_payment_request(this: &HtmlIFrameElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLIFrameElement" , js_name = allowPaymentRequest)] #[doc = "Setter for the `allowPaymentRequest` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/allowPaymentRequest)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] pub fn set_allow_payment_request(this: &HtmlIFrameElement, value: bool); # [wasm_bindgen (structural , method , getter , js_class = "HTMLIFrameElement" , js_name = width)] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] pub fn width(this: &HtmlIFrameElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLIFrameElement" , js_name = width)] #[doc = "Setter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] pub fn set_width(this: &HtmlIFrameElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLIFrameElement" , js_name = height)] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] pub fn height(this: &HtmlIFrameElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLIFrameElement" , js_name = height)] #[doc = "Setter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] pub fn set_height(this: &HtmlIFrameElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLIFrameElement" , js_name = referrerPolicy)] #[doc = "Getter for the `referrerPolicy` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/referrerPolicy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] pub fn referrer_policy(this: &HtmlIFrameElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLIFrameElement" , js_name = referrerPolicy)] #[doc = "Setter for the `referrerPolicy` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/referrerPolicy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] pub fn set_referrer_policy(this: &HtmlIFrameElement, value: &str); #[cfg(feature = "Document")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLIFrameElement" , js_name = contentDocument)] #[doc = "Getter for the `contentDocument` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/contentDocument)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlIFrameElement`*"] pub fn content_document(this: &HtmlIFrameElement) -> Option; #[cfg(feature = "Window")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLIFrameElement" , js_name = contentWindow)] #[doc = "Getter for the `contentWindow` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/contentWindow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`, `Window`*"] pub fn content_window(this: &HtmlIFrameElement) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "HTMLIFrameElement" , js_name = align)] #[doc = "Getter for the `align` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] pub fn align(this: &HtmlIFrameElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLIFrameElement" , js_name = align)] #[doc = "Setter for the `align` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] pub fn set_align(this: &HtmlIFrameElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLIFrameElement" , js_name = scrolling)] #[doc = "Getter for the `scrolling` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/scrolling)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] pub fn scrolling(this: &HtmlIFrameElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLIFrameElement" , js_name = scrolling)] #[doc = "Setter for the `scrolling` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/scrolling)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] pub fn set_scrolling(this: &HtmlIFrameElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLIFrameElement" , js_name = frameBorder)] #[doc = "Getter for the `frameBorder` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/frameBorder)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] pub fn frame_border(this: &HtmlIFrameElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLIFrameElement" , js_name = frameBorder)] #[doc = "Setter for the `frameBorder` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/frameBorder)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] pub fn set_frame_border(this: &HtmlIFrameElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLIFrameElement" , js_name = longDesc)] #[doc = "Getter for the `longDesc` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/longDesc)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] pub fn long_desc(this: &HtmlIFrameElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLIFrameElement" , js_name = longDesc)] #[doc = "Setter for the `longDesc` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/longDesc)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] pub fn set_long_desc(this: &HtmlIFrameElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLIFrameElement" , js_name = marginHeight)] #[doc = "Getter for the `marginHeight` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/marginHeight)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] pub fn margin_height(this: &HtmlIFrameElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLIFrameElement" , js_name = marginHeight)] #[doc = "Setter for the `marginHeight` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/marginHeight)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] pub fn set_margin_height(this: &HtmlIFrameElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLIFrameElement" , js_name = marginWidth)] #[doc = "Getter for the `marginWidth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/marginWidth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] pub fn margin_width(this: &HtmlIFrameElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLIFrameElement" , js_name = marginWidth)] #[doc = "Setter for the `marginWidth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/marginWidth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] pub fn set_margin_width(this: &HtmlIFrameElement, value: &str); #[cfg(feature = "Document")] # [wasm_bindgen (method , structural , js_class = "HTMLIFrameElement" , js_name = getSVGDocument)] #[doc = "The `getSVGDocument()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/getSVGDocument)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlIFrameElement`*"] pub fn get_svg_document(this: &HtmlIFrameElement) -> Option; } web-sys-0.3.55/src/features/gen_HtmlImageElement.rs000064400000000000000000000474440072674642500203410ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLImageElement , typescript_type = "HTMLImageElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlImageElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub type HtmlImageElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLImageElement" , js_name = alt)] #[doc = "Getter for the `alt` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/alt)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn alt(this: &HtmlImageElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLImageElement" , js_name = alt)] #[doc = "Setter for the `alt` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/alt)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn set_alt(this: &HtmlImageElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLImageElement" , js_name = src)] #[doc = "Getter for the `src` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/src)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn src(this: &HtmlImageElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLImageElement" , js_name = src)] #[doc = "Setter for the `src` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/src)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn set_src(this: &HtmlImageElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLImageElement" , js_name = srcset)] #[doc = "Getter for the `srcset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/srcset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn srcset(this: &HtmlImageElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLImageElement" , js_name = srcset)] #[doc = "Setter for the `srcset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/srcset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn set_srcset(this: &HtmlImageElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLImageElement" , js_name = crossOrigin)] #[doc = "Getter for the `crossOrigin` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/crossOrigin)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn cross_origin(this: &HtmlImageElement) -> Option; # [wasm_bindgen (structural , method , setter , js_class = "HTMLImageElement" , js_name = crossOrigin)] #[doc = "Setter for the `crossOrigin` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/crossOrigin)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn set_cross_origin(this: &HtmlImageElement, value: Option<&str>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLImageElement" , js_name = useMap)] #[doc = "Getter for the `useMap` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/useMap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn use_map(this: &HtmlImageElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLImageElement" , js_name = useMap)] #[doc = "Setter for the `useMap` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/useMap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn set_use_map(this: &HtmlImageElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLImageElement" , js_name = referrerPolicy)] #[doc = "Getter for the `referrerPolicy` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/referrerPolicy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn referrer_policy(this: &HtmlImageElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLImageElement" , js_name = referrerPolicy)] #[doc = "Setter for the `referrerPolicy` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/referrerPolicy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn set_referrer_policy(this: &HtmlImageElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLImageElement" , js_name = isMap)] #[doc = "Getter for the `isMap` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/isMap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn is_map(this: &HtmlImageElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLImageElement" , js_name = isMap)] #[doc = "Setter for the `isMap` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/isMap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn set_is_map(this: &HtmlImageElement, value: bool); # [wasm_bindgen (structural , method , getter , js_class = "HTMLImageElement" , js_name = width)] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn width(this: &HtmlImageElement) -> u32; # [wasm_bindgen (structural , method , setter , js_class = "HTMLImageElement" , js_name = width)] #[doc = "Setter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn set_width(this: &HtmlImageElement, value: u32); # [wasm_bindgen (structural , method , getter , js_class = "HTMLImageElement" , js_name = height)] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn height(this: &HtmlImageElement) -> u32; # [wasm_bindgen (structural , method , setter , js_class = "HTMLImageElement" , js_name = height)] #[doc = "Setter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn set_height(this: &HtmlImageElement, value: u32); # [wasm_bindgen (structural , method , getter , js_class = "HTMLImageElement" , js_name = decoding)] #[doc = "Getter for the `decoding` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/decoding)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn decoding(this: &HtmlImageElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLImageElement" , js_name = decoding)] #[doc = "Setter for the `decoding` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/decoding)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn set_decoding(this: &HtmlImageElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLImageElement" , js_name = naturalWidth)] #[doc = "Getter for the `naturalWidth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/naturalWidth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn natural_width(this: &HtmlImageElement) -> u32; # [wasm_bindgen (structural , method , getter , js_class = "HTMLImageElement" , js_name = naturalHeight)] #[doc = "Getter for the `naturalHeight` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/naturalHeight)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn natural_height(this: &HtmlImageElement) -> u32; # [wasm_bindgen (structural , method , getter , js_class = "HTMLImageElement" , js_name = complete)] #[doc = "Getter for the `complete` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/complete)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn complete(this: &HtmlImageElement) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "HTMLImageElement" , js_name = name)] #[doc = "Getter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn name(this: &HtmlImageElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLImageElement" , js_name = name)] #[doc = "Setter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn set_name(this: &HtmlImageElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLImageElement" , js_name = align)] #[doc = "Getter for the `align` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn align(this: &HtmlImageElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLImageElement" , js_name = align)] #[doc = "Setter for the `align` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn set_align(this: &HtmlImageElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLImageElement" , js_name = hspace)] #[doc = "Getter for the `hspace` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/hspace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn hspace(this: &HtmlImageElement) -> u32; # [wasm_bindgen (structural , method , setter , js_class = "HTMLImageElement" , js_name = hspace)] #[doc = "Setter for the `hspace` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/hspace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn set_hspace(this: &HtmlImageElement, value: u32); # [wasm_bindgen (structural , method , getter , js_class = "HTMLImageElement" , js_name = vspace)] #[doc = "Getter for the `vspace` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/vspace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn vspace(this: &HtmlImageElement) -> u32; # [wasm_bindgen (structural , method , setter , js_class = "HTMLImageElement" , js_name = vspace)] #[doc = "Setter for the `vspace` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/vspace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn set_vspace(this: &HtmlImageElement, value: u32); # [wasm_bindgen (structural , method , getter , js_class = "HTMLImageElement" , js_name = longDesc)] #[doc = "Getter for the `longDesc` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/longDesc)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn long_desc(this: &HtmlImageElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLImageElement" , js_name = longDesc)] #[doc = "Setter for the `longDesc` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/longDesc)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn set_long_desc(this: &HtmlImageElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLImageElement" , js_name = border)] #[doc = "Getter for the `border` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/border)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn border(this: &HtmlImageElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLImageElement" , js_name = border)] #[doc = "Setter for the `border` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/border)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn set_border(this: &HtmlImageElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLImageElement" , js_name = sizes)] #[doc = "Getter for the `sizes` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/sizes)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn sizes(this: &HtmlImageElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLImageElement" , js_name = sizes)] #[doc = "Setter for the `sizes` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/sizes)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn set_sizes(this: &HtmlImageElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLImageElement" , js_name = currentSrc)] #[doc = "Getter for the `currentSrc` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/currentSrc)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn current_src(this: &HtmlImageElement) -> String; #[wasm_bindgen(catch, constructor, js_class = "Image")] #[doc = "The `new HtmlImageElement(..)` constructor, creating a new instance of `HtmlImageElement`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/HTMLImageElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn new() -> Result; #[wasm_bindgen(catch, constructor, js_class = "Image")] #[doc = "The `new HtmlImageElement(..)` constructor, creating a new instance of `HtmlImageElement`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/HTMLImageElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn new_with_width(width: u32) -> Result; #[wasm_bindgen(catch, constructor, js_class = "Image")] #[doc = "The `new HtmlImageElement(..)` constructor, creating a new instance of `HtmlImageElement`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/HTMLImageElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn new_with_width_and_height(width: u32, height: u32) -> Result; # [wasm_bindgen (method , structural , js_class = "HTMLImageElement" , js_name = decode)] #[doc = "The `decode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/decode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] pub fn decode(this: &HtmlImageElement) -> ::js_sys::Promise; } web-sys-0.3.55/src/features/gen_HtmlInputElement.rs000064400000000000000000001323600072674642500204060ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLInputElement , typescript_type = "HTMLInputElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlInputElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub type HtmlInputElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = accept)] #[doc = "Getter for the `accept` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/accept)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn accept(this: &HtmlInputElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = accept)] #[doc = "Setter for the `accept` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/accept)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_accept(this: &HtmlInputElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = alt)] #[doc = "Getter for the `alt` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/alt)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn alt(this: &HtmlInputElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = alt)] #[doc = "Setter for the `alt` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/alt)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_alt(this: &HtmlInputElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = autocomplete)] #[doc = "Getter for the `autocomplete` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/autocomplete)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn autocomplete(this: &HtmlInputElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = autocomplete)] #[doc = "Setter for the `autocomplete` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/autocomplete)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_autocomplete(this: &HtmlInputElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = autofocus)] #[doc = "Getter for the `autofocus` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/autofocus)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn autofocus(this: &HtmlInputElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = autofocus)] #[doc = "Setter for the `autofocus` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/autofocus)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_autofocus(this: &HtmlInputElement, value: bool); # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = defaultChecked)] #[doc = "Getter for the `defaultChecked` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/defaultChecked)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn default_checked(this: &HtmlInputElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = defaultChecked)] #[doc = "Setter for the `defaultChecked` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/defaultChecked)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_default_checked(this: &HtmlInputElement, value: bool); # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = checked)] #[doc = "Getter for the `checked` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/checked)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn checked(this: &HtmlInputElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = checked)] #[doc = "Setter for the `checked` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/checked)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_checked(this: &HtmlInputElement, value: bool); # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = disabled)] #[doc = "Getter for the `disabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/disabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn disabled(this: &HtmlInputElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = disabled)] #[doc = "Setter for the `disabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/disabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_disabled(this: &HtmlInputElement, value: bool); #[cfg(feature = "HtmlFormElement")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = form)] #[doc = "Getter for the `form` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/form)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`, `HtmlInputElement`*"] pub fn form(this: &HtmlInputElement) -> Option; #[cfg(feature = "FileList")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = files)] #[doc = "Getter for the `files` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/files)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileList`, `HtmlInputElement`*"] pub fn files(this: &HtmlInputElement) -> Option; #[cfg(feature = "FileList")] # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = files)] #[doc = "Setter for the `files` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/files)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileList`, `HtmlInputElement`*"] pub fn set_files(this: &HtmlInputElement, value: Option<&FileList>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = formAction)] #[doc = "Getter for the `formAction` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/formAction)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn form_action(this: &HtmlInputElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = formAction)] #[doc = "Setter for the `formAction` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/formAction)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_form_action(this: &HtmlInputElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = formEnctype)] #[doc = "Getter for the `formEnctype` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/formEnctype)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn form_enctype(this: &HtmlInputElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = formEnctype)] #[doc = "Setter for the `formEnctype` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/formEnctype)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_form_enctype(this: &HtmlInputElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = formMethod)] #[doc = "Getter for the `formMethod` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/formMethod)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn form_method(this: &HtmlInputElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = formMethod)] #[doc = "Setter for the `formMethod` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/formMethod)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_form_method(this: &HtmlInputElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = formNoValidate)] #[doc = "Getter for the `formNoValidate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/formNoValidate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn form_no_validate(this: &HtmlInputElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = formNoValidate)] #[doc = "Setter for the `formNoValidate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/formNoValidate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_form_no_validate(this: &HtmlInputElement, value: bool); # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = formTarget)] #[doc = "Getter for the `formTarget` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/formTarget)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn form_target(this: &HtmlInputElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = formTarget)] #[doc = "Setter for the `formTarget` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/formTarget)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_form_target(this: &HtmlInputElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = height)] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn height(this: &HtmlInputElement) -> u32; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = height)] #[doc = "Setter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_height(this: &HtmlInputElement, value: u32); # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = indeterminate)] #[doc = "Getter for the `indeterminate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/indeterminate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn indeterminate(this: &HtmlInputElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = indeterminate)] #[doc = "Setter for the `indeterminate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/indeterminate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_indeterminate(this: &HtmlInputElement, value: bool); # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = inputMode)] #[doc = "Getter for the `inputMode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/inputMode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn input_mode(this: &HtmlInputElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = inputMode)] #[doc = "Setter for the `inputMode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/inputMode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_input_mode(this: &HtmlInputElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = list)] #[doc = "Getter for the `list` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/list)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn list(this: &HtmlInputElement) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = max)] #[doc = "Getter for the `max` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/max)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn max(this: &HtmlInputElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = max)] #[doc = "Setter for the `max` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/max)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_max(this: &HtmlInputElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = maxLength)] #[doc = "Getter for the `maxLength` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/maxLength)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn max_length(this: &HtmlInputElement) -> i32; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = maxLength)] #[doc = "Setter for the `maxLength` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/maxLength)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_max_length(this: &HtmlInputElement, value: i32); # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = min)] #[doc = "Getter for the `min` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/min)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn min(this: &HtmlInputElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = min)] #[doc = "Setter for the `min` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/min)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_min(this: &HtmlInputElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = minLength)] #[doc = "Getter for the `minLength` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/minLength)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn min_length(this: &HtmlInputElement) -> i32; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = minLength)] #[doc = "Setter for the `minLength` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/minLength)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_min_length(this: &HtmlInputElement, value: i32); # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = multiple)] #[doc = "Getter for the `multiple` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/multiple)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn multiple(this: &HtmlInputElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = multiple)] #[doc = "Setter for the `multiple` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/multiple)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_multiple(this: &HtmlInputElement, value: bool); # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = name)] #[doc = "Getter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn name(this: &HtmlInputElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = name)] #[doc = "Setter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_name(this: &HtmlInputElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = pattern)] #[doc = "Getter for the `pattern` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/pattern)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn pattern(this: &HtmlInputElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = pattern)] #[doc = "Setter for the `pattern` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/pattern)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_pattern(this: &HtmlInputElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = placeholder)] #[doc = "Getter for the `placeholder` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/placeholder)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn placeholder(this: &HtmlInputElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = placeholder)] #[doc = "Setter for the `placeholder` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/placeholder)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_placeholder(this: &HtmlInputElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = readOnly)] #[doc = "Getter for the `readOnly` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/readOnly)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn read_only(this: &HtmlInputElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = readOnly)] #[doc = "Setter for the `readOnly` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/readOnly)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_read_only(this: &HtmlInputElement, value: bool); # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = required)] #[doc = "Getter for the `required` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/required)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn required(this: &HtmlInputElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = required)] #[doc = "Setter for the `required` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/required)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_required(this: &HtmlInputElement, value: bool); # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = size)] #[doc = "Getter for the `size` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/size)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn size(this: &HtmlInputElement) -> u32; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = size)] #[doc = "Setter for the `size` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/size)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_size(this: &HtmlInputElement, value: u32); # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = src)] #[doc = "Getter for the `src` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/src)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn src(this: &HtmlInputElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = src)] #[doc = "Setter for the `src` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/src)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_src(this: &HtmlInputElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = step)] #[doc = "Getter for the `step` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/step)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn step(this: &HtmlInputElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = step)] #[doc = "Setter for the `step` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/step)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_step(this: &HtmlInputElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = type)] #[doc = "Getter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn type_(this: &HtmlInputElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = type)] #[doc = "Setter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_type(this: &HtmlInputElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = defaultValue)] #[doc = "Getter for the `defaultValue` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/defaultValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn default_value(this: &HtmlInputElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = defaultValue)] #[doc = "Setter for the `defaultValue` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/defaultValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_default_value(this: &HtmlInputElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = value)] #[doc = "Getter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn value(this: &HtmlInputElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = value)] #[doc = "Setter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_value(this: &HtmlInputElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = valueAsNumber)] #[doc = "Getter for the `valueAsNumber` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/valueAsNumber)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn value_as_number(this: &HtmlInputElement) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = valueAsNumber)] #[doc = "Setter for the `valueAsNumber` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/valueAsNumber)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_value_as_number(this: &HtmlInputElement, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = width)] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn width(this: &HtmlInputElement) -> u32; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = width)] #[doc = "Setter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_width(this: &HtmlInputElement, value: u32); # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = willValidate)] #[doc = "Getter for the `willValidate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/willValidate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn will_validate(this: &HtmlInputElement) -> bool; #[cfg(feature = "ValidityState")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = validity)] #[doc = "Getter for the `validity` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/validity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`, `ValidityState`*"] pub fn validity(this: &HtmlInputElement) -> ValidityState; # [wasm_bindgen (structural , catch , method , getter , js_class = "HTMLInputElement" , js_name = validationMessage)] #[doc = "Getter for the `validationMessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/validationMessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn validation_message(this: &HtmlInputElement) -> Result; #[cfg(feature = "NodeList")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = labels)] #[doc = "Getter for the `labels` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/labels)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`, `NodeList`*"] pub fn labels(this: &HtmlInputElement) -> Option; # [wasm_bindgen (structural , catch , method , getter , js_class = "HTMLInputElement" , js_name = selectionStart)] #[doc = "Getter for the `selectionStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/selectionStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn selection_start(this: &HtmlInputElement) -> Result, JsValue>; # [wasm_bindgen (structural , catch , method , setter , js_class = "HTMLInputElement" , js_name = selectionStart)] #[doc = "Setter for the `selectionStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/selectionStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_selection_start(this: &HtmlInputElement, value: Option) -> Result<(), JsValue>; # [wasm_bindgen (structural , catch , method , getter , js_class = "HTMLInputElement" , js_name = selectionEnd)] #[doc = "Getter for the `selectionEnd` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/selectionEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn selection_end(this: &HtmlInputElement) -> Result, JsValue>; # [wasm_bindgen (structural , catch , method , setter , js_class = "HTMLInputElement" , js_name = selectionEnd)] #[doc = "Setter for the `selectionEnd` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/selectionEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_selection_end(this: &HtmlInputElement, value: Option) -> Result<(), JsValue>; # [wasm_bindgen (structural , catch , method , getter , js_class = "HTMLInputElement" , js_name = selectionDirection)] #[doc = "Getter for the `selectionDirection` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/selectionDirection)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn selection_direction(this: &HtmlInputElement) -> Result, JsValue>; # [wasm_bindgen (structural , catch , method , setter , js_class = "HTMLInputElement" , js_name = selectionDirection)] #[doc = "Setter for the `selectionDirection` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/selectionDirection)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_selection_direction( this: &HtmlInputElement, value: Option<&str>, ) -> Result<(), JsValue>; # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = align)] #[doc = "Getter for the `align` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn align(this: &HtmlInputElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = align)] #[doc = "Setter for the `align` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_align(this: &HtmlInputElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = useMap)] #[doc = "Getter for the `useMap` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/useMap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn use_map(this: &HtmlInputElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = useMap)] #[doc = "Setter for the `useMap` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/useMap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_use_map(this: &HtmlInputElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = webkitEntries)] #[doc = "Getter for the `webkitEntries` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/webkitEntries)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn webkit_entries(this: &HtmlInputElement) -> ::js_sys::Array; # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = webkitdirectory)] #[doc = "Getter for the `webkitdirectory` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/webkitdirectory)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn webkitdirectory(this: &HtmlInputElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = webkitdirectory)] #[doc = "Setter for the `webkitdirectory` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/webkitdirectory)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_webkitdirectory(this: &HtmlInputElement, value: bool); # [wasm_bindgen (method , structural , js_class = "HTMLInputElement" , js_name = checkValidity)] #[doc = "The `checkValidity()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/checkValidity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn check_validity(this: &HtmlInputElement) -> bool; # [wasm_bindgen (method , structural , js_class = "HTMLInputElement" , js_name = reportValidity)] #[doc = "The `reportValidity()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/reportValidity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn report_validity(this: &HtmlInputElement) -> bool; # [wasm_bindgen (method , structural , js_class = "HTMLInputElement" , js_name = select)] #[doc = "The `select()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/select)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn select(this: &HtmlInputElement); # [wasm_bindgen (method , structural , js_class = "HTMLInputElement" , js_name = setCustomValidity)] #[doc = "The `setCustomValidity()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setCustomValidity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_custom_validity(this: &HtmlInputElement, error: &str); # [wasm_bindgen (catch , method , structural , js_class = "HTMLInputElement" , js_name = setRangeText)] #[doc = "The `setRangeText()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setRangeText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_range_text(this: &HtmlInputElement, replacement: &str) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "HTMLInputElement" , js_name = setRangeText)] #[doc = "The `setRangeText()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setRangeText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_range_text_with_start_and_end( this: &HtmlInputElement, replacement: &str, start: u32, end: u32, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "HTMLInputElement" , js_name = setSelectionRange)] #[doc = "The `setSelectionRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setSelectionRange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_selection_range( this: &HtmlInputElement, start: u32, end: u32, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "HTMLInputElement" , js_name = setSelectionRange)] #[doc = "The `setSelectionRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setSelectionRange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_selection_range_with_direction( this: &HtmlInputElement, start: u32, end: u32, direction: &str, ) -> Result<(), JsValue>; } web-sys-0.3.55/src/features/gen_HtmlLabelElement.rs000064400000000000000000000050460072674642500203260ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLLabelElement , typescript_type = "HTMLLabelElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlLabelElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLabelElement`*"] pub type HtmlLabelElement; #[cfg(feature = "HtmlFormElement")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLLabelElement" , js_name = form)] #[doc = "Getter for the `form` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/form)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`, `HtmlLabelElement`*"] pub fn form(this: &HtmlLabelElement) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "HTMLLabelElement" , js_name = htmlFor)] #[doc = "Getter for the `htmlFor` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/htmlFor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLabelElement`*"] pub fn html_for(this: &HtmlLabelElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLLabelElement" , js_name = htmlFor)] #[doc = "Setter for the `htmlFor` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/htmlFor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLabelElement`*"] pub fn set_html_for(this: &HtmlLabelElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLLabelElement" , js_name = control)] #[doc = "Getter for the `control` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLabelElement`*"] pub fn control(this: &HtmlLabelElement) -> Option; } web-sys-0.3.55/src/features/gen_HtmlLegendElement.rs000064400000000000000000000041120072674642500204760ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLLegendElement , typescript_type = "HTMLLegendElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlLegendElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLegendElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLegendElement`*"] pub type HtmlLegendElement; #[cfg(feature = "HtmlFormElement")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLLegendElement" , js_name = form)] #[doc = "Getter for the `form` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLegendElement/form)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`, `HtmlLegendElement`*"] pub fn form(this: &HtmlLegendElement) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "HTMLLegendElement" , js_name = align)] #[doc = "Getter for the `align` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLegendElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLegendElement`*"] pub fn align(this: &HtmlLegendElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLLegendElement" , js_name = align)] #[doc = "Setter for the `align` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLegendElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLegendElement`*"] pub fn set_align(this: &HtmlLegendElement, value: &str); } web-sys-0.3.55/src/features/gen_HtmlLiElement.rs000064400000000000000000000045610072674642500176540ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLLIElement , typescript_type = "HTMLLIElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlLiElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLIElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLiElement`*"] pub type HtmlLiElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLLIElement" , js_name = value)] #[doc = "Getter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLIElement/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLiElement`*"] pub fn value(this: &HtmlLiElement) -> i32; # [wasm_bindgen (structural , method , setter , js_class = "HTMLLIElement" , js_name = value)] #[doc = "Setter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLIElement/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLiElement`*"] pub fn set_value(this: &HtmlLiElement, value: i32); # [wasm_bindgen (structural , method , getter , js_class = "HTMLLIElement" , js_name = type)] #[doc = "Getter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLIElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLiElement`*"] pub fn type_(this: &HtmlLiElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLLIElement" , js_name = type)] #[doc = "Setter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLIElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLiElement`*"] pub fn set_type(this: &HtmlLiElement, value: &str); } web-sys-0.3.55/src/features/gen_HtmlLinkElement.rs000064400000000000000000000335500072674642500202050ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLLinkElement , typescript_type = "HTMLLinkElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlLinkElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] pub type HtmlLinkElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLLinkElement" , js_name = disabled)] #[doc = "Getter for the `disabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/disabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] pub fn disabled(this: &HtmlLinkElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLLinkElement" , js_name = disabled)] #[doc = "Setter for the `disabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/disabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] pub fn set_disabled(this: &HtmlLinkElement, value: bool); # [wasm_bindgen (structural , method , getter , js_class = "HTMLLinkElement" , js_name = href)] #[doc = "Getter for the `href` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/href)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] pub fn href(this: &HtmlLinkElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLLinkElement" , js_name = href)] #[doc = "Setter for the `href` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/href)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] pub fn set_href(this: &HtmlLinkElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLLinkElement" , js_name = crossOrigin)] #[doc = "Getter for the `crossOrigin` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/crossOrigin)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] pub fn cross_origin(this: &HtmlLinkElement) -> Option; # [wasm_bindgen (structural , method , setter , js_class = "HTMLLinkElement" , js_name = crossOrigin)] #[doc = "Setter for the `crossOrigin` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/crossOrigin)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] pub fn set_cross_origin(this: &HtmlLinkElement, value: Option<&str>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLLinkElement" , js_name = rel)] #[doc = "Getter for the `rel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/rel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] pub fn rel(this: &HtmlLinkElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLLinkElement" , js_name = rel)] #[doc = "Setter for the `rel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/rel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] pub fn set_rel(this: &HtmlLinkElement, value: &str); #[cfg(feature = "DomTokenList")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLLinkElement" , js_name = relList)] #[doc = "Getter for the `relList` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/relList)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`, `HtmlLinkElement`*"] pub fn rel_list(this: &HtmlLinkElement) -> DomTokenList; # [wasm_bindgen (structural , method , getter , js_class = "HTMLLinkElement" , js_name = media)] #[doc = "Getter for the `media` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/media)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] pub fn media(this: &HtmlLinkElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLLinkElement" , js_name = media)] #[doc = "Setter for the `media` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/media)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] pub fn set_media(this: &HtmlLinkElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLLinkElement" , js_name = hreflang)] #[doc = "Getter for the `hreflang` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/hreflang)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] pub fn hreflang(this: &HtmlLinkElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLLinkElement" , js_name = hreflang)] #[doc = "Setter for the `hreflang` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/hreflang)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] pub fn set_hreflang(this: &HtmlLinkElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLLinkElement" , js_name = type)] #[doc = "Getter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] pub fn type_(this: &HtmlLinkElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLLinkElement" , js_name = type)] #[doc = "Setter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] pub fn set_type(this: &HtmlLinkElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLLinkElement" , js_name = referrerPolicy)] #[doc = "Getter for the `referrerPolicy` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/referrerPolicy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] pub fn referrer_policy(this: &HtmlLinkElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLLinkElement" , js_name = referrerPolicy)] #[doc = "Setter for the `referrerPolicy` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/referrerPolicy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] pub fn set_referrer_policy(this: &HtmlLinkElement, value: &str); #[cfg(feature = "DomTokenList")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLLinkElement" , js_name = sizes)] #[doc = "Getter for the `sizes` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/sizes)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`, `HtmlLinkElement`*"] pub fn sizes(this: &HtmlLinkElement) -> DomTokenList; # [wasm_bindgen (structural , method , getter , js_class = "HTMLLinkElement" , js_name = charset)] #[doc = "Getter for the `charset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/charset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] pub fn charset(this: &HtmlLinkElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLLinkElement" , js_name = charset)] #[doc = "Setter for the `charset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/charset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] pub fn set_charset(this: &HtmlLinkElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLLinkElement" , js_name = rev)] #[doc = "Getter for the `rev` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/rev)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] pub fn rev(this: &HtmlLinkElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLLinkElement" , js_name = rev)] #[doc = "Setter for the `rev` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/rev)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] pub fn set_rev(this: &HtmlLinkElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLLinkElement" , js_name = target)] #[doc = "Getter for the `target` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/target)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] pub fn target(this: &HtmlLinkElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLLinkElement" , js_name = target)] #[doc = "Setter for the `target` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/target)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] pub fn set_target(this: &HtmlLinkElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLLinkElement" , js_name = integrity)] #[doc = "Getter for the `integrity` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/integrity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] pub fn integrity(this: &HtmlLinkElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLLinkElement" , js_name = integrity)] #[doc = "Setter for the `integrity` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/integrity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] pub fn set_integrity(this: &HtmlLinkElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLLinkElement" , js_name = as)] #[doc = "Getter for the `as` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/as)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] pub fn as_(this: &HtmlLinkElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLLinkElement" , js_name = as)] #[doc = "Setter for the `as` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/as)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] pub fn set_as(this: &HtmlLinkElement, value: &str); #[cfg(feature = "StyleSheet")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLLinkElement" , js_name = sheet)] #[doc = "Getter for the `sheet` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/sheet)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`, `StyleSheet`*"] pub fn sheet(this: &HtmlLinkElement) -> Option; } web-sys-0.3.55/src/features/gen_HtmlMapElement.rs000064400000000000000000000040050072674642500200160ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLMapElement , typescript_type = "HTMLMapElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlMapElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMapElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMapElement`*"] pub type HtmlMapElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLMapElement" , js_name = name)] #[doc = "Getter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMapElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMapElement`*"] pub fn name(this: &HtmlMapElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLMapElement" , js_name = name)] #[doc = "Setter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMapElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMapElement`*"] pub fn set_name(this: &HtmlMapElement, value: &str); #[cfg(feature = "HtmlCollection")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLMapElement" , js_name = areas)] #[doc = "Getter for the `areas` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMapElement/areas)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`, `HtmlMapElement`*"] pub fn areas(this: &HtmlMapElement) -> HtmlCollection; } web-sys-0.3.55/src/features/gen_HtmlMediaElement.rs000064400000000000000000000741360072674642500203340ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLMediaElement , typescript_type = "HTMLMediaElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlMediaElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub type HtmlMediaElement; #[cfg(feature = "MediaError")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = error)] #[doc = "Getter for the `error` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/error)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`, `MediaError`*"] pub fn error(this: &HtmlMediaElement) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = src)] #[doc = "Getter for the `src` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/src)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn src(this: &HtmlMediaElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLMediaElement" , js_name = src)] #[doc = "Setter for the `src` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/src)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn set_src(this: &HtmlMediaElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = currentSrc)] #[doc = "Getter for the `currentSrc` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/currentSrc)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn current_src(this: &HtmlMediaElement) -> String; #[cfg(feature = "MediaStream")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = srcObject)] #[doc = "Getter for the `srcObject` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/srcObject)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`, `MediaStream`*"] pub fn src_object(this: &HtmlMediaElement) -> Option; #[cfg(feature = "MediaStream")] # [wasm_bindgen (structural , method , setter , js_class = "HTMLMediaElement" , js_name = srcObject)] #[doc = "Setter for the `srcObject` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/srcObject)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`, `MediaStream`*"] pub fn set_src_object(this: &HtmlMediaElement, value: Option<&MediaStream>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = crossOrigin)] #[doc = "Getter for the `crossOrigin` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/crossOrigin)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn cross_origin(this: &HtmlMediaElement) -> Option; # [wasm_bindgen (structural , method , setter , js_class = "HTMLMediaElement" , js_name = crossOrigin)] #[doc = "Setter for the `crossOrigin` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/crossOrigin)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn set_cross_origin(this: &HtmlMediaElement, value: Option<&str>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = networkState)] #[doc = "Getter for the `networkState` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/networkState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn network_state(this: &HtmlMediaElement) -> u16; # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = preload)] #[doc = "Getter for the `preload` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/preload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn preload(this: &HtmlMediaElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLMediaElement" , js_name = preload)] #[doc = "Setter for the `preload` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/preload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn set_preload(this: &HtmlMediaElement, value: &str); #[cfg(feature = "TimeRanges")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = buffered)] #[doc = "Getter for the `buffered` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/buffered)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`, `TimeRanges`*"] pub fn buffered(this: &HtmlMediaElement) -> TimeRanges; # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = readyState)] #[doc = "Getter for the `readyState` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/readyState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn ready_state(this: &HtmlMediaElement) -> u16; # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = seeking)] #[doc = "Getter for the `seeking` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/seeking)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn seeking(this: &HtmlMediaElement) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = currentTime)] #[doc = "Getter for the `currentTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/currentTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn current_time(this: &HtmlMediaElement) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "HTMLMediaElement" , js_name = currentTime)] #[doc = "Setter for the `currentTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/currentTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn set_current_time(this: &HtmlMediaElement, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = duration)] #[doc = "Getter for the `duration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/duration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn duration(this: &HtmlMediaElement) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = paused)] #[doc = "Getter for the `paused` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/paused)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn paused(this: &HtmlMediaElement) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = defaultPlaybackRate)] #[doc = "Getter for the `defaultPlaybackRate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/defaultPlaybackRate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn default_playback_rate(this: &HtmlMediaElement) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "HTMLMediaElement" , js_name = defaultPlaybackRate)] #[doc = "Setter for the `defaultPlaybackRate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/defaultPlaybackRate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn set_default_playback_rate(this: &HtmlMediaElement, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = playbackRate)] #[doc = "Getter for the `playbackRate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/playbackRate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn playback_rate(this: &HtmlMediaElement) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "HTMLMediaElement" , js_name = playbackRate)] #[doc = "Setter for the `playbackRate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/playbackRate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn set_playback_rate(this: &HtmlMediaElement, value: f64); #[cfg(feature = "TimeRanges")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = played)] #[doc = "Getter for the `played` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/played)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`, `TimeRanges`*"] pub fn played(this: &HtmlMediaElement) -> TimeRanges; #[cfg(feature = "TimeRanges")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = seekable)] #[doc = "Getter for the `seekable` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/seekable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`, `TimeRanges`*"] pub fn seekable(this: &HtmlMediaElement) -> TimeRanges; # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = ended)] #[doc = "Getter for the `ended` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/ended)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn ended(this: &HtmlMediaElement) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = autoplay)] #[doc = "Getter for the `autoplay` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/autoplay)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn autoplay(this: &HtmlMediaElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLMediaElement" , js_name = autoplay)] #[doc = "Setter for the `autoplay` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/autoplay)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn set_autoplay(this: &HtmlMediaElement, value: bool); # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = loop)] #[doc = "Getter for the `loop` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/loop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn loop_(this: &HtmlMediaElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLMediaElement" , js_name = loop)] #[doc = "Setter for the `loop` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/loop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn set_loop(this: &HtmlMediaElement, value: bool); # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = controls)] #[doc = "Getter for the `controls` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/controls)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn controls(this: &HtmlMediaElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLMediaElement" , js_name = controls)] #[doc = "Setter for the `controls` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/controls)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn set_controls(this: &HtmlMediaElement, value: bool); # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = volume)] #[doc = "Getter for the `volume` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/volume)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn volume(this: &HtmlMediaElement) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "HTMLMediaElement" , js_name = volume)] #[doc = "Setter for the `volume` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/volume)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn set_volume(this: &HtmlMediaElement, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = muted)] #[doc = "Getter for the `muted` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/muted)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn muted(this: &HtmlMediaElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLMediaElement" , js_name = muted)] #[doc = "Setter for the `muted` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/muted)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn set_muted(this: &HtmlMediaElement, value: bool); # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = defaultMuted)] #[doc = "Getter for the `defaultMuted` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/defaultMuted)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn default_muted(this: &HtmlMediaElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLMediaElement" , js_name = defaultMuted)] #[doc = "Setter for the `defaultMuted` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/defaultMuted)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn set_default_muted(this: &HtmlMediaElement, value: bool); #[cfg(feature = "AudioTrackList")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = audioTracks)] #[doc = "Getter for the `audioTracks` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/audioTracks)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioTrackList`, `HtmlMediaElement`*"] pub fn audio_tracks(this: &HtmlMediaElement) -> AudioTrackList; #[cfg(feature = "VideoTrackList")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = videoTracks)] #[doc = "Getter for the `videoTracks` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/videoTracks)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`, `VideoTrackList`*"] pub fn video_tracks(this: &HtmlMediaElement) -> VideoTrackList; #[cfg(feature = "TextTrackList")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = textTracks)] #[doc = "Getter for the `textTracks` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/textTracks)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`, `TextTrackList`*"] pub fn text_tracks(this: &HtmlMediaElement) -> Option; #[cfg(feature = "MediaKeys")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = mediaKeys)] #[doc = "Getter for the `mediaKeys` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/mediaKeys)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`, `MediaKeys`*"] pub fn media_keys(this: &HtmlMediaElement) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = onencrypted)] #[doc = "Getter for the `onencrypted` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/onencrypted)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn onencrypted(this: &HtmlMediaElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLMediaElement" , js_name = onencrypted)] #[doc = "Setter for the `onencrypted` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/onencrypted)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn set_onencrypted(this: &HtmlMediaElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = onwaitingforkey)] #[doc = "Getter for the `onwaitingforkey` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/onwaitingforkey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn onwaitingforkey(this: &HtmlMediaElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLMediaElement" , js_name = onwaitingforkey)] #[doc = "Setter for the `onwaitingforkey` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/onwaitingforkey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn set_onwaitingforkey(this: &HtmlMediaElement, value: Option<&::js_sys::Function>); #[cfg(all(feature = "TextTrack", feature = "TextTrackKind",))] # [wasm_bindgen (method , structural , js_class = "HTMLMediaElement" , js_name = addTextTrack)] #[doc = "The `addTextTrack()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/addTextTrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`, `TextTrack`, `TextTrackKind`*"] pub fn add_text_track(this: &HtmlMediaElement, kind: TextTrackKind) -> TextTrack; #[cfg(all(feature = "TextTrack", feature = "TextTrackKind",))] # [wasm_bindgen (method , structural , js_class = "HTMLMediaElement" , js_name = addTextTrack)] #[doc = "The `addTextTrack()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/addTextTrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`, `TextTrack`, `TextTrackKind`*"] pub fn add_text_track_with_label( this: &HtmlMediaElement, kind: TextTrackKind, label: &str, ) -> TextTrack; #[cfg(all(feature = "TextTrack", feature = "TextTrackKind",))] # [wasm_bindgen (method , structural , js_class = "HTMLMediaElement" , js_name = addTextTrack)] #[doc = "The `addTextTrack()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/addTextTrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`, `TextTrack`, `TextTrackKind`*"] pub fn add_text_track_with_label_and_language( this: &HtmlMediaElement, kind: TextTrackKind, label: &str, language: &str, ) -> TextTrack; # [wasm_bindgen (method , structural , js_class = "HTMLMediaElement" , js_name = canPlayType)] #[doc = "The `canPlayType()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/canPlayType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn can_play_type(this: &HtmlMediaElement, type_: &str) -> String; # [wasm_bindgen (catch , method , structural , js_class = "HTMLMediaElement" , js_name = fastSeek)] #[doc = "The `fastSeek()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/fastSeek)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn fast_seek(this: &HtmlMediaElement, time: f64) -> Result<(), JsValue>; # [wasm_bindgen (method , structural , js_class = "HTMLMediaElement" , js_name = hasSuspendTaint)] #[doc = "The `hasSuspendTaint()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/hasSuspendTaint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn has_suspend_taint(this: &HtmlMediaElement) -> bool; # [wasm_bindgen (method , structural , js_class = "HTMLMediaElement" , js_name = load)] #[doc = "The `load()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/load)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn load(this: &HtmlMediaElement); # [wasm_bindgen (catch , method , structural , js_class = "HTMLMediaElement" , js_name = pause)] #[doc = "The `pause()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/pause)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn pause(this: &HtmlMediaElement) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "HTMLMediaElement" , js_name = play)] #[doc = "The `play()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/play)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn play(this: &HtmlMediaElement) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "HTMLMediaElement" , js_name = seekToNextFrame)] #[doc = "The `seekToNextFrame()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/seekToNextFrame)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn seek_to_next_frame(this: &HtmlMediaElement) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "MediaKeys")] # [wasm_bindgen (method , structural , js_class = "HTMLMediaElement" , js_name = setMediaKeys)] #[doc = "The `setMediaKeys()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/setMediaKeys)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`, `MediaKeys`*"] pub fn set_media_keys( this: &HtmlMediaElement, media_keys: Option<&MediaKeys>, ) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "HTMLMediaElement" , js_name = setVisible)] #[doc = "The `setVisible()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/setVisible)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub fn set_visible(this: &HtmlMediaElement, a_visible: bool); } impl HtmlMediaElement { #[doc = "The `HTMLMediaElement.NETWORK_EMPTY` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub const NETWORK_EMPTY: u16 = 0i64 as u16; #[doc = "The `HTMLMediaElement.NETWORK_IDLE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub const NETWORK_IDLE: u16 = 1u64 as u16; #[doc = "The `HTMLMediaElement.NETWORK_LOADING` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub const NETWORK_LOADING: u16 = 2u64 as u16; #[doc = "The `HTMLMediaElement.NETWORK_NO_SOURCE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub const NETWORK_NO_SOURCE: u16 = 3u64 as u16; #[doc = "The `HTMLMediaElement.HAVE_NOTHING` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub const HAVE_NOTHING: u16 = 0i64 as u16; #[doc = "The `HTMLMediaElement.HAVE_METADATA` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub const HAVE_METADATA: u16 = 1u64 as u16; #[doc = "The `HTMLMediaElement.HAVE_CURRENT_DATA` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub const HAVE_CURRENT_DATA: u16 = 2u64 as u16; #[doc = "The `HTMLMediaElement.HAVE_FUTURE_DATA` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub const HAVE_FUTURE_DATA: u16 = 3u64 as u16; #[doc = "The `HTMLMediaElement.HAVE_ENOUGH_DATA` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] pub const HAVE_ENOUGH_DATA: u16 = 4u64 as u16; } web-sys-0.3.55/src/features/gen_HtmlMenuElement.rs000064400000000000000000000064740072674642500202210ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLMenuElement , typescript_type = "HTMLMenuElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlMenuElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMenuElement`*"] pub type HtmlMenuElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLMenuElement" , js_name = type)] #[doc = "Getter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMenuElement`*"] pub fn type_(this: &HtmlMenuElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLMenuElement" , js_name = type)] #[doc = "Setter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMenuElement`*"] pub fn set_type(this: &HtmlMenuElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLMenuElement" , js_name = label)] #[doc = "Getter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuElement/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMenuElement`*"] pub fn label(this: &HtmlMenuElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLMenuElement" , js_name = label)] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuElement/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMenuElement`*"] pub fn set_label(this: &HtmlMenuElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLMenuElement" , js_name = compact)] #[doc = "Getter for the `compact` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuElement/compact)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMenuElement`*"] pub fn compact(this: &HtmlMenuElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLMenuElement" , js_name = compact)] #[doc = "Setter for the `compact` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuElement/compact)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMenuElement`*"] pub fn set_compact(this: &HtmlMenuElement, value: bool); } web-sys-0.3.55/src/features/gen_HtmlMenuItemElement.rs000064400000000000000000000163460072674642500210370ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLMenuItemElement , typescript_type = "HTMLMenuItemElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlMenuItemElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuItemElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"] pub type HtmlMenuItemElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLMenuItemElement" , js_name = type)] #[doc = "Getter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuItemElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"] pub fn type_(this: &HtmlMenuItemElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLMenuItemElement" , js_name = type)] #[doc = "Setter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuItemElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"] pub fn set_type(this: &HtmlMenuItemElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLMenuItemElement" , js_name = label)] #[doc = "Getter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuItemElement/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"] pub fn label(this: &HtmlMenuItemElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLMenuItemElement" , js_name = label)] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuItemElement/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"] pub fn set_label(this: &HtmlMenuItemElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLMenuItemElement" , js_name = icon)] #[doc = "Getter for the `icon` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuItemElement/icon)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"] pub fn icon(this: &HtmlMenuItemElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLMenuItemElement" , js_name = icon)] #[doc = "Setter for the `icon` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuItemElement/icon)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"] pub fn set_icon(this: &HtmlMenuItemElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLMenuItemElement" , js_name = disabled)] #[doc = "Getter for the `disabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuItemElement/disabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"] pub fn disabled(this: &HtmlMenuItemElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLMenuItemElement" , js_name = disabled)] #[doc = "Setter for the `disabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuItemElement/disabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"] pub fn set_disabled(this: &HtmlMenuItemElement, value: bool); # [wasm_bindgen (structural , method , getter , js_class = "HTMLMenuItemElement" , js_name = checked)] #[doc = "Getter for the `checked` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuItemElement/checked)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"] pub fn checked(this: &HtmlMenuItemElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLMenuItemElement" , js_name = checked)] #[doc = "Setter for the `checked` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuItemElement/checked)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"] pub fn set_checked(this: &HtmlMenuItemElement, value: bool); # [wasm_bindgen (structural , method , getter , js_class = "HTMLMenuItemElement" , js_name = radiogroup)] #[doc = "Getter for the `radiogroup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuItemElement/radiogroup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"] pub fn radiogroup(this: &HtmlMenuItemElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLMenuItemElement" , js_name = radiogroup)] #[doc = "Setter for the `radiogroup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuItemElement/radiogroup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"] pub fn set_radiogroup(this: &HtmlMenuItemElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLMenuItemElement" , js_name = defaultChecked)] #[doc = "Getter for the `defaultChecked` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuItemElement/defaultChecked)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"] pub fn default_checked(this: &HtmlMenuItemElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLMenuItemElement" , js_name = defaultChecked)] #[doc = "Setter for the `defaultChecked` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuItemElement/defaultChecked)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"] pub fn set_default_checked(this: &HtmlMenuItemElement, value: bool); } web-sys-0.3.55/src/features/gen_HtmlMetaElement.rs000064400000000000000000000103640072674642500201740ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLMetaElement , typescript_type = "HTMLMetaElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlMetaElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMetaElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMetaElement`*"] pub type HtmlMetaElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLMetaElement" , js_name = name)] #[doc = "Getter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMetaElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMetaElement`*"] pub fn name(this: &HtmlMetaElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLMetaElement" , js_name = name)] #[doc = "Setter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMetaElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMetaElement`*"] pub fn set_name(this: &HtmlMetaElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLMetaElement" , js_name = httpEquiv)] #[doc = "Getter for the `httpEquiv` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMetaElement/httpEquiv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMetaElement`*"] pub fn http_equiv(this: &HtmlMetaElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLMetaElement" , js_name = httpEquiv)] #[doc = "Setter for the `httpEquiv` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMetaElement/httpEquiv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMetaElement`*"] pub fn set_http_equiv(this: &HtmlMetaElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLMetaElement" , js_name = content)] #[doc = "Getter for the `content` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMetaElement/content)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMetaElement`*"] pub fn content(this: &HtmlMetaElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLMetaElement" , js_name = content)] #[doc = "Setter for the `content` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMetaElement/content)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMetaElement`*"] pub fn set_content(this: &HtmlMetaElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLMetaElement" , js_name = scheme)] #[doc = "Getter for the `scheme` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMetaElement/scheme)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMetaElement`*"] pub fn scheme(this: &HtmlMetaElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLMetaElement" , js_name = scheme)] #[doc = "Setter for the `scheme` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMetaElement/scheme)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMetaElement`*"] pub fn set_scheme(this: &HtmlMetaElement, value: &str); } web-sys-0.3.55/src/features/gen_HtmlMeterElement.rs000064400000000000000000000147140072674642500203650ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLMeterElement , typescript_type = "HTMLMeterElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlMeterElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMeterElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMeterElement`*"] pub type HtmlMeterElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLMeterElement" , js_name = value)] #[doc = "Getter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMeterElement/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMeterElement`*"] pub fn value(this: &HtmlMeterElement) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "HTMLMeterElement" , js_name = value)] #[doc = "Setter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMeterElement/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMeterElement`*"] pub fn set_value(this: &HtmlMeterElement, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "HTMLMeterElement" , js_name = min)] #[doc = "Getter for the `min` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMeterElement/min)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMeterElement`*"] pub fn min(this: &HtmlMeterElement) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "HTMLMeterElement" , js_name = min)] #[doc = "Setter for the `min` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMeterElement/min)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMeterElement`*"] pub fn set_min(this: &HtmlMeterElement, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "HTMLMeterElement" , js_name = max)] #[doc = "Getter for the `max` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMeterElement/max)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMeterElement`*"] pub fn max(this: &HtmlMeterElement) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "HTMLMeterElement" , js_name = max)] #[doc = "Setter for the `max` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMeterElement/max)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMeterElement`*"] pub fn set_max(this: &HtmlMeterElement, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "HTMLMeterElement" , js_name = low)] #[doc = "Getter for the `low` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMeterElement/low)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMeterElement`*"] pub fn low(this: &HtmlMeterElement) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "HTMLMeterElement" , js_name = low)] #[doc = "Setter for the `low` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMeterElement/low)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMeterElement`*"] pub fn set_low(this: &HtmlMeterElement, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "HTMLMeterElement" , js_name = high)] #[doc = "Getter for the `high` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMeterElement/high)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMeterElement`*"] pub fn high(this: &HtmlMeterElement) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "HTMLMeterElement" , js_name = high)] #[doc = "Setter for the `high` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMeterElement/high)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMeterElement`*"] pub fn set_high(this: &HtmlMeterElement, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "HTMLMeterElement" , js_name = optimum)] #[doc = "Getter for the `optimum` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMeterElement/optimum)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMeterElement`*"] pub fn optimum(this: &HtmlMeterElement) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "HTMLMeterElement" , js_name = optimum)] #[doc = "Setter for the `optimum` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMeterElement/optimum)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMeterElement`*"] pub fn set_optimum(this: &HtmlMeterElement, value: f64); #[cfg(feature = "NodeList")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLMeterElement" , js_name = labels)] #[doc = "Getter for the `labels` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMeterElement/labels)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMeterElement`, `NodeList`*"] pub fn labels(this: &HtmlMeterElement) -> NodeList; } web-sys-0.3.55/src/features/gen_HtmlModElement.rs000064400000000000000000000046440072674642500200310ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLModElement , typescript_type = "HTMLModElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlModElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLModElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlModElement`*"] pub type HtmlModElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLModElement" , js_name = cite)] #[doc = "Getter for the `cite` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLModElement/cite)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlModElement`*"] pub fn cite(this: &HtmlModElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLModElement" , js_name = cite)] #[doc = "Setter for the `cite` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLModElement/cite)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlModElement`*"] pub fn set_cite(this: &HtmlModElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLModElement" , js_name = dateTime)] #[doc = "Getter for the `dateTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLModElement/dateTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlModElement`*"] pub fn date_time(this: &HtmlModElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLModElement" , js_name = dateTime)] #[doc = "Setter for the `dateTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLModElement/dateTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlModElement`*"] pub fn set_date_time(this: &HtmlModElement, value: &str); } web-sys-0.3.55/src/features/gen_HtmlOListElement.rs000064400000000000000000000104010072674642500203300ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLOListElement , typescript_type = "HTMLOListElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlOListElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOListElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOListElement`*"] pub type HtmlOListElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLOListElement" , js_name = reversed)] #[doc = "Getter for the `reversed` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOListElement/reversed)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOListElement`*"] pub fn reversed(this: &HtmlOListElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLOListElement" , js_name = reversed)] #[doc = "Setter for the `reversed` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOListElement/reversed)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOListElement`*"] pub fn set_reversed(this: &HtmlOListElement, value: bool); # [wasm_bindgen (structural , method , getter , js_class = "HTMLOListElement" , js_name = start)] #[doc = "Getter for the `start` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOListElement/start)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOListElement`*"] pub fn start(this: &HtmlOListElement) -> i32; # [wasm_bindgen (structural , method , setter , js_class = "HTMLOListElement" , js_name = start)] #[doc = "Setter for the `start` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOListElement/start)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOListElement`*"] pub fn set_start(this: &HtmlOListElement, value: i32); # [wasm_bindgen (structural , method , getter , js_class = "HTMLOListElement" , js_name = type)] #[doc = "Getter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOListElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOListElement`*"] pub fn type_(this: &HtmlOListElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLOListElement" , js_name = type)] #[doc = "Setter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOListElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOListElement`*"] pub fn set_type(this: &HtmlOListElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLOListElement" , js_name = compact)] #[doc = "Getter for the `compact` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOListElement/compact)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOListElement`*"] pub fn compact(this: &HtmlOListElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLOListElement" , js_name = compact)] #[doc = "Setter for the `compact` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOListElement/compact)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOListElement`*"] pub fn set_compact(this: &HtmlOListElement, value: bool); } web-sys-0.3.55/src/features/gen_HtmlObjectElement.rs000064400000000000000000000522310072674642500205130ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLObjectElement , typescript_type = "HTMLObjectElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlObjectElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub type HtmlObjectElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = data)] #[doc = "Getter for the `data` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/data)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub fn data(this: &HtmlObjectElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = data)] #[doc = "Setter for the `data` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/data)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub fn set_data(this: &HtmlObjectElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = type)] #[doc = "Getter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub fn type_(this: &HtmlObjectElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = type)] #[doc = "Setter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub fn set_type(this: &HtmlObjectElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = typeMustMatch)] #[doc = "Getter for the `typeMustMatch` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/typeMustMatch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub fn type_must_match(this: &HtmlObjectElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = typeMustMatch)] #[doc = "Setter for the `typeMustMatch` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/typeMustMatch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub fn set_type_must_match(this: &HtmlObjectElement, value: bool); # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = name)] #[doc = "Getter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub fn name(this: &HtmlObjectElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = name)] #[doc = "Setter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub fn set_name(this: &HtmlObjectElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = useMap)] #[doc = "Getter for the `useMap` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/useMap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub fn use_map(this: &HtmlObjectElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = useMap)] #[doc = "Setter for the `useMap` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/useMap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub fn set_use_map(this: &HtmlObjectElement, value: &str); #[cfg(feature = "HtmlFormElement")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = form)] #[doc = "Getter for the `form` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/form)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`, `HtmlObjectElement`*"] pub fn form(this: &HtmlObjectElement) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = width)] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub fn width(this: &HtmlObjectElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = width)] #[doc = "Setter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub fn set_width(this: &HtmlObjectElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = height)] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub fn height(this: &HtmlObjectElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = height)] #[doc = "Setter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub fn set_height(this: &HtmlObjectElement, value: &str); #[cfg(feature = "Document")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = contentDocument)] #[doc = "Getter for the `contentDocument` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/contentDocument)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlObjectElement`*"] pub fn content_document(this: &HtmlObjectElement) -> Option; #[cfg(feature = "Window")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = contentWindow)] #[doc = "Getter for the `contentWindow` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/contentWindow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`, `Window`*"] pub fn content_window(this: &HtmlObjectElement) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = willValidate)] #[doc = "Getter for the `willValidate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/willValidate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub fn will_validate(this: &HtmlObjectElement) -> bool; #[cfg(feature = "ValidityState")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = validity)] #[doc = "Getter for the `validity` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/validity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`, `ValidityState`*"] pub fn validity(this: &HtmlObjectElement) -> ValidityState; # [wasm_bindgen (structural , catch , method , getter , js_class = "HTMLObjectElement" , js_name = validationMessage)] #[doc = "Getter for the `validationMessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/validationMessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub fn validation_message(this: &HtmlObjectElement) -> Result; # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = align)] #[doc = "Getter for the `align` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub fn align(this: &HtmlObjectElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = align)] #[doc = "Setter for the `align` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub fn set_align(this: &HtmlObjectElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = archive)] #[doc = "Getter for the `archive` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/archive)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub fn archive(this: &HtmlObjectElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = archive)] #[doc = "Setter for the `archive` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/archive)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub fn set_archive(this: &HtmlObjectElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = code)] #[doc = "Getter for the `code` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/code)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub fn code(this: &HtmlObjectElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = code)] #[doc = "Setter for the `code` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/code)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub fn set_code(this: &HtmlObjectElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = declare)] #[doc = "Getter for the `declare` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/declare)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub fn declare(this: &HtmlObjectElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = declare)] #[doc = "Setter for the `declare` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/declare)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub fn set_declare(this: &HtmlObjectElement, value: bool); # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = hspace)] #[doc = "Getter for the `hspace` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/hspace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub fn hspace(this: &HtmlObjectElement) -> u32; # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = hspace)] #[doc = "Setter for the `hspace` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/hspace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub fn set_hspace(this: &HtmlObjectElement, value: u32); # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = standby)] #[doc = "Getter for the `standby` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/standby)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub fn standby(this: &HtmlObjectElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = standby)] #[doc = "Setter for the `standby` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/standby)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub fn set_standby(this: &HtmlObjectElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = vspace)] #[doc = "Getter for the `vspace` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/vspace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub fn vspace(this: &HtmlObjectElement) -> u32; # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = vspace)] #[doc = "Setter for the `vspace` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/vspace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub fn set_vspace(this: &HtmlObjectElement, value: u32); # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = codeBase)] #[doc = "Getter for the `codeBase` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/codeBase)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub fn code_base(this: &HtmlObjectElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = codeBase)] #[doc = "Setter for the `codeBase` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/codeBase)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub fn set_code_base(this: &HtmlObjectElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = codeType)] #[doc = "Getter for the `codeType` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/codeType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub fn code_type(this: &HtmlObjectElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = codeType)] #[doc = "Setter for the `codeType` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/codeType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub fn set_code_type(this: &HtmlObjectElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = border)] #[doc = "Getter for the `border` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/border)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub fn border(this: &HtmlObjectElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = border)] #[doc = "Setter for the `border` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/border)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub fn set_border(this: &HtmlObjectElement, value: &str); # [wasm_bindgen (method , structural , js_class = "HTMLObjectElement" , js_name = checkValidity)] #[doc = "The `checkValidity()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/checkValidity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub fn check_validity(this: &HtmlObjectElement) -> bool; #[cfg(feature = "Document")] # [wasm_bindgen (method , structural , js_class = "HTMLObjectElement" , js_name = getSVGDocument)] #[doc = "The `getSVGDocument()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/getSVGDocument)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlObjectElement`*"] pub fn get_svg_document(this: &HtmlObjectElement) -> Option; # [wasm_bindgen (method , structural , js_class = "HTMLObjectElement" , js_name = reportValidity)] #[doc = "The `reportValidity()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/reportValidity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub fn report_validity(this: &HtmlObjectElement) -> bool; # [wasm_bindgen (method , structural , js_class = "HTMLObjectElement" , js_name = setCustomValidity)] #[doc = "The `setCustomValidity()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/setCustomValidity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] pub fn set_custom_validity(this: &HtmlObjectElement, error: &str); } web-sys-0.3.55/src/features/gen_HtmlOptGroupElement.rs000064400000000000000000000050260072674642500210640ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLOptGroupElement , typescript_type = "HTMLOptGroupElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlOptGroupElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptGroupElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptGroupElement`*"] pub type HtmlOptGroupElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLOptGroupElement" , js_name = disabled)] #[doc = "Getter for the `disabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptGroupElement/disabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptGroupElement`*"] pub fn disabled(this: &HtmlOptGroupElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLOptGroupElement" , js_name = disabled)] #[doc = "Setter for the `disabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptGroupElement/disabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptGroupElement`*"] pub fn set_disabled(this: &HtmlOptGroupElement, value: bool); # [wasm_bindgen (structural , method , getter , js_class = "HTMLOptGroupElement" , js_name = label)] #[doc = "Getter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptGroupElement/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptGroupElement`*"] pub fn label(this: &HtmlOptGroupElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLOptGroupElement" , js_name = label)] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptGroupElement/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptGroupElement`*"] pub fn set_label(this: &HtmlOptGroupElement, value: &str); } web-sys-0.3.55/src/features/gen_HtmlOptionElement.rs000064400000000000000000000235040072674642500205560ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLOptionElement , typescript_type = "HTMLOptionElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlOptionElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"] pub type HtmlOptionElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLOptionElement" , js_name = disabled)] #[doc = "Getter for the `disabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/disabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"] pub fn disabled(this: &HtmlOptionElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLOptionElement" , js_name = disabled)] #[doc = "Setter for the `disabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/disabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"] pub fn set_disabled(this: &HtmlOptionElement, value: bool); #[cfg(feature = "HtmlFormElement")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLOptionElement" , js_name = form)] #[doc = "Getter for the `form` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/form)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`, `HtmlOptionElement`*"] pub fn form(this: &HtmlOptionElement) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "HTMLOptionElement" , js_name = label)] #[doc = "Getter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"] pub fn label(this: &HtmlOptionElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLOptionElement" , js_name = label)] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"] pub fn set_label(this: &HtmlOptionElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLOptionElement" , js_name = defaultSelected)] #[doc = "Getter for the `defaultSelected` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/defaultSelected)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"] pub fn default_selected(this: &HtmlOptionElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLOptionElement" , js_name = defaultSelected)] #[doc = "Setter for the `defaultSelected` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/defaultSelected)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"] pub fn set_default_selected(this: &HtmlOptionElement, value: bool); # [wasm_bindgen (structural , method , getter , js_class = "HTMLOptionElement" , js_name = selected)] #[doc = "Getter for the `selected` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/selected)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"] pub fn selected(this: &HtmlOptionElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLOptionElement" , js_name = selected)] #[doc = "Setter for the `selected` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/selected)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"] pub fn set_selected(this: &HtmlOptionElement, value: bool); # [wasm_bindgen (structural , method , getter , js_class = "HTMLOptionElement" , js_name = value)] #[doc = "Getter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"] pub fn value(this: &HtmlOptionElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLOptionElement" , js_name = value)] #[doc = "Setter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"] pub fn set_value(this: &HtmlOptionElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLOptionElement" , js_name = text)] #[doc = "Getter for the `text` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/text)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"] pub fn text(this: &HtmlOptionElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLOptionElement" , js_name = text)] #[doc = "Setter for the `text` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/text)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"] pub fn set_text(this: &HtmlOptionElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLOptionElement" , js_name = index)] #[doc = "Getter for the `index` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/index)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"] pub fn index(this: &HtmlOptionElement) -> i32; #[wasm_bindgen(catch, constructor, js_class = "Option")] #[doc = "The `new HtmlOptionElement(..)` constructor, creating a new instance of `HtmlOptionElement`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/HTMLOptionElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"] pub fn new() -> Result; #[wasm_bindgen(catch, constructor, js_class = "Option")] #[doc = "The `new HtmlOptionElement(..)` constructor, creating a new instance of `HtmlOptionElement`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/HTMLOptionElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"] pub fn new_with_text(text: &str) -> Result; #[wasm_bindgen(catch, constructor, js_class = "Option")] #[doc = "The `new HtmlOptionElement(..)` constructor, creating a new instance of `HtmlOptionElement`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/HTMLOptionElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"] pub fn new_with_text_and_value(text: &str, value: &str) -> Result; #[wasm_bindgen(catch, constructor, js_class = "Option")] #[doc = "The `new HtmlOptionElement(..)` constructor, creating a new instance of `HtmlOptionElement`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/HTMLOptionElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"] pub fn new_with_text_and_value_and_default_selected( text: &str, value: &str, default_selected: bool, ) -> Result; #[wasm_bindgen(catch, constructor, js_class = "Option")] #[doc = "The `new HtmlOptionElement(..)` constructor, creating a new instance of `HtmlOptionElement`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/HTMLOptionElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"] pub fn new_with_text_and_value_and_default_selected_and_selected( text: &str, value: &str, default_selected: bool, selected: bool, ) -> Result; } web-sys-0.3.55/src/features/gen_HtmlOptionsCollection.rs000064400000000000000000000166410072674642500214470ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlCollection , extends = :: js_sys :: Object , js_name = HTMLOptionsCollection , typescript_type = "HTMLOptionsCollection")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlOptionsCollection` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptionsCollection`*"] pub type HtmlOptionsCollection; # [wasm_bindgen (structural , method , getter , js_class = "HTMLOptionsCollection" , js_name = length)] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptionsCollection`*"] pub fn length(this: &HtmlOptionsCollection) -> u32; # [wasm_bindgen (structural , method , setter , js_class = "HTMLOptionsCollection" , js_name = length)] #[doc = "Setter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptionsCollection`*"] pub fn set_length(this: &HtmlOptionsCollection, value: u32); # [wasm_bindgen (structural , catch , method , getter , js_class = "HTMLOptionsCollection" , js_name = selectedIndex)] #[doc = "Getter for the `selectedIndex` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection/selectedIndex)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptionsCollection`*"] pub fn selected_index(this: &HtmlOptionsCollection) -> Result; # [wasm_bindgen (structural , catch , method , setter , js_class = "HTMLOptionsCollection" , js_name = selectedIndex)] #[doc = "Setter for the `selectedIndex` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection/selectedIndex)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptionsCollection`*"] pub fn set_selected_index(this: &HtmlOptionsCollection, value: i32) -> Result<(), JsValue>; #[cfg(feature = "HtmlOptionElement")] # [wasm_bindgen (catch , method , structural , js_class = "HTMLOptionsCollection" , js_name = add)] #[doc = "The `add()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection/add)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`, `HtmlOptionsCollection`*"] pub fn add_with_html_option_element( this: &HtmlOptionsCollection, element: &HtmlOptionElement, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlOptGroupElement")] # [wasm_bindgen (catch , method , structural , js_class = "HTMLOptionsCollection" , js_name = add)] #[doc = "The `add()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection/add)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptGroupElement`, `HtmlOptionsCollection`*"] pub fn add_with_html_opt_group_element( this: &HtmlOptionsCollection, element: &HtmlOptGroupElement, ) -> Result<(), JsValue>; #[cfg(all(feature = "HtmlElement", feature = "HtmlOptionElement",))] # [wasm_bindgen (catch , method , structural , js_class = "HTMLOptionsCollection" , js_name = add)] #[doc = "The `add()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection/add)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`, `HtmlOptionElement`, `HtmlOptionsCollection`*"] pub fn add_with_html_option_element_and_opt_html_element( this: &HtmlOptionsCollection, element: &HtmlOptionElement, before: Option<&HtmlElement>, ) -> Result<(), JsValue>; #[cfg(all(feature = "HtmlElement", feature = "HtmlOptGroupElement",))] # [wasm_bindgen (catch , method , structural , js_class = "HTMLOptionsCollection" , js_name = add)] #[doc = "The `add()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection/add)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`, `HtmlOptGroupElement`, `HtmlOptionsCollection`*"] pub fn add_with_html_opt_group_element_and_opt_html_element( this: &HtmlOptionsCollection, element: &HtmlOptGroupElement, before: Option<&HtmlElement>, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlOptionElement")] # [wasm_bindgen (catch , method , structural , js_class = "HTMLOptionsCollection" , js_name = add)] #[doc = "The `add()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection/add)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`, `HtmlOptionsCollection`*"] pub fn add_with_html_option_element_and_opt_i32( this: &HtmlOptionsCollection, element: &HtmlOptionElement, before: Option, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlOptGroupElement")] # [wasm_bindgen (catch , method , structural , js_class = "HTMLOptionsCollection" , js_name = add)] #[doc = "The `add()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection/add)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptGroupElement`, `HtmlOptionsCollection`*"] pub fn add_with_html_opt_group_element_and_opt_i32( this: &HtmlOptionsCollection, element: &HtmlOptGroupElement, before: Option, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "HTMLOptionsCollection" , js_name = remove)] #[doc = "The `remove()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection/remove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptionsCollection`*"] pub fn remove(this: &HtmlOptionsCollection, index: i32) -> Result<(), JsValue>; #[cfg(feature = "HtmlOptionElement")] #[wasm_bindgen( catch, method, structural, js_class = "HTMLOptionsCollection", indexing_setter )] #[doc = "Indexing setter."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`, `HtmlOptionsCollection`*"] pub fn set( this: &HtmlOptionsCollection, index: u32, option: Option<&HtmlOptionElement>, ) -> Result<(), JsValue>; } web-sys-0.3.55/src/features/gen_HtmlOutputElement.rs000064400000000000000000000204230072674642500206030ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLOutputElement , typescript_type = "HTMLOutputElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlOutputElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`*"] pub type HtmlOutputElement; #[cfg(feature = "DomTokenList")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLOutputElement" , js_name = htmlFor)] #[doc = "Getter for the `htmlFor` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/htmlFor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`, `HtmlOutputElement`*"] pub fn html_for(this: &HtmlOutputElement) -> DomTokenList; #[cfg(feature = "HtmlFormElement")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLOutputElement" , js_name = form)] #[doc = "Getter for the `form` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/form)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`, `HtmlOutputElement`*"] pub fn form(this: &HtmlOutputElement) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "HTMLOutputElement" , js_name = name)] #[doc = "Getter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`*"] pub fn name(this: &HtmlOutputElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLOutputElement" , js_name = name)] #[doc = "Setter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`*"] pub fn set_name(this: &HtmlOutputElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLOutputElement" , js_name = type)] #[doc = "Getter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`*"] pub fn type_(this: &HtmlOutputElement) -> String; # [wasm_bindgen (structural , method , getter , js_class = "HTMLOutputElement" , js_name = defaultValue)] #[doc = "Getter for the `defaultValue` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/defaultValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`*"] pub fn default_value(this: &HtmlOutputElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLOutputElement" , js_name = defaultValue)] #[doc = "Setter for the `defaultValue` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/defaultValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`*"] pub fn set_default_value(this: &HtmlOutputElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLOutputElement" , js_name = value)] #[doc = "Getter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`*"] pub fn value(this: &HtmlOutputElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLOutputElement" , js_name = value)] #[doc = "Setter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`*"] pub fn set_value(this: &HtmlOutputElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLOutputElement" , js_name = willValidate)] #[doc = "Getter for the `willValidate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/willValidate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`*"] pub fn will_validate(this: &HtmlOutputElement) -> bool; #[cfg(feature = "ValidityState")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLOutputElement" , js_name = validity)] #[doc = "Getter for the `validity` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/validity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`, `ValidityState`*"] pub fn validity(this: &HtmlOutputElement) -> ValidityState; # [wasm_bindgen (structural , catch , method , getter , js_class = "HTMLOutputElement" , js_name = validationMessage)] #[doc = "Getter for the `validationMessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/validationMessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`*"] pub fn validation_message(this: &HtmlOutputElement) -> Result; #[cfg(feature = "NodeList")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLOutputElement" , js_name = labels)] #[doc = "Getter for the `labels` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/labels)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`, `NodeList`*"] pub fn labels(this: &HtmlOutputElement) -> NodeList; # [wasm_bindgen (method , structural , js_class = "HTMLOutputElement" , js_name = checkValidity)] #[doc = "The `checkValidity()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/checkValidity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`*"] pub fn check_validity(this: &HtmlOutputElement) -> bool; # [wasm_bindgen (method , structural , js_class = "HTMLOutputElement" , js_name = reportValidity)] #[doc = "The `reportValidity()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/reportValidity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`*"] pub fn report_validity(this: &HtmlOutputElement) -> bool; # [wasm_bindgen (method , structural , js_class = "HTMLOutputElement" , js_name = setCustomValidity)] #[doc = "The `setCustomValidity()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/setCustomValidity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`*"] pub fn set_custom_validity(this: &HtmlOutputElement, error: &str); } web-sys-0.3.55/src/features/gen_HtmlParagraphElement.rs000064400000000000000000000031410072674642500212060ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLParagraphElement , typescript_type = "HTMLParagraphElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlParagraphElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLParagraphElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlParagraphElement`*"] pub type HtmlParagraphElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLParagraphElement" , js_name = align)] #[doc = "Getter for the `align` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLParagraphElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlParagraphElement`*"] pub fn align(this: &HtmlParagraphElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLParagraphElement" , js_name = align)] #[doc = "Setter for the `align` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLParagraphElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlParagraphElement`*"] pub fn set_align(this: &HtmlParagraphElement, value: &str); } web-sys-0.3.55/src/features/gen_HtmlParamElement.rs000064400000000000000000000103730072674642500203460ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLParamElement , typescript_type = "HTMLParamElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlParamElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLParamElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlParamElement`*"] pub type HtmlParamElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLParamElement" , js_name = name)] #[doc = "Getter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLParamElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlParamElement`*"] pub fn name(this: &HtmlParamElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLParamElement" , js_name = name)] #[doc = "Setter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLParamElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlParamElement`*"] pub fn set_name(this: &HtmlParamElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLParamElement" , js_name = value)] #[doc = "Getter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLParamElement/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlParamElement`*"] pub fn value(this: &HtmlParamElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLParamElement" , js_name = value)] #[doc = "Setter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLParamElement/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlParamElement`*"] pub fn set_value(this: &HtmlParamElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLParamElement" , js_name = type)] #[doc = "Getter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLParamElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlParamElement`*"] pub fn type_(this: &HtmlParamElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLParamElement" , js_name = type)] #[doc = "Setter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLParamElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlParamElement`*"] pub fn set_type(this: &HtmlParamElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLParamElement" , js_name = valueType)] #[doc = "Getter for the `valueType` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLParamElement/valueType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlParamElement`*"] pub fn value_type(this: &HtmlParamElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLParamElement" , js_name = valueType)] #[doc = "Setter for the `valueType` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLParamElement/valueType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlParamElement`*"] pub fn set_value_type(this: &HtmlParamElement, value: &str); } web-sys-0.3.55/src/features/gen_HtmlPictureElement.rs000064400000000000000000000012400072674642500207120ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLPictureElement , typescript_type = "HTMLPictureElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlPictureElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLPictureElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlPictureElement`*"] pub type HtmlPictureElement; } web-sys-0.3.55/src/features/gen_HtmlPreElement.rs000064400000000000000000000030110072674642500200230ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLPreElement , typescript_type = "HTMLPreElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlPreElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLPreElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlPreElement`*"] pub type HtmlPreElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLPreElement" , js_name = width)] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLPreElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlPreElement`*"] pub fn width(this: &HtmlPreElement) -> i32; # [wasm_bindgen (structural , method , setter , js_class = "HTMLPreElement" , js_name = width)] #[doc = "Setter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLPreElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlPreElement`*"] pub fn set_width(this: &HtmlPreElement, value: i32); } web-sys-0.3.55/src/features/gen_HtmlProgressElement.rs000064400000000000000000000067120072674642500211140ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLProgressElement , typescript_type = "HTMLProgressElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlProgressElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLProgressElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlProgressElement`*"] pub type HtmlProgressElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLProgressElement" , js_name = value)] #[doc = "Getter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLProgressElement/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlProgressElement`*"] pub fn value(this: &HtmlProgressElement) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "HTMLProgressElement" , js_name = value)] #[doc = "Setter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLProgressElement/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlProgressElement`*"] pub fn set_value(this: &HtmlProgressElement, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "HTMLProgressElement" , js_name = max)] #[doc = "Getter for the `max` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLProgressElement/max)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlProgressElement`*"] pub fn max(this: &HtmlProgressElement) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "HTMLProgressElement" , js_name = max)] #[doc = "Setter for the `max` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLProgressElement/max)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlProgressElement`*"] pub fn set_max(this: &HtmlProgressElement, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "HTMLProgressElement" , js_name = position)] #[doc = "Getter for the `position` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLProgressElement/position)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlProgressElement`*"] pub fn position(this: &HtmlProgressElement) -> f64; #[cfg(feature = "NodeList")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLProgressElement" , js_name = labels)] #[doc = "Getter for the `labels` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLProgressElement/labels)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlProgressElement`, `NodeList`*"] pub fn labels(this: &HtmlProgressElement) -> NodeList; } web-sys-0.3.55/src/features/gen_HtmlQuoteElement.rs000064400000000000000000000030410072674642500203750ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLQuoteElement , typescript_type = "HTMLQuoteElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlQuoteElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLQuoteElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlQuoteElement`*"] pub type HtmlQuoteElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLQuoteElement" , js_name = cite)] #[doc = "Getter for the `cite` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLQuoteElement/cite)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlQuoteElement`*"] pub fn cite(this: &HtmlQuoteElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLQuoteElement" , js_name = cite)] #[doc = "Setter for the `cite` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLQuoteElement/cite)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlQuoteElement`*"] pub fn set_cite(this: &HtmlQuoteElement, value: &str); } web-sys-0.3.55/src/features/gen_HtmlScriptElement.rs000064400000000000000000000254140072674642500205540ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLScriptElement , typescript_type = "HTMLScriptElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlScriptElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] pub type HtmlScriptElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLScriptElement" , js_name = src)] #[doc = "Getter for the `src` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/src)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] pub fn src(this: &HtmlScriptElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLScriptElement" , js_name = src)] #[doc = "Setter for the `src` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/src)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] pub fn set_src(this: &HtmlScriptElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLScriptElement" , js_name = type)] #[doc = "Getter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] pub fn type_(this: &HtmlScriptElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLScriptElement" , js_name = type)] #[doc = "Setter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] pub fn set_type(this: &HtmlScriptElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLScriptElement" , js_name = noModule)] #[doc = "Getter for the `noModule` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/noModule)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] pub fn no_module(this: &HtmlScriptElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLScriptElement" , js_name = noModule)] #[doc = "Setter for the `noModule` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/noModule)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] pub fn set_no_module(this: &HtmlScriptElement, value: bool); # [wasm_bindgen (structural , method , getter , js_class = "HTMLScriptElement" , js_name = charset)] #[doc = "Getter for the `charset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/charset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] pub fn charset(this: &HtmlScriptElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLScriptElement" , js_name = charset)] #[doc = "Setter for the `charset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/charset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] pub fn set_charset(this: &HtmlScriptElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLScriptElement" , js_name = async)] #[doc = "Getter for the `async` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/async)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] pub fn r#async(this: &HtmlScriptElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLScriptElement" , js_name = async)] #[doc = "Setter for the `async` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/async)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] pub fn set_async(this: &HtmlScriptElement, value: bool); # [wasm_bindgen (structural , method , getter , js_class = "HTMLScriptElement" , js_name = defer)] #[doc = "Getter for the `defer` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/defer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] pub fn defer(this: &HtmlScriptElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLScriptElement" , js_name = defer)] #[doc = "Setter for the `defer` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/defer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] pub fn set_defer(this: &HtmlScriptElement, value: bool); # [wasm_bindgen (structural , method , getter , js_class = "HTMLScriptElement" , js_name = crossOrigin)] #[doc = "Getter for the `crossOrigin` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/crossOrigin)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] pub fn cross_origin(this: &HtmlScriptElement) -> Option; # [wasm_bindgen (structural , method , setter , js_class = "HTMLScriptElement" , js_name = crossOrigin)] #[doc = "Setter for the `crossOrigin` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/crossOrigin)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] pub fn set_cross_origin(this: &HtmlScriptElement, value: Option<&str>); # [wasm_bindgen (structural , catch , method , getter , js_class = "HTMLScriptElement" , js_name = text)] #[doc = "Getter for the `text` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/text)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] pub fn text(this: &HtmlScriptElement) -> Result; # [wasm_bindgen (structural , catch , method , setter , js_class = "HTMLScriptElement" , js_name = text)] #[doc = "Setter for the `text` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/text)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] pub fn set_text(this: &HtmlScriptElement, value: &str) -> Result<(), JsValue>; # [wasm_bindgen (structural , method , getter , js_class = "HTMLScriptElement" , js_name = event)] #[doc = "Getter for the `event` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/event)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] pub fn event(this: &HtmlScriptElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLScriptElement" , js_name = event)] #[doc = "Setter for the `event` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/event)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] pub fn set_event(this: &HtmlScriptElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLScriptElement" , js_name = htmlFor)] #[doc = "Getter for the `htmlFor` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/htmlFor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] pub fn html_for(this: &HtmlScriptElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLScriptElement" , js_name = htmlFor)] #[doc = "Setter for the `htmlFor` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/htmlFor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] pub fn set_html_for(this: &HtmlScriptElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLScriptElement" , js_name = integrity)] #[doc = "Getter for the `integrity` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/integrity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] pub fn integrity(this: &HtmlScriptElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLScriptElement" , js_name = integrity)] #[doc = "Setter for the `integrity` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/integrity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] pub fn set_integrity(this: &HtmlScriptElement, value: &str); } web-sys-0.3.55/src/features/gen_HtmlSelectElement.rs000064400000000000000000000531340072674642500205270ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLSelectElement , typescript_type = "HTMLSelectElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlSelectElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub type HtmlSelectElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLSelectElement" , js_name = autofocus)] #[doc = "Getter for the `autofocus` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/autofocus)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub fn autofocus(this: &HtmlSelectElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLSelectElement" , js_name = autofocus)] #[doc = "Setter for the `autofocus` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/autofocus)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub fn set_autofocus(this: &HtmlSelectElement, value: bool); # [wasm_bindgen (structural , method , getter , js_class = "HTMLSelectElement" , js_name = autocomplete)] #[doc = "Getter for the `autocomplete` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/autocomplete)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub fn autocomplete(this: &HtmlSelectElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLSelectElement" , js_name = autocomplete)] #[doc = "Setter for the `autocomplete` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/autocomplete)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub fn set_autocomplete(this: &HtmlSelectElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLSelectElement" , js_name = disabled)] #[doc = "Getter for the `disabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/disabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub fn disabled(this: &HtmlSelectElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLSelectElement" , js_name = disabled)] #[doc = "Setter for the `disabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/disabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub fn set_disabled(this: &HtmlSelectElement, value: bool); #[cfg(feature = "HtmlFormElement")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLSelectElement" , js_name = form)] #[doc = "Getter for the `form` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/form)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`, `HtmlSelectElement`*"] pub fn form(this: &HtmlSelectElement) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "HTMLSelectElement" , js_name = multiple)] #[doc = "Getter for the `multiple` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/multiple)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub fn multiple(this: &HtmlSelectElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLSelectElement" , js_name = multiple)] #[doc = "Setter for the `multiple` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/multiple)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub fn set_multiple(this: &HtmlSelectElement, value: bool); # [wasm_bindgen (structural , method , getter , js_class = "HTMLSelectElement" , js_name = name)] #[doc = "Getter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub fn name(this: &HtmlSelectElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLSelectElement" , js_name = name)] #[doc = "Setter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub fn set_name(this: &HtmlSelectElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLSelectElement" , js_name = required)] #[doc = "Getter for the `required` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/required)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub fn required(this: &HtmlSelectElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLSelectElement" , js_name = required)] #[doc = "Setter for the `required` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/required)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub fn set_required(this: &HtmlSelectElement, value: bool); # [wasm_bindgen (structural , method , getter , js_class = "HTMLSelectElement" , js_name = size)] #[doc = "Getter for the `size` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/size)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub fn size(this: &HtmlSelectElement) -> u32; # [wasm_bindgen (structural , method , setter , js_class = "HTMLSelectElement" , js_name = size)] #[doc = "Setter for the `size` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/size)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub fn set_size(this: &HtmlSelectElement, value: u32); # [wasm_bindgen (structural , method , getter , js_class = "HTMLSelectElement" , js_name = type)] #[doc = "Getter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub fn type_(this: &HtmlSelectElement) -> String; #[cfg(feature = "HtmlOptionsCollection")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLSelectElement" , js_name = options)] #[doc = "Getter for the `options` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/options)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptionsCollection`, `HtmlSelectElement`*"] pub fn options(this: &HtmlSelectElement) -> HtmlOptionsCollection; # [wasm_bindgen (structural , method , getter , js_class = "HTMLSelectElement" , js_name = length)] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub fn length(this: &HtmlSelectElement) -> u32; # [wasm_bindgen (structural , method , setter , js_class = "HTMLSelectElement" , js_name = length)] #[doc = "Setter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub fn set_length(this: &HtmlSelectElement, value: u32); #[cfg(feature = "HtmlCollection")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLSelectElement" , js_name = selectedOptions)] #[doc = "Getter for the `selectedOptions` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/selectedOptions)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`, `HtmlSelectElement`*"] pub fn selected_options(this: &HtmlSelectElement) -> HtmlCollection; # [wasm_bindgen (structural , method , getter , js_class = "HTMLSelectElement" , js_name = selectedIndex)] #[doc = "Getter for the `selectedIndex` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/selectedIndex)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub fn selected_index(this: &HtmlSelectElement) -> i32; # [wasm_bindgen (structural , method , setter , js_class = "HTMLSelectElement" , js_name = selectedIndex)] #[doc = "Setter for the `selectedIndex` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/selectedIndex)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub fn set_selected_index(this: &HtmlSelectElement, value: i32); # [wasm_bindgen (structural , method , getter , js_class = "HTMLSelectElement" , js_name = value)] #[doc = "Getter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub fn value(this: &HtmlSelectElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLSelectElement" , js_name = value)] #[doc = "Setter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub fn set_value(this: &HtmlSelectElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLSelectElement" , js_name = willValidate)] #[doc = "Getter for the `willValidate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/willValidate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub fn will_validate(this: &HtmlSelectElement) -> bool; #[cfg(feature = "ValidityState")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLSelectElement" , js_name = validity)] #[doc = "Getter for the `validity` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/validity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`, `ValidityState`*"] pub fn validity(this: &HtmlSelectElement) -> ValidityState; # [wasm_bindgen (structural , catch , method , getter , js_class = "HTMLSelectElement" , js_name = validationMessage)] #[doc = "Getter for the `validationMessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/validationMessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub fn validation_message(this: &HtmlSelectElement) -> Result; #[cfg(feature = "NodeList")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLSelectElement" , js_name = labels)] #[doc = "Getter for the `labels` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/labels)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`, `NodeList`*"] pub fn labels(this: &HtmlSelectElement) -> NodeList; #[cfg(feature = "HtmlOptionElement")] # [wasm_bindgen (catch , method , structural , js_class = "HTMLSelectElement" , js_name = add)] #[doc = "The `add()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/add)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`, `HtmlSelectElement`*"] pub fn add_with_html_option_element( this: &HtmlSelectElement, element: &HtmlOptionElement, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlOptGroupElement")] # [wasm_bindgen (catch , method , structural , js_class = "HTMLSelectElement" , js_name = add)] #[doc = "The `add()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/add)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptGroupElement`, `HtmlSelectElement`*"] pub fn add_with_html_opt_group_element( this: &HtmlSelectElement, element: &HtmlOptGroupElement, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlOptionElement")] # [wasm_bindgen (catch , method , structural , js_class = "HTMLSelectElement" , js_name = add)] #[doc = "The `add()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/add)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`, `HtmlSelectElement`*"] pub fn add_with_html_option_element_and_opt_html_element( this: &HtmlSelectElement, element: &HtmlOptionElement, before: Option<&HtmlElement>, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlOptGroupElement")] # [wasm_bindgen (catch , method , structural , js_class = "HTMLSelectElement" , js_name = add)] #[doc = "The `add()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/add)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptGroupElement`, `HtmlSelectElement`*"] pub fn add_with_html_opt_group_element_and_opt_html_element( this: &HtmlSelectElement, element: &HtmlOptGroupElement, before: Option<&HtmlElement>, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlOptionElement")] # [wasm_bindgen (catch , method , structural , js_class = "HTMLSelectElement" , js_name = add)] #[doc = "The `add()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/add)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`, `HtmlSelectElement`*"] pub fn add_with_html_option_element_and_opt_i32( this: &HtmlSelectElement, element: &HtmlOptionElement, before: Option, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlOptGroupElement")] # [wasm_bindgen (catch , method , structural , js_class = "HTMLSelectElement" , js_name = add)] #[doc = "The `add()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/add)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptGroupElement`, `HtmlSelectElement`*"] pub fn add_with_html_opt_group_element_and_opt_i32( this: &HtmlSelectElement, element: &HtmlOptGroupElement, before: Option, ) -> Result<(), JsValue>; # [wasm_bindgen (method , structural , js_class = "HTMLSelectElement" , js_name = checkValidity)] #[doc = "The `checkValidity()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/checkValidity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub fn check_validity(this: &HtmlSelectElement) -> bool; # [wasm_bindgen (method , structural , js_class = "HTMLSelectElement" , js_name = item)] #[doc = "The `item()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/item)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub fn item(this: &HtmlSelectElement, index: u32) -> Option; #[cfg(feature = "HtmlOptionElement")] # [wasm_bindgen (method , structural , js_class = "HTMLSelectElement" , js_name = namedItem)] #[doc = "The `namedItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/namedItem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`, `HtmlSelectElement`*"] pub fn named_item(this: &HtmlSelectElement, name: &str) -> Option; # [wasm_bindgen (method , structural , js_class = "HTMLSelectElement" , js_name = remove)] #[doc = "The `remove()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/remove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub fn remove_with_index(this: &HtmlSelectElement, index: i32); # [wasm_bindgen (method , structural , js_class = "HTMLSelectElement" , js_name = remove)] #[doc = "The `remove()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/remove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub fn remove(this: &HtmlSelectElement); # [wasm_bindgen (method , structural , js_class = "HTMLSelectElement" , js_name = reportValidity)] #[doc = "The `reportValidity()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/reportValidity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub fn report_validity(this: &HtmlSelectElement) -> bool; # [wasm_bindgen (method , structural , js_class = "HTMLSelectElement" , js_name = setCustomValidity)] #[doc = "The `setCustomValidity()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/setCustomValidity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub fn set_custom_validity(this: &HtmlSelectElement, error: &str); #[wasm_bindgen(method, structural, js_class = "HTMLSelectElement", indexing_getter)] #[doc = "Indexing getter."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] pub fn get(this: &HtmlSelectElement, index: u32) -> Option; #[cfg(feature = "HtmlOptionElement")] #[wasm_bindgen( catch, method, structural, js_class = "HTMLSelectElement", indexing_setter )] #[doc = "Indexing setter."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`, `HtmlSelectElement`*"] pub fn set( this: &HtmlSelectElement, index: u32, option: Option<&HtmlOptionElement>, ) -> Result<(), JsValue>; } web-sys-0.3.55/src/features/gen_HtmlSlotElement.rs000064400000000000000000000050660072674642500202320ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLSlotElement , typescript_type = "HTMLSlotElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlSlotElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSlotElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSlotElement`*"] pub type HtmlSlotElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLSlotElement" , js_name = name)] #[doc = "Getter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSlotElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSlotElement`*"] pub fn name(this: &HtmlSlotElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLSlotElement" , js_name = name)] #[doc = "Setter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSlotElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSlotElement`*"] pub fn set_name(this: &HtmlSlotElement, value: &str); # [wasm_bindgen (method , structural , js_class = "HTMLSlotElement" , js_name = assignedNodes)] #[doc = "The `assignedNodes()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSlotElement/assignedNodes)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSlotElement`*"] pub fn assigned_nodes(this: &HtmlSlotElement) -> ::js_sys::Array; #[cfg(feature = "AssignedNodesOptions")] # [wasm_bindgen (method , structural , js_class = "HTMLSlotElement" , js_name = assignedNodes)] #[doc = "The `assignedNodes()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSlotElement/assignedNodes)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AssignedNodesOptions`, `HtmlSlotElement`*"] pub fn assigned_nodes_with_options( this: &HtmlSlotElement, options: &AssignedNodesOptions, ) -> ::js_sys::Array; } web-sys-0.3.55/src/features/gen_HtmlSourceElement.rs000064400000000000000000000122340072674642500205440ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLSourceElement , typescript_type = "HTMLSourceElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlSourceElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSourceElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSourceElement`*"] pub type HtmlSourceElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLSourceElement" , js_name = src)] #[doc = "Getter for the `src` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSourceElement/src)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSourceElement`*"] pub fn src(this: &HtmlSourceElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLSourceElement" , js_name = src)] #[doc = "Setter for the `src` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSourceElement/src)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSourceElement`*"] pub fn set_src(this: &HtmlSourceElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLSourceElement" , js_name = type)] #[doc = "Getter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSourceElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSourceElement`*"] pub fn type_(this: &HtmlSourceElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLSourceElement" , js_name = type)] #[doc = "Setter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSourceElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSourceElement`*"] pub fn set_type(this: &HtmlSourceElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLSourceElement" , js_name = srcset)] #[doc = "Getter for the `srcset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSourceElement/srcset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSourceElement`*"] pub fn srcset(this: &HtmlSourceElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLSourceElement" , js_name = srcset)] #[doc = "Setter for the `srcset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSourceElement/srcset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSourceElement`*"] pub fn set_srcset(this: &HtmlSourceElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLSourceElement" , js_name = sizes)] #[doc = "Getter for the `sizes` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSourceElement/sizes)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSourceElement`*"] pub fn sizes(this: &HtmlSourceElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLSourceElement" , js_name = sizes)] #[doc = "Setter for the `sizes` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSourceElement/sizes)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSourceElement`*"] pub fn set_sizes(this: &HtmlSourceElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLSourceElement" , js_name = media)] #[doc = "Getter for the `media` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSourceElement/media)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSourceElement`*"] pub fn media(this: &HtmlSourceElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLSourceElement" , js_name = media)] #[doc = "Setter for the `media` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSourceElement/media)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSourceElement`*"] pub fn set_media(this: &HtmlSourceElement, value: &str); } web-sys-0.3.55/src/features/gen_HtmlSpanElement.rs000064400000000000000000000012160072674642500202030ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLSpanElement , typescript_type = "HTMLSpanElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlSpanElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSpanElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSpanElement`*"] pub type HtmlSpanElement; } web-sys-0.3.55/src/features/gen_HtmlStyleElement.rs000064400000000000000000000075460072674642500204160ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLStyleElement , typescript_type = "HTMLStyleElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlStyleElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLStyleElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlStyleElement`*"] pub type HtmlStyleElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLStyleElement" , js_name = disabled)] #[doc = "Getter for the `disabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLStyleElement/disabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlStyleElement`*"] pub fn disabled(this: &HtmlStyleElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLStyleElement" , js_name = disabled)] #[doc = "Setter for the `disabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLStyleElement/disabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlStyleElement`*"] pub fn set_disabled(this: &HtmlStyleElement, value: bool); # [wasm_bindgen (structural , method , getter , js_class = "HTMLStyleElement" , js_name = media)] #[doc = "Getter for the `media` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLStyleElement/media)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlStyleElement`*"] pub fn media(this: &HtmlStyleElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLStyleElement" , js_name = media)] #[doc = "Setter for the `media` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLStyleElement/media)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlStyleElement`*"] pub fn set_media(this: &HtmlStyleElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLStyleElement" , js_name = type)] #[doc = "Getter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLStyleElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlStyleElement`*"] pub fn type_(this: &HtmlStyleElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLStyleElement" , js_name = type)] #[doc = "Setter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLStyleElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlStyleElement`*"] pub fn set_type(this: &HtmlStyleElement, value: &str); #[cfg(feature = "StyleSheet")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLStyleElement" , js_name = sheet)] #[doc = "Getter for the `sheet` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLStyleElement/sheet)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlStyleElement`, `StyleSheet`*"] pub fn sheet(this: &HtmlStyleElement) -> Option; } web-sys-0.3.55/src/features/gen_HtmlTableCaptionElement.rs000064400000000000000000000032130072674642500216460ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLTableCaptionElement , typescript_type = "HTMLTableCaptionElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlTableCaptionElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCaptionElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCaptionElement`*"] pub type HtmlTableCaptionElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableCaptionElement" , js_name = align)] #[doc = "Getter for the `align` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCaptionElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCaptionElement`*"] pub fn align(this: &HtmlTableCaptionElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableCaptionElement" , js_name = align)] #[doc = "Setter for the `align` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCaptionElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCaptionElement`*"] pub fn set_align(this: &HtmlTableCaptionElement, value: &str); } web-sys-0.3.55/src/features/gen_HtmlTableCellElement.rs000064400000000000000000000305070072674642500211360ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLTableCellElement , typescript_type = "HTMLTableCellElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlTableCellElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] pub type HtmlTableCellElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableCellElement" , js_name = colSpan)] #[doc = "Getter for the `colSpan` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/colSpan)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] pub fn col_span(this: &HtmlTableCellElement) -> u32; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableCellElement" , js_name = colSpan)] #[doc = "Setter for the `colSpan` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/colSpan)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] pub fn set_col_span(this: &HtmlTableCellElement, value: u32); # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableCellElement" , js_name = rowSpan)] #[doc = "Getter for the `rowSpan` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/rowSpan)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] pub fn row_span(this: &HtmlTableCellElement) -> u32; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableCellElement" , js_name = rowSpan)] #[doc = "Setter for the `rowSpan` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/rowSpan)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] pub fn set_row_span(this: &HtmlTableCellElement, value: u32); # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableCellElement" , js_name = headers)] #[doc = "Getter for the `headers` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/headers)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] pub fn headers(this: &HtmlTableCellElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableCellElement" , js_name = headers)] #[doc = "Setter for the `headers` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/headers)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] pub fn set_headers(this: &HtmlTableCellElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableCellElement" , js_name = cellIndex)] #[doc = "Getter for the `cellIndex` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/cellIndex)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] pub fn cell_index(this: &HtmlTableCellElement) -> i32; # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableCellElement" , js_name = align)] #[doc = "Getter for the `align` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] pub fn align(this: &HtmlTableCellElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableCellElement" , js_name = align)] #[doc = "Setter for the `align` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] pub fn set_align(this: &HtmlTableCellElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableCellElement" , js_name = axis)] #[doc = "Getter for the `axis` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/axis)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] pub fn axis(this: &HtmlTableCellElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableCellElement" , js_name = axis)] #[doc = "Setter for the `axis` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/axis)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] pub fn set_axis(this: &HtmlTableCellElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableCellElement" , js_name = height)] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] pub fn height(this: &HtmlTableCellElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableCellElement" , js_name = height)] #[doc = "Setter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] pub fn set_height(this: &HtmlTableCellElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableCellElement" , js_name = width)] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] pub fn width(this: &HtmlTableCellElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableCellElement" , js_name = width)] #[doc = "Setter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] pub fn set_width(this: &HtmlTableCellElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableCellElement" , js_name = ch)] #[doc = "Getter for the `ch` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/ch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] pub fn ch(this: &HtmlTableCellElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableCellElement" , js_name = ch)] #[doc = "Setter for the `ch` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/ch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] pub fn set_ch(this: &HtmlTableCellElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableCellElement" , js_name = chOff)] #[doc = "Getter for the `chOff` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/chOff)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] pub fn ch_off(this: &HtmlTableCellElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableCellElement" , js_name = chOff)] #[doc = "Setter for the `chOff` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/chOff)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] pub fn set_ch_off(this: &HtmlTableCellElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableCellElement" , js_name = noWrap)] #[doc = "Getter for the `noWrap` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/noWrap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] pub fn no_wrap(this: &HtmlTableCellElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableCellElement" , js_name = noWrap)] #[doc = "Setter for the `noWrap` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/noWrap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] pub fn set_no_wrap(this: &HtmlTableCellElement, value: bool); # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableCellElement" , js_name = vAlign)] #[doc = "Getter for the `vAlign` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/vAlign)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] pub fn v_align(this: &HtmlTableCellElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableCellElement" , js_name = vAlign)] #[doc = "Setter for the `vAlign` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/vAlign)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] pub fn set_v_align(this: &HtmlTableCellElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableCellElement" , js_name = bgColor)] #[doc = "Getter for the `bgColor` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/bgColor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] pub fn bg_color(this: &HtmlTableCellElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableCellElement" , js_name = bgColor)] #[doc = "Setter for the `bgColor` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/bgColor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] pub fn set_bg_color(this: &HtmlTableCellElement, value: &str); } web-sys-0.3.55/src/features/gen_HtmlTableColElement.rs000064400000000000000000000142340072674642500207730ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLTableColElement , typescript_type = "HTMLTableColElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlTableColElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableColElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableColElement`*"] pub type HtmlTableColElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableColElement" , js_name = span)] #[doc = "Getter for the `span` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableColElement/span)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableColElement`*"] pub fn span(this: &HtmlTableColElement) -> u32; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableColElement" , js_name = span)] #[doc = "Setter for the `span` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableColElement/span)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableColElement`*"] pub fn set_span(this: &HtmlTableColElement, value: u32); # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableColElement" , js_name = align)] #[doc = "Getter for the `align` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableColElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableColElement`*"] pub fn align(this: &HtmlTableColElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableColElement" , js_name = align)] #[doc = "Setter for the `align` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableColElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableColElement`*"] pub fn set_align(this: &HtmlTableColElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableColElement" , js_name = ch)] #[doc = "Getter for the `ch` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableColElement/ch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableColElement`*"] pub fn ch(this: &HtmlTableColElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableColElement" , js_name = ch)] #[doc = "Setter for the `ch` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableColElement/ch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableColElement`*"] pub fn set_ch(this: &HtmlTableColElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableColElement" , js_name = chOff)] #[doc = "Getter for the `chOff` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableColElement/chOff)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableColElement`*"] pub fn ch_off(this: &HtmlTableColElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableColElement" , js_name = chOff)] #[doc = "Setter for the `chOff` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableColElement/chOff)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableColElement`*"] pub fn set_ch_off(this: &HtmlTableColElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableColElement" , js_name = vAlign)] #[doc = "Getter for the `vAlign` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableColElement/vAlign)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableColElement`*"] pub fn v_align(this: &HtmlTableColElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableColElement" , js_name = vAlign)] #[doc = "Setter for the `vAlign` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableColElement/vAlign)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableColElement`*"] pub fn set_v_align(this: &HtmlTableColElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableColElement" , js_name = width)] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableColElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableColElement`*"] pub fn width(this: &HtmlTableColElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableColElement" , js_name = width)] #[doc = "Setter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableColElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableColElement`*"] pub fn set_width(this: &HtmlTableColElement, value: &str); } web-sys-0.3.55/src/features/gen_HtmlTableElement.rs000064400000000000000000000432460072674642500203420ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLTableElement , typescript_type = "HTMLTableElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlTableElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] pub type HtmlTableElement; #[cfg(feature = "HtmlTableCaptionElement")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableElement" , js_name = caption)] #[doc = "Getter for the `caption` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/caption)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCaptionElement`, `HtmlTableElement`*"] pub fn caption(this: &HtmlTableElement) -> Option; #[cfg(feature = "HtmlTableCaptionElement")] # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableElement" , js_name = caption)] #[doc = "Setter for the `caption` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/caption)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCaptionElement`, `HtmlTableElement`*"] pub fn set_caption(this: &HtmlTableElement, value: Option<&HtmlTableCaptionElement>); #[cfg(feature = "HtmlTableSectionElement")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableElement" , js_name = tHead)] #[doc = "Getter for the `tHead` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/tHead)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`, `HtmlTableSectionElement`*"] pub fn t_head(this: &HtmlTableElement) -> Option; #[cfg(feature = "HtmlTableSectionElement")] # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableElement" , js_name = tHead)] #[doc = "Setter for the `tHead` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/tHead)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`, `HtmlTableSectionElement`*"] pub fn set_t_head(this: &HtmlTableElement, value: Option<&HtmlTableSectionElement>); #[cfg(feature = "HtmlTableSectionElement")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableElement" , js_name = tFoot)] #[doc = "Getter for the `tFoot` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/tFoot)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`, `HtmlTableSectionElement`*"] pub fn t_foot(this: &HtmlTableElement) -> Option; #[cfg(feature = "HtmlTableSectionElement")] # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableElement" , js_name = tFoot)] #[doc = "Setter for the `tFoot` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/tFoot)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`, `HtmlTableSectionElement`*"] pub fn set_t_foot(this: &HtmlTableElement, value: Option<&HtmlTableSectionElement>); #[cfg(feature = "HtmlCollection")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableElement" , js_name = tBodies)] #[doc = "Getter for the `tBodies` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/tBodies)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`, `HtmlTableElement`*"] pub fn t_bodies(this: &HtmlTableElement) -> HtmlCollection; #[cfg(feature = "HtmlCollection")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableElement" , js_name = rows)] #[doc = "Getter for the `rows` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/rows)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`, `HtmlTableElement`*"] pub fn rows(this: &HtmlTableElement) -> HtmlCollection; # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableElement" , js_name = align)] #[doc = "Getter for the `align` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] pub fn align(this: &HtmlTableElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableElement" , js_name = align)] #[doc = "Setter for the `align` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] pub fn set_align(this: &HtmlTableElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableElement" , js_name = border)] #[doc = "Getter for the `border` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/border)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] pub fn border(this: &HtmlTableElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableElement" , js_name = border)] #[doc = "Setter for the `border` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/border)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] pub fn set_border(this: &HtmlTableElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableElement" , js_name = frame)] #[doc = "Getter for the `frame` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/frame)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] pub fn frame(this: &HtmlTableElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableElement" , js_name = frame)] #[doc = "Setter for the `frame` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/frame)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] pub fn set_frame(this: &HtmlTableElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableElement" , js_name = rules)] #[doc = "Getter for the `rules` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/rules)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] pub fn rules(this: &HtmlTableElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableElement" , js_name = rules)] #[doc = "Setter for the `rules` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/rules)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] pub fn set_rules(this: &HtmlTableElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableElement" , js_name = summary)] #[doc = "Getter for the `summary` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/summary)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] pub fn summary(this: &HtmlTableElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableElement" , js_name = summary)] #[doc = "Setter for the `summary` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/summary)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] pub fn set_summary(this: &HtmlTableElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableElement" , js_name = width)] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] pub fn width(this: &HtmlTableElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableElement" , js_name = width)] #[doc = "Setter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] pub fn set_width(this: &HtmlTableElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableElement" , js_name = bgColor)] #[doc = "Getter for the `bgColor` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/bgColor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] pub fn bg_color(this: &HtmlTableElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableElement" , js_name = bgColor)] #[doc = "Setter for the `bgColor` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/bgColor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] pub fn set_bg_color(this: &HtmlTableElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableElement" , js_name = cellPadding)] #[doc = "Getter for the `cellPadding` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/cellPadding)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] pub fn cell_padding(this: &HtmlTableElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableElement" , js_name = cellPadding)] #[doc = "Setter for the `cellPadding` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/cellPadding)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] pub fn set_cell_padding(this: &HtmlTableElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableElement" , js_name = cellSpacing)] #[doc = "Getter for the `cellSpacing` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/cellSpacing)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] pub fn cell_spacing(this: &HtmlTableElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableElement" , js_name = cellSpacing)] #[doc = "Setter for the `cellSpacing` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/cellSpacing)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] pub fn set_cell_spacing(this: &HtmlTableElement, value: &str); # [wasm_bindgen (method , structural , js_class = "HTMLTableElement" , js_name = createCaption)] #[doc = "The `createCaption()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/createCaption)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] pub fn create_caption(this: &HtmlTableElement) -> HtmlElement; # [wasm_bindgen (method , structural , js_class = "HTMLTableElement" , js_name = createTBody)] #[doc = "The `createTBody()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/createTBody)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] pub fn create_t_body(this: &HtmlTableElement) -> HtmlElement; # [wasm_bindgen (method , structural , js_class = "HTMLTableElement" , js_name = createTFoot)] #[doc = "The `createTFoot()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/createTFoot)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] pub fn create_t_foot(this: &HtmlTableElement) -> HtmlElement; # [wasm_bindgen (method , structural , js_class = "HTMLTableElement" , js_name = createTHead)] #[doc = "The `createTHead()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/createTHead)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] pub fn create_t_head(this: &HtmlTableElement) -> HtmlElement; # [wasm_bindgen (method , structural , js_class = "HTMLTableElement" , js_name = deleteCaption)] #[doc = "The `deleteCaption()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/deleteCaption)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] pub fn delete_caption(this: &HtmlTableElement); # [wasm_bindgen (catch , method , structural , js_class = "HTMLTableElement" , js_name = deleteRow)] #[doc = "The `deleteRow()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/deleteRow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] pub fn delete_row(this: &HtmlTableElement, index: i32) -> Result<(), JsValue>; # [wasm_bindgen (method , structural , js_class = "HTMLTableElement" , js_name = deleteTFoot)] #[doc = "The `deleteTFoot()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/deleteTFoot)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] pub fn delete_t_foot(this: &HtmlTableElement); # [wasm_bindgen (method , structural , js_class = "HTMLTableElement" , js_name = deleteTHead)] #[doc = "The `deleteTHead()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/deleteTHead)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] pub fn delete_t_head(this: &HtmlTableElement); # [wasm_bindgen (catch , method , structural , js_class = "HTMLTableElement" , js_name = insertRow)] #[doc = "The `insertRow()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/insertRow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] pub fn insert_row(this: &HtmlTableElement) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "HTMLTableElement" , js_name = insertRow)] #[doc = "The `insertRow()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/insertRow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] pub fn insert_row_with_index( this: &HtmlTableElement, index: i32, ) -> Result; } web-sys-0.3.55/src/features/gen_HtmlTableRowElement.rs000064400000000000000000000203330072674642500210220ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLTableRowElement , typescript_type = "HTMLTableRowElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlTableRowElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"] pub type HtmlTableRowElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableRowElement" , js_name = rowIndex)] #[doc = "Getter for the `rowIndex` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/rowIndex)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"] pub fn row_index(this: &HtmlTableRowElement) -> i32; # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableRowElement" , js_name = sectionRowIndex)] #[doc = "Getter for the `sectionRowIndex` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/sectionRowIndex)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"] pub fn section_row_index(this: &HtmlTableRowElement) -> i32; #[cfg(feature = "HtmlCollection")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableRowElement" , js_name = cells)] #[doc = "Getter for the `cells` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/cells)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`, `HtmlTableRowElement`*"] pub fn cells(this: &HtmlTableRowElement) -> HtmlCollection; # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableRowElement" , js_name = align)] #[doc = "Getter for the `align` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"] pub fn align(this: &HtmlTableRowElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableRowElement" , js_name = align)] #[doc = "Setter for the `align` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"] pub fn set_align(this: &HtmlTableRowElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableRowElement" , js_name = ch)] #[doc = "Getter for the `ch` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/ch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"] pub fn ch(this: &HtmlTableRowElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableRowElement" , js_name = ch)] #[doc = "Setter for the `ch` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/ch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"] pub fn set_ch(this: &HtmlTableRowElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableRowElement" , js_name = chOff)] #[doc = "Getter for the `chOff` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/chOff)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"] pub fn ch_off(this: &HtmlTableRowElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableRowElement" , js_name = chOff)] #[doc = "Setter for the `chOff` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/chOff)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"] pub fn set_ch_off(this: &HtmlTableRowElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableRowElement" , js_name = vAlign)] #[doc = "Getter for the `vAlign` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/vAlign)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"] pub fn v_align(this: &HtmlTableRowElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableRowElement" , js_name = vAlign)] #[doc = "Setter for the `vAlign` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/vAlign)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"] pub fn set_v_align(this: &HtmlTableRowElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableRowElement" , js_name = bgColor)] #[doc = "Getter for the `bgColor` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/bgColor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"] pub fn bg_color(this: &HtmlTableRowElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableRowElement" , js_name = bgColor)] #[doc = "Setter for the `bgColor` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/bgColor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"] pub fn set_bg_color(this: &HtmlTableRowElement, value: &str); # [wasm_bindgen (catch , method , structural , js_class = "HTMLTableRowElement" , js_name = deleteCell)] #[doc = "The `deleteCell()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/deleteCell)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"] pub fn delete_cell(this: &HtmlTableRowElement, index: i32) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "HTMLTableRowElement" , js_name = insertCell)] #[doc = "The `insertCell()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/insertCell)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"] pub fn insert_cell(this: &HtmlTableRowElement) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "HTMLTableRowElement" , js_name = insertCell)] #[doc = "The `insertCell()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/insertCell)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"] pub fn insert_cell_with_index( this: &HtmlTableRowElement, index: i32, ) -> Result; } web-sys-0.3.55/src/features/gen_HtmlTableSectionElement.rs000064400000000000000000000150150072674642500216600ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLTableSectionElement , typescript_type = "HTMLTableSectionElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlTableSectionElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableSectionElement`*"] pub type HtmlTableSectionElement; #[cfg(feature = "HtmlCollection")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableSectionElement" , js_name = rows)] #[doc = "Getter for the `rows` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement/rows)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`, `HtmlTableSectionElement`*"] pub fn rows(this: &HtmlTableSectionElement) -> HtmlCollection; # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableSectionElement" , js_name = align)] #[doc = "Getter for the `align` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableSectionElement`*"] pub fn align(this: &HtmlTableSectionElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableSectionElement" , js_name = align)] #[doc = "Setter for the `align` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableSectionElement`*"] pub fn set_align(this: &HtmlTableSectionElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableSectionElement" , js_name = ch)] #[doc = "Getter for the `ch` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement/ch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableSectionElement`*"] pub fn ch(this: &HtmlTableSectionElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableSectionElement" , js_name = ch)] #[doc = "Setter for the `ch` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement/ch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableSectionElement`*"] pub fn set_ch(this: &HtmlTableSectionElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableSectionElement" , js_name = chOff)] #[doc = "Getter for the `chOff` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement/chOff)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableSectionElement`*"] pub fn ch_off(this: &HtmlTableSectionElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableSectionElement" , js_name = chOff)] #[doc = "Setter for the `chOff` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement/chOff)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableSectionElement`*"] pub fn set_ch_off(this: &HtmlTableSectionElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableSectionElement" , js_name = vAlign)] #[doc = "Getter for the `vAlign` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement/vAlign)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableSectionElement`*"] pub fn v_align(this: &HtmlTableSectionElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableSectionElement" , js_name = vAlign)] #[doc = "Setter for the `vAlign` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement/vAlign)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableSectionElement`*"] pub fn set_v_align(this: &HtmlTableSectionElement, value: &str); # [wasm_bindgen (catch , method , structural , js_class = "HTMLTableSectionElement" , js_name = deleteRow)] #[doc = "The `deleteRow()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement/deleteRow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableSectionElement`*"] pub fn delete_row(this: &HtmlTableSectionElement, index: i32) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "HTMLTableSectionElement" , js_name = insertRow)] #[doc = "The `insertRow()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement/insertRow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableSectionElement`*"] pub fn insert_row(this: &HtmlTableSectionElement) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "HTMLTableSectionElement" , js_name = insertRow)] #[doc = "The `insertRow()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement/insertRow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableSectionElement`*"] pub fn insert_row_with_index( this: &HtmlTableSectionElement, index: i32, ) -> Result; } web-sys-0.3.55/src/features/gen_HtmlTemplateElement.rs000064400000000000000000000023100072674642500210510ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLTemplateElement , typescript_type = "HTMLTemplateElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlTemplateElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTemplateElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTemplateElement`*"] pub type HtmlTemplateElement; #[cfg(feature = "DocumentFragment")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLTemplateElement" , js_name = content)] #[doc = "Getter for the `content` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTemplateElement/content)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`, `HtmlTemplateElement`*"] pub fn content(this: &HtmlTemplateElement) -> DocumentFragment; } web-sys-0.3.55/src/features/gen_HtmlTextAreaElement.rs000064400000000000000000000611520072674642500210240ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLTextAreaElement , typescript_type = "HTMLTextAreaElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlTextAreaElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub type HtmlTextAreaElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = autocomplete)] #[doc = "Getter for the `autocomplete` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/autocomplete)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn autocomplete(this: &HtmlTextAreaElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTextAreaElement" , js_name = autocomplete)] #[doc = "Setter for the `autocomplete` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/autocomplete)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn set_autocomplete(this: &HtmlTextAreaElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = autofocus)] #[doc = "Getter for the `autofocus` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/autofocus)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn autofocus(this: &HtmlTextAreaElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTextAreaElement" , js_name = autofocus)] #[doc = "Setter for the `autofocus` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/autofocus)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn set_autofocus(this: &HtmlTextAreaElement, value: bool); # [wasm_bindgen (structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = cols)] #[doc = "Getter for the `cols` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/cols)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn cols(this: &HtmlTextAreaElement) -> u32; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTextAreaElement" , js_name = cols)] #[doc = "Setter for the `cols` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/cols)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn set_cols(this: &HtmlTextAreaElement, value: u32); # [wasm_bindgen (structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = disabled)] #[doc = "Getter for the `disabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/disabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn disabled(this: &HtmlTextAreaElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTextAreaElement" , js_name = disabled)] #[doc = "Setter for the `disabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/disabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn set_disabled(this: &HtmlTextAreaElement, value: bool); #[cfg(feature = "HtmlFormElement")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = form)] #[doc = "Getter for the `form` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/form)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`, `HtmlTextAreaElement`*"] pub fn form(this: &HtmlTextAreaElement) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = maxLength)] #[doc = "Getter for the `maxLength` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/maxLength)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn max_length(this: &HtmlTextAreaElement) -> i32; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTextAreaElement" , js_name = maxLength)] #[doc = "Setter for the `maxLength` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/maxLength)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn set_max_length(this: &HtmlTextAreaElement, value: i32); # [wasm_bindgen (structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = minLength)] #[doc = "Getter for the `minLength` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/minLength)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn min_length(this: &HtmlTextAreaElement) -> i32; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTextAreaElement" , js_name = minLength)] #[doc = "Setter for the `minLength` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/minLength)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn set_min_length(this: &HtmlTextAreaElement, value: i32); # [wasm_bindgen (structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = name)] #[doc = "Getter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn name(this: &HtmlTextAreaElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTextAreaElement" , js_name = name)] #[doc = "Setter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn set_name(this: &HtmlTextAreaElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = placeholder)] #[doc = "Getter for the `placeholder` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/placeholder)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn placeholder(this: &HtmlTextAreaElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTextAreaElement" , js_name = placeholder)] #[doc = "Setter for the `placeholder` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/placeholder)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn set_placeholder(this: &HtmlTextAreaElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = readOnly)] #[doc = "Getter for the `readOnly` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/readOnly)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn read_only(this: &HtmlTextAreaElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTextAreaElement" , js_name = readOnly)] #[doc = "Setter for the `readOnly` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/readOnly)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn set_read_only(this: &HtmlTextAreaElement, value: bool); # [wasm_bindgen (structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = required)] #[doc = "Getter for the `required` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/required)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn required(this: &HtmlTextAreaElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTextAreaElement" , js_name = required)] #[doc = "Setter for the `required` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/required)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn set_required(this: &HtmlTextAreaElement, value: bool); # [wasm_bindgen (structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = rows)] #[doc = "Getter for the `rows` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/rows)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn rows(this: &HtmlTextAreaElement) -> u32; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTextAreaElement" , js_name = rows)] #[doc = "Setter for the `rows` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/rows)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn set_rows(this: &HtmlTextAreaElement, value: u32); # [wasm_bindgen (structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = wrap)] #[doc = "Getter for the `wrap` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/wrap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn wrap(this: &HtmlTextAreaElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTextAreaElement" , js_name = wrap)] #[doc = "Setter for the `wrap` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/wrap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn set_wrap(this: &HtmlTextAreaElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = type)] #[doc = "Getter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn type_(this: &HtmlTextAreaElement) -> String; # [wasm_bindgen (structural , catch , method , getter , js_class = "HTMLTextAreaElement" , js_name = defaultValue)] #[doc = "Getter for the `defaultValue` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/defaultValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn default_value(this: &HtmlTextAreaElement) -> Result; # [wasm_bindgen (structural , catch , method , setter , js_class = "HTMLTextAreaElement" , js_name = defaultValue)] #[doc = "Setter for the `defaultValue` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/defaultValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn set_default_value(this: &HtmlTextAreaElement, value: &str) -> Result<(), JsValue>; # [wasm_bindgen (structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = value)] #[doc = "Getter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn value(this: &HtmlTextAreaElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTextAreaElement" , js_name = value)] #[doc = "Setter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn set_value(this: &HtmlTextAreaElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = textLength)] #[doc = "Getter for the `textLength` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/textLength)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn text_length(this: &HtmlTextAreaElement) -> u32; # [wasm_bindgen (structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = willValidate)] #[doc = "Getter for the `willValidate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/willValidate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn will_validate(this: &HtmlTextAreaElement) -> bool; #[cfg(feature = "ValidityState")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = validity)] #[doc = "Getter for the `validity` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/validity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`, `ValidityState`*"] pub fn validity(this: &HtmlTextAreaElement) -> ValidityState; # [wasm_bindgen (structural , catch , method , getter , js_class = "HTMLTextAreaElement" , js_name = validationMessage)] #[doc = "Getter for the `validationMessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/validationMessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn validation_message(this: &HtmlTextAreaElement) -> Result; #[cfg(feature = "NodeList")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = labels)] #[doc = "Getter for the `labels` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/labels)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`, `NodeList`*"] pub fn labels(this: &HtmlTextAreaElement) -> NodeList; # [wasm_bindgen (structural , catch , method , getter , js_class = "HTMLTextAreaElement" , js_name = selectionStart)] #[doc = "Getter for the `selectionStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/selectionStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn selection_start(this: &HtmlTextAreaElement) -> Result, JsValue>; # [wasm_bindgen (structural , catch , method , setter , js_class = "HTMLTextAreaElement" , js_name = selectionStart)] #[doc = "Setter for the `selectionStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/selectionStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn set_selection_start( this: &HtmlTextAreaElement, value: Option, ) -> Result<(), JsValue>; # [wasm_bindgen (structural , catch , method , getter , js_class = "HTMLTextAreaElement" , js_name = selectionEnd)] #[doc = "Getter for the `selectionEnd` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/selectionEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn selection_end(this: &HtmlTextAreaElement) -> Result, JsValue>; # [wasm_bindgen (structural , catch , method , setter , js_class = "HTMLTextAreaElement" , js_name = selectionEnd)] #[doc = "Setter for the `selectionEnd` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/selectionEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn set_selection_end(this: &HtmlTextAreaElement, value: Option) -> Result<(), JsValue>; # [wasm_bindgen (structural , catch , method , getter , js_class = "HTMLTextAreaElement" , js_name = selectionDirection)] #[doc = "Getter for the `selectionDirection` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/selectionDirection)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn selection_direction(this: &HtmlTextAreaElement) -> Result, JsValue>; # [wasm_bindgen (structural , catch , method , setter , js_class = "HTMLTextAreaElement" , js_name = selectionDirection)] #[doc = "Setter for the `selectionDirection` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/selectionDirection)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn set_selection_direction( this: &HtmlTextAreaElement, value: Option<&str>, ) -> Result<(), JsValue>; # [wasm_bindgen (method , structural , js_class = "HTMLTextAreaElement" , js_name = checkValidity)] #[doc = "The `checkValidity()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/checkValidity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn check_validity(this: &HtmlTextAreaElement) -> bool; # [wasm_bindgen (method , structural , js_class = "HTMLTextAreaElement" , js_name = reportValidity)] #[doc = "The `reportValidity()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/reportValidity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn report_validity(this: &HtmlTextAreaElement) -> bool; # [wasm_bindgen (method , structural , js_class = "HTMLTextAreaElement" , js_name = select)] #[doc = "The `select()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/select)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn select(this: &HtmlTextAreaElement); # [wasm_bindgen (method , structural , js_class = "HTMLTextAreaElement" , js_name = setCustomValidity)] #[doc = "The `setCustomValidity()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/setCustomValidity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn set_custom_validity(this: &HtmlTextAreaElement, error: &str); # [wasm_bindgen (catch , method , structural , js_class = "HTMLTextAreaElement" , js_name = setRangeText)] #[doc = "The `setRangeText()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/setRangeText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn set_range_text(this: &HtmlTextAreaElement, replacement: &str) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "HTMLTextAreaElement" , js_name = setRangeText)] #[doc = "The `setRangeText()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/setRangeText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn set_range_text_with_start_and_end( this: &HtmlTextAreaElement, replacement: &str, start: u32, end: u32, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "HTMLTextAreaElement" , js_name = setSelectionRange)] #[doc = "The `setSelectionRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/setSelectionRange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn set_selection_range( this: &HtmlTextAreaElement, start: u32, end: u32, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "HTMLTextAreaElement" , js_name = setSelectionRange)] #[doc = "The `setSelectionRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/setSelectionRange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] pub fn set_selection_range_with_direction( this: &HtmlTextAreaElement, start: u32, end: u32, direction: &str, ) -> Result<(), JsValue>; } web-sys-0.3.55/src/features/gen_HtmlTimeElement.rs000064400000000000000000000030650072674642500202040ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLTimeElement , typescript_type = "HTMLTimeElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlTimeElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTimeElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTimeElement`*"] pub type HtmlTimeElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLTimeElement" , js_name = dateTime)] #[doc = "Getter for the `dateTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTimeElement/dateTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTimeElement`*"] pub fn date_time(this: &HtmlTimeElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTimeElement" , js_name = dateTime)] #[doc = "Setter for the `dateTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTimeElement/dateTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTimeElement`*"] pub fn set_date_time(this: &HtmlTimeElement, value: &str); } web-sys-0.3.55/src/features/gen_HtmlTitleElement.rs000064400000000000000000000031310072674642500203610ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLTitleElement , typescript_type = "HTMLTitleElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlTitleElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTitleElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTitleElement`*"] pub type HtmlTitleElement; # [wasm_bindgen (structural , catch , method , getter , js_class = "HTMLTitleElement" , js_name = text)] #[doc = "Getter for the `text` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTitleElement/text)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTitleElement`*"] pub fn text(this: &HtmlTitleElement) -> Result; # [wasm_bindgen (structural , catch , method , setter , js_class = "HTMLTitleElement" , js_name = text)] #[doc = "Setter for the `text` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTitleElement/text)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTitleElement`*"] pub fn set_text(this: &HtmlTitleElement, value: &str) -> Result<(), JsValue>; } web-sys-0.3.55/src/features/gen_HtmlTrackElement.rs000064400000000000000000000156670072674642500203650ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLTrackElement , typescript_type = "HTMLTrackElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlTrackElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"] pub type HtmlTrackElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLTrackElement" , js_name = kind)] #[doc = "Getter for the `kind` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement/kind)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"] pub fn kind(this: &HtmlTrackElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTrackElement" , js_name = kind)] #[doc = "Setter for the `kind` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement/kind)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"] pub fn set_kind(this: &HtmlTrackElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLTrackElement" , js_name = src)] #[doc = "Getter for the `src` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement/src)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"] pub fn src(this: &HtmlTrackElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTrackElement" , js_name = src)] #[doc = "Setter for the `src` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement/src)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"] pub fn set_src(this: &HtmlTrackElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLTrackElement" , js_name = srclang)] #[doc = "Getter for the `srclang` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement/srclang)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"] pub fn srclang(this: &HtmlTrackElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTrackElement" , js_name = srclang)] #[doc = "Setter for the `srclang` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement/srclang)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"] pub fn set_srclang(this: &HtmlTrackElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLTrackElement" , js_name = label)] #[doc = "Getter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"] pub fn label(this: &HtmlTrackElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTrackElement" , js_name = label)] #[doc = "Setter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"] pub fn set_label(this: &HtmlTrackElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLTrackElement" , js_name = default)] #[doc = "Getter for the `default` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement/default)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"] pub fn default(this: &HtmlTrackElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTrackElement" , js_name = default)] #[doc = "Setter for the `default` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement/default)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"] pub fn set_default(this: &HtmlTrackElement, value: bool); # [wasm_bindgen (structural , method , getter , js_class = "HTMLTrackElement" , js_name = readyState)] #[doc = "Getter for the `readyState` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement/readyState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"] pub fn ready_state(this: &HtmlTrackElement) -> u16; #[cfg(feature = "TextTrack")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLTrackElement" , js_name = track)] #[doc = "Getter for the `track` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement/track)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`, `TextTrack`*"] pub fn track(this: &HtmlTrackElement) -> Option; } impl HtmlTrackElement { #[doc = "The `HTMLTrackElement.NONE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"] pub const NONE: u16 = 0i64 as u16; #[doc = "The `HTMLTrackElement.LOADING` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"] pub const LOADING: u16 = 1u64 as u16; #[doc = "The `HTMLTrackElement.LOADED` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"] pub const LOADED: u16 = 2u64 as u16; #[doc = "The `HTMLTrackElement.ERROR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"] pub const ERROR: u16 = 3u64 as u16; } web-sys-0.3.55/src/features/gen_HtmlUListElement.rs000064400000000000000000000047050072674642500203500ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLUListElement , typescript_type = "HTMLUListElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlUListElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLUListElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlUListElement`*"] pub type HtmlUListElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLUListElement" , js_name = compact)] #[doc = "Getter for the `compact` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLUListElement/compact)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlUListElement`*"] pub fn compact(this: &HtmlUListElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLUListElement" , js_name = compact)] #[doc = "Setter for the `compact` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLUListElement/compact)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlUListElement`*"] pub fn set_compact(this: &HtmlUListElement, value: bool); # [wasm_bindgen (structural , method , getter , js_class = "HTMLUListElement" , js_name = type)] #[doc = "Getter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLUListElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlUListElement`*"] pub fn type_(this: &HtmlUListElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLUListElement" , js_name = type)] #[doc = "Setter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLUListElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlUListElement`*"] pub fn set_type(this: &HtmlUListElement, value: &str); } web-sys-0.3.55/src/features/gen_HtmlUnknownElement.rs000064400000000000000000000012400072674642500207360ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLUnknownElement , typescript_type = "HTMLUnknownElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlUnknownElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLUnknownElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlUnknownElement`*"] pub type HtmlUnknownElement; } web-sys-0.3.55/src/features/gen_HtmlVideoElement.rs000064400000000000000000000115630072674642500203560ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = HtmlMediaElement , extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLVideoElement , typescript_type = "HTMLVideoElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HtmlVideoElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`*"] pub type HtmlVideoElement; # [wasm_bindgen (structural , method , getter , js_class = "HTMLVideoElement" , js_name = width)] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`*"] pub fn width(this: &HtmlVideoElement) -> u32; # [wasm_bindgen (structural , method , setter , js_class = "HTMLVideoElement" , js_name = width)] #[doc = "Setter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`*"] pub fn set_width(this: &HtmlVideoElement, value: u32); # [wasm_bindgen (structural , method , getter , js_class = "HTMLVideoElement" , js_name = height)] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`*"] pub fn height(this: &HtmlVideoElement) -> u32; # [wasm_bindgen (structural , method , setter , js_class = "HTMLVideoElement" , js_name = height)] #[doc = "Setter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`*"] pub fn set_height(this: &HtmlVideoElement, value: u32); # [wasm_bindgen (structural , method , getter , js_class = "HTMLVideoElement" , js_name = videoWidth)] #[doc = "Getter for the `videoWidth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement/videoWidth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`*"] pub fn video_width(this: &HtmlVideoElement) -> u32; # [wasm_bindgen (structural , method , getter , js_class = "HTMLVideoElement" , js_name = videoHeight)] #[doc = "Getter for the `videoHeight` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement/videoHeight)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`*"] pub fn video_height(this: &HtmlVideoElement) -> u32; # [wasm_bindgen (structural , method , getter , js_class = "HTMLVideoElement" , js_name = poster)] #[doc = "Getter for the `poster` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement/poster)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`*"] pub fn poster(this: &HtmlVideoElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLVideoElement" , js_name = poster)] #[doc = "Setter for the `poster` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement/poster)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`*"] pub fn set_poster(this: &HtmlVideoElement, value: &str); #[cfg(feature = "VideoPlaybackQuality")] # [wasm_bindgen (method , structural , js_class = "HTMLVideoElement" , js_name = getVideoPlaybackQuality)] #[doc = "The `getVideoPlaybackQuality()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement/getVideoPlaybackQuality)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`, `VideoPlaybackQuality`*"] pub fn get_video_playback_quality(this: &HtmlVideoElement) -> VideoPlaybackQuality; } web-sys-0.3.55/src/features/gen_HttpConnDict.rs000064400000000000000000000026610072674642500175110ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = HttpConnDict)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HttpConnDict` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HttpConnDict`*"] pub type HttpConnDict; } impl HttpConnDict { #[doc = "Construct a new `HttpConnDict`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HttpConnDict`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `connections` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HttpConnDict`*"] pub fn connections(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("connections"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for HttpConnDict { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_HttpConnInfo.rs000064400000000000000000000047000072674642500175150ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = HttpConnInfo)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HttpConnInfo` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HttpConnInfo`*"] pub type HttpConnInfo; } impl HttpConnInfo { #[doc = "Construct a new `HttpConnInfo`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HttpConnInfo`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `protocolVersion` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HttpConnInfo`*"] pub fn protocol_version(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("protocolVersion"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `rtt` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HttpConnInfo`*"] pub fn rtt(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("rtt"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `ttl` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HttpConnInfo`*"] pub fn ttl(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("ttl"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for HttpConnInfo { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_HttpConnectionElement.rs000064400000000000000000000113030072674642500214120ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = HttpConnectionElement)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HttpConnectionElement` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HttpConnectionElement`*"] pub type HttpConnectionElement; } impl HttpConnectionElement { #[doc = "Construct a new `HttpConnectionElement`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HttpConnectionElement`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `active` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HttpConnectionElement`*"] pub fn active(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("active"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `halfOpens` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HttpConnectionElement`*"] pub fn half_opens(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("halfOpens"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `host` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HttpConnectionElement`*"] pub fn host(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("host"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `idle` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HttpConnectionElement`*"] pub fn idle(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("idle"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `port` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HttpConnectionElement`*"] pub fn port(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("port"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `spdy` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HttpConnectionElement`*"] pub fn spdy(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("spdy"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `ssl` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HttpConnectionElement`*"] pub fn ssl(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("ssl"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for HttpConnectionElement { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_IdbCursor.rs000064400000000000000000000123670072674642500170500ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = IDBCursor , typescript_type = "IDBCursor")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IdbCursor` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbCursor`*"] pub type IdbCursor; # [wasm_bindgen (structural , method , getter , js_class = "IDBCursor" , js_name = source)] #[doc = "Getter for the `source` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor/source)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbCursor`*"] pub fn source(this: &IdbCursor) -> ::js_sys::Object; #[cfg(feature = "IdbCursorDirection")] # [wasm_bindgen (structural , method , getter , js_class = "IDBCursor" , js_name = direction)] #[doc = "Getter for the `direction` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor/direction)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbCursor`, `IdbCursorDirection`*"] pub fn direction(this: &IdbCursor) -> IdbCursorDirection; # [wasm_bindgen (structural , catch , method , getter , js_class = "IDBCursor" , js_name = key)] #[doc = "Getter for the `key` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor/key)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbCursor`*"] pub fn key(this: &IdbCursor) -> Result<::wasm_bindgen::JsValue, JsValue>; # [wasm_bindgen (structural , catch , method , getter , js_class = "IDBCursor" , js_name = primaryKey)] #[doc = "Getter for the `primaryKey` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor/primaryKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbCursor`*"] pub fn primary_key(this: &IdbCursor) -> Result<::wasm_bindgen::JsValue, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "IDBCursor" , js_name = advance)] #[doc = "The `advance()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor/advance)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbCursor`*"] pub fn advance(this: &IdbCursor, count: u32) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "IDBCursor" , js_name = continue)] #[doc = "The `continue()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor/continue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbCursor`*"] pub fn continue_(this: &IdbCursor) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "IDBCursor" , js_name = continue)] #[doc = "The `continue()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor/continue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbCursor`*"] pub fn continue_with_key( this: &IdbCursor, key: &::wasm_bindgen::JsValue, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "IDBCursor" , js_name = continuePrimaryKey)] #[doc = "The `continuePrimaryKey()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor/continuePrimaryKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbCursor`*"] pub fn continue_primary_key( this: &IdbCursor, key: &::wasm_bindgen::JsValue, primary_key: &::wasm_bindgen::JsValue, ) -> Result<(), JsValue>; #[cfg(feature = "IdbRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBCursor" , js_name = delete)] #[doc = "The `delete()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor/delete)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbCursor`, `IdbRequest`*"] pub fn delete(this: &IdbCursor) -> Result; #[cfg(feature = "IdbRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBCursor" , js_name = update)] #[doc = "The `update()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor/update)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbCursor`, `IdbRequest`*"] pub fn update(this: &IdbCursor, value: &::wasm_bindgen::JsValue) -> Result; } web-sys-0.3.55/src/features/gen_IdbCursorDirection.rs000064400000000000000000000006210072674642500206770ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `IdbCursorDirection` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbCursorDirection`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum IdbCursorDirection { Next = "next", Nextunique = "nextunique", Prev = "prev", Prevunique = "prevunique", } web-sys-0.3.55/src/features/gen_IdbCursorWithValue.rs000064400000000000000000000021320072674642500206660ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = IdbCursor , extends = :: js_sys :: Object , js_name = IDBCursorWithValue , typescript_type = "IDBCursorWithValue")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IdbCursorWithValue` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursorWithValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbCursorWithValue`*"] pub type IdbCursorWithValue; # [wasm_bindgen (structural , catch , method , getter , js_class = "IDBCursorWithValue" , js_name = value)] #[doc = "Getter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursorWithValue/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbCursorWithValue`*"] pub fn value(this: &IdbCursorWithValue) -> Result<::wasm_bindgen::JsValue, JsValue>; } web-sys-0.3.55/src/features/gen_IdbDatabase.rs000064400000000000000000000275430072674642500173010ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = IDBDatabase , typescript_type = "IDBDatabase")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IdbDatabase` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"] pub type IdbDatabase; # [wasm_bindgen (structural , method , getter , js_class = "IDBDatabase" , js_name = name)] #[doc = "Getter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"] pub fn name(this: &IdbDatabase) -> String; # [wasm_bindgen (structural , method , getter , js_class = "IDBDatabase" , js_name = version)] #[doc = "Getter for the `version` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/version)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"] pub fn version(this: &IdbDatabase) -> f64; #[cfg(feature = "DomStringList")] # [wasm_bindgen (structural , method , getter , js_class = "IDBDatabase" , js_name = objectStoreNames)] #[doc = "Getter for the `objectStoreNames` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/objectStoreNames)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomStringList`, `IdbDatabase`*"] pub fn object_store_names(this: &IdbDatabase) -> DomStringList; # [wasm_bindgen (structural , method , getter , js_class = "IDBDatabase" , js_name = onabort)] #[doc = "Getter for the `onabort` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/onabort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"] pub fn onabort(this: &IdbDatabase) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "IDBDatabase" , js_name = onabort)] #[doc = "Setter for the `onabort` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/onabort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"] pub fn set_onabort(this: &IdbDatabase, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "IDBDatabase" , js_name = onclose)] #[doc = "Getter for the `onclose` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/onclose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"] pub fn onclose(this: &IdbDatabase) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "IDBDatabase" , js_name = onclose)] #[doc = "Setter for the `onclose` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/onclose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"] pub fn set_onclose(this: &IdbDatabase, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "IDBDatabase" , js_name = onerror)] #[doc = "Getter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"] pub fn onerror(this: &IdbDatabase) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "IDBDatabase" , js_name = onerror)] #[doc = "Setter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"] pub fn set_onerror(this: &IdbDatabase, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "IDBDatabase" , js_name = onversionchange)] #[doc = "Getter for the `onversionchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/onversionchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"] pub fn onversionchange(this: &IdbDatabase) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "IDBDatabase" , js_name = onversionchange)] #[doc = "Setter for the `onversionchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/onversionchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"] pub fn set_onversionchange(this: &IdbDatabase, value: Option<&::js_sys::Function>); #[cfg(feature = "StorageType")] # [wasm_bindgen (structural , method , getter , js_class = "IDBDatabase" , js_name = storage)] #[doc = "Getter for the `storage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/storage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`, `StorageType`*"] pub fn storage(this: &IdbDatabase) -> StorageType; # [wasm_bindgen (method , structural , js_class = "IDBDatabase" , js_name = close)] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"] pub fn close(this: &IdbDatabase); #[cfg(feature = "IdbRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBDatabase" , js_name = createMutableFile)] #[doc = "The `createMutableFile()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/createMutableFile)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`, `IdbRequest`*"] pub fn create_mutable_file(this: &IdbDatabase, name: &str) -> Result; #[cfg(feature = "IdbRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBDatabase" , js_name = createMutableFile)] #[doc = "The `createMutableFile()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/createMutableFile)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`, `IdbRequest`*"] pub fn create_mutable_file_with_type( this: &IdbDatabase, name: &str, type_: &str, ) -> Result; #[cfg(feature = "IdbObjectStore")] # [wasm_bindgen (catch , method , structural , js_class = "IDBDatabase" , js_name = createObjectStore)] #[doc = "The `createObjectStore()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/createObjectStore)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`, `IdbObjectStore`*"] pub fn create_object_store(this: &IdbDatabase, name: &str) -> Result; #[cfg(all(feature = "IdbObjectStore", feature = "IdbObjectStoreParameters",))] # [wasm_bindgen (catch , method , structural , js_class = "IDBDatabase" , js_name = createObjectStore)] #[doc = "The `createObjectStore()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/createObjectStore)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`, `IdbObjectStore`, `IdbObjectStoreParameters`*"] pub fn create_object_store_with_optional_parameters( this: &IdbDatabase, name: &str, optional_parameters: &IdbObjectStoreParameters, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "IDBDatabase" , js_name = deleteObjectStore)] #[doc = "The `deleteObjectStore()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/deleteObjectStore)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"] pub fn delete_object_store(this: &IdbDatabase, name: &str) -> Result<(), JsValue>; #[cfg(feature = "IdbTransaction")] # [wasm_bindgen (catch , method , structural , js_class = "IDBDatabase" , js_name = transaction)] #[doc = "The `transaction()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/transaction)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`, `IdbTransaction`*"] pub fn transaction_with_str( this: &IdbDatabase, store_names: &str, ) -> Result; #[cfg(feature = "IdbTransaction")] # [wasm_bindgen (catch , method , structural , js_class = "IDBDatabase" , js_name = transaction)] #[doc = "The `transaction()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/transaction)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`, `IdbTransaction`*"] pub fn transaction_with_str_sequence( this: &IdbDatabase, store_names: &::wasm_bindgen::JsValue, ) -> Result; #[cfg(all(feature = "IdbTransaction", feature = "IdbTransactionMode",))] # [wasm_bindgen (catch , method , structural , js_class = "IDBDatabase" , js_name = transaction)] #[doc = "The `transaction()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/transaction)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`, `IdbTransaction`, `IdbTransactionMode`*"] pub fn transaction_with_str_and_mode( this: &IdbDatabase, store_names: &str, mode: IdbTransactionMode, ) -> Result; #[cfg(all(feature = "IdbTransaction", feature = "IdbTransactionMode",))] # [wasm_bindgen (catch , method , structural , js_class = "IDBDatabase" , js_name = transaction)] #[doc = "The `transaction()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/transaction)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`, `IdbTransaction`, `IdbTransactionMode`*"] pub fn transaction_with_str_sequence_and_mode( this: &IdbDatabase, store_names: &::wasm_bindgen::JsValue, mode: IdbTransactionMode, ) -> Result; } web-sys-0.3.55/src/features/gen_IdbFactory.rs000064400000000000000000000106560072674642500172010ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = IDBFactory , typescript_type = "IDBFactory")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IdbFactory` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFactory)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFactory`*"] pub type IdbFactory; # [wasm_bindgen (catch , method , structural , js_class = "IDBFactory" , js_name = cmp)] #[doc = "The `cmp()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFactory/cmp)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFactory`*"] pub fn cmp( this: &IdbFactory, first: &::wasm_bindgen::JsValue, second: &::wasm_bindgen::JsValue, ) -> Result; #[cfg(feature = "IdbOpenDbRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBFactory" , js_name = deleteDatabase)] #[doc = "The `deleteDatabase()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFactory/deleteDatabase)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFactory`, `IdbOpenDbRequest`*"] pub fn delete_database(this: &IdbFactory, name: &str) -> Result; #[cfg(all(feature = "IdbOpenDbOptions", feature = "IdbOpenDbRequest",))] # [wasm_bindgen (catch , method , structural , js_class = "IDBFactory" , js_name = deleteDatabase)] #[doc = "The `deleteDatabase()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFactory/deleteDatabase)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFactory`, `IdbOpenDbOptions`, `IdbOpenDbRequest`*"] pub fn delete_database_with_options( this: &IdbFactory, name: &str, options: &IdbOpenDbOptions, ) -> Result; #[cfg(feature = "IdbOpenDbRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBFactory" , js_name = open)] #[doc = "The `open()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFactory/open)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFactory`, `IdbOpenDbRequest`*"] pub fn open_with_u32( this: &IdbFactory, name: &str, version: u32, ) -> Result; #[cfg(feature = "IdbOpenDbRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBFactory" , js_name = open)] #[doc = "The `open()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFactory/open)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFactory`, `IdbOpenDbRequest`*"] pub fn open_with_f64( this: &IdbFactory, name: &str, version: f64, ) -> Result; #[cfg(feature = "IdbOpenDbRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBFactory" , js_name = open)] #[doc = "The `open()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFactory/open)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFactory`, `IdbOpenDbRequest`*"] pub fn open(this: &IdbFactory, name: &str) -> Result; #[cfg(all(feature = "IdbOpenDbOptions", feature = "IdbOpenDbRequest",))] # [wasm_bindgen (catch , method , structural , js_class = "IDBFactory" , js_name = open)] #[doc = "The `open()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFactory/open)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFactory`, `IdbOpenDbOptions`, `IdbOpenDbRequest`*"] pub fn open_with_idb_open_db_options( this: &IdbFactory, name: &str, options: &IdbOpenDbOptions, ) -> Result; } web-sys-0.3.55/src/features/gen_IdbFileHandle.rs000064400000000000000000000452000072674642500175560ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = IDBFileHandle , typescript_type = "IDBFileHandle")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IdbFileHandle` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`*"] pub type IdbFileHandle; #[cfg(feature = "IdbMutableFile")] # [wasm_bindgen (structural , method , getter , js_class = "IDBFileHandle" , js_name = mutableFile)] #[doc = "Getter for the `mutableFile` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/mutableFile)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbMutableFile`*"] pub fn mutable_file(this: &IdbFileHandle) -> Option; #[cfg(feature = "IdbMutableFile")] # [wasm_bindgen (structural , method , getter , js_class = "IDBFileHandle" , js_name = fileHandle)] #[doc = "Getter for the `fileHandle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/fileHandle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbMutableFile`*"] pub fn file_handle(this: &IdbFileHandle) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "IDBFileHandle" , js_name = active)] #[doc = "Getter for the `active` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/active)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`*"] pub fn active(this: &IdbFileHandle) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "IDBFileHandle" , js_name = location)] #[doc = "Getter for the `location` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/location)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`*"] pub fn location(this: &IdbFileHandle) -> Option; # [wasm_bindgen (structural , method , setter , js_class = "IDBFileHandle" , js_name = location)] #[doc = "Setter for the `location` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/location)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`*"] pub fn set_location(this: &IdbFileHandle, value: Option); # [wasm_bindgen (structural , method , getter , js_class = "IDBFileHandle" , js_name = oncomplete)] #[doc = "Getter for the `oncomplete` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/oncomplete)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`*"] pub fn oncomplete(this: &IdbFileHandle) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "IDBFileHandle" , js_name = oncomplete)] #[doc = "Setter for the `oncomplete` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/oncomplete)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`*"] pub fn set_oncomplete(this: &IdbFileHandle, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "IDBFileHandle" , js_name = onabort)] #[doc = "Getter for the `onabort` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/onabort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`*"] pub fn onabort(this: &IdbFileHandle) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "IDBFileHandle" , js_name = onabort)] #[doc = "Setter for the `onabort` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/onabort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`*"] pub fn set_onabort(this: &IdbFileHandle, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "IDBFileHandle" , js_name = onerror)] #[doc = "Getter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`*"] pub fn onerror(this: &IdbFileHandle) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "IDBFileHandle" , js_name = onerror)] #[doc = "Setter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`*"] pub fn set_onerror(this: &IdbFileHandle, value: Option<&::js_sys::Function>); # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = abort)] #[doc = "The `abort()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/abort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`*"] pub fn abort(this: &IdbFileHandle) -> Result<(), JsValue>; #[cfg(feature = "IdbFileRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"] pub fn append_with_str( this: &IdbFileHandle, value: &str, ) -> Result, JsValue>; #[cfg(feature = "IdbFileRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"] pub fn append_with_array_buffer( this: &IdbFileHandle, value: &::js_sys::ArrayBuffer, ) -> Result, JsValue>; #[cfg(feature = "IdbFileRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"] pub fn append_with_array_buffer_view( this: &IdbFileHandle, value: &::js_sys::Object, ) -> Result, JsValue>; #[cfg(feature = "IdbFileRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"] pub fn append_with_u8_array( this: &IdbFileHandle, value: &mut [u8], ) -> Result, JsValue>; #[cfg(all(feature = "Blob", feature = "IdbFileRequest",))] # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`, `IdbFileHandle`, `IdbFileRequest`*"] pub fn append_with_blob( this: &IdbFileHandle, value: &Blob, ) -> Result, JsValue>; #[cfg(feature = "IdbFileRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = flush)] #[doc = "The `flush()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/flush)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"] pub fn flush(this: &IdbFileHandle) -> Result, JsValue>; #[cfg(feature = "IdbFileRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = getMetadata)] #[doc = "The `getMetadata()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/getMetadata)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"] pub fn get_metadata(this: &IdbFileHandle) -> Result, JsValue>; #[cfg(all(feature = "IdbFileMetadataParameters", feature = "IdbFileRequest",))] # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = getMetadata)] #[doc = "The `getMetadata()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/getMetadata)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileMetadataParameters`, `IdbFileRequest`*"] pub fn get_metadata_with_parameters( this: &IdbFileHandle, parameters: &IdbFileMetadataParameters, ) -> Result, JsValue>; #[cfg(feature = "IdbFileRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = readAsArrayBuffer)] #[doc = "The `readAsArrayBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/readAsArrayBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"] pub fn read_as_array_buffer_with_u32( this: &IdbFileHandle, size: u32, ) -> Result, JsValue>; #[cfg(feature = "IdbFileRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = readAsArrayBuffer)] #[doc = "The `readAsArrayBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/readAsArrayBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"] pub fn read_as_array_buffer_with_f64( this: &IdbFileHandle, size: f64, ) -> Result, JsValue>; #[cfg(feature = "IdbFileRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = readAsText)] #[doc = "The `readAsText()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/readAsText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"] pub fn read_as_text_with_u32( this: &IdbFileHandle, size: u32, ) -> Result, JsValue>; #[cfg(feature = "IdbFileRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = readAsText)] #[doc = "The `readAsText()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/readAsText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"] pub fn read_as_text_with_f64( this: &IdbFileHandle, size: f64, ) -> Result, JsValue>; #[cfg(feature = "IdbFileRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = readAsText)] #[doc = "The `readAsText()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/readAsText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"] pub fn read_as_text_with_u32_and_encoding( this: &IdbFileHandle, size: u32, encoding: Option<&str>, ) -> Result, JsValue>; #[cfg(feature = "IdbFileRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = readAsText)] #[doc = "The `readAsText()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/readAsText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"] pub fn read_as_text_with_f64_and_encoding( this: &IdbFileHandle, size: f64, encoding: Option<&str>, ) -> Result, JsValue>; #[cfg(feature = "IdbFileRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = truncate)] #[doc = "The `truncate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/truncate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"] pub fn truncate(this: &IdbFileHandle) -> Result, JsValue>; #[cfg(feature = "IdbFileRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = truncate)] #[doc = "The `truncate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/truncate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"] pub fn truncate_with_u32( this: &IdbFileHandle, size: u32, ) -> Result, JsValue>; #[cfg(feature = "IdbFileRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = truncate)] #[doc = "The `truncate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/truncate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"] pub fn truncate_with_f64( this: &IdbFileHandle, size: f64, ) -> Result, JsValue>; #[cfg(feature = "IdbFileRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = write)] #[doc = "The `write()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/write)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"] pub fn write_with_str( this: &IdbFileHandle, value: &str, ) -> Result, JsValue>; #[cfg(feature = "IdbFileRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = write)] #[doc = "The `write()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/write)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"] pub fn write_with_array_buffer( this: &IdbFileHandle, value: &::js_sys::ArrayBuffer, ) -> Result, JsValue>; #[cfg(feature = "IdbFileRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = write)] #[doc = "The `write()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/write)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"] pub fn write_with_array_buffer_view( this: &IdbFileHandle, value: &::js_sys::Object, ) -> Result, JsValue>; #[cfg(feature = "IdbFileRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = write)] #[doc = "The `write()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/write)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"] pub fn write_with_u8_array( this: &IdbFileHandle, value: &mut [u8], ) -> Result, JsValue>; #[cfg(all(feature = "Blob", feature = "IdbFileRequest",))] # [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = write)] #[doc = "The `write()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/write)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`, `IdbFileHandle`, `IdbFileRequest`*"] pub fn write_with_blob( this: &IdbFileHandle, value: &Blob, ) -> Result, JsValue>; } web-sys-0.3.55/src/features/gen_IdbFileMetadataParameters.rs000064400000000000000000000040620072674642500221300ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = IDBFileMetadataParameters)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IdbFileMetadataParameters` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileMetadataParameters`*"] pub type IdbFileMetadataParameters; } impl IdbFileMetadataParameters { #[doc = "Construct a new `IdbFileMetadataParameters`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileMetadataParameters`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `lastModified` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileMetadataParameters`*"] pub fn last_modified(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("lastModified"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `size` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileMetadataParameters`*"] pub fn size(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("size"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for IdbFileMetadataParameters { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_IdbFileRequest.rs000064400000000000000000000051560072674642500200210ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = DomRequest , extends = EventTarget , extends = :: js_sys :: Object , js_name = IDBFileRequest , typescript_type = "IDBFileRequest")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IdbFileRequest` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileRequest)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileRequest`*"] pub type IdbFileRequest; #[cfg(feature = "IdbFileHandle")] # [wasm_bindgen (structural , method , getter , js_class = "IDBFileRequest" , js_name = fileHandle)] #[doc = "Getter for the `fileHandle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileRequest/fileHandle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"] pub fn file_handle(this: &IdbFileRequest) -> Option; #[cfg(feature = "IdbFileHandle")] # [wasm_bindgen (structural , method , getter , js_class = "IDBFileRequest" , js_name = lockedFile)] #[doc = "Getter for the `lockedFile` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileRequest/lockedFile)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"] pub fn locked_file(this: &IdbFileRequest) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "IDBFileRequest" , js_name = onprogress)] #[doc = "Getter for the `onprogress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileRequest/onprogress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileRequest`*"] pub fn onprogress(this: &IdbFileRequest) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "IDBFileRequest" , js_name = onprogress)] #[doc = "Setter for the `onprogress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileRequest/onprogress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileRequest`*"] pub fn set_onprogress(this: &IdbFileRequest, value: Option<&::js_sys::Function>); } web-sys-0.3.55/src/features/gen_IdbIndex.rs000064400000000000000000000307660072674642500166450ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = IDBIndex , typescript_type = "IDBIndex")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IdbIndex` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbIndex`*"] pub type IdbIndex; # [wasm_bindgen (structural , method , getter , js_class = "IDBIndex" , js_name = name)] #[doc = "Getter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbIndex`*"] pub fn name(this: &IdbIndex) -> String; # [wasm_bindgen (structural , method , setter , js_class = "IDBIndex" , js_name = name)] #[doc = "Setter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbIndex`*"] pub fn set_name(this: &IdbIndex, value: &str); #[cfg(feature = "IdbObjectStore")] # [wasm_bindgen (structural , method , getter , js_class = "IDBIndex" , js_name = objectStore)] #[doc = "Getter for the `objectStore` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/objectStore)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbObjectStore`*"] pub fn object_store(this: &IdbIndex) -> IdbObjectStore; # [wasm_bindgen (structural , catch , method , getter , js_class = "IDBIndex" , js_name = keyPath)] #[doc = "Getter for the `keyPath` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/keyPath)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbIndex`*"] pub fn key_path(this: &IdbIndex) -> Result<::wasm_bindgen::JsValue, JsValue>; # [wasm_bindgen (structural , method , getter , js_class = "IDBIndex" , js_name = multiEntry)] #[doc = "Getter for the `multiEntry` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/multiEntry)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbIndex`*"] pub fn multi_entry(this: &IdbIndex) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "IDBIndex" , js_name = unique)] #[doc = "Getter for the `unique` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/unique)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbIndex`*"] pub fn unique(this: &IdbIndex) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "IDBIndex" , js_name = locale)] #[doc = "Getter for the `locale` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/locale)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbIndex`*"] pub fn locale(this: &IdbIndex) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "IDBIndex" , js_name = isAutoLocale)] #[doc = "Getter for the `isAutoLocale` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/isAutoLocale)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbIndex`*"] pub fn is_auto_locale(this: &IdbIndex) -> bool; #[cfg(feature = "IdbRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBIndex" , js_name = count)] #[doc = "The `count()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/count)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbRequest`*"] pub fn count(this: &IdbIndex) -> Result; #[cfg(feature = "IdbRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBIndex" , js_name = count)] #[doc = "The `count()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/count)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbRequest`*"] pub fn count_with_key( this: &IdbIndex, key: &::wasm_bindgen::JsValue, ) -> Result; #[cfg(feature = "IdbRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBIndex" , js_name = get)] #[doc = "The `get()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/get)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbRequest`*"] pub fn get(this: &IdbIndex, key: &::wasm_bindgen::JsValue) -> Result; #[cfg(feature = "IdbRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBIndex" , js_name = getAll)] #[doc = "The `getAll()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/getAll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbRequest`*"] pub fn get_all(this: &IdbIndex) -> Result; #[cfg(feature = "IdbRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBIndex" , js_name = getAll)] #[doc = "The `getAll()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/getAll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbRequest`*"] pub fn get_all_with_key( this: &IdbIndex, key: &::wasm_bindgen::JsValue, ) -> Result; #[cfg(feature = "IdbRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBIndex" , js_name = getAll)] #[doc = "The `getAll()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/getAll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbRequest`*"] pub fn get_all_with_key_and_limit( this: &IdbIndex, key: &::wasm_bindgen::JsValue, limit: u32, ) -> Result; #[cfg(feature = "IdbRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBIndex" , js_name = getAllKeys)] #[doc = "The `getAllKeys()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/getAllKeys)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbRequest`*"] pub fn get_all_keys(this: &IdbIndex) -> Result; #[cfg(feature = "IdbRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBIndex" , js_name = getAllKeys)] #[doc = "The `getAllKeys()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/getAllKeys)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbRequest`*"] pub fn get_all_keys_with_key( this: &IdbIndex, key: &::wasm_bindgen::JsValue, ) -> Result; #[cfg(feature = "IdbRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBIndex" , js_name = getAllKeys)] #[doc = "The `getAllKeys()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/getAllKeys)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbRequest`*"] pub fn get_all_keys_with_key_and_limit( this: &IdbIndex, key: &::wasm_bindgen::JsValue, limit: u32, ) -> Result; #[cfg(feature = "IdbRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBIndex" , js_name = getKey)] #[doc = "The `getKey()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/getKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbRequest`*"] pub fn get_key(this: &IdbIndex, key: &::wasm_bindgen::JsValue) -> Result; #[cfg(feature = "IdbRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBIndex" , js_name = openCursor)] #[doc = "The `openCursor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/openCursor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbRequest`*"] pub fn open_cursor(this: &IdbIndex) -> Result; #[cfg(feature = "IdbRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBIndex" , js_name = openCursor)] #[doc = "The `openCursor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/openCursor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbRequest`*"] pub fn open_cursor_with_range( this: &IdbIndex, range: &::wasm_bindgen::JsValue, ) -> Result; #[cfg(all(feature = "IdbCursorDirection", feature = "IdbRequest",))] # [wasm_bindgen (catch , method , structural , js_class = "IDBIndex" , js_name = openCursor)] #[doc = "The `openCursor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/openCursor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbCursorDirection`, `IdbIndex`, `IdbRequest`*"] pub fn open_cursor_with_range_and_direction( this: &IdbIndex, range: &::wasm_bindgen::JsValue, direction: IdbCursorDirection, ) -> Result; #[cfg(feature = "IdbRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBIndex" , js_name = openKeyCursor)] #[doc = "The `openKeyCursor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/openKeyCursor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbRequest`*"] pub fn open_key_cursor(this: &IdbIndex) -> Result; #[cfg(feature = "IdbRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBIndex" , js_name = openKeyCursor)] #[doc = "The `openKeyCursor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/openKeyCursor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbRequest`*"] pub fn open_key_cursor_with_range( this: &IdbIndex, range: &::wasm_bindgen::JsValue, ) -> Result; #[cfg(all(feature = "IdbCursorDirection", feature = "IdbRequest",))] # [wasm_bindgen (catch , method , structural , js_class = "IDBIndex" , js_name = openKeyCursor)] #[doc = "The `openKeyCursor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/openKeyCursor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbCursorDirection`, `IdbIndex`, `IdbRequest`*"] pub fn open_key_cursor_with_range_and_direction( this: &IdbIndex, range: &::wasm_bindgen::JsValue, direction: IdbCursorDirection, ) -> Result; } web-sys-0.3.55/src/features/gen_IdbIndexParameters.rs000064400000000000000000000050470072674642500206630ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = IDBIndexParameters)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IdbIndexParameters` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbIndexParameters`*"] pub type IdbIndexParameters; } impl IdbIndexParameters { #[doc = "Construct a new `IdbIndexParameters`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbIndexParameters`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `locale` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbIndexParameters`*"] pub fn locale(&mut self, val: Option<&str>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("locale"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `multiEntry` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbIndexParameters`*"] pub fn multi_entry(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("multiEntry"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `unique` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbIndexParameters`*"] pub fn unique(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("unique"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for IdbIndexParameters { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_IdbKeyRange.rs000064400000000000000000000155130072674642500172740ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = IDBKeyRange , typescript_type = "IDBKeyRange")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IdbKeyRange` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"] pub type IdbKeyRange; # [wasm_bindgen (structural , catch , method , getter , js_class = "IDBKeyRange" , js_name = lower)] #[doc = "Getter for the `lower` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/lower)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"] pub fn lower(this: &IdbKeyRange) -> Result<::wasm_bindgen::JsValue, JsValue>; # [wasm_bindgen (structural , catch , method , getter , js_class = "IDBKeyRange" , js_name = upper)] #[doc = "Getter for the `upper` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/upper)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"] pub fn upper(this: &IdbKeyRange) -> Result<::wasm_bindgen::JsValue, JsValue>; # [wasm_bindgen (structural , method , getter , js_class = "IDBKeyRange" , js_name = lowerOpen)] #[doc = "Getter for the `lowerOpen` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/lowerOpen)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"] pub fn lower_open(this: &IdbKeyRange) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "IDBKeyRange" , js_name = upperOpen)] #[doc = "Getter for the `upperOpen` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/upperOpen)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"] pub fn upper_open(this: &IdbKeyRange) -> bool; # [wasm_bindgen (catch , static_method_of = IdbKeyRange , js_class = "IDBKeyRange" , js_name = bound)] #[doc = "The `bound()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/bound)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"] pub fn bound( lower: &::wasm_bindgen::JsValue, upper: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , static_method_of = IdbKeyRange , js_class = "IDBKeyRange" , js_name = bound)] #[doc = "The `bound()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/bound)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"] pub fn bound_with_lower_open( lower: &::wasm_bindgen::JsValue, upper: &::wasm_bindgen::JsValue, lower_open: bool, ) -> Result; # [wasm_bindgen (catch , static_method_of = IdbKeyRange , js_class = "IDBKeyRange" , js_name = bound)] #[doc = "The `bound()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/bound)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"] pub fn bound_with_lower_open_and_upper_open( lower: &::wasm_bindgen::JsValue, upper: &::wasm_bindgen::JsValue, lower_open: bool, upper_open: bool, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "IDBKeyRange" , js_name = includes)] #[doc = "The `includes()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/includes)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"] pub fn includes(this: &IdbKeyRange, key: &::wasm_bindgen::JsValue) -> Result; # [wasm_bindgen (catch , static_method_of = IdbKeyRange , js_class = "IDBKeyRange" , js_name = lowerBound)] #[doc = "The `lowerBound()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/lowerBound)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"] pub fn lower_bound(lower: &::wasm_bindgen::JsValue) -> Result; # [wasm_bindgen (catch , static_method_of = IdbKeyRange , js_class = "IDBKeyRange" , js_name = lowerBound)] #[doc = "The `lowerBound()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/lowerBound)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"] pub fn lower_bound_with_open( lower: &::wasm_bindgen::JsValue, open: bool, ) -> Result; # [wasm_bindgen (catch , static_method_of = IdbKeyRange , js_class = "IDBKeyRange" , js_name = only)] #[doc = "The `only()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/only)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"] pub fn only(value: &::wasm_bindgen::JsValue) -> Result; # [wasm_bindgen (catch , static_method_of = IdbKeyRange , js_class = "IDBKeyRange" , js_name = upperBound)] #[doc = "The `upperBound()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/upperBound)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"] pub fn upper_bound(upper: &::wasm_bindgen::JsValue) -> Result; # [wasm_bindgen (catch , static_method_of = IdbKeyRange , js_class = "IDBKeyRange" , js_name = upperBound)] #[doc = "The `upperBound()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/upperBound)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"] pub fn upper_bound_with_open( upper: &::wasm_bindgen::JsValue, open: bool, ) -> Result; } web-sys-0.3.55/src/features/gen_IdbLocaleAwareKeyRange.rs000064400000000000000000000046400072674642500213730ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = IdbKeyRange , extends = :: js_sys :: Object , js_name = IDBLocaleAwareKeyRange , typescript_type = "IDBLocaleAwareKeyRange")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IdbLocaleAwareKeyRange` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBLocaleAwareKeyRange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbLocaleAwareKeyRange`*"] pub type IdbLocaleAwareKeyRange; # [wasm_bindgen (catch , static_method_of = IdbLocaleAwareKeyRange , js_class = "IDBLocaleAwareKeyRange" , js_name = bound)] #[doc = "The `bound()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBLocaleAwareKeyRange/bound)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbLocaleAwareKeyRange`*"] pub fn bound( lower: &::wasm_bindgen::JsValue, upper: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , static_method_of = IdbLocaleAwareKeyRange , js_class = "IDBLocaleAwareKeyRange" , js_name = bound)] #[doc = "The `bound()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBLocaleAwareKeyRange/bound)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbLocaleAwareKeyRange`*"] pub fn bound_with_lower_open( lower: &::wasm_bindgen::JsValue, upper: &::wasm_bindgen::JsValue, lower_open: bool, ) -> Result; # [wasm_bindgen (catch , static_method_of = IdbLocaleAwareKeyRange , js_class = "IDBLocaleAwareKeyRange" , js_name = bound)] #[doc = "The `bound()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBLocaleAwareKeyRange/bound)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbLocaleAwareKeyRange`*"] pub fn bound_with_lower_open_and_upper_open( lower: &::wasm_bindgen::JsValue, upper: &::wasm_bindgen::JsValue, lower_open: bool, upper_open: bool, ) -> Result; } web-sys-0.3.55/src/features/gen_IdbMutableFile.rs000064400000000000000000000114550072674642500177610ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = IDBMutableFile , typescript_type = "IDBMutableFile")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IdbMutableFile` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBMutableFile)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbMutableFile`*"] pub type IdbMutableFile; # [wasm_bindgen (structural , method , getter , js_class = "IDBMutableFile" , js_name = name)] #[doc = "Getter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBMutableFile/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbMutableFile`*"] pub fn name(this: &IdbMutableFile) -> String; # [wasm_bindgen (structural , method , getter , js_class = "IDBMutableFile" , js_name = type)] #[doc = "Getter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBMutableFile/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbMutableFile`*"] pub fn type_(this: &IdbMutableFile) -> String; #[cfg(feature = "IdbDatabase")] # [wasm_bindgen (structural , method , getter , js_class = "IDBMutableFile" , js_name = database)] #[doc = "Getter for the `database` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBMutableFile/database)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`, `IdbMutableFile`*"] pub fn database(this: &IdbMutableFile) -> IdbDatabase; # [wasm_bindgen (structural , method , getter , js_class = "IDBMutableFile" , js_name = onabort)] #[doc = "Getter for the `onabort` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBMutableFile/onabort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbMutableFile`*"] pub fn onabort(this: &IdbMutableFile) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "IDBMutableFile" , js_name = onabort)] #[doc = "Setter for the `onabort` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBMutableFile/onabort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbMutableFile`*"] pub fn set_onabort(this: &IdbMutableFile, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "IDBMutableFile" , js_name = onerror)] #[doc = "Getter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBMutableFile/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbMutableFile`*"] pub fn onerror(this: &IdbMutableFile) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "IDBMutableFile" , js_name = onerror)] #[doc = "Setter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBMutableFile/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbMutableFile`*"] pub fn set_onerror(this: &IdbMutableFile, value: Option<&::js_sys::Function>); #[cfg(feature = "DomRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBMutableFile" , js_name = getFile)] #[doc = "The `getFile()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBMutableFile/getFile)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRequest`, `IdbMutableFile`*"] pub fn get_file(this: &IdbMutableFile) -> Result; #[cfg(feature = "IdbFileHandle")] # [wasm_bindgen (catch , method , structural , js_class = "IDBMutableFile" , js_name = open)] #[doc = "The `open()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBMutableFile/open)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbMutableFile`*"] pub fn open(this: &IdbMutableFile) -> Result; } web-sys-0.3.55/src/features/gen_IdbObjectStore.rs000064400000000000000000000460770072674642500200230ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = IDBObjectStore , typescript_type = "IDBObjectStore")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IdbObjectStore` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`*"] pub type IdbObjectStore; # [wasm_bindgen (structural , method , getter , js_class = "IDBObjectStore" , js_name = name)] #[doc = "Getter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`*"] pub fn name(this: &IdbObjectStore) -> String; # [wasm_bindgen (structural , method , setter , js_class = "IDBObjectStore" , js_name = name)] #[doc = "Setter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`*"] pub fn set_name(this: &IdbObjectStore, value: &str); # [wasm_bindgen (structural , catch , method , getter , js_class = "IDBObjectStore" , js_name = keyPath)] #[doc = "Getter for the `keyPath` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/keyPath)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`*"] pub fn key_path(this: &IdbObjectStore) -> Result<::wasm_bindgen::JsValue, JsValue>; #[cfg(feature = "DomStringList")] # [wasm_bindgen (structural , method , getter , js_class = "IDBObjectStore" , js_name = indexNames)] #[doc = "Getter for the `indexNames` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/indexNames)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomStringList`, `IdbObjectStore`*"] pub fn index_names(this: &IdbObjectStore) -> DomStringList; #[cfg(feature = "IdbTransaction")] # [wasm_bindgen (structural , method , getter , js_class = "IDBObjectStore" , js_name = transaction)] #[doc = "Getter for the `transaction` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/transaction)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`, `IdbTransaction`*"] pub fn transaction(this: &IdbObjectStore) -> IdbTransaction; # [wasm_bindgen (structural , method , getter , js_class = "IDBObjectStore" , js_name = autoIncrement)] #[doc = "Getter for the `autoIncrement` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/autoIncrement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`*"] pub fn auto_increment(this: &IdbObjectStore) -> bool; #[cfg(feature = "IdbRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBObjectStore" , js_name = add)] #[doc = "The `add()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/add)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`, `IdbRequest`*"] pub fn add( this: &IdbObjectStore, value: &::wasm_bindgen::JsValue, ) -> Result; #[cfg(feature = "IdbRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBObjectStore" , js_name = add)] #[doc = "The `add()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/add)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`, `IdbRequest`*"] pub fn add_with_key( this: &IdbObjectStore, value: &::wasm_bindgen::JsValue, key: &::wasm_bindgen::JsValue, ) -> Result; #[cfg(feature = "IdbRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBObjectStore" , js_name = clear)] #[doc = "The `clear()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/clear)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`, `IdbRequest`*"] pub fn clear(this: &IdbObjectStore) -> Result; #[cfg(feature = "IdbRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBObjectStore" , js_name = count)] #[doc = "The `count()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/count)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`, `IdbRequest`*"] pub fn count(this: &IdbObjectStore) -> Result; #[cfg(feature = "IdbRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBObjectStore" , js_name = count)] #[doc = "The `count()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/count)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`, `IdbRequest`*"] pub fn count_with_key( this: &IdbObjectStore, key: &::wasm_bindgen::JsValue, ) -> Result; #[cfg(feature = "IdbIndex")] # [wasm_bindgen (catch , method , structural , js_class = "IDBObjectStore" , js_name = createIndex)] #[doc = "The `createIndex()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/createIndex)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbObjectStore`*"] pub fn create_index_with_str( this: &IdbObjectStore, name: &str, key_path: &str, ) -> Result; #[cfg(feature = "IdbIndex")] # [wasm_bindgen (catch , method , structural , js_class = "IDBObjectStore" , js_name = createIndex)] #[doc = "The `createIndex()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/createIndex)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbObjectStore`*"] pub fn create_index_with_str_sequence( this: &IdbObjectStore, name: &str, key_path: &::wasm_bindgen::JsValue, ) -> Result; #[cfg(all(feature = "IdbIndex", feature = "IdbIndexParameters",))] # [wasm_bindgen (catch , method , structural , js_class = "IDBObjectStore" , js_name = createIndex)] #[doc = "The `createIndex()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/createIndex)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbIndexParameters`, `IdbObjectStore`*"] pub fn create_index_with_str_and_optional_parameters( this: &IdbObjectStore, name: &str, key_path: &str, optional_parameters: &IdbIndexParameters, ) -> Result; #[cfg(all(feature = "IdbIndex", feature = "IdbIndexParameters",))] # [wasm_bindgen (catch , method , structural , js_class = "IDBObjectStore" , js_name = createIndex)] #[doc = "The `createIndex()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/createIndex)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbIndexParameters`, `IdbObjectStore`*"] pub fn create_index_with_str_sequence_and_optional_parameters( this: &IdbObjectStore, name: &str, key_path: &::wasm_bindgen::JsValue, optional_parameters: &IdbIndexParameters, ) -> Result; #[cfg(feature = "IdbRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBObjectStore" , js_name = delete)] #[doc = "The `delete()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/delete)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`, `IdbRequest`*"] pub fn delete( this: &IdbObjectStore, key: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "IDBObjectStore" , js_name = deleteIndex)] #[doc = "The `deleteIndex()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/deleteIndex)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`*"] pub fn delete_index(this: &IdbObjectStore, index_name: &str) -> Result<(), JsValue>; #[cfg(feature = "IdbRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBObjectStore" , js_name = get)] #[doc = "The `get()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/get)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`, `IdbRequest`*"] pub fn get(this: &IdbObjectStore, key: &::wasm_bindgen::JsValue) -> Result; #[cfg(feature = "IdbRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBObjectStore" , js_name = getAll)] #[doc = "The `getAll()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/getAll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`, `IdbRequest`*"] pub fn get_all(this: &IdbObjectStore) -> Result; #[cfg(feature = "IdbRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBObjectStore" , js_name = getAll)] #[doc = "The `getAll()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/getAll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`, `IdbRequest`*"] pub fn get_all_with_key( this: &IdbObjectStore, key: &::wasm_bindgen::JsValue, ) -> Result; #[cfg(feature = "IdbRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBObjectStore" , js_name = getAll)] #[doc = "The `getAll()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/getAll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`, `IdbRequest`*"] pub fn get_all_with_key_and_limit( this: &IdbObjectStore, key: &::wasm_bindgen::JsValue, limit: u32, ) -> Result; #[cfg(feature = "IdbRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBObjectStore" , js_name = getAllKeys)] #[doc = "The `getAllKeys()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/getAllKeys)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`, `IdbRequest`*"] pub fn get_all_keys(this: &IdbObjectStore) -> Result; #[cfg(feature = "IdbRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBObjectStore" , js_name = getAllKeys)] #[doc = "The `getAllKeys()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/getAllKeys)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`, `IdbRequest`*"] pub fn get_all_keys_with_key( this: &IdbObjectStore, key: &::wasm_bindgen::JsValue, ) -> Result; #[cfg(feature = "IdbRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBObjectStore" , js_name = getAllKeys)] #[doc = "The `getAllKeys()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/getAllKeys)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`, `IdbRequest`*"] pub fn get_all_keys_with_key_and_limit( this: &IdbObjectStore, key: &::wasm_bindgen::JsValue, limit: u32, ) -> Result; #[cfg(feature = "IdbRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBObjectStore" , js_name = getKey)] #[doc = "The `getKey()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/getKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`, `IdbRequest`*"] pub fn get_key( this: &IdbObjectStore, key: &::wasm_bindgen::JsValue, ) -> Result; #[cfg(feature = "IdbIndex")] # [wasm_bindgen (catch , method , structural , js_class = "IDBObjectStore" , js_name = index)] #[doc = "The `index()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/index)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbObjectStore`*"] pub fn index(this: &IdbObjectStore, name: &str) -> Result; #[cfg(feature = "IdbRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBObjectStore" , js_name = openCursor)] #[doc = "The `openCursor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/openCursor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`, `IdbRequest`*"] pub fn open_cursor(this: &IdbObjectStore) -> Result; #[cfg(feature = "IdbRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBObjectStore" , js_name = openCursor)] #[doc = "The `openCursor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/openCursor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`, `IdbRequest`*"] pub fn open_cursor_with_range( this: &IdbObjectStore, range: &::wasm_bindgen::JsValue, ) -> Result; #[cfg(all(feature = "IdbCursorDirection", feature = "IdbRequest",))] # [wasm_bindgen (catch , method , structural , js_class = "IDBObjectStore" , js_name = openCursor)] #[doc = "The `openCursor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/openCursor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbCursorDirection`, `IdbObjectStore`, `IdbRequest`*"] pub fn open_cursor_with_range_and_direction( this: &IdbObjectStore, range: &::wasm_bindgen::JsValue, direction: IdbCursorDirection, ) -> Result; #[cfg(feature = "IdbRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBObjectStore" , js_name = openKeyCursor)] #[doc = "The `openKeyCursor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/openKeyCursor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`, `IdbRequest`*"] pub fn open_key_cursor(this: &IdbObjectStore) -> Result; #[cfg(feature = "IdbRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBObjectStore" , js_name = openKeyCursor)] #[doc = "The `openKeyCursor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/openKeyCursor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`, `IdbRequest`*"] pub fn open_key_cursor_with_range( this: &IdbObjectStore, range: &::wasm_bindgen::JsValue, ) -> Result; #[cfg(all(feature = "IdbCursorDirection", feature = "IdbRequest",))] # [wasm_bindgen (catch , method , structural , js_class = "IDBObjectStore" , js_name = openKeyCursor)] #[doc = "The `openKeyCursor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/openKeyCursor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbCursorDirection`, `IdbObjectStore`, `IdbRequest`*"] pub fn open_key_cursor_with_range_and_direction( this: &IdbObjectStore, range: &::wasm_bindgen::JsValue, direction: IdbCursorDirection, ) -> Result; #[cfg(feature = "IdbRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBObjectStore" , js_name = put)] #[doc = "The `put()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/put)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`, `IdbRequest`*"] pub fn put( this: &IdbObjectStore, value: &::wasm_bindgen::JsValue, ) -> Result; #[cfg(feature = "IdbRequest")] # [wasm_bindgen (catch , method , structural , js_class = "IDBObjectStore" , js_name = put)] #[doc = "The `put()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/put)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`, `IdbRequest`*"] pub fn put_with_key( this: &IdbObjectStore, value: &::wasm_bindgen::JsValue, key: &::wasm_bindgen::JsValue, ) -> Result; } web-sys-0.3.55/src/features/gen_IdbObjectStoreParameters.rs000064400000000000000000000042000072674642500220250ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = IDBObjectStoreParameters)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IdbObjectStoreParameters` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbObjectStoreParameters`*"] pub type IdbObjectStoreParameters; } impl IdbObjectStoreParameters { #[doc = "Construct a new `IdbObjectStoreParameters`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbObjectStoreParameters`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `autoIncrement` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbObjectStoreParameters`*"] pub fn auto_increment(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("autoIncrement"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `keyPath` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbObjectStoreParameters`*"] pub fn key_path(&mut self, val: Option<&::wasm_bindgen::JsValue>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("keyPath"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for IdbObjectStoreParameters { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_IdbOpenDbOptions.rs000064400000000000000000000040710072674642500203070ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = IDBOpenDBOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IdbOpenDbOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbOpenDbOptions`*"] pub type IdbOpenDbOptions; } impl IdbOpenDbOptions { #[doc = "Construct a new `IdbOpenDbOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbOpenDbOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(feature = "StorageType")] #[doc = "Change the `storage` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbOpenDbOptions`, `StorageType`*"] pub fn storage(&mut self, val: StorageType) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("storage"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `version` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbOpenDbOptions`*"] pub fn version(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("version"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for IdbOpenDbOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_IdbOpenDbRequest.rs000064400000000000000000000051360072674642500203070ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = IdbRequest , extends = EventTarget , extends = :: js_sys :: Object , js_name = IDBOpenDBRequest , typescript_type = "IDBOpenDBRequest")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IdbOpenDbRequest` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBOpenDBRequest)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbOpenDbRequest`*"] pub type IdbOpenDbRequest; # [wasm_bindgen (structural , method , getter , js_class = "IDBOpenDBRequest" , js_name = onblocked)] #[doc = "Getter for the `onblocked` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBOpenDBRequest/onblocked)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbOpenDbRequest`*"] pub fn onblocked(this: &IdbOpenDbRequest) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "IDBOpenDBRequest" , js_name = onblocked)] #[doc = "Setter for the `onblocked` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBOpenDBRequest/onblocked)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbOpenDbRequest`*"] pub fn set_onblocked(this: &IdbOpenDbRequest, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "IDBOpenDBRequest" , js_name = onupgradeneeded)] #[doc = "Getter for the `onupgradeneeded` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBOpenDBRequest/onupgradeneeded)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbOpenDbRequest`*"] pub fn onupgradeneeded(this: &IdbOpenDbRequest) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "IDBOpenDBRequest" , js_name = onupgradeneeded)] #[doc = "Setter for the `onupgradeneeded` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBOpenDBRequest/onupgradeneeded)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbOpenDbRequest`*"] pub fn set_onupgradeneeded(this: &IdbOpenDbRequest, value: Option<&::js_sys::Function>); } web-sys-0.3.55/src/features/gen_IdbRequest.rs000064400000000000000000000115270072674642500172200ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = IDBRequest , typescript_type = "IDBRequest")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IdbRequest` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbRequest`*"] pub type IdbRequest; # [wasm_bindgen (structural , catch , method , getter , js_class = "IDBRequest" , js_name = result)] #[doc = "Getter for the `result` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/result)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbRequest`*"] pub fn result(this: &IdbRequest) -> Result<::wasm_bindgen::JsValue, JsValue>; #[cfg(feature = "DomException")] # [wasm_bindgen (structural , catch , method , getter , js_class = "IDBRequest" , js_name = error)] #[doc = "Getter for the `error` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/error)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`, `IdbRequest`*"] pub fn error(this: &IdbRequest) -> Result, JsValue>; # [wasm_bindgen (structural , method , getter , js_class = "IDBRequest" , js_name = source)] #[doc = "Getter for the `source` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/source)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbRequest`*"] pub fn source(this: &IdbRequest) -> Option<::js_sys::Object>; #[cfg(feature = "IdbTransaction")] # [wasm_bindgen (structural , method , getter , js_class = "IDBRequest" , js_name = transaction)] #[doc = "Getter for the `transaction` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/transaction)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbRequest`, `IdbTransaction`*"] pub fn transaction(this: &IdbRequest) -> Option; #[cfg(feature = "IdbRequestReadyState")] # [wasm_bindgen (structural , method , getter , js_class = "IDBRequest" , js_name = readyState)] #[doc = "Getter for the `readyState` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/readyState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbRequest`, `IdbRequestReadyState`*"] pub fn ready_state(this: &IdbRequest) -> IdbRequestReadyState; # [wasm_bindgen (structural , method , getter , js_class = "IDBRequest" , js_name = onsuccess)] #[doc = "Getter for the `onsuccess` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/onsuccess)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbRequest`*"] pub fn onsuccess(this: &IdbRequest) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "IDBRequest" , js_name = onsuccess)] #[doc = "Setter for the `onsuccess` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/onsuccess)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbRequest`*"] pub fn set_onsuccess(this: &IdbRequest, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "IDBRequest" , js_name = onerror)] #[doc = "Getter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbRequest`*"] pub fn onerror(this: &IdbRequest) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "IDBRequest" , js_name = onerror)] #[doc = "Setter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbRequest`*"] pub fn set_onerror(this: &IdbRequest, value: Option<&::js_sys::Function>); } web-sys-0.3.55/src/features/gen_IdbRequestReadyState.rs000064400000000000000000000005370072674642500212050ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `IdbRequestReadyState` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbRequestReadyState`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum IdbRequestReadyState { Pending = "pending", Done = "done", } web-sys-0.3.55/src/features/gen_IdbTransaction.rs000064400000000000000000000146560072674642500200630ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = IDBTransaction , typescript_type = "IDBTransaction")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IdbTransaction` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbTransaction`*"] pub type IdbTransaction; #[cfg(feature = "IdbTransactionMode")] # [wasm_bindgen (structural , catch , method , getter , js_class = "IDBTransaction" , js_name = mode)] #[doc = "Getter for the `mode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/mode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbTransaction`, `IdbTransactionMode`*"] pub fn mode(this: &IdbTransaction) -> Result; #[cfg(feature = "IdbDatabase")] # [wasm_bindgen (structural , method , getter , js_class = "IDBTransaction" , js_name = db)] #[doc = "Getter for the `db` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/db)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`, `IdbTransaction`*"] pub fn db(this: &IdbTransaction) -> IdbDatabase; #[cfg(feature = "DomException")] # [wasm_bindgen (structural , method , getter , js_class = "IDBTransaction" , js_name = error)] #[doc = "Getter for the `error` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/error)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`, `IdbTransaction`*"] pub fn error(this: &IdbTransaction) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "IDBTransaction" , js_name = onabort)] #[doc = "Getter for the `onabort` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/onabort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbTransaction`*"] pub fn onabort(this: &IdbTransaction) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "IDBTransaction" , js_name = onabort)] #[doc = "Setter for the `onabort` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/onabort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbTransaction`*"] pub fn set_onabort(this: &IdbTransaction, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "IDBTransaction" , js_name = oncomplete)] #[doc = "Getter for the `oncomplete` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/oncomplete)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbTransaction`*"] pub fn oncomplete(this: &IdbTransaction) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "IDBTransaction" , js_name = oncomplete)] #[doc = "Setter for the `oncomplete` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/oncomplete)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbTransaction`*"] pub fn set_oncomplete(this: &IdbTransaction, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "IDBTransaction" , js_name = onerror)] #[doc = "Getter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbTransaction`*"] pub fn onerror(this: &IdbTransaction) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "IDBTransaction" , js_name = onerror)] #[doc = "Setter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbTransaction`*"] pub fn set_onerror(this: &IdbTransaction, value: Option<&::js_sys::Function>); #[cfg(feature = "DomStringList")] # [wasm_bindgen (structural , method , getter , js_class = "IDBTransaction" , js_name = objectStoreNames)] #[doc = "Getter for the `objectStoreNames` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/objectStoreNames)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomStringList`, `IdbTransaction`*"] pub fn object_store_names(this: &IdbTransaction) -> DomStringList; # [wasm_bindgen (catch , method , structural , js_class = "IDBTransaction" , js_name = abort)] #[doc = "The `abort()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/abort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbTransaction`*"] pub fn abort(this: &IdbTransaction) -> Result<(), JsValue>; #[cfg(feature = "IdbObjectStore")] # [wasm_bindgen (catch , method , structural , js_class = "IDBTransaction" , js_name = objectStore)] #[doc = "The `objectStore()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/objectStore)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`, `IdbTransaction`*"] pub fn object_store(this: &IdbTransaction, name: &str) -> Result; } web-sys-0.3.55/src/features/gen_IdbTransactionMode.rs000064400000000000000000000007120072674642500206540ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `IdbTransactionMode` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbTransactionMode`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum IdbTransactionMode { Readonly = "readonly", Readwrite = "readwrite", Readwriteflush = "readwriteflush", Cleanup = "cleanup", Versionchange = "versionchange", } web-sys-0.3.55/src/features/gen_IdbVersionChangeEvent.rs000064400000000000000000000054330072674642500213240ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = IDBVersionChangeEvent , typescript_type = "IDBVersionChangeEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IdbVersionChangeEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBVersionChangeEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbVersionChangeEvent`*"] pub type IdbVersionChangeEvent; # [wasm_bindgen (structural , method , getter , js_class = "IDBVersionChangeEvent" , js_name = oldVersion)] #[doc = "Getter for the `oldVersion` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBVersionChangeEvent/oldVersion)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbVersionChangeEvent`*"] pub fn old_version(this: &IdbVersionChangeEvent) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "IDBVersionChangeEvent" , js_name = newVersion)] #[doc = "Getter for the `newVersion` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBVersionChangeEvent/newVersion)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbVersionChangeEvent`*"] pub fn new_version(this: &IdbVersionChangeEvent) -> Option; #[wasm_bindgen(catch, constructor, js_class = "IDBVersionChangeEvent")] #[doc = "The `new IdbVersionChangeEvent(..)` constructor, creating a new instance of `IdbVersionChangeEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBVersionChangeEvent/IDBVersionChangeEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbVersionChangeEvent`*"] pub fn new(type_: &str) -> Result; #[cfg(feature = "IdbVersionChangeEventInit")] #[wasm_bindgen(catch, constructor, js_class = "IDBVersionChangeEvent")] #[doc = "The `new IdbVersionChangeEvent(..)` constructor, creating a new instance of `IdbVersionChangeEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBVersionChangeEvent/IDBVersionChangeEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbVersionChangeEvent`, `IdbVersionChangeEventInit`*"] pub fn new_with_event_init_dict( type_: &str, event_init_dict: &IdbVersionChangeEventInit, ) -> Result; } web-sys-0.3.55/src/features/gen_IdbVersionChangeEventInit.rs000064400000000000000000000075740072674642500221600ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = IDBVersionChangeEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IdbVersionChangeEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbVersionChangeEventInit`*"] pub type IdbVersionChangeEventInit; } impl IdbVersionChangeEventInit { #[doc = "Construct a new `IdbVersionChangeEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbVersionChangeEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbVersionChangeEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbVersionChangeEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbVersionChangeEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `newVersion` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbVersionChangeEventInit`*"] pub fn new_version(&mut self, val: Option) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("newVersion"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `oldVersion` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbVersionChangeEventInit`*"] pub fn old_version(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("oldVersion"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for IdbVersionChangeEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_IdleDeadline.rs000064400000000000000000000026460072674642500174560ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = IdleDeadline , typescript_type = "IdleDeadline")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IdleDeadline` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IdleDeadline)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdleDeadline`*"] pub type IdleDeadline; # [wasm_bindgen (structural , method , getter , js_class = "IdleDeadline" , js_name = didTimeout)] #[doc = "Getter for the `didTimeout` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IdleDeadline/didTimeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdleDeadline`*"] pub fn did_timeout(this: &IdleDeadline) -> bool; # [wasm_bindgen (method , structural , js_class = "IdleDeadline" , js_name = timeRemaining)] #[doc = "The `timeRemaining()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IdleDeadline/timeRemaining)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdleDeadline`*"] pub fn time_remaining(this: &IdleDeadline) -> f64; } web-sys-0.3.55/src/features/gen_IdleRequestOptions.rs000064400000000000000000000027060072674642500207520ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = IdleRequestOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IdleRequestOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdleRequestOptions`*"] pub type IdleRequestOptions; } impl IdleRequestOptions { #[doc = "Construct a new `IdleRequestOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdleRequestOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `timeout` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdleRequestOptions`*"] pub fn timeout(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("timeout"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for IdleRequestOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_IirFilterNode.rs000064400000000000000000000034610072674642500176460ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = IIRFilterNode , typescript_type = "IIRFilterNode")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IirFilterNode` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IIRFilterNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IirFilterNode`*"] pub type IirFilterNode; #[cfg(all(feature = "BaseAudioContext", feature = "IirFilterOptions",))] #[wasm_bindgen(catch, constructor, js_class = "IIRFilterNode")] #[doc = "The `new IirFilterNode(..)` constructor, creating a new instance of `IirFilterNode`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IIRFilterNode/IIRFilterNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `IirFilterNode`, `IirFilterOptions`*"] pub fn new( context: &BaseAudioContext, options: &IirFilterOptions, ) -> Result; # [wasm_bindgen (method , structural , js_class = "IIRFilterNode" , js_name = getFrequencyResponse)] #[doc = "The `getFrequencyResponse()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IIRFilterNode/getFrequencyResponse)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IirFilterNode`*"] pub fn get_frequency_response( this: &IirFilterNode, frequency_hz: &mut [f32], mag_response: &mut [f32], phase_response: &mut [f32], ); } web-sys-0.3.55/src/features/gen_IirFilterOptions.rs000064400000000000000000000101040072674642500204040ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = IIRFilterOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IirFilterOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IirFilterOptions`*"] pub type IirFilterOptions; } impl IirFilterOptions { #[doc = "Construct a new `IirFilterOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IirFilterOptions`*"] pub fn new(feedback: &::wasm_bindgen::JsValue, feedforward: &::wasm_bindgen::JsValue) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.feedback(feedback); ret.feedforward(feedforward); ret } #[doc = "Change the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IirFilterOptions`*"] pub fn channel_count(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("channelCount"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "ChannelCountMode")] #[doc = "Change the `channelCountMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelCountMode`, `IirFilterOptions`*"] pub fn channel_count_mode(&mut self, val: ChannelCountMode) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("channelCountMode"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "ChannelInterpretation")] #[doc = "Change the `channelInterpretation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelInterpretation`, `IirFilterOptions`*"] pub fn channel_interpretation(&mut self, val: ChannelInterpretation) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("channelInterpretation"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `feedback` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IirFilterOptions`*"] pub fn feedback(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("feedback"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `feedforward` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IirFilterOptions`*"] pub fn feedforward(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("feedforward"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_ImageBitmap.rs000064400000000000000000000114360072674642500173270ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ImageBitmap , typescript_type = "ImageBitmap")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ImageBitmap` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`*"] pub type ImageBitmap; # [wasm_bindgen (structural , method , getter , js_class = "ImageBitmap" , js_name = width)] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`*"] pub fn width(this: &ImageBitmap) -> u32; # [wasm_bindgen (structural , method , getter , js_class = "ImageBitmap" , js_name = height)] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`*"] pub fn height(this: &ImageBitmap) -> u32; # [wasm_bindgen (method , structural , js_class = "ImageBitmap" , js_name = close)] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`*"] pub fn close(this: &ImageBitmap); #[cfg(feature = "ImageBitmapFormat")] # [wasm_bindgen (catch , method , structural , js_class = "ImageBitmap" , js_name = findOptimalFormat)] #[doc = "The `findOptimalFormat()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap/findOptimalFormat)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `ImageBitmapFormat`*"] pub fn find_optimal_format(this: &ImageBitmap) -> Result; #[cfg(feature = "ImageBitmapFormat")] # [wasm_bindgen (catch , method , structural , js_class = "ImageBitmap" , js_name = findOptimalFormat)] #[doc = "The `findOptimalFormat()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap/findOptimalFormat)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `ImageBitmapFormat`*"] pub fn find_optimal_format_with_a_possible_formats( this: &ImageBitmap, a_possible_formats: &::wasm_bindgen::JsValue, ) -> Result; #[cfg(feature = "ImageBitmapFormat")] # [wasm_bindgen (catch , method , structural , js_class = "ImageBitmap" , js_name = mapDataInto)] #[doc = "The `mapDataInto()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap/mapDataInto)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `ImageBitmapFormat`*"] pub fn map_data_into_with_buffer_source( this: &ImageBitmap, a_format: ImageBitmapFormat, a_buffer: &::js_sys::Object, a_offset: i32, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "ImageBitmapFormat")] # [wasm_bindgen (catch , method , structural , js_class = "ImageBitmap" , js_name = mapDataInto)] #[doc = "The `mapDataInto()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap/mapDataInto)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `ImageBitmapFormat`*"] pub fn map_data_into_with_u8_array( this: &ImageBitmap, a_format: ImageBitmapFormat, a_buffer: &mut [u8], a_offset: i32, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "ImageBitmapFormat")] # [wasm_bindgen (catch , method , structural , js_class = "ImageBitmap" , js_name = mappedDataLength)] #[doc = "The `mappedDataLength()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap/mappedDataLength)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `ImageBitmapFormat`*"] pub fn mapped_data_length( this: &ImageBitmap, a_format: ImageBitmapFormat, ) -> Result; } web-sys-0.3.55/src/features/gen_ImageBitmapFormat.rs000064400000000000000000000011410072674642500204700ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `ImageBitmapFormat` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageBitmapFormat`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum ImageBitmapFormat { Rgba32 = "RGBA32", Bgra32 = "BGRA32", Rgb24 = "RGB24", Bgr24 = "BGR24", Gray8 = "GRAY8", Yuv444p = "YUV444P", Yuv422p = "YUV422P", Yuv420p = "YUV420P", Yuv420spNv12 = "YUV420SP_NV12", Yuv420spNv21 = "YUV420SP_NV21", Hsv = "HSV", Lab = "Lab", Depth = "DEPTH", } web-sys-0.3.55/src/features/gen_ImageBitmapRenderingContext.rs000064400000000000000000000034520072674642500225310ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ImageBitmapRenderingContext , typescript_type = "ImageBitmapRenderingContext")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ImageBitmapRenderingContext` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmapRenderingContext)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageBitmapRenderingContext`*"] pub type ImageBitmapRenderingContext; #[cfg(feature = "ImageBitmap")] # [wasm_bindgen (method , structural , js_class = "ImageBitmapRenderingContext" , js_name = transferFromImageBitmap)] #[doc = "The `transferFromImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmapRenderingContext/transferFromImageBitmap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `ImageBitmapRenderingContext`*"] pub fn transfer_from_image_bitmap(this: &ImageBitmapRenderingContext, bitmap: &ImageBitmap); #[cfg(feature = "ImageBitmap")] # [wasm_bindgen (method , structural , js_class = "ImageBitmapRenderingContext" , js_name = transferImageBitmap)] #[doc = "The `transferImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmapRenderingContext/transferImageBitmap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `ImageBitmapRenderingContext`*"] pub fn transfer_image_bitmap(this: &ImageBitmapRenderingContext, bitmap: &ImageBitmap); } web-sys-0.3.55/src/features/gen_ImageCapture.rs000064400000000000000000000123720072674642500175160ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn take_photo(this: &ImageCapture) -> ::js_sys::Promise; } web-sys-0.3.55/src/features/gen_ImageCaptureError.rs000064400000000000000000000046320072674642500205300ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = ImageCaptureError , typescript_type = "ImageCaptureError")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ImageCaptureError` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageCaptureError)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageCaptureError`*"] pub type ImageCaptureError; # [wasm_bindgen (structural , method , getter , js_class = "ImageCaptureError" , js_name = code)] #[doc = "Getter for the `code` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageCaptureError/code)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageCaptureError`*"] pub fn code(this: &ImageCaptureError) -> u16; # [wasm_bindgen (structural , method , getter , js_class = "ImageCaptureError" , js_name = message)] #[doc = "Getter for the `message` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageCaptureError/message)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageCaptureError`*"] pub fn message(this: &ImageCaptureError) -> String; } impl ImageCaptureError { #[doc = "The `ImageCaptureError.FRAME_GRAB_ERROR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageCaptureError`*"] pub const FRAME_GRAB_ERROR: u16 = 1u64 as u16; #[doc = "The `ImageCaptureError.SETTINGS_ERROR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageCaptureError`*"] pub const SETTINGS_ERROR: u16 = 2u64 as u16; #[doc = "The `ImageCaptureError.PHOTO_ERROR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageCaptureError`*"] pub const PHOTO_ERROR: u16 = 3u64 as u16; #[doc = "The `ImageCaptureError.ERROR_UNKNOWN` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageCaptureError`*"] pub const ERROR_UNKNOWN: u16 = 4u64 as u16; } web-sys-0.3.55/src/features/gen_ImageCaptureErrorEvent.rs000064400000000000000000000047170072674642500215360ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = ImageCaptureErrorEvent , typescript_type = "ImageCaptureErrorEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ImageCaptureErrorEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageCaptureErrorEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageCaptureErrorEvent`*"] pub type ImageCaptureErrorEvent; #[cfg(feature = "ImageCaptureError")] # [wasm_bindgen (structural , method , getter , js_class = "ImageCaptureErrorEvent" , js_name = imageCaptureError)] #[doc = "Getter for the `imageCaptureError` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageCaptureErrorEvent/imageCaptureError)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageCaptureError`, `ImageCaptureErrorEvent`*"] pub fn image_capture_error(this: &ImageCaptureErrorEvent) -> Option; #[wasm_bindgen(catch, constructor, js_class = "ImageCaptureErrorEvent")] #[doc = "The `new ImageCaptureErrorEvent(..)` constructor, creating a new instance of `ImageCaptureErrorEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageCaptureErrorEvent/ImageCaptureErrorEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageCaptureErrorEvent`*"] pub fn new(type_: &str) -> Result; #[cfg(feature = "ImageCaptureErrorEventInit")] #[wasm_bindgen(catch, constructor, js_class = "ImageCaptureErrorEvent")] #[doc = "The `new ImageCaptureErrorEvent(..)` constructor, creating a new instance of `ImageCaptureErrorEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageCaptureErrorEvent/ImageCaptureErrorEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageCaptureErrorEvent`, `ImageCaptureErrorEventInit`*"] pub fn new_with_image_capture_error_init_dict( type_: &str, image_capture_error_init_dict: &ImageCaptureErrorEventInit, ) -> Result; } web-sys-0.3.55/src/features/gen_ImageCaptureErrorEventInit.rs000064400000000000000000000066170072674642500223630ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ImageCaptureErrorEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ImageCaptureErrorEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageCaptureErrorEventInit`*"] pub type ImageCaptureErrorEventInit; } impl ImageCaptureErrorEventInit { #[doc = "Construct a new `ImageCaptureErrorEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageCaptureErrorEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageCaptureErrorEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageCaptureErrorEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageCaptureErrorEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "ImageCaptureError")] #[doc = "Change the `imageCaptureError` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageCaptureError`, `ImageCaptureErrorEventInit`*"] pub fn image_capture_error(&mut self, val: Option<&ImageCaptureError>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("imageCaptureError"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for ImageCaptureErrorEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_ImageData.rs000064400000000000000000000064440072674642500167670ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ImageData , typescript_type = "ImageData")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ImageData` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageData`*"] pub type ImageData; # [wasm_bindgen (structural , method , getter , js_class = "ImageData" , js_name = width)] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageData/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageData`*"] pub fn width(this: &ImageData) -> u32; # [wasm_bindgen (structural , method , getter , js_class = "ImageData" , js_name = height)] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageData/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageData`*"] pub fn height(this: &ImageData) -> u32; # [wasm_bindgen (structural , method , getter , js_class = "ImageData" , js_name = data)] #[doc = "Getter for the `data` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageData/data)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageData`*"] pub fn data(this: &ImageData) -> ::wasm_bindgen::Clamped>; #[wasm_bindgen(catch, constructor, js_class = "ImageData")] #[doc = "The `new ImageData(..)` constructor, creating a new instance of `ImageData`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageData/ImageData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageData`*"] pub fn new_with_sw(sw: u32, sh: u32) -> Result; #[wasm_bindgen(catch, constructor, js_class = "ImageData")] #[doc = "The `new ImageData(..)` constructor, creating a new instance of `ImageData`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageData/ImageData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageData`*"] pub fn new_with_u8_clamped_array( data: ::wasm_bindgen::Clamped<&[u8]>, sw: u32, ) -> Result; #[wasm_bindgen(catch, constructor, js_class = "ImageData")] #[doc = "The `new ImageData(..)` constructor, creating a new instance of `ImageData`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageData/ImageData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageData`*"] pub fn new_with_u8_clamped_array_and_sh( data: ::wasm_bindgen::Clamped<&[u8]>, sw: u32, sh: u32, ) -> Result; } web-sys-0.3.55/src/features/gen_InputEvent.rs000064400000000000000000000075320072674642500172530ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = UiEvent , extends = Event , extends = :: js_sys :: Object , js_name = InputEvent , typescript_type = "InputEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `InputEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/InputEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `InputEvent`*"] pub type InputEvent; # [wasm_bindgen (structural , method , getter , js_class = "InputEvent" , js_name = isComposing)] #[doc = "Getter for the `isComposing` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/InputEvent/isComposing)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `InputEvent`*"] pub fn is_composing(this: &InputEvent) -> bool; # [wasm_bindgen (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) -> 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; #[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.55/src/features/gen_InputEventInit.rs000064400000000000000000000151630072674642500200760ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = InputEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `InputEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `InputEventInit`*"] pub type InputEventInit; } impl InputEventInit { #[doc = "Construct a new `InputEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `InputEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `InputEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `InputEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `InputEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `detail` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `InputEventInit`*"] pub fn detail(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("detail"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "Window")] #[doc = "Change the `view` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `InputEventInit`, `Window`*"] pub fn view(&mut self, val: Option<&Window>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("view"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `data` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `InputEventInit`*"] pub fn data(&mut self, val: Option<&str>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("data"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[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`*"] pub fn data_transfer(&mut self, val: Option<&DataTransfer>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("dataTransfer"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `inputType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `InputEventInit`*"] pub fn input_type(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("inputType"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `isComposing` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `InputEventInit`*"] pub fn is_composing(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("isComposing"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `targetRanges` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `InputEventInit`*"] pub fn target_ranges(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("targetRanges"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for InputEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_InstallTriggerData.rs000064400000000000000000000047770072674642500207060ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = InstallTriggerData)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `InstallTriggerData` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `InstallTriggerData`*"] pub type InstallTriggerData; } impl InstallTriggerData { #[doc = "Construct a new `InstallTriggerData`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `InstallTriggerData`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `Hash` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `InstallTriggerData`*"] pub fn hash(&mut self, val: Option<&str>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("Hash"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `IconURL` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `InstallTriggerData`*"] pub fn icon_url(&mut self, val: Option<&str>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("IconURL"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `URL` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `InstallTriggerData`*"] pub fn url(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("URL"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for InstallTriggerData { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_IntersectionObserver.rs000064400000000000000000000122630072674642500213250ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = IntersectionObserver , typescript_type = "IntersectionObserver")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IntersectionObserver` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IntersectionObserver`*"] pub type IntersectionObserver; #[cfg(feature = "Element")] # [wasm_bindgen (structural , method , getter , js_class = "IntersectionObserver" , js_name = root)] #[doc = "Getter for the `root` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver/root)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `IntersectionObserver`*"] pub fn root(this: &IntersectionObserver) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "IntersectionObserver" , js_name = rootMargin)] #[doc = "Getter for the `rootMargin` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver/rootMargin)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IntersectionObserver`*"] pub fn root_margin(this: &IntersectionObserver) -> String; # [wasm_bindgen (structural , method , getter , js_class = "IntersectionObserver" , js_name = thresholds)] #[doc = "Getter for the `thresholds` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver/thresholds)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IntersectionObserver`*"] pub fn thresholds(this: &IntersectionObserver) -> ::js_sys::Array; #[wasm_bindgen(catch, constructor, js_class = "IntersectionObserver")] #[doc = "The `new IntersectionObserver(..)` constructor, creating a new instance of `IntersectionObserver`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver/IntersectionObserver)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IntersectionObserver`*"] pub fn new(intersection_callback: &::js_sys::Function) -> Result; #[cfg(feature = "IntersectionObserverInit")] #[wasm_bindgen(catch, constructor, js_class = "IntersectionObserver")] #[doc = "The `new IntersectionObserver(..)` constructor, creating a new instance of `IntersectionObserver`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver/IntersectionObserver)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IntersectionObserver`, `IntersectionObserverInit`*"] pub fn new_with_options( intersection_callback: &::js_sys::Function, options: &IntersectionObserverInit, ) -> Result; # [wasm_bindgen (method , structural , js_class = "IntersectionObserver" , js_name = disconnect)] #[doc = "The `disconnect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver/disconnect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IntersectionObserver`*"] pub fn disconnect(this: &IntersectionObserver); #[cfg(feature = "Element")] # [wasm_bindgen (method , structural , js_class = "IntersectionObserver" , js_name = observe)] #[doc = "The `observe()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver/observe)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `IntersectionObserver`*"] pub fn observe(this: &IntersectionObserver, target: &Element); # [wasm_bindgen (method , structural , js_class = "IntersectionObserver" , js_name = takeRecords)] #[doc = "The `takeRecords()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver/takeRecords)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IntersectionObserver`*"] pub fn take_records(this: &IntersectionObserver) -> ::js_sys::Array; #[cfg(feature = "Element")] # [wasm_bindgen (method , structural , js_class = "IntersectionObserver" , js_name = unobserve)] #[doc = "The `unobserve()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver/unobserve)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `IntersectionObserver`*"] pub fn unobserve(this: &IntersectionObserver, target: &Element); } web-sys-0.3.55/src/features/gen_IntersectionObserverEntry.rs000064400000000000000000000106500072674642500223450ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = IntersectionObserverEntry , typescript_type = "IntersectionObserverEntry")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IntersectionObserverEntry` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserverEntry)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IntersectionObserverEntry`*"] pub type IntersectionObserverEntry; # [wasm_bindgen (structural , method , getter , js_class = "IntersectionObserverEntry" , js_name = time)] #[doc = "Getter for the `time` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserverEntry/time)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IntersectionObserverEntry`*"] pub fn time(this: &IntersectionObserverEntry) -> f64; #[cfg(feature = "DomRectReadOnly")] # [wasm_bindgen (structural , method , getter , js_class = "IntersectionObserverEntry" , js_name = rootBounds)] #[doc = "Getter for the `rootBounds` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserverEntry/rootBounds)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`, `IntersectionObserverEntry`*"] pub fn root_bounds(this: &IntersectionObserverEntry) -> Option; #[cfg(feature = "DomRectReadOnly")] # [wasm_bindgen (structural , method , getter , js_class = "IntersectionObserverEntry" , js_name = boundingClientRect)] #[doc = "Getter for the `boundingClientRect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserverEntry/boundingClientRect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`, `IntersectionObserverEntry`*"] pub fn bounding_client_rect(this: &IntersectionObserverEntry) -> DomRectReadOnly; #[cfg(feature = "DomRectReadOnly")] # [wasm_bindgen (structural , method , getter , js_class = "IntersectionObserverEntry" , js_name = intersectionRect)] #[doc = "Getter for the `intersectionRect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserverEntry/intersectionRect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`, `IntersectionObserverEntry`*"] pub fn intersection_rect(this: &IntersectionObserverEntry) -> DomRectReadOnly; # [wasm_bindgen (structural , method , getter , js_class = "IntersectionObserverEntry" , js_name = isIntersecting)] #[doc = "Getter for the `isIntersecting` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserverEntry/isIntersecting)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IntersectionObserverEntry`*"] pub fn is_intersecting(this: &IntersectionObserverEntry) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "IntersectionObserverEntry" , js_name = intersectionRatio)] #[doc = "Getter for the `intersectionRatio` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserverEntry/intersectionRatio)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IntersectionObserverEntry`*"] pub fn intersection_ratio(this: &IntersectionObserverEntry) -> f64; #[cfg(feature = "Element")] # [wasm_bindgen (structural , method , getter , js_class = "IntersectionObserverEntry" , js_name = target)] #[doc = "Getter for the `target` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserverEntry/target)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `IntersectionObserverEntry`*"] pub fn target(this: &IntersectionObserverEntry) -> Element; } web-sys-0.3.55/src/features/gen_IntersectionObserverEntryInit.rs000064400000000000000000000106630072674642500231750ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = IntersectionObserverEntryInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IntersectionObserverEntryInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IntersectionObserverEntryInit`*"] pub type IntersectionObserverEntryInit; } impl IntersectionObserverEntryInit { #[cfg(all(feature = "DomRectInit", feature = "Element",))] #[doc = "Construct a new `IntersectionObserverEntryInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectInit`, `Element`, `IntersectionObserverEntryInit`*"] pub fn new( bounding_client_rect: &DomRectInit, intersection_rect: &DomRectInit, root_bounds: &DomRectInit, target: &Element, time: f64, ) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.bounding_client_rect(bounding_client_rect); ret.intersection_rect(intersection_rect); ret.root_bounds(root_bounds); ret.target(target); ret.time(time); ret } #[cfg(feature = "DomRectInit")] #[doc = "Change the `boundingClientRect` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectInit`, `IntersectionObserverEntryInit`*"] pub fn bounding_client_rect(&mut self, val: &DomRectInit) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("boundingClientRect"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "DomRectInit")] #[doc = "Change the `intersectionRect` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectInit`, `IntersectionObserverEntryInit`*"] pub fn intersection_rect(&mut self, val: &DomRectInit) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("intersectionRect"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "DomRectInit")] #[doc = "Change the `rootBounds` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectInit`, `IntersectionObserverEntryInit`*"] pub fn root_bounds(&mut self, val: &DomRectInit) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("rootBounds"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "Element")] #[doc = "Change the `target` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `IntersectionObserverEntryInit`*"] pub fn target(&mut self, val: &Element) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("target"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `time` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IntersectionObserverEntryInit`*"] pub fn time(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("time"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_IntersectionObserverInit.rs000064400000000000000000000053060072674642500221510ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = IntersectionObserverInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IntersectionObserverInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IntersectionObserverInit`*"] pub type IntersectionObserverInit; } impl IntersectionObserverInit { #[doc = "Construct a new `IntersectionObserverInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IntersectionObserverInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(feature = "Element")] #[doc = "Change the `root` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `IntersectionObserverInit`*"] pub fn root(&mut self, val: Option<&Element>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("root"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `rootMargin` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IntersectionObserverInit`*"] pub fn root_margin(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("rootMargin"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `threshold` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IntersectionObserverInit`*"] pub fn threshold(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("threshold"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for IntersectionObserverInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_IntlUtils.rs000064400000000000000000000045700072674642500171000ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = IntlUtils , typescript_type = "IntlUtils")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IntlUtils` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntlUtils)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IntlUtils`*"] pub type IntlUtils; #[cfg(feature = "DisplayNameResult")] # [wasm_bindgen (catch , method , structural , js_class = "IntlUtils" , js_name = getDisplayNames)] #[doc = "The `getDisplayNames()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntlUtils/getDisplayNames)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DisplayNameResult`, `IntlUtils`*"] pub fn get_display_names( this: &IntlUtils, locales: &::wasm_bindgen::JsValue, ) -> Result; #[cfg(all(feature = "DisplayNameOptions", feature = "DisplayNameResult",))] # [wasm_bindgen (catch , method , structural , js_class = "IntlUtils" , js_name = getDisplayNames)] #[doc = "The `getDisplayNames()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntlUtils/getDisplayNames)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DisplayNameOptions`, `DisplayNameResult`, `IntlUtils`*"] pub fn get_display_names_with_options( this: &IntlUtils, locales: &::wasm_bindgen::JsValue, options: &DisplayNameOptions, ) -> Result; #[cfg(feature = "LocaleInfo")] # [wasm_bindgen (catch , method , structural , js_class = "IntlUtils" , js_name = getLocaleInfo)] #[doc = "The `getLocaleInfo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntlUtils/getLocaleInfo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IntlUtils`, `LocaleInfo`*"] pub fn get_locale_info( this: &IntlUtils, locales: &::wasm_bindgen::JsValue, ) -> Result; } web-sys-0.3.55/src/features/gen_IterableKeyAndValueResult.rs000064400000000000000000000040010072674642500221550ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = IterableKeyAndValueResult)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IterableKeyAndValueResult` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IterableKeyAndValueResult`*"] pub type IterableKeyAndValueResult; } impl IterableKeyAndValueResult { #[doc = "Construct a new `IterableKeyAndValueResult`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IterableKeyAndValueResult`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `done` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IterableKeyAndValueResult`*"] pub fn done(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("done"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `value` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IterableKeyAndValueResult`*"] pub fn value(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("value"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for IterableKeyAndValueResult { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_IterableKeyOrValueResult.rs000064400000000000000000000037670072674642500220550ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = IterableKeyOrValueResult)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IterableKeyOrValueResult` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IterableKeyOrValueResult`*"] pub type IterableKeyOrValueResult; } impl IterableKeyOrValueResult { #[doc = "Construct a new `IterableKeyOrValueResult`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IterableKeyOrValueResult`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `done` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IterableKeyOrValueResult`*"] pub fn done(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("done"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `value` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IterableKeyOrValueResult`*"] pub fn value(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("value"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for IterableKeyOrValueResult { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_IterationCompositeOperation.rs000064400000000000000000000006000072674642500226410ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `IterationCompositeOperation` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IterationCompositeOperation`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum IterationCompositeOperation { Replace = "replace", Accumulate = "accumulate", } web-sys-0.3.55/src/features/gen_JsonWebKey.rs000064400000000000000000000237430072674642500171740ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = JsonWebKey)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `JsonWebKey` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] pub type JsonWebKey; } impl JsonWebKey { #[doc = "Construct a new `JsonWebKey`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] pub fn new(kty: &str) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.kty(kty); ret } #[doc = "Change the `alg` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] pub fn alg(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("alg"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `crv` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] pub fn crv(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("crv"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `d` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] pub fn d(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("d"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `dp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] pub fn dp(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("dp"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `dq` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] pub fn dq(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("dq"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `e` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] pub fn e(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("e"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `ext` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] pub fn ext(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("ext"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `k` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] pub fn k(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("k"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `key_ops` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] pub fn key_ops(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("key_ops"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `kty` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] pub fn kty(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("kty"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `n` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] pub fn n(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("n"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `oth` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] pub fn oth(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("oth"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `p` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] pub fn p(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("p"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `q` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] pub fn q(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("q"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `qi` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] pub fn qi(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("qi"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `use` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] pub fn use_(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("use"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `x` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] pub fn x(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("x"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `y` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] pub fn y(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("y"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_KeyAlgorithm.rs000064400000000000000000000024440072674642500175460ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = KeyAlgorithm)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `KeyAlgorithm` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyAlgorithm`*"] pub type KeyAlgorithm; } impl KeyAlgorithm { #[doc = "Construct a new `KeyAlgorithm`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyAlgorithm`*"] pub fn new(name: &str) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.name(name); ret } #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyAlgorithm`*"] pub fn name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_KeyEvent.rs000064400000000000000000001313540072674642500167040ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = KeyEvent , typescript_type = "KeyEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `KeyEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub type KeyEvent; # [wasm_bindgen (method , structural , js_class = "KeyEvent" , js_name = initKeyEvent)] #[doc = "The `initKeyEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyEvent/initKeyEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub fn init_key_event(this: &KeyEvent, type_: &str); # [wasm_bindgen (method , structural , js_class = "KeyEvent" , js_name = initKeyEvent)] #[doc = "The `initKeyEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyEvent/initKeyEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub fn init_key_event_with_can_bubble(this: &KeyEvent, type_: &str, can_bubble: bool); # [wasm_bindgen (method , structural , js_class = "KeyEvent" , js_name = initKeyEvent)] #[doc = "The `initKeyEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyEvent/initKeyEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub fn init_key_event_with_can_bubble_and_cancelable( this: &KeyEvent, type_: &str, can_bubble: bool, cancelable: bool, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "KeyEvent" , js_name = initKeyEvent)] #[doc = "The `initKeyEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyEvent/initKeyEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`, `Window`*"] pub fn init_key_event_with_can_bubble_and_cancelable_and_view( this: &KeyEvent, type_: &str, can_bubble: bool, cancelable: bool, view: Option<&Window>, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "KeyEvent" , js_name = initKeyEvent)] #[doc = "The `initKeyEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyEvent/initKeyEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`, `Window`*"] pub fn init_key_event_with_can_bubble_and_cancelable_and_view_and_ctrl_key( this: &KeyEvent, type_: &str, can_bubble: bool, cancelable: bool, view: Option<&Window>, ctrl_key: bool, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "KeyEvent" , js_name = initKeyEvent)] #[doc = "The `initKeyEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyEvent/initKeyEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`, `Window`*"] pub fn init_key_event_with_can_bubble_and_cancelable_and_view_and_ctrl_key_and_alt_key( this: &KeyEvent, type_: &str, can_bubble: bool, cancelable: bool, view: Option<&Window>, ctrl_key: bool, alt_key: bool, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "KeyEvent" , js_name = initKeyEvent)] #[doc = "The `initKeyEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyEvent/initKeyEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`, `Window`*"] pub fn init_key_event_with_can_bubble_and_cancelable_and_view_and_ctrl_key_and_alt_key_and_shift_key( this: &KeyEvent, type_: &str, can_bubble: bool, cancelable: bool, view: Option<&Window>, ctrl_key: bool, alt_key: bool, shift_key: bool, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "KeyEvent" , js_name = initKeyEvent)] #[doc = "The `initKeyEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyEvent/initKeyEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`, `Window`*"] pub fn init_key_event_with_can_bubble_and_cancelable_and_view_and_ctrl_key_and_alt_key_and_shift_key_and_meta_key( this: &KeyEvent, type_: &str, can_bubble: bool, cancelable: bool, view: Option<&Window>, ctrl_key: bool, alt_key: bool, shift_key: bool, meta_key: bool, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "KeyEvent" , js_name = initKeyEvent)] #[doc = "The `initKeyEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyEvent/initKeyEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`, `Window`*"] pub fn init_key_event_with_can_bubble_and_cancelable_and_view_and_ctrl_key_and_alt_key_and_shift_key_and_meta_key_and_key_code( this: &KeyEvent, type_: &str, can_bubble: bool, cancelable: bool, view: Option<&Window>, ctrl_key: bool, alt_key: bool, shift_key: bool, meta_key: bool, key_code: u32, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "KeyEvent" , js_name = initKeyEvent)] #[doc = "The `initKeyEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyEvent/initKeyEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`, `Window`*"] pub fn init_key_event_with_can_bubble_and_cancelable_and_view_and_ctrl_key_and_alt_key_and_shift_key_and_meta_key_and_key_code_and_char_code( this: &KeyEvent, type_: &str, can_bubble: bool, cancelable: bool, view: Option<&Window>, ctrl_key: bool, alt_key: bool, shift_key: bool, meta_key: bool, key_code: u32, char_code: u32, ); } impl KeyEvent { #[doc = "The `KeyEvent.DOM_VK_CANCEL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_CANCEL: u32 = 3u64 as u32; #[doc = "The `KeyEvent.DOM_VK_HELP` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_HELP: u32 = 6u64 as u32; #[doc = "The `KeyEvent.DOM_VK_BACK_SPACE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_BACK_SPACE: u32 = 8u64 as u32; #[doc = "The `KeyEvent.DOM_VK_TAB` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_TAB: u32 = 9u64 as u32; #[doc = "The `KeyEvent.DOM_VK_CLEAR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_CLEAR: u32 = 12u64 as u32; #[doc = "The `KeyEvent.DOM_VK_RETURN` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_RETURN: u32 = 13u64 as u32; #[doc = "The `KeyEvent.DOM_VK_SHIFT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_SHIFT: u32 = 16u64 as u32; #[doc = "The `KeyEvent.DOM_VK_CONTROL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_CONTROL: u32 = 17u64 as u32; #[doc = "The `KeyEvent.DOM_VK_ALT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_ALT: u32 = 18u64 as u32; #[doc = "The `KeyEvent.DOM_VK_PAUSE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_PAUSE: u32 = 19u64 as u32; #[doc = "The `KeyEvent.DOM_VK_CAPS_LOCK` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_CAPS_LOCK: u32 = 20u64 as u32; #[doc = "The `KeyEvent.DOM_VK_KANA` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_KANA: u32 = 21u64 as u32; #[doc = "The `KeyEvent.DOM_VK_HANGUL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_HANGUL: u32 = 21u64 as u32; #[doc = "The `KeyEvent.DOM_VK_EISU` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_EISU: u32 = 22u64 as u32; #[doc = "The `KeyEvent.DOM_VK_JUNJA` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_JUNJA: u32 = 23u64 as u32; #[doc = "The `KeyEvent.DOM_VK_FINAL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_FINAL: u32 = 24u64 as u32; #[doc = "The `KeyEvent.DOM_VK_HANJA` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_HANJA: u32 = 25u64 as u32; #[doc = "The `KeyEvent.DOM_VK_KANJI` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_KANJI: u32 = 25u64 as u32; #[doc = "The `KeyEvent.DOM_VK_ESCAPE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_ESCAPE: u32 = 27u64 as u32; #[doc = "The `KeyEvent.DOM_VK_CONVERT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_CONVERT: u32 = 28u64 as u32; #[doc = "The `KeyEvent.DOM_VK_NONCONVERT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_NONCONVERT: u32 = 29u64 as u32; #[doc = "The `KeyEvent.DOM_VK_ACCEPT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_ACCEPT: u32 = 30u64 as u32; #[doc = "The `KeyEvent.DOM_VK_MODECHANGE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_MODECHANGE: u32 = 31u64 as u32; #[doc = "The `KeyEvent.DOM_VK_SPACE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_SPACE: u32 = 32u64 as u32; #[doc = "The `KeyEvent.DOM_VK_PAGE_UP` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_PAGE_UP: u32 = 33u64 as u32; #[doc = "The `KeyEvent.DOM_VK_PAGE_DOWN` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_PAGE_DOWN: u32 = 34u64 as u32; #[doc = "The `KeyEvent.DOM_VK_END` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_END: u32 = 35u64 as u32; #[doc = "The `KeyEvent.DOM_VK_HOME` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_HOME: u32 = 36u64 as u32; #[doc = "The `KeyEvent.DOM_VK_LEFT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_LEFT: u32 = 37u64 as u32; #[doc = "The `KeyEvent.DOM_VK_UP` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_UP: u32 = 38u64 as u32; #[doc = "The `KeyEvent.DOM_VK_RIGHT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_RIGHT: u32 = 39u64 as u32; #[doc = "The `KeyEvent.DOM_VK_DOWN` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_DOWN: u32 = 40u64 as u32; #[doc = "The `KeyEvent.DOM_VK_SELECT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_SELECT: u32 = 41u64 as u32; #[doc = "The `KeyEvent.DOM_VK_PRINT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_PRINT: u32 = 42u64 as u32; #[doc = "The `KeyEvent.DOM_VK_EXECUTE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_EXECUTE: u32 = 43u64 as u32; #[doc = "The `KeyEvent.DOM_VK_PRINTSCREEN` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_PRINTSCREEN: u32 = 44u64 as u32; #[doc = "The `KeyEvent.DOM_VK_INSERT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_INSERT: u32 = 45u64 as u32; #[doc = "The `KeyEvent.DOM_VK_DELETE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_DELETE: u32 = 46u64 as u32; #[doc = "The `KeyEvent.DOM_VK_0` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_0: u32 = 48u64 as u32; #[doc = "The `KeyEvent.DOM_VK_1` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_1: u32 = 49u64 as u32; #[doc = "The `KeyEvent.DOM_VK_2` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_2: u32 = 50u64 as u32; #[doc = "The `KeyEvent.DOM_VK_3` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_3: u32 = 51u64 as u32; #[doc = "The `KeyEvent.DOM_VK_4` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_4: u32 = 52u64 as u32; #[doc = "The `KeyEvent.DOM_VK_5` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_5: u32 = 53u64 as u32; #[doc = "The `KeyEvent.DOM_VK_6` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_6: u32 = 54u64 as u32; #[doc = "The `KeyEvent.DOM_VK_7` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_7: u32 = 55u64 as u32; #[doc = "The `KeyEvent.DOM_VK_8` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_8: u32 = 56u64 as u32; #[doc = "The `KeyEvent.DOM_VK_9` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_9: u32 = 57u64 as u32; #[doc = "The `KeyEvent.DOM_VK_COLON` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_COLON: u32 = 58u64 as u32; #[doc = "The `KeyEvent.DOM_VK_SEMICOLON` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_SEMICOLON: u32 = 59u64 as u32; #[doc = "The `KeyEvent.DOM_VK_LESS_THAN` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_LESS_THAN: u32 = 60u64 as u32; #[doc = "The `KeyEvent.DOM_VK_EQUALS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_EQUALS: u32 = 61u64 as u32; #[doc = "The `KeyEvent.DOM_VK_GREATER_THAN` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_GREATER_THAN: u32 = 62u64 as u32; #[doc = "The `KeyEvent.DOM_VK_QUESTION_MARK` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_QUESTION_MARK: u32 = 63u64 as u32; #[doc = "The `KeyEvent.DOM_VK_AT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_AT: u32 = 64u64 as u32; #[doc = "The `KeyEvent.DOM_VK_A` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_A: u32 = 65u64 as u32; #[doc = "The `KeyEvent.DOM_VK_B` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_B: u32 = 66u64 as u32; #[doc = "The `KeyEvent.DOM_VK_C` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_C: u32 = 67u64 as u32; #[doc = "The `KeyEvent.DOM_VK_D` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_D: u32 = 68u64 as u32; #[doc = "The `KeyEvent.DOM_VK_E` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_E: u32 = 69u64 as u32; #[doc = "The `KeyEvent.DOM_VK_F` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_F: u32 = 70u64 as u32; #[doc = "The `KeyEvent.DOM_VK_G` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_G: u32 = 71u64 as u32; #[doc = "The `KeyEvent.DOM_VK_H` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_H: u32 = 72u64 as u32; #[doc = "The `KeyEvent.DOM_VK_I` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_I: u32 = 73u64 as u32; #[doc = "The `KeyEvent.DOM_VK_J` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_J: u32 = 74u64 as u32; #[doc = "The `KeyEvent.DOM_VK_K` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_K: u32 = 75u64 as u32; #[doc = "The `KeyEvent.DOM_VK_L` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_L: u32 = 76u64 as u32; #[doc = "The `KeyEvent.DOM_VK_M` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_M: u32 = 77u64 as u32; #[doc = "The `KeyEvent.DOM_VK_N` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_N: u32 = 78u64 as u32; #[doc = "The `KeyEvent.DOM_VK_O` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_O: u32 = 79u64 as u32; #[doc = "The `KeyEvent.DOM_VK_P` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_P: u32 = 80u64 as u32; #[doc = "The `KeyEvent.DOM_VK_Q` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_Q: u32 = 81u64 as u32; #[doc = "The `KeyEvent.DOM_VK_R` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_R: u32 = 82u64 as u32; #[doc = "The `KeyEvent.DOM_VK_S` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_S: u32 = 83u64 as u32; #[doc = "The `KeyEvent.DOM_VK_T` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_T: u32 = 84u64 as u32; #[doc = "The `KeyEvent.DOM_VK_U` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_U: u32 = 85u64 as u32; #[doc = "The `KeyEvent.DOM_VK_V` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_V: u32 = 86u64 as u32; #[doc = "The `KeyEvent.DOM_VK_W` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_W: u32 = 87u64 as u32; #[doc = "The `KeyEvent.DOM_VK_X` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_X: u32 = 88u64 as u32; #[doc = "The `KeyEvent.DOM_VK_Y` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_Y: u32 = 89u64 as u32; #[doc = "The `KeyEvent.DOM_VK_Z` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_Z: u32 = 90u64 as u32; #[doc = "The `KeyEvent.DOM_VK_WIN` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_WIN: u32 = 91u64 as u32; #[doc = "The `KeyEvent.DOM_VK_CONTEXT_MENU` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_CONTEXT_MENU: u32 = 93u64 as u32; #[doc = "The `KeyEvent.DOM_VK_SLEEP` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_SLEEP: u32 = 95u64 as u32; #[doc = "The `KeyEvent.DOM_VK_NUMPAD0` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_NUMPAD0: u32 = 96u64 as u32; #[doc = "The `KeyEvent.DOM_VK_NUMPAD1` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_NUMPAD1: u32 = 97u64 as u32; #[doc = "The `KeyEvent.DOM_VK_NUMPAD2` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_NUMPAD2: u32 = 98u64 as u32; #[doc = "The `KeyEvent.DOM_VK_NUMPAD3` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_NUMPAD3: u32 = 99u64 as u32; #[doc = "The `KeyEvent.DOM_VK_NUMPAD4` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_NUMPAD4: u32 = 100u64 as u32; #[doc = "The `KeyEvent.DOM_VK_NUMPAD5` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_NUMPAD5: u32 = 101u64 as u32; #[doc = "The `KeyEvent.DOM_VK_NUMPAD6` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_NUMPAD6: u32 = 102u64 as u32; #[doc = "The `KeyEvent.DOM_VK_NUMPAD7` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_NUMPAD7: u32 = 103u64 as u32; #[doc = "The `KeyEvent.DOM_VK_NUMPAD8` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_NUMPAD8: u32 = 104u64 as u32; #[doc = "The `KeyEvent.DOM_VK_NUMPAD9` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_NUMPAD9: u32 = 105u64 as u32; #[doc = "The `KeyEvent.DOM_VK_MULTIPLY` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_MULTIPLY: u32 = 106u64 as u32; #[doc = "The `KeyEvent.DOM_VK_ADD` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_ADD: u32 = 107u64 as u32; #[doc = "The `KeyEvent.DOM_VK_SEPARATOR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_SEPARATOR: u32 = 108u64 as u32; #[doc = "The `KeyEvent.DOM_VK_SUBTRACT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_SUBTRACT: u32 = 109u64 as u32; #[doc = "The `KeyEvent.DOM_VK_DECIMAL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_DECIMAL: u32 = 110u64 as u32; #[doc = "The `KeyEvent.DOM_VK_DIVIDE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_DIVIDE: u32 = 111u64 as u32; #[doc = "The `KeyEvent.DOM_VK_F1` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_F1: u32 = 112u64 as u32; #[doc = "The `KeyEvent.DOM_VK_F2` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_F2: u32 = 113u64 as u32; #[doc = "The `KeyEvent.DOM_VK_F3` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_F3: u32 = 114u64 as u32; #[doc = "The `KeyEvent.DOM_VK_F4` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_F4: u32 = 115u64 as u32; #[doc = "The `KeyEvent.DOM_VK_F5` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_F5: u32 = 116u64 as u32; #[doc = "The `KeyEvent.DOM_VK_F6` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_F6: u32 = 117u64 as u32; #[doc = "The `KeyEvent.DOM_VK_F7` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_F7: u32 = 118u64 as u32; #[doc = "The `KeyEvent.DOM_VK_F8` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_F8: u32 = 119u64 as u32; #[doc = "The `KeyEvent.DOM_VK_F9` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_F9: u32 = 120u64 as u32; #[doc = "The `KeyEvent.DOM_VK_F10` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_F10: u32 = 121u64 as u32; #[doc = "The `KeyEvent.DOM_VK_F11` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_F11: u32 = 122u64 as u32; #[doc = "The `KeyEvent.DOM_VK_F12` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_F12: u32 = 123u64 as u32; #[doc = "The `KeyEvent.DOM_VK_F13` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_F13: u32 = 124u64 as u32; #[doc = "The `KeyEvent.DOM_VK_F14` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_F14: u32 = 125u64 as u32; #[doc = "The `KeyEvent.DOM_VK_F15` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_F15: u32 = 126u64 as u32; #[doc = "The `KeyEvent.DOM_VK_F16` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_F16: u32 = 127u64 as u32; #[doc = "The `KeyEvent.DOM_VK_F17` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_F17: u32 = 128u64 as u32; #[doc = "The `KeyEvent.DOM_VK_F18` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_F18: u32 = 129u64 as u32; #[doc = "The `KeyEvent.DOM_VK_F19` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_F19: u32 = 130u64 as u32; #[doc = "The `KeyEvent.DOM_VK_F20` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_F20: u32 = 131u64 as u32; #[doc = "The `KeyEvent.DOM_VK_F21` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_F21: u32 = 132u64 as u32; #[doc = "The `KeyEvent.DOM_VK_F22` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_F22: u32 = 133u64 as u32; #[doc = "The `KeyEvent.DOM_VK_F23` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_F23: u32 = 134u64 as u32; #[doc = "The `KeyEvent.DOM_VK_F24` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_F24: u32 = 135u64 as u32; #[doc = "The `KeyEvent.DOM_VK_NUM_LOCK` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_NUM_LOCK: u32 = 144u64 as u32; #[doc = "The `KeyEvent.DOM_VK_SCROLL_LOCK` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_SCROLL_LOCK: u32 = 145u64 as u32; #[doc = "The `KeyEvent.DOM_VK_WIN_OEM_FJ_JISHO` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_WIN_OEM_FJ_JISHO: u32 = 146u64 as u32; #[doc = "The `KeyEvent.DOM_VK_WIN_OEM_FJ_MASSHOU` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_WIN_OEM_FJ_MASSHOU: u32 = 147u64 as u32; #[doc = "The `KeyEvent.DOM_VK_WIN_OEM_FJ_TOUROKU` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_WIN_OEM_FJ_TOUROKU: u32 = 148u64 as u32; #[doc = "The `KeyEvent.DOM_VK_WIN_OEM_FJ_LOYA` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_WIN_OEM_FJ_LOYA: u32 = 149u64 as u32; #[doc = "The `KeyEvent.DOM_VK_WIN_OEM_FJ_ROYA` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_WIN_OEM_FJ_ROYA: u32 = 150u64 as u32; #[doc = "The `KeyEvent.DOM_VK_CIRCUMFLEX` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_CIRCUMFLEX: u32 = 160u64 as u32; #[doc = "The `KeyEvent.DOM_VK_EXCLAMATION` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_EXCLAMATION: u32 = 161u64 as u32; #[doc = "The `KeyEvent.DOM_VK_DOUBLE_QUOTE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_DOUBLE_QUOTE: u32 = 162u64 as u32; #[doc = "The `KeyEvent.DOM_VK_HASH` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_HASH: u32 = 163u64 as u32; #[doc = "The `KeyEvent.DOM_VK_DOLLAR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_DOLLAR: u32 = 164u64 as u32; #[doc = "The `KeyEvent.DOM_VK_PERCENT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_PERCENT: u32 = 165u64 as u32; #[doc = "The `KeyEvent.DOM_VK_AMPERSAND` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_AMPERSAND: u32 = 166u64 as u32; #[doc = "The `KeyEvent.DOM_VK_UNDERSCORE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_UNDERSCORE: u32 = 167u64 as u32; #[doc = "The `KeyEvent.DOM_VK_OPEN_PAREN` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_OPEN_PAREN: u32 = 168u64 as u32; #[doc = "The `KeyEvent.DOM_VK_CLOSE_PAREN` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_CLOSE_PAREN: u32 = 169u64 as u32; #[doc = "The `KeyEvent.DOM_VK_ASTERISK` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_ASTERISK: u32 = 170u64 as u32; #[doc = "The `KeyEvent.DOM_VK_PLUS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_PLUS: u32 = 171u64 as u32; #[doc = "The `KeyEvent.DOM_VK_PIPE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_PIPE: u32 = 172u64 as u32; #[doc = "The `KeyEvent.DOM_VK_HYPHEN_MINUS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_HYPHEN_MINUS: u32 = 173u64 as u32; #[doc = "The `KeyEvent.DOM_VK_OPEN_CURLY_BRACKET` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_OPEN_CURLY_BRACKET: u32 = 174u64 as u32; #[doc = "The `KeyEvent.DOM_VK_CLOSE_CURLY_BRACKET` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_CLOSE_CURLY_BRACKET: u32 = 175u64 as u32; #[doc = "The `KeyEvent.DOM_VK_TILDE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_TILDE: u32 = 176u64 as u32; #[doc = "The `KeyEvent.DOM_VK_VOLUME_MUTE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_VOLUME_MUTE: u32 = 181u64 as u32; #[doc = "The `KeyEvent.DOM_VK_VOLUME_DOWN` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_VOLUME_DOWN: u32 = 182u64 as u32; #[doc = "The `KeyEvent.DOM_VK_VOLUME_UP` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_VOLUME_UP: u32 = 183u64 as u32; #[doc = "The `KeyEvent.DOM_VK_COMMA` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_COMMA: u32 = 188u64 as u32; #[doc = "The `KeyEvent.DOM_VK_PERIOD` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_PERIOD: u32 = 190u64 as u32; #[doc = "The `KeyEvent.DOM_VK_SLASH` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_SLASH: u32 = 191u64 as u32; #[doc = "The `KeyEvent.DOM_VK_BACK_QUOTE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_BACK_QUOTE: u32 = 192u64 as u32; #[doc = "The `KeyEvent.DOM_VK_OPEN_BRACKET` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_OPEN_BRACKET: u32 = 219u64 as u32; #[doc = "The `KeyEvent.DOM_VK_BACK_SLASH` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_BACK_SLASH: u32 = 220u64 as u32; #[doc = "The `KeyEvent.DOM_VK_CLOSE_BRACKET` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_CLOSE_BRACKET: u32 = 221u64 as u32; #[doc = "The `KeyEvent.DOM_VK_QUOTE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_QUOTE: u32 = 222u64 as u32; #[doc = "The `KeyEvent.DOM_VK_META` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_META: u32 = 224u64 as u32; #[doc = "The `KeyEvent.DOM_VK_ALTGR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_ALTGR: u32 = 225u64 as u32; #[doc = "The `KeyEvent.DOM_VK_WIN_ICO_HELP` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_WIN_ICO_HELP: u32 = 227u64 as u32; #[doc = "The `KeyEvent.DOM_VK_WIN_ICO_00` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_WIN_ICO_00: u32 = 228u64 as u32; #[doc = "The `KeyEvent.DOM_VK_PROCESSKEY` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_PROCESSKEY: u32 = 229u64 as u32; #[doc = "The `KeyEvent.DOM_VK_WIN_ICO_CLEAR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_WIN_ICO_CLEAR: u32 = 230u64 as u32; #[doc = "The `KeyEvent.DOM_VK_WIN_OEM_RESET` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_WIN_OEM_RESET: u32 = 233u64 as u32; #[doc = "The `KeyEvent.DOM_VK_WIN_OEM_JUMP` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_WIN_OEM_JUMP: u32 = 234u64 as u32; #[doc = "The `KeyEvent.DOM_VK_WIN_OEM_PA1` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_WIN_OEM_PA1: u32 = 235u64 as u32; #[doc = "The `KeyEvent.DOM_VK_WIN_OEM_PA2` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_WIN_OEM_PA2: u32 = 236u64 as u32; #[doc = "The `KeyEvent.DOM_VK_WIN_OEM_PA3` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_WIN_OEM_PA3: u32 = 237u64 as u32; #[doc = "The `KeyEvent.DOM_VK_WIN_OEM_WSCTRL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_WIN_OEM_WSCTRL: u32 = 238u64 as u32; #[doc = "The `KeyEvent.DOM_VK_WIN_OEM_CUSEL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_WIN_OEM_CUSEL: u32 = 239u64 as u32; #[doc = "The `KeyEvent.DOM_VK_WIN_OEM_ATTN` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_WIN_OEM_ATTN: u32 = 240u64 as u32; #[doc = "The `KeyEvent.DOM_VK_WIN_OEM_FINISH` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_WIN_OEM_FINISH: u32 = 241u64 as u32; #[doc = "The `KeyEvent.DOM_VK_WIN_OEM_COPY` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_WIN_OEM_COPY: u32 = 242u64 as u32; #[doc = "The `KeyEvent.DOM_VK_WIN_OEM_AUTO` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_WIN_OEM_AUTO: u32 = 243u64 as u32; #[doc = "The `KeyEvent.DOM_VK_WIN_OEM_ENLW` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_WIN_OEM_ENLW: u32 = 244u64 as u32; #[doc = "The `KeyEvent.DOM_VK_WIN_OEM_BACKTAB` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_WIN_OEM_BACKTAB: u32 = 245u64 as u32; #[doc = "The `KeyEvent.DOM_VK_ATTN` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_ATTN: u32 = 246u64 as u32; #[doc = "The `KeyEvent.DOM_VK_CRSEL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_CRSEL: u32 = 247u64 as u32; #[doc = "The `KeyEvent.DOM_VK_EXSEL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_EXSEL: u32 = 248u64 as u32; #[doc = "The `KeyEvent.DOM_VK_EREOF` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_EREOF: u32 = 249u64 as u32; #[doc = "The `KeyEvent.DOM_VK_PLAY` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_PLAY: u32 = 250u64 as u32; #[doc = "The `KeyEvent.DOM_VK_ZOOM` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_ZOOM: u32 = 251u64 as u32; #[doc = "The `KeyEvent.DOM_VK_PA1` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_PA1: u32 = 253u64 as u32; #[doc = "The `KeyEvent.DOM_VK_WIN_OEM_CLEAR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] pub const DOM_VK_WIN_OEM_CLEAR: u32 = 254u64 as u32; } web-sys-0.3.55/src/features/gen_KeyIdsInitData.rs000064400000000000000000000025340072674642500177550ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = KeyIdsInitData)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `KeyIdsInitData` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyIdsInitData`*"] pub type KeyIdsInitData; } impl KeyIdsInitData { #[doc = "Construct a new `KeyIdsInitData`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyIdsInitData`*"] pub fn new(kids: &::wasm_bindgen::JsValue) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.kids(kids); ret } #[doc = "Change the `kids` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyIdsInitData`*"] pub fn kids(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("kids"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_KeyboardEvent.rs000064400000000000000000000361670072674642500177220ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = UiEvent , extends = Event , extends = :: js_sys :: Object , js_name = KeyboardEvent , typescript_type = "KeyboardEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `KeyboardEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`*"] pub type KeyboardEvent; # [wasm_bindgen (structural , method , getter , js_class = "KeyboardEvent" , js_name = charCode)] #[doc = "Getter for the `charCode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/charCode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`*"] pub fn char_code(this: &KeyboardEvent) -> u32; # [wasm_bindgen (structural , method , getter , js_class = "KeyboardEvent" , js_name = keyCode)] #[doc = "Getter for the `keyCode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`*"] pub fn key_code(this: &KeyboardEvent) -> u32; # [wasm_bindgen (structural , method , getter , js_class = "KeyboardEvent" , js_name = altKey)] #[doc = "Getter for the `altKey` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/altKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`*"] pub fn alt_key(this: &KeyboardEvent) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "KeyboardEvent" , js_name = ctrlKey)] #[doc = "Getter for the `ctrlKey` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/ctrlKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`*"] pub fn ctrl_key(this: &KeyboardEvent) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "KeyboardEvent" , js_name = shiftKey)] #[doc = "Getter for the `shiftKey` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/shiftKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`*"] pub fn shift_key(this: &KeyboardEvent) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "KeyboardEvent" , js_name = metaKey)] #[doc = "Getter for the `metaKey` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/metaKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`*"] pub fn meta_key(this: &KeyboardEvent) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "KeyboardEvent" , js_name = location)] #[doc = "Getter for the `location` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/location)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`*"] pub fn location(this: &KeyboardEvent) -> u32; # [wasm_bindgen (structural , method , getter , js_class = "KeyboardEvent" , js_name = repeat)] #[doc = "Getter for the `repeat` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/repeat)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`*"] pub fn repeat(this: &KeyboardEvent) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "KeyboardEvent" , js_name = isComposing)] #[doc = "Getter for the `isComposing` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/isComposing)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`*"] pub fn is_composing(this: &KeyboardEvent) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "KeyboardEvent" , js_name = key)] #[doc = "Getter for the `key` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`*"] pub fn key(this: &KeyboardEvent) -> String; # [wasm_bindgen (structural , method , getter , js_class = "KeyboardEvent" , js_name = code)] #[doc = "Getter for the `code` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`*"] pub fn code(this: &KeyboardEvent) -> String; #[wasm_bindgen(catch, constructor, js_class = "KeyboardEvent")] #[doc = "The `new KeyboardEvent(..)` constructor, creating a new instance of `KeyboardEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/KeyboardEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`*"] pub fn new(type_arg: &str) -> Result; #[cfg(feature = "KeyboardEventInit")] #[wasm_bindgen(catch, constructor, js_class = "KeyboardEvent")] #[doc = "The `new KeyboardEvent(..)` constructor, creating a new instance of `KeyboardEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/KeyboardEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`, `KeyboardEventInit`*"] pub fn new_with_keyboard_event_init_dict( type_arg: &str, keyboard_event_init_dict: &KeyboardEventInit, ) -> Result; # [wasm_bindgen (method , structural , js_class = "KeyboardEvent" , js_name = getModifierState)] #[doc = "The `getModifierState()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/getModifierState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`*"] pub fn get_modifier_state(this: &KeyboardEvent, key: &str) -> bool; # [wasm_bindgen (catch , method , structural , js_class = "KeyboardEvent" , js_name = initKeyboardEvent)] #[doc = "The `initKeyboardEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/initKeyboardEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`*"] pub fn init_keyboard_event(this: &KeyboardEvent, type_arg: &str) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "KeyboardEvent" , js_name = initKeyboardEvent)] #[doc = "The `initKeyboardEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/initKeyboardEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`*"] pub fn init_keyboard_event_with_bubbles_arg( this: &KeyboardEvent, type_arg: &str, bubbles_arg: bool, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "KeyboardEvent" , js_name = initKeyboardEvent)] #[doc = "The `initKeyboardEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/initKeyboardEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`*"] pub fn init_keyboard_event_with_bubbles_arg_and_cancelable_arg( this: &KeyboardEvent, type_arg: &str, bubbles_arg: bool, cancelable_arg: bool, ) -> Result<(), JsValue>; #[cfg(feature = "Window")] # [wasm_bindgen (catch , method , structural , js_class = "KeyboardEvent" , js_name = initKeyboardEvent)] #[doc = "The `initKeyboardEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/initKeyboardEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`, `Window`*"] pub fn init_keyboard_event_with_bubbles_arg_and_cancelable_arg_and_view_arg( this: &KeyboardEvent, type_arg: &str, bubbles_arg: bool, cancelable_arg: bool, view_arg: Option<&Window>, ) -> Result<(), JsValue>; #[cfg(feature = "Window")] # [wasm_bindgen (catch , method , structural , js_class = "KeyboardEvent" , js_name = initKeyboardEvent)] #[doc = "The `initKeyboardEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/initKeyboardEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`, `Window`*"] pub fn init_keyboard_event_with_bubbles_arg_and_cancelable_arg_and_view_arg_and_key_arg( this: &KeyboardEvent, type_arg: &str, bubbles_arg: bool, cancelable_arg: bool, view_arg: Option<&Window>, key_arg: &str, ) -> Result<(), JsValue>; #[cfg(feature = "Window")] # [wasm_bindgen (catch , method , structural , js_class = "KeyboardEvent" , js_name = initKeyboardEvent)] #[doc = "The `initKeyboardEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/initKeyboardEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`, `Window`*"] pub fn init_keyboard_event_with_bubbles_arg_and_cancelable_arg_and_view_arg_and_key_arg_and_location_arg( this: &KeyboardEvent, type_arg: &str, bubbles_arg: bool, cancelable_arg: bool, view_arg: Option<&Window>, key_arg: &str, location_arg: u32, ) -> Result<(), JsValue>; #[cfg(feature = "Window")] # [wasm_bindgen (catch , method , structural , js_class = "KeyboardEvent" , js_name = initKeyboardEvent)] #[doc = "The `initKeyboardEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/initKeyboardEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`, `Window`*"] pub fn init_keyboard_event_with_bubbles_arg_and_cancelable_arg_and_view_arg_and_key_arg_and_location_arg_and_ctrl_key( this: &KeyboardEvent, type_arg: &str, bubbles_arg: bool, cancelable_arg: bool, view_arg: Option<&Window>, key_arg: &str, location_arg: u32, ctrl_key: bool, ) -> Result<(), JsValue>; #[cfg(feature = "Window")] # [wasm_bindgen (catch , method , structural , js_class = "KeyboardEvent" , js_name = initKeyboardEvent)] #[doc = "The `initKeyboardEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/initKeyboardEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`, `Window`*"] pub fn init_keyboard_event_with_bubbles_arg_and_cancelable_arg_and_view_arg_and_key_arg_and_location_arg_and_ctrl_key_and_alt_key( this: &KeyboardEvent, type_arg: &str, bubbles_arg: bool, cancelable_arg: bool, view_arg: Option<&Window>, key_arg: &str, location_arg: u32, ctrl_key: bool, alt_key: bool, ) -> Result<(), JsValue>; #[cfg(feature = "Window")] # [wasm_bindgen (catch , method , structural , js_class = "KeyboardEvent" , js_name = initKeyboardEvent)] #[doc = "The `initKeyboardEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/initKeyboardEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`, `Window`*"] pub fn init_keyboard_event_with_bubbles_arg_and_cancelable_arg_and_view_arg_and_key_arg_and_location_arg_and_ctrl_key_and_alt_key_and_shift_key( this: &KeyboardEvent, type_arg: &str, bubbles_arg: bool, cancelable_arg: bool, view_arg: Option<&Window>, key_arg: &str, location_arg: u32, ctrl_key: bool, alt_key: bool, shift_key: bool, ) -> Result<(), JsValue>; #[cfg(feature = "Window")] # [wasm_bindgen (catch , method , structural , js_class = "KeyboardEvent" , js_name = initKeyboardEvent)] #[doc = "The `initKeyboardEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/initKeyboardEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`, `Window`*"] pub fn init_keyboard_event_with_bubbles_arg_and_cancelable_arg_and_view_arg_and_key_arg_and_location_arg_and_ctrl_key_and_alt_key_and_shift_key_and_meta_key( this: &KeyboardEvent, type_arg: &str, bubbles_arg: bool, cancelable_arg: bool, view_arg: Option<&Window>, key_arg: &str, location_arg: u32, ctrl_key: bool, alt_key: bool, shift_key: bool, meta_key: bool, ) -> Result<(), JsValue>; } impl KeyboardEvent { #[doc = "The `KeyboardEvent.DOM_KEY_LOCATION_STANDARD` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`*"] pub const DOM_KEY_LOCATION_STANDARD: u32 = 0u64 as u32; #[doc = "The `KeyboardEvent.DOM_KEY_LOCATION_LEFT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`*"] pub const DOM_KEY_LOCATION_LEFT: u32 = 1u64 as u32; #[doc = "The `KeyboardEvent.DOM_KEY_LOCATION_RIGHT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`*"] pub const DOM_KEY_LOCATION_RIGHT: u32 = 2u64 as u32; #[doc = "The `KeyboardEvent.DOM_KEY_LOCATION_NUMPAD` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`*"] pub const DOM_KEY_LOCATION_NUMPAD: u32 = 3u64 as u32; } web-sys-0.3.55/src/features/gen_KeyboardEventInit.rs000064400000000000000000000374120072674642500205400ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = KeyboardEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `KeyboardEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] pub type KeyboardEventInit; } impl KeyboardEventInit { #[doc = "Construct a new `KeyboardEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `detail` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] pub fn detail(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("detail"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "Window")] #[doc = "Change the `view` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`, `Window`*"] pub fn view(&mut self, val: Option<&Window>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("view"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `altKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] pub fn alt_key(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("altKey"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `ctrlKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] pub fn ctrl_key(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("ctrlKey"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `metaKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] pub fn meta_key(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("metaKey"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierAltGraph` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] pub fn modifier_alt_graph(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierAltGraph"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierCapsLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] pub fn modifier_caps_lock(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierCapsLock"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierFn` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] pub fn modifier_fn(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierFn"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierFnLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] pub fn modifier_fn_lock(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierFnLock"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierNumLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] pub fn modifier_num_lock(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierNumLock"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierOS` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] pub fn modifier_os(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierOS"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierScrollLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] pub fn modifier_scroll_lock(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierScrollLock"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierSymbol` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] pub fn modifier_symbol(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierSymbol"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierSymbolLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] pub fn modifier_symbol_lock(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierSymbolLock"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `shiftKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] pub fn shift_key(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("shiftKey"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `charCode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] pub fn char_code(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("charCode"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `code` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] pub fn code(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("code"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `isComposing` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] pub fn is_composing(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("isComposing"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `key` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] pub fn key(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("key"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `keyCode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] pub fn key_code(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("keyCode"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `location` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] pub fn location(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("location"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `repeat` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] pub fn repeat(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("repeat"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `which` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] pub fn which(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("which"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for KeyboardEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_KeyframeEffect.rs000064400000000000000000000225350072674642500200320ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = AnimationEffect , extends = :: js_sys :: Object , js_name = KeyframeEffect , typescript_type = "KeyframeEffect")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `KeyframeEffect` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyframeEffect`*"] pub type KeyframeEffect; # [wasm_bindgen (structural , method , getter , js_class = "KeyframeEffect" , js_name = target)] #[doc = "Getter for the `target` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/target)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyframeEffect`*"] pub fn target(this: &KeyframeEffect) -> Option<::js_sys::Object>; # [wasm_bindgen (structural , method , setter , js_class = "KeyframeEffect" , js_name = target)] #[doc = "Setter for the `target` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/target)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyframeEffect`*"] pub fn set_target(this: &KeyframeEffect, value: Option<&::js_sys::Object>); #[cfg(feature = "IterationCompositeOperation")] # [wasm_bindgen (structural , method , getter , js_class = "KeyframeEffect" , js_name = iterationComposite)] #[doc = "Getter for the `iterationComposite` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/iterationComposite)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IterationCompositeOperation`, `KeyframeEffect`*"] pub fn iteration_composite(this: &KeyframeEffect) -> IterationCompositeOperation; #[cfg(feature = "IterationCompositeOperation")] # [wasm_bindgen (structural , method , setter , js_class = "KeyframeEffect" , js_name = iterationComposite)] #[doc = "Setter for the `iterationComposite` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/iterationComposite)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IterationCompositeOperation`, `KeyframeEffect`*"] pub fn set_iteration_composite(this: &KeyframeEffect, value: IterationCompositeOperation); #[cfg(feature = "CompositeOperation")] # [wasm_bindgen (structural , method , getter , js_class = "KeyframeEffect" , js_name = composite)] #[doc = "Getter for the `composite` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/composite)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CompositeOperation`, `KeyframeEffect`*"] pub fn composite(this: &KeyframeEffect) -> CompositeOperation; #[cfg(feature = "CompositeOperation")] # [wasm_bindgen (structural , method , setter , js_class = "KeyframeEffect" , js_name = composite)] #[doc = "Setter for the `composite` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/composite)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CompositeOperation`, `KeyframeEffect`*"] pub fn set_composite(this: &KeyframeEffect, value: CompositeOperation); #[cfg(feature = "Element")] #[wasm_bindgen(catch, constructor, js_class = "KeyframeEffect")] #[doc = "The `new KeyframeEffect(..)` constructor, creating a new instance of `KeyframeEffect`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/KeyframeEffect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `KeyframeEffect`*"] pub fn new_with_opt_element_and_keyframes( target: Option<&Element>, keyframes: Option<&::js_sys::Object>, ) -> Result; #[cfg(feature = "CssPseudoElement")] #[wasm_bindgen(catch, constructor, js_class = "KeyframeEffect")] #[doc = "The `new KeyframeEffect(..)` constructor, creating a new instance of `KeyframeEffect`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/KeyframeEffect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssPseudoElement`, `KeyframeEffect`*"] pub fn new_with_opt_css_pseudo_element_and_keyframes( target: Option<&CssPseudoElement>, keyframes: Option<&::js_sys::Object>, ) -> Result; #[cfg(feature = "Element")] #[wasm_bindgen(catch, constructor, js_class = "KeyframeEffect")] #[doc = "The `new KeyframeEffect(..)` constructor, creating a new instance of `KeyframeEffect`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/KeyframeEffect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `KeyframeEffect`*"] pub fn new_with_opt_element_and_keyframes_and_f64( target: Option<&Element>, keyframes: Option<&::js_sys::Object>, options: f64, ) -> Result; #[cfg(feature = "CssPseudoElement")] #[wasm_bindgen(catch, constructor, js_class = "KeyframeEffect")] #[doc = "The `new KeyframeEffect(..)` constructor, creating a new instance of `KeyframeEffect`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/KeyframeEffect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssPseudoElement`, `KeyframeEffect`*"] pub fn new_with_opt_css_pseudo_element_and_keyframes_and_f64( target: Option<&CssPseudoElement>, keyframes: Option<&::js_sys::Object>, options: f64, ) -> Result; #[cfg(all(feature = "Element", feature = "KeyframeEffectOptions",))] #[wasm_bindgen(catch, constructor, js_class = "KeyframeEffect")] #[doc = "The `new KeyframeEffect(..)` constructor, creating a new instance of `KeyframeEffect`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/KeyframeEffect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `KeyframeEffect`, `KeyframeEffectOptions`*"] pub fn new_with_opt_element_and_keyframes_and_keyframe_effect_options( target: Option<&Element>, keyframes: Option<&::js_sys::Object>, options: &KeyframeEffectOptions, ) -> Result; #[cfg(all(feature = "CssPseudoElement", feature = "KeyframeEffectOptions",))] #[wasm_bindgen(catch, constructor, js_class = "KeyframeEffect")] #[doc = "The `new KeyframeEffect(..)` constructor, creating a new instance of `KeyframeEffect`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/KeyframeEffect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssPseudoElement`, `KeyframeEffect`, `KeyframeEffectOptions`*"] pub fn new_with_opt_css_pseudo_element_and_keyframes_and_keyframe_effect_options( target: Option<&CssPseudoElement>, keyframes: Option<&::js_sys::Object>, options: &KeyframeEffectOptions, ) -> Result; #[wasm_bindgen(catch, constructor, js_class = "KeyframeEffect")] #[doc = "The `new KeyframeEffect(..)` constructor, creating a new instance of `KeyframeEffect`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/KeyframeEffect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyframeEffect`*"] pub fn new_with_source(source: &KeyframeEffect) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "KeyframeEffect" , js_name = getKeyframes)] #[doc = "The `getKeyframes()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/getKeyframes)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyframeEffect`*"] pub fn get_keyframes(this: &KeyframeEffect) -> Result<::js_sys::Array, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "KeyframeEffect" , js_name = setKeyframes)] #[doc = "The `setKeyframes()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/setKeyframes)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyframeEffect`*"] pub fn set_keyframes( this: &KeyframeEffect, keyframes: Option<&::js_sys::Object>, ) -> Result<(), JsValue>; } web-sys-0.3.55/src/features/gen_KeyframeEffectOptions.rs000064400000000000000000000156710072674642500214110ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = KeyframeEffectOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `KeyframeEffectOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyframeEffectOptions`*"] pub type KeyframeEffectOptions; } impl KeyframeEffectOptions { #[doc = "Construct a new `KeyframeEffectOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyframeEffectOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `delay` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyframeEffectOptions`*"] pub fn delay(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("delay"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "PlaybackDirection")] #[doc = "Change the `direction` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyframeEffectOptions`, `PlaybackDirection`*"] pub fn direction(&mut self, val: PlaybackDirection) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("direction"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `duration` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyframeEffectOptions`*"] pub fn duration(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("duration"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `easing` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyframeEffectOptions`*"] pub fn easing(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("easing"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `endDelay` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyframeEffectOptions`*"] pub fn end_delay(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("endDelay"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "FillMode")] #[doc = "Change the `fill` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FillMode`, `KeyframeEffectOptions`*"] pub fn fill(&mut self, val: FillMode) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("fill"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `iterationStart` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyframeEffectOptions`*"] pub fn iteration_start(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("iterationStart"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `iterations` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyframeEffectOptions`*"] pub fn iterations(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("iterations"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "CompositeOperation")] #[doc = "Change the `composite` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CompositeOperation`, `KeyframeEffectOptions`*"] pub fn composite(&mut self, val: CompositeOperation) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composite"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "IterationCompositeOperation")] #[doc = "Change the `iterationComposite` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IterationCompositeOperation`, `KeyframeEffectOptions`*"] pub fn iteration_composite(&mut self, val: IterationCompositeOperation) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("iterationComposite"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for KeyframeEffectOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_L10nElement.rs000064400000000000000000000104330072674642500171700ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = L10nElement)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `L10nElement` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `L10nElement`*"] pub type L10nElement; } impl L10nElement { #[doc = "Construct a new `L10nElement`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `L10nElement`*"] pub fn new(l10n_id: &str, local_name: &str, namespace_uri: &str) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.l10n_id(l10n_id); ret.local_name(local_name); ret.namespace_uri(namespace_uri); ret } #[doc = "Change the `l10nArgs` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `L10nElement`*"] pub fn l10n_args(&mut self, val: Option<&::js_sys::Object>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("l10nArgs"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `l10nAttrs` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `L10nElement`*"] pub fn l10n_attrs(&mut self, val: Option<&str>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("l10nAttrs"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `l10nId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `L10nElement`*"] pub fn l10n_id(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("l10nId"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `localName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `L10nElement`*"] pub fn local_name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("localName"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `namespaceURI` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `L10nElement`*"] pub fn namespace_uri(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("namespaceURI"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `L10nElement`*"] pub fn type_(&mut self, val: Option<&str>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_L10nValue.rs000064400000000000000000000036620072674642500166610ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = L10nValue)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `L10nValue` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `L10nValue`*"] pub type L10nValue; } impl L10nValue { #[doc = "Construct a new `L10nValue`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `L10nValue`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `attributes` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `L10nValue`*"] pub fn attributes(&mut self, val: Option<&::wasm_bindgen::JsValue>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("attributes"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `value` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `L10nValue`*"] pub fn value(&mut self, val: Option<&str>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("value"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for L10nValue { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_LifecycleCallbacks.rs000064400000000000000000000065770072674642500206610ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = LifecycleCallbacks)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `LifecycleCallbacks` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LifecycleCallbacks`*"] pub type LifecycleCallbacks; } impl LifecycleCallbacks { #[doc = "Construct a new `LifecycleCallbacks`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LifecycleCallbacks`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `adoptedCallback` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LifecycleCallbacks`*"] pub fn adopted_callback(&mut self, val: &::js_sys::Function) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("adoptedCallback"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `attributeChangedCallback` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LifecycleCallbacks`*"] pub fn attribute_changed_callback(&mut self, val: &::js_sys::Function) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("attributeChangedCallback"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `connectedCallback` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LifecycleCallbacks`*"] pub fn connected_callback(&mut self, val: &::js_sys::Function) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("connectedCallback"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `disconnectedCallback` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LifecycleCallbacks`*"] pub fn disconnected_callback(&mut self, val: &::js_sys::Function) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("disconnectedCallback"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for LifecycleCallbacks { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_LineAlignSetting.rs000064400000000000000000000005440072674642500203460ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `LineAlignSetting` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LineAlignSetting`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum LineAlignSetting { Start = "start", Center = "center", End = "end", } web-sys-0.3.55/src/features/gen_ListBoxObject.rs000064400000000000000000000113370072674642500176630ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = ListBoxObject , typescript_type = "ListBoxObject")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ListBoxObject` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ListBoxObject)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ListBoxObject`*"] pub type ListBoxObject; # [wasm_bindgen (method , structural , js_class = "ListBoxObject" , js_name = ensureIndexIsVisible)] #[doc = "The `ensureIndexIsVisible()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ListBoxObject/ensureIndexIsVisible)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ListBoxObject`*"] pub fn ensure_index_is_visible(this: &ListBoxObject, row_index: i32); # [wasm_bindgen (method , structural , js_class = "ListBoxObject" , js_name = getIndexOfFirstVisibleRow)] #[doc = "The `getIndexOfFirstVisibleRow()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ListBoxObject/getIndexOfFirstVisibleRow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ListBoxObject`*"] pub fn get_index_of_first_visible_row(this: &ListBoxObject) -> i32; #[cfg(feature = "Element")] # [wasm_bindgen (method , structural , js_class = "ListBoxObject" , js_name = getIndexOfItem)] #[doc = "The `getIndexOfItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ListBoxObject/getIndexOfItem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `ListBoxObject`*"] pub fn get_index_of_item(this: &ListBoxObject, item: &Element) -> i32; #[cfg(feature = "Element")] # [wasm_bindgen (method , structural , js_class = "ListBoxObject" , js_name = getItemAtIndex)] #[doc = "The `getItemAtIndex()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ListBoxObject/getItemAtIndex)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `ListBoxObject`*"] pub fn get_item_at_index(this: &ListBoxObject, index: i32) -> Option; # [wasm_bindgen (method , structural , js_class = "ListBoxObject" , js_name = getNumberOfVisibleRows)] #[doc = "The `getNumberOfVisibleRows()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ListBoxObject/getNumberOfVisibleRows)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ListBoxObject`*"] pub fn get_number_of_visible_rows(this: &ListBoxObject) -> i32; # [wasm_bindgen (method , structural , js_class = "ListBoxObject" , js_name = getRowCount)] #[doc = "The `getRowCount()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ListBoxObject/getRowCount)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ListBoxObject`*"] pub fn get_row_count(this: &ListBoxObject) -> i32; # [wasm_bindgen (method , structural , js_class = "ListBoxObject" , js_name = getRowHeight)] #[doc = "The `getRowHeight()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ListBoxObject/getRowHeight)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ListBoxObject`*"] pub fn get_row_height(this: &ListBoxObject) -> i32; # [wasm_bindgen (method , structural , js_class = "ListBoxObject" , js_name = scrollByLines)] #[doc = "The `scrollByLines()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ListBoxObject/scrollByLines)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ListBoxObject`*"] pub fn scroll_by_lines(this: &ListBoxObject, num_lines: i32); # [wasm_bindgen (method , structural , js_class = "ListBoxObject" , js_name = scrollToIndex)] #[doc = "The `scrollToIndex()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ListBoxObject/scrollToIndex)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ListBoxObject`*"] pub fn scroll_to_index(this: &ListBoxObject, row_index: i32); } web-sys-0.3.55/src/features/gen_LocalMediaStream.rs000064400000000000000000000020100072674642500203020ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = MediaStream , extends = EventTarget , extends = :: js_sys :: Object , js_name = LocalMediaStream , typescript_type = "LocalMediaStream")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `LocalMediaStream` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/LocalMediaStream)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LocalMediaStream`*"] pub type LocalMediaStream; # [wasm_bindgen (method , structural , js_class = "LocalMediaStream" , js_name = stop)] #[doc = "The `stop()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/LocalMediaStream/stop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LocalMediaStream`*"] pub fn stop(this: &LocalMediaStream); } web-sys-0.3.55/src/features/gen_LocaleInfo.rs000064400000000000000000000036440072674642500171650ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = LocaleInfo)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `LocaleInfo` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LocaleInfo`*"] pub type LocaleInfo; } impl LocaleInfo { #[doc = "Construct a new `LocaleInfo`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LocaleInfo`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `direction` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LocaleInfo`*"] pub fn direction(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("direction"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `locale` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LocaleInfo`*"] pub fn locale(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("locale"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for LocaleInfo { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_Location.rs000064400000000000000000000234430072674642500167210ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Location , typescript_type = "Location")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Location` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Location`*"] pub type Location; # [wasm_bindgen (structural , catch , method , getter , js_class = "Location" , js_name = href)] #[doc = "Getter for the `href` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/href)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Location`*"] pub fn href(this: &Location) -> Result; # [wasm_bindgen (structural , catch , method , setter , js_class = "Location" , js_name = href)] #[doc = "Setter for the `href` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/href)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Location`*"] pub fn set_href(this: &Location, value: &str) -> Result<(), JsValue>; # [wasm_bindgen (structural , catch , method , getter , js_class = "Location" , js_name = origin)] #[doc = "Getter for the `origin` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/origin)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Location`*"] pub fn origin(this: &Location) -> Result; # [wasm_bindgen (structural , catch , method , getter , js_class = "Location" , js_name = protocol)] #[doc = "Getter for the `protocol` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/protocol)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Location`*"] pub fn protocol(this: &Location) -> Result; # [wasm_bindgen (structural , catch , method , setter , js_class = "Location" , js_name = protocol)] #[doc = "Setter for the `protocol` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/protocol)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Location`*"] pub fn set_protocol(this: &Location, value: &str) -> Result<(), JsValue>; # [wasm_bindgen (structural , catch , method , getter , js_class = "Location" , js_name = host)] #[doc = "Getter for the `host` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/host)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Location`*"] pub fn host(this: &Location) -> Result; # [wasm_bindgen (structural , catch , method , setter , js_class = "Location" , js_name = host)] #[doc = "Setter for the `host` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/host)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Location`*"] pub fn set_host(this: &Location, value: &str) -> Result<(), JsValue>; # [wasm_bindgen (structural , catch , method , getter , js_class = "Location" , js_name = hostname)] #[doc = "Getter for the `hostname` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/hostname)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Location`*"] pub fn hostname(this: &Location) -> Result; # [wasm_bindgen (structural , catch , method , setter , js_class = "Location" , js_name = hostname)] #[doc = "Setter for the `hostname` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/hostname)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Location`*"] pub fn set_hostname(this: &Location, value: &str) -> Result<(), JsValue>; # [wasm_bindgen (structural , catch , method , getter , js_class = "Location" , js_name = port)] #[doc = "Getter for the `port` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/port)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Location`*"] pub fn port(this: &Location) -> Result; # [wasm_bindgen (structural , catch , method , setter , js_class = "Location" , js_name = port)] #[doc = "Setter for the `port` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/port)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Location`*"] pub fn set_port(this: &Location, value: &str) -> Result<(), JsValue>; # [wasm_bindgen (structural , catch , method , getter , js_class = "Location" , js_name = pathname)] #[doc = "Getter for the `pathname` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/pathname)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Location`*"] pub fn pathname(this: &Location) -> Result; # [wasm_bindgen (structural , catch , method , setter , js_class = "Location" , js_name = pathname)] #[doc = "Setter for the `pathname` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/pathname)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Location`*"] pub fn set_pathname(this: &Location, value: &str) -> Result<(), JsValue>; # [wasm_bindgen (structural , catch , method , getter , js_class = "Location" , js_name = search)] #[doc = "Getter for the `search` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/search)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Location`*"] pub fn search(this: &Location) -> Result; # [wasm_bindgen (structural , catch , method , setter , js_class = "Location" , js_name = search)] #[doc = "Setter for the `search` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/search)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Location`*"] pub fn set_search(this: &Location, value: &str) -> Result<(), JsValue>; # [wasm_bindgen (structural , catch , method , getter , js_class = "Location" , js_name = hash)] #[doc = "Getter for the `hash` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/hash)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Location`*"] pub fn hash(this: &Location) -> Result; # [wasm_bindgen (structural , catch , method , setter , js_class = "Location" , js_name = hash)] #[doc = "Setter for the `hash` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/hash)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Location`*"] pub fn set_hash(this: &Location, value: &str) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Location" , js_name = assign)] #[doc = "The `assign()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/assign)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Location`*"] pub fn assign(this: &Location, url: &str) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Location" , js_name = reload)] #[doc = "The `reload()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/reload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Location`*"] pub fn reload(this: &Location) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Location" , js_name = reload)] #[doc = "The `reload()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/reload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Location`*"] pub fn reload_with_forceget(this: &Location, forceget: bool) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Location" , js_name = replace)] #[doc = "The `replace()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/replace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Location`*"] pub fn replace(this: &Location, url: &str) -> Result<(), JsValue>; } web-sys-0.3.55/src/features/gen_MediaCapabilities.rs000064400000000000000000000034230072674642500204760ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaCapabilities , typescript_type = "MediaCapabilities")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaCapabilities` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaCapabilities)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaCapabilities`*"] pub type MediaCapabilities; #[cfg(feature = "MediaDecodingConfiguration")] # [wasm_bindgen (method , structural , js_class = "MediaCapabilities" , js_name = decodingInfo)] #[doc = "The `decodingInfo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaCapabilities/decodingInfo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaCapabilities`, `MediaDecodingConfiguration`*"] pub fn decoding_info( this: &MediaCapabilities, configuration: &MediaDecodingConfiguration, ) -> ::js_sys::Promise; #[cfg(feature = "MediaEncodingConfiguration")] # [wasm_bindgen (method , structural , js_class = "MediaCapabilities" , js_name = encodingInfo)] #[doc = "The `encodingInfo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaCapabilities/encodingInfo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaCapabilities`, `MediaEncodingConfiguration`*"] pub fn encoding_info( this: &MediaCapabilities, configuration: &MediaEncodingConfiguration, ) -> ::js_sys::Promise; } web-sys-0.3.55/src/features/gen_MediaCapabilitiesInfo.rs000064400000000000000000000040410072674642500213070ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaCapabilitiesInfo , typescript_type = "MediaCapabilitiesInfo")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaCapabilitiesInfo` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaCapabilitiesInfo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaCapabilitiesInfo`*"] pub type MediaCapabilitiesInfo; # [wasm_bindgen (structural , method , getter , js_class = "MediaCapabilitiesInfo" , js_name = supported)] #[doc = "Getter for the `supported` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaCapabilitiesInfo/supported)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaCapabilitiesInfo`*"] pub fn supported(this: &MediaCapabilitiesInfo) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "MediaCapabilitiesInfo" , js_name = smooth)] #[doc = "Getter for the `smooth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaCapabilitiesInfo/smooth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaCapabilitiesInfo`*"] pub fn smooth(this: &MediaCapabilitiesInfo) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "MediaCapabilitiesInfo" , js_name = powerEfficient)] #[doc = "Getter for the `powerEfficient` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaCapabilitiesInfo/powerEfficient)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaCapabilitiesInfo`*"] pub fn power_efficient(this: &MediaCapabilitiesInfo) -> bool; } web-sys-0.3.55/src/features/gen_MediaConfiguration.rs000064400000000000000000000041120072674642500207100ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaConfiguration)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaConfiguration` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaConfiguration`*"] pub type MediaConfiguration; } impl MediaConfiguration { #[doc = "Construct a new `MediaConfiguration`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaConfiguration`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(feature = "AudioConfiguration")] #[doc = "Change the `audio` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioConfiguration`, `MediaConfiguration`*"] pub fn audio(&mut self, val: &AudioConfiguration) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("audio"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "VideoConfiguration")] #[doc = "Change the `video` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaConfiguration`, `VideoConfiguration`*"] pub fn video(&mut self, val: &VideoConfiguration) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("video"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for MediaConfiguration { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_MediaDecodingConfiguration.rs000064400000000000000000000054200072674642500223500ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaDecodingConfiguration)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaDecodingConfiguration` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaDecodingConfiguration`*"] pub type MediaDecodingConfiguration; } impl MediaDecodingConfiguration { #[cfg(feature = "MediaDecodingType")] #[doc = "Construct a new `MediaDecodingConfiguration`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaDecodingConfiguration`, `MediaDecodingType`*"] pub fn new(type_: MediaDecodingType) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.type_(type_); ret } #[cfg(feature = "AudioConfiguration")] #[doc = "Change the `audio` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioConfiguration`, `MediaDecodingConfiguration`*"] pub fn audio(&mut self, val: &AudioConfiguration) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("audio"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "VideoConfiguration")] #[doc = "Change the `video` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaDecodingConfiguration`, `VideoConfiguration`*"] pub fn video(&mut self, val: &VideoConfiguration) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("video"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "MediaDecodingType")] #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaDecodingConfiguration`, `MediaDecodingType`*"] pub fn type_(&mut self, val: MediaDecodingType) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_MediaDecodingType.rs000064400000000000000000000005370072674642500204660ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `MediaDecodingType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaDecodingType`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum MediaDecodingType { File = "file", MediaSource = "media-source", } web-sys-0.3.55/src/features/gen_MediaDeviceInfo.rs000064400000000000000000000055150072674642500201240ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaDeviceInfo , typescript_type = "MediaDeviceInfo")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaDeviceInfo` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDeviceInfo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaDeviceInfo`*"] pub type MediaDeviceInfo; # [wasm_bindgen (structural , method , getter , js_class = "MediaDeviceInfo" , js_name = deviceId)] #[doc = "Getter for the `deviceId` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDeviceInfo/deviceId)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaDeviceInfo`*"] pub fn device_id(this: &MediaDeviceInfo) -> String; #[cfg(feature = "MediaDeviceKind")] # [wasm_bindgen (structural , method , getter , js_class = "MediaDeviceInfo" , js_name = kind)] #[doc = "Getter for the `kind` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDeviceInfo/kind)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaDeviceInfo`, `MediaDeviceKind`*"] pub fn kind(this: &MediaDeviceInfo) -> MediaDeviceKind; # [wasm_bindgen (structural , method , getter , js_class = "MediaDeviceInfo" , js_name = label)] #[doc = "Getter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDeviceInfo/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaDeviceInfo`*"] pub fn label(this: &MediaDeviceInfo) -> String; # [wasm_bindgen (structural , method , getter , js_class = "MediaDeviceInfo" , js_name = groupId)] #[doc = "Getter for the `groupId` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDeviceInfo/groupId)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaDeviceInfo`*"] pub fn group_id(this: &MediaDeviceInfo) -> String; # [wasm_bindgen (method , structural , js_class = "MediaDeviceInfo" , js_name = toJSON)] #[doc = "The `toJSON()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDeviceInfo/toJSON)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaDeviceInfo`*"] pub fn to_json(this: &MediaDeviceInfo) -> ::js_sys::Object; } web-sys-0.3.55/src/features/gen_MediaDeviceKind.rs000064400000000000000000000006030072674642500201070ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `MediaDeviceKind` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaDeviceKind`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum MediaDeviceKind { Audioinput = "audioinput", Audiooutput = "audiooutput", Videoinput = "videoinput", } web-sys-0.3.55/src/features/gen_MediaDevices.rs000064400000000000000000000114400072674642500174650ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = MediaDevices , typescript_type = "MediaDevices")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaDevices` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaDevices`*"] pub type MediaDevices; # [wasm_bindgen (structural , method , getter , js_class = "MediaDevices" , js_name = ondevicechange)] #[doc = "Getter for the `ondevicechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/ondevicechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaDevices`*"] pub fn ondevicechange(this: &MediaDevices) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MediaDevices" , js_name = ondevicechange)] #[doc = "Setter for the `ondevicechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/ondevicechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaDevices`*"] pub fn set_ondevicechange(this: &MediaDevices, value: Option<&::js_sys::Function>); # [wasm_bindgen (catch , method , structural , js_class = "MediaDevices" , js_name = enumerateDevices)] #[doc = "The `enumerateDevices()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/enumerateDevices)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaDevices`*"] pub fn enumerate_devices(this: &MediaDevices) -> Result<::js_sys::Promise, JsValue>; # [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.55/src/features/gen_MediaElementAudioSourceNode.rs000064400000000000000000000026770072674642500224610ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = MediaElementAudioSourceNode , typescript_type = "MediaElementAudioSourceNode")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaElementAudioSourceNode` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaElementAudioSourceNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaElementAudioSourceNode`*"] pub type MediaElementAudioSourceNode; #[cfg(all(feature = "AudioContext", feature = "MediaElementAudioSourceOptions",))] #[wasm_bindgen(catch, constructor, js_class = "MediaElementAudioSourceNode")] #[doc = "The `new MediaElementAudioSourceNode(..)` constructor, creating a new instance of `MediaElementAudioSourceNode`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaElementAudioSourceNode/MediaElementAudioSourceNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `MediaElementAudioSourceNode`, `MediaElementAudioSourceOptions`*"] pub fn new( context: &AudioContext, options: &MediaElementAudioSourceOptions, ) -> Result; } web-sys-0.3.55/src/features/gen_MediaElementAudioSourceOptions.rs000064400000000000000000000032530072674642500232160ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaElementAudioSourceOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaElementAudioSourceOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaElementAudioSourceOptions`*"] pub type MediaElementAudioSourceOptions; } impl MediaElementAudioSourceOptions { #[cfg(feature = "HtmlMediaElement")] #[doc = "Construct a new `MediaElementAudioSourceOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`, `MediaElementAudioSourceOptions`*"] pub fn new(media_element: &HtmlMediaElement) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.media_element(media_element); ret } #[cfg(feature = "HtmlMediaElement")] #[doc = "Change the `mediaElement` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`, `MediaElementAudioSourceOptions`*"] pub fn media_element(&mut self, val: &HtmlMediaElement) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("mediaElement"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_MediaEncodingConfiguration.rs000064400000000000000000000054200072674642500223620ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaEncodingConfiguration)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaEncodingConfiguration` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaEncodingConfiguration`*"] pub type MediaEncodingConfiguration; } impl MediaEncodingConfiguration { #[cfg(feature = "MediaEncodingType")] #[doc = "Construct a new `MediaEncodingConfiguration`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaEncodingConfiguration`, `MediaEncodingType`*"] pub fn new(type_: MediaEncodingType) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.type_(type_); ret } #[cfg(feature = "AudioConfiguration")] #[doc = "Change the `audio` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioConfiguration`, `MediaEncodingConfiguration`*"] pub fn audio(&mut self, val: &AudioConfiguration) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("audio"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "VideoConfiguration")] #[doc = "Change the `video` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaEncodingConfiguration`, `VideoConfiguration`*"] pub fn video(&mut self, val: &VideoConfiguration) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("video"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "MediaEncodingType")] #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaEncodingConfiguration`, `MediaEncodingType`*"] pub fn type_(&mut self, val: MediaEncodingType) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_MediaEncodingType.rs000064400000000000000000000005440072674642500204760ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `MediaEncodingType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaEncodingType`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum MediaEncodingType { Record = "record", Transmission = "transmission", } web-sys-0.3.55/src/features/gen_MediaEncryptedEvent.rs000064400000000000000000000054140072674642500210460ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = MediaEncryptedEvent , typescript_type = "MediaEncryptedEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaEncryptedEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaEncryptedEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaEncryptedEvent`*"] pub type MediaEncryptedEvent; # [wasm_bindgen (structural , method , getter , js_class = "MediaEncryptedEvent" , js_name = initDataType)] #[doc = "Getter for the `initDataType` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaEncryptedEvent/initDataType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaEncryptedEvent`*"] pub fn init_data_type(this: &MediaEncryptedEvent) -> String; # [wasm_bindgen (structural , catch , method , getter , js_class = "MediaEncryptedEvent" , js_name = initData)] #[doc = "Getter for the `initData` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaEncryptedEvent/initData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaEncryptedEvent`*"] pub fn init_data(this: &MediaEncryptedEvent) -> Result, JsValue>; #[wasm_bindgen(catch, constructor, js_class = "MediaEncryptedEvent")] #[doc = "The `new MediaEncryptedEvent(..)` constructor, creating a new instance of `MediaEncryptedEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaEncryptedEvent/MediaEncryptedEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaEncryptedEvent`*"] pub fn new(type_: &str) -> Result; #[cfg(feature = "MediaKeyNeededEventInit")] #[wasm_bindgen(catch, constructor, js_class = "MediaEncryptedEvent")] #[doc = "The `new MediaEncryptedEvent(..)` constructor, creating a new instance of `MediaEncryptedEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaEncryptedEvent/MediaEncryptedEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaEncryptedEvent`, `MediaKeyNeededEventInit`*"] pub fn new_with_event_init_dict( type_: &str, event_init_dict: &MediaKeyNeededEventInit, ) -> Result; } web-sys-0.3.55/src/features/gen_MediaError.rs000064400000000000000000000044140072674642500171770ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaError , typescript_type = "MediaError")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaError` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaError)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaError`*"] pub type MediaError; # [wasm_bindgen (structural , method , getter , js_class = "MediaError" , js_name = code)] #[doc = "Getter for the `code` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaError/code)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaError`*"] pub fn code(this: &MediaError) -> u16; # [wasm_bindgen (structural , method , getter , js_class = "MediaError" , js_name = message)] #[doc = "Getter for the `message` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaError/message)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaError`*"] pub fn message(this: &MediaError) -> String; } impl MediaError { #[doc = "The `MediaError.MEDIA_ERR_ABORTED` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaError`*"] pub const MEDIA_ERR_ABORTED: u16 = 1u64 as u16; #[doc = "The `MediaError.MEDIA_ERR_NETWORK` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaError`*"] pub const MEDIA_ERR_NETWORK: u16 = 2u64 as u16; #[doc = "The `MediaError.MEDIA_ERR_DECODE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaError`*"] pub const MEDIA_ERR_DECODE: u16 = 3u64 as u16; #[doc = "The `MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaError`*"] pub const MEDIA_ERR_SRC_NOT_SUPPORTED: u16 = 4u64 as u16; } web-sys-0.3.55/src/features/gen_MediaKeyError.rs000064400000000000000000000020140072674642500176420ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = MediaKeyError , typescript_type = "MediaKeyError")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaKeyError` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyError)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyError`*"] pub type MediaKeyError; # [wasm_bindgen (structural , method , getter , js_class = "MediaKeyError" , js_name = systemCode)] #[doc = "Getter for the `systemCode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyError/systemCode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyError`*"] pub fn system_code(this: &MediaKeyError) -> u32; } web-sys-0.3.55/src/features/gen_MediaKeyMessageEvent.rs000064400000000000000000000045120072674642500211440ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = MediaKeyMessageEvent , typescript_type = "MediaKeyMessageEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaKeyMessageEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyMessageEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyMessageEvent`*"] pub type MediaKeyMessageEvent; #[cfg(feature = "MediaKeyMessageType")] # [wasm_bindgen (structural , method , getter , js_class = "MediaKeyMessageEvent" , js_name = messageType)] #[doc = "Getter for the `messageType` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyMessageEvent/messageType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyMessageEvent`, `MediaKeyMessageType`*"] pub fn message_type(this: &MediaKeyMessageEvent) -> MediaKeyMessageType; # [wasm_bindgen (structural , catch , method , getter , js_class = "MediaKeyMessageEvent" , js_name = message)] #[doc = "Getter for the `message` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyMessageEvent/message)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyMessageEvent`*"] pub fn message(this: &MediaKeyMessageEvent) -> Result<::js_sys::ArrayBuffer, JsValue>; #[cfg(feature = "MediaKeyMessageEventInit")] #[wasm_bindgen(catch, constructor, js_class = "MediaKeyMessageEvent")] #[doc = "The `new MediaKeyMessageEvent(..)` constructor, creating a new instance of `MediaKeyMessageEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyMessageEvent/MediaKeyMessageEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyMessageEvent`, `MediaKeyMessageEventInit`*"] pub fn new( type_: &str, event_init_dict: &MediaKeyMessageEventInit, ) -> Result; } web-sys-0.3.55/src/features/gen_MediaKeyMessageEventInit.rs000064400000000000000000000100560072674642500217700ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaKeyMessageEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaKeyMessageEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyMessageEventInit`*"] pub type MediaKeyMessageEventInit; } impl MediaKeyMessageEventInit { #[cfg(feature = "MediaKeyMessageType")] #[doc = "Construct a new `MediaKeyMessageEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyMessageEventInit`, `MediaKeyMessageType`*"] pub fn new(message: &::js_sys::ArrayBuffer, message_type: MediaKeyMessageType) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.message(message); ret.message_type(message_type); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyMessageEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyMessageEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyMessageEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `message` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyMessageEventInit`*"] pub fn message(&mut self, val: &::js_sys::ArrayBuffer) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("message"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "MediaKeyMessageType")] #[doc = "Change the `messageType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyMessageEventInit`, `MediaKeyMessageType`*"] pub fn message_type(&mut self, val: MediaKeyMessageType) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("messageType"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_MediaKeyMessageType.rs000064400000000000000000000007440072674642500210070ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `MediaKeyMessageType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyMessageType`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum MediaKeyMessageType { LicenseRequest = "license-request", LicenseRenewal = "license-renewal", LicenseRelease = "license-release", IndividualizationRequest = "individualization-request", } web-sys-0.3.55/src/features/gen_MediaKeyNeededEventInit.rs000064400000000000000000000075670072674642500216050ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaKeyNeededEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaKeyNeededEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyNeededEventInit`*"] pub type MediaKeyNeededEventInit; } impl MediaKeyNeededEventInit { #[doc = "Construct a new `MediaKeyNeededEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyNeededEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyNeededEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyNeededEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyNeededEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `initData` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyNeededEventInit`*"] pub fn init_data(&mut self, val: Option<&::js_sys::ArrayBuffer>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("initData"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `initDataType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyNeededEventInit`*"] pub fn init_data_type(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("initDataType"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for MediaKeyNeededEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_MediaKeySession.rs000064400000000000000000000205210072674642500201770ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = MediaKeySession , typescript_type = "MediaKeySession")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaKeySession` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`*"] pub type MediaKeySession; #[cfg(feature = "MediaKeyError")] # [wasm_bindgen (structural , method , getter , js_class = "MediaKeySession" , js_name = error)] #[doc = "Getter for the `error` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/error)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyError`, `MediaKeySession`*"] pub fn error(this: &MediaKeySession) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "MediaKeySession" , js_name = sessionId)] #[doc = "Getter for the `sessionId` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/sessionId)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`*"] pub fn session_id(this: &MediaKeySession) -> String; # [wasm_bindgen (structural , method , getter , js_class = "MediaKeySession" , js_name = expiration)] #[doc = "Getter for the `expiration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/expiration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`*"] pub fn expiration(this: &MediaKeySession) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "MediaKeySession" , js_name = closed)] #[doc = "Getter for the `closed` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/closed)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`*"] pub fn closed(this: &MediaKeySession) -> ::js_sys::Promise; #[cfg(feature = "MediaKeyStatusMap")] # [wasm_bindgen (structural , method , getter , js_class = "MediaKeySession" , js_name = keyStatuses)] #[doc = "Getter for the `keyStatuses` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/keyStatuses)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`, `MediaKeyStatusMap`*"] pub fn key_statuses(this: &MediaKeySession) -> MediaKeyStatusMap; # [wasm_bindgen (structural , method , getter , js_class = "MediaKeySession" , js_name = onkeystatuseschange)] #[doc = "Getter for the `onkeystatuseschange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/onkeystatuseschange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`*"] pub fn onkeystatuseschange(this: &MediaKeySession) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MediaKeySession" , js_name = onkeystatuseschange)] #[doc = "Setter for the `onkeystatuseschange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/onkeystatuseschange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`*"] pub fn set_onkeystatuseschange(this: &MediaKeySession, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MediaKeySession" , js_name = onmessage)] #[doc = "Getter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`*"] pub fn onmessage(this: &MediaKeySession) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MediaKeySession" , js_name = onmessage)] #[doc = "Setter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`*"] pub fn set_onmessage(this: &MediaKeySession, value: Option<&::js_sys::Function>); # [wasm_bindgen (method , structural , js_class = "MediaKeySession" , js_name = close)] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`*"] pub fn close(this: &MediaKeySession) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "MediaKeySession" , js_name = generateRequest)] #[doc = "The `generateRequest()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/generateRequest)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`*"] pub fn generate_request_with_buffer_source( this: &MediaKeySession, init_data_type: &str, init_data: &::js_sys::Object, ) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "MediaKeySession" , js_name = generateRequest)] #[doc = "The `generateRequest()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/generateRequest)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`*"] pub fn generate_request_with_u8_array( this: &MediaKeySession, init_data_type: &str, init_data: &mut [u8], ) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "MediaKeySession" , js_name = load)] #[doc = "The `load()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/load)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`*"] pub fn load(this: &MediaKeySession, session_id: &str) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "MediaKeySession" , js_name = remove)] #[doc = "The `remove()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/remove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`*"] pub fn remove(this: &MediaKeySession) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "MediaKeySession" , js_name = update)] #[doc = "The `update()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/update)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`*"] pub fn update_with_buffer_source( this: &MediaKeySession, response: &::js_sys::Object, ) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "MediaKeySession" , js_name = update)] #[doc = "The `update()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/update)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`*"] pub fn update_with_u8_array(this: &MediaKeySession, response: &mut [u8]) -> ::js_sys::Promise; } web-sys-0.3.55/src/features/gen_MediaKeySessionType.rs000064400000000000000000000005730072674642500210460ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `MediaKeySessionType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySessionType`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum MediaKeySessionType { Temporary = "temporary", PersistentLicense = "persistent-license", } web-sys-0.3.55/src/features/gen_MediaKeyStatus.rs000064400000000000000000000010200072674642500200300ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `MediaKeyStatus` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyStatus`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum MediaKeyStatus { Usable = "usable", Expired = "expired", Released = "released", OutputRestricted = "output-restricted", OutputDownscaled = "output-downscaled", StatusPending = "status-pending", InternalError = "internal-error", } web-sys-0.3.55/src/features/gen_MediaKeyStatusMap.rs000064400000000000000000000056610072674642500205050ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaKeyStatusMap , typescript_type = "MediaKeyStatusMap")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaKeyStatusMap` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyStatusMap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyStatusMap`*"] pub type MediaKeyStatusMap; # [wasm_bindgen (structural , method , getter , js_class = "MediaKeyStatusMap" , js_name = size)] #[doc = "Getter for the `size` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyStatusMap/size)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyStatusMap`*"] pub fn size(this: &MediaKeyStatusMap) -> u32; # [wasm_bindgen (catch , method , structural , js_class = "MediaKeyStatusMap" , js_name = get)] #[doc = "The `get()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyStatusMap/get)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyStatusMap`*"] pub fn get_with_buffer_source( this: &MediaKeyStatusMap, key_id: &::js_sys::Object, ) -> Result<::wasm_bindgen::JsValue, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "MediaKeyStatusMap" , js_name = get)] #[doc = "The `get()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyStatusMap/get)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyStatusMap`*"] pub fn get_with_u8_array( this: &MediaKeyStatusMap, key_id: &mut [u8], ) -> Result<::wasm_bindgen::JsValue, JsValue>; # [wasm_bindgen (method , structural , js_class = "MediaKeyStatusMap" , js_name = has)] #[doc = "The `has()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyStatusMap/has)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyStatusMap`*"] pub fn has_with_buffer_source(this: &MediaKeyStatusMap, key_id: &::js_sys::Object) -> bool; # [wasm_bindgen (method , structural , js_class = "MediaKeyStatusMap" , js_name = has)] #[doc = "The `has()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyStatusMap/has)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyStatusMap`*"] pub fn has_with_u8_array(this: &MediaKeyStatusMap, key_id: &mut [u8]) -> bool; } web-sys-0.3.55/src/features/gen_MediaKeySystemAccess.rs000064400000000000000000000041670072674642500211720ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaKeySystemAccess , typescript_type = "MediaKeySystemAccess")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaKeySystemAccess` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySystemAccess)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemAccess`*"] pub type MediaKeySystemAccess; # [wasm_bindgen (structural , method , getter , js_class = "MediaKeySystemAccess" , js_name = keySystem)] #[doc = "Getter for the `keySystem` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySystemAccess/keySystem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemAccess`*"] pub fn key_system(this: &MediaKeySystemAccess) -> String; # [wasm_bindgen (method , structural , js_class = "MediaKeySystemAccess" , js_name = createMediaKeys)] #[doc = "The `createMediaKeys()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySystemAccess/createMediaKeys)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemAccess`*"] pub fn create_media_keys(this: &MediaKeySystemAccess) -> ::js_sys::Promise; #[cfg(feature = "MediaKeySystemConfiguration")] # [wasm_bindgen (method , structural , js_class = "MediaKeySystemAccess" , js_name = getConfiguration)] #[doc = "The `getConfiguration()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySystemAccess/getConfiguration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemAccess`, `MediaKeySystemConfiguration`*"] pub fn get_configuration(this: &MediaKeySystemAccess) -> MediaKeySystemConfiguration; } web-sys-0.3.55/src/features/gen_MediaKeySystemConfiguration.rs000064400000000000000000000126070072674642500225760ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaKeySystemConfiguration)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaKeySystemConfiguration` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`*"] pub type MediaKeySystemConfiguration; } impl MediaKeySystemConfiguration { #[doc = "Construct a new `MediaKeySystemConfiguration`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `audioCapabilities` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`*"] pub fn audio_capabilities(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("audioCapabilities"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "MediaKeysRequirement")] #[doc = "Change the `distinctiveIdentifier` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`, `MediaKeysRequirement`*"] pub fn distinctive_identifier(&mut self, val: MediaKeysRequirement) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("distinctiveIdentifier"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `initDataTypes` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`*"] pub fn init_data_types(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("initDataTypes"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `label` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`*"] pub fn label(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "MediaKeysRequirement")] #[doc = "Change the `persistentState` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`, `MediaKeysRequirement`*"] pub fn persistent_state(&mut self, val: MediaKeysRequirement) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("persistentState"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `sessionTypes` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`*"] pub fn session_types(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("sessionTypes"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `videoCapabilities` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`*"] pub fn video_capabilities(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("videoCapabilities"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for MediaKeySystemConfiguration { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_MediaKeySystemMediaCapability.rs000064400000000000000000000042300072674642500230010ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaKeySystemMediaCapability)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaKeySystemMediaCapability` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemMediaCapability`*"] pub type MediaKeySystemMediaCapability; } impl MediaKeySystemMediaCapability { #[doc = "Construct a new `MediaKeySystemMediaCapability`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemMediaCapability`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `contentType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemMediaCapability`*"] pub fn content_type(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("contentType"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `robustness` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemMediaCapability`*"] pub fn robustness(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("robustness"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for MediaKeySystemMediaCapability { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_MediaKeySystemStatus.rs000064400000000000000000000010120072674642500212360ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `MediaKeySystemStatus` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemStatus`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum MediaKeySystemStatus { Available = "available", ApiDisabled = "api-disabled", CdmDisabled = "cdm-disabled", CdmNotSupported = "cdm-not-supported", CdmNotInstalled = "cdm-not-installed", CdmCreated = "cdm-created", } web-sys-0.3.55/src/features/gen_MediaKeys.rs000064400000000000000000000102740072674642500170220ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaKeys , typescript_type = "MediaKeys")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaKeys` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeys)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeys`*"] pub type MediaKeys; # [wasm_bindgen (structural , method , getter , js_class = "MediaKeys" , js_name = keySystem)] #[doc = "Getter for the `keySystem` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeys/keySystem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeys`*"] pub fn key_system(this: &MediaKeys) -> String; #[cfg(feature = "MediaKeySession")] # [wasm_bindgen (catch , method , structural , js_class = "MediaKeys" , js_name = createSession)] #[doc = "The `createSession()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeys/createSession)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`, `MediaKeys`*"] pub fn create_session(this: &MediaKeys) -> Result; #[cfg(all(feature = "MediaKeySession", feature = "MediaKeySessionType",))] # [wasm_bindgen (catch , method , structural , js_class = "MediaKeys" , js_name = createSession)] #[doc = "The `createSession()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeys/createSession)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`, `MediaKeySessionType`, `MediaKeys`*"] pub fn create_session_with_session_type( this: &MediaKeys, session_type: MediaKeySessionType, ) -> Result; # [wasm_bindgen (method , structural , js_class = "MediaKeys" , js_name = getStatusForPolicy)] #[doc = "The `getStatusForPolicy()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeys/getStatusForPolicy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeys`*"] pub fn get_status_for_policy(this: &MediaKeys) -> ::js_sys::Promise; #[cfg(feature = "MediaKeysPolicy")] # [wasm_bindgen (method , structural , js_class = "MediaKeys" , js_name = getStatusForPolicy)] #[doc = "The `getStatusForPolicy()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeys/getStatusForPolicy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeys`, `MediaKeysPolicy`*"] pub fn get_status_for_policy_with_policy( this: &MediaKeys, policy: &MediaKeysPolicy, ) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "MediaKeys" , js_name = setServerCertificate)] #[doc = "The `setServerCertificate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeys/setServerCertificate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeys`*"] pub fn set_server_certificate_with_buffer_source( this: &MediaKeys, server_certificate: &::js_sys::Object, ) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "MediaKeys" , js_name = setServerCertificate)] #[doc = "The `setServerCertificate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeys/setServerCertificate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeys`*"] pub fn set_server_certificate_with_u8_array( this: &MediaKeys, server_certificate: &mut [u8], ) -> ::js_sys::Promise; } web-sys-0.3.55/src/features/gen_MediaKeysPolicy.rs000064400000000000000000000027030072674642500202000ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaKeysPolicy)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaKeysPolicy` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeysPolicy`*"] pub type MediaKeysPolicy; } impl MediaKeysPolicy { #[doc = "Construct a new `MediaKeysPolicy`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeysPolicy`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `minHdcpVersion` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeysPolicy`*"] pub fn min_hdcp_version(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("minHdcpVersion"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for MediaKeysPolicy { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_MediaKeysRequirement.rs000064400000000000000000000006110072674642500212350ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `MediaKeysRequirement` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeysRequirement`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum MediaKeysRequirement { Required = "required", Optional = "optional", NotAllowed = "not-allowed", } web-sys-0.3.55/src/features/gen_MediaList.rs000064400000000000000000000066670072674642500170350ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaList , typescript_type = "MediaList")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaList` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaList)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaList`*"] pub type MediaList; # [wasm_bindgen (structural , method , getter , js_class = "MediaList" , js_name = mediaText)] #[doc = "Getter for the `mediaText` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaList/mediaText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaList`*"] pub fn media_text(this: &MediaList) -> String; # [wasm_bindgen (structural , method , setter , js_class = "MediaList" , js_name = mediaText)] #[doc = "Setter for the `mediaText` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaList/mediaText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaList`*"] pub fn set_media_text(this: &MediaList, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "MediaList" , js_name = length)] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaList/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaList`*"] pub fn length(this: &MediaList) -> u32; # [wasm_bindgen (catch , method , structural , js_class = "MediaList" , js_name = appendMedium)] #[doc = "The `appendMedium()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaList/appendMedium)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaList`*"] pub fn append_medium(this: &MediaList, new_medium: &str) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "MediaList" , js_name = deleteMedium)] #[doc = "The `deleteMedium()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaList/deleteMedium)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaList`*"] pub fn delete_medium(this: &MediaList, old_medium: &str) -> Result<(), JsValue>; # [wasm_bindgen (method , structural , js_class = "MediaList" , js_name = item)] #[doc = "The `item()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaList/item)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaList`*"] pub fn item(this: &MediaList, index: u32) -> Option; #[wasm_bindgen(method, structural, js_class = "MediaList", indexing_getter)] #[doc = "Indexing getter."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaList`*"] pub fn get(this: &MediaList, index: u32) -> Option; } web-sys-0.3.55/src/features/gen_MediaQueryList.rs000064400000000000000000000112230072674642500200430ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = MediaQueryList , typescript_type = "MediaQueryList")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaQueryList` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaQueryList`*"] pub type MediaQueryList; # [wasm_bindgen (structural , method , getter , js_class = "MediaQueryList" , js_name = media)] #[doc = "Getter for the `media` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList/media)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaQueryList`*"] pub fn media(this: &MediaQueryList) -> String; # [wasm_bindgen (structural , method , getter , js_class = "MediaQueryList" , js_name = matches)] #[doc = "Getter for the `matches` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList/matches)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaQueryList`*"] pub fn matches(this: &MediaQueryList) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "MediaQueryList" , js_name = onchange)] #[doc = "Getter for the `onchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList/onchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaQueryList`*"] pub fn onchange(this: &MediaQueryList) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MediaQueryList" , js_name = onchange)] #[doc = "Setter for the `onchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList/onchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaQueryList`*"] pub fn set_onchange(this: &MediaQueryList, value: Option<&::js_sys::Function>); # [wasm_bindgen (catch , method , structural , js_class = "MediaQueryList" , js_name = addListener)] #[doc = "The `addListener()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList/addListener)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaQueryList`*"] pub fn add_listener_with_opt_callback( this: &MediaQueryList, listener: Option<&::js_sys::Function>, ) -> Result<(), JsValue>; #[cfg(feature = "EventListener")] # [wasm_bindgen (catch , method , structural , js_class = "MediaQueryList" , js_name = addListener)] #[doc = "The `addListener()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList/addListener)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventListener`, `MediaQueryList`*"] pub fn add_listener_with_opt_event_listener( this: &MediaQueryList, listener: Option<&EventListener>, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "MediaQueryList" , js_name = removeListener)] #[doc = "The `removeListener()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList/removeListener)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaQueryList`*"] pub fn remove_listener_with_opt_callback( this: &MediaQueryList, listener: Option<&::js_sys::Function>, ) -> Result<(), JsValue>; #[cfg(feature = "EventListener")] # [wasm_bindgen (catch , method , structural , js_class = "MediaQueryList" , js_name = removeListener)] #[doc = "The `removeListener()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList/removeListener)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventListener`, `MediaQueryList`*"] pub fn remove_listener_with_opt_event_listener( this: &MediaQueryList, listener: Option<&EventListener>, ) -> Result<(), JsValue>; } web-sys-0.3.55/src/features/gen_MediaQueryListEvent.rs000064400000000000000000000052670072674642500210600ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = MediaQueryListEvent , typescript_type = "MediaQueryListEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaQueryListEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryListEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaQueryListEvent`*"] pub type MediaQueryListEvent; # [wasm_bindgen (structural , method , getter , js_class = "MediaQueryListEvent" , js_name = media)] #[doc = "Getter for the `media` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryListEvent/media)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaQueryListEvent`*"] pub fn media(this: &MediaQueryListEvent) -> String; # [wasm_bindgen (structural , method , getter , js_class = "MediaQueryListEvent" , js_name = matches)] #[doc = "Getter for the `matches` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryListEvent/matches)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaQueryListEvent`*"] pub fn matches(this: &MediaQueryListEvent) -> bool; #[wasm_bindgen(catch, constructor, js_class = "MediaQueryListEvent")] #[doc = "The `new MediaQueryListEvent(..)` constructor, creating a new instance of `MediaQueryListEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryListEvent/MediaQueryListEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaQueryListEvent`*"] pub fn new(type_: &str) -> Result; #[cfg(feature = "MediaQueryListEventInit")] #[wasm_bindgen(catch, constructor, js_class = "MediaQueryListEvent")] #[doc = "The `new MediaQueryListEvent(..)` constructor, creating a new instance of `MediaQueryListEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryListEvent/MediaQueryListEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaQueryListEvent`, `MediaQueryListEventInit`*"] pub fn new_with_event_init_dict( type_: &str, event_init_dict: &MediaQueryListEventInit, ) -> Result; } web-sys-0.3.55/src/features/gen_MediaQueryListEventInit.rs000064400000000000000000000074230072674642500217000ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaQueryListEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaQueryListEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaQueryListEventInit`*"] pub type MediaQueryListEventInit; } impl MediaQueryListEventInit { #[doc = "Construct a new `MediaQueryListEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaQueryListEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaQueryListEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaQueryListEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaQueryListEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `matches` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaQueryListEventInit`*"] pub fn matches(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("matches"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `media` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaQueryListEventInit`*"] pub fn media(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("media"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for MediaQueryListEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_MediaRecorder.rs000064400000000000000000000314040072674642500176520ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = MediaRecorder , typescript_type = "MediaRecorder")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaRecorder` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`*"] pub type MediaRecorder; #[cfg(feature = "MediaStream")] # [wasm_bindgen (structural , method , getter , js_class = "MediaRecorder" , js_name = stream)] #[doc = "Getter for the `stream` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/stream)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`, `MediaStream`*"] pub fn stream(this: &MediaRecorder) -> MediaStream; #[cfg(feature = "RecordingState")] # [wasm_bindgen (structural , method , getter , js_class = "MediaRecorder" , js_name = state)] #[doc = "Getter for the `state` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/state)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`, `RecordingState`*"] pub fn state(this: &MediaRecorder) -> RecordingState; # [wasm_bindgen (structural , method , getter , js_class = "MediaRecorder" , js_name = mimeType)] #[doc = "Getter for the `mimeType` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/mimeType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`*"] pub fn mime_type(this: &MediaRecorder) -> String; # [wasm_bindgen (structural , method , getter , js_class = "MediaRecorder" , js_name = ondataavailable)] #[doc = "Getter for the `ondataavailable` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/ondataavailable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`*"] pub fn ondataavailable(this: &MediaRecorder) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MediaRecorder" , js_name = ondataavailable)] #[doc = "Setter for the `ondataavailable` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/ondataavailable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`*"] pub fn set_ondataavailable(this: &MediaRecorder, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MediaRecorder" , js_name = onerror)] #[doc = "Getter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`*"] pub fn onerror(this: &MediaRecorder) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MediaRecorder" , js_name = onerror)] #[doc = "Setter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`*"] pub fn set_onerror(this: &MediaRecorder, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MediaRecorder" , js_name = onstart)] #[doc = "Getter for the `onstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/onstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`*"] pub fn onstart(this: &MediaRecorder) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MediaRecorder" , js_name = onstart)] #[doc = "Setter for the `onstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/onstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`*"] pub fn set_onstart(this: &MediaRecorder, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MediaRecorder" , js_name = onstop)] #[doc = "Getter for the `onstop` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/onstop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`*"] pub fn onstop(this: &MediaRecorder) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MediaRecorder" , js_name = onstop)] #[doc = "Setter for the `onstop` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/onstop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`*"] pub fn set_onstop(this: &MediaRecorder, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MediaRecorder" , js_name = onwarning)] #[doc = "Getter for the `onwarning` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/onwarning)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`*"] pub fn onwarning(this: &MediaRecorder) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MediaRecorder" , js_name = onwarning)] #[doc = "Setter for the `onwarning` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/onwarning)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`*"] pub fn set_onwarning(this: &MediaRecorder, value: Option<&::js_sys::Function>); #[cfg(feature = "MediaStream")] #[wasm_bindgen(catch, constructor, js_class = "MediaRecorder")] #[doc = "The `new MediaRecorder(..)` constructor, creating a new instance of `MediaRecorder`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/MediaRecorder)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`, `MediaStream`*"] pub fn new_with_media_stream(stream: &MediaStream) -> Result; #[cfg(all(feature = "MediaRecorderOptions", feature = "MediaStream",))] #[wasm_bindgen(catch, constructor, js_class = "MediaRecorder")] #[doc = "The `new MediaRecorder(..)` constructor, creating a new instance of `MediaRecorder`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/MediaRecorder)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`, `MediaRecorderOptions`, `MediaStream`*"] pub fn new_with_media_stream_and_media_recorder_options( stream: &MediaStream, options: &MediaRecorderOptions, ) -> Result; #[cfg(feature = "AudioNode")] #[wasm_bindgen(catch, constructor, js_class = "MediaRecorder")] #[doc = "The `new MediaRecorder(..)` constructor, creating a new instance of `MediaRecorder`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/MediaRecorder)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioNode`, `MediaRecorder`*"] pub fn new_with_audio_node(node: &AudioNode) -> Result; #[cfg(feature = "AudioNode")] #[wasm_bindgen(catch, constructor, js_class = "MediaRecorder")] #[doc = "The `new MediaRecorder(..)` constructor, creating a new instance of `MediaRecorder`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/MediaRecorder)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioNode`, `MediaRecorder`*"] pub fn new_with_audio_node_and_u32( node: &AudioNode, output: u32, ) -> Result; #[cfg(all(feature = "AudioNode", feature = "MediaRecorderOptions",))] #[wasm_bindgen(catch, constructor, js_class = "MediaRecorder")] #[doc = "The `new MediaRecorder(..)` constructor, creating a new instance of `MediaRecorder`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/MediaRecorder)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioNode`, `MediaRecorder`, `MediaRecorderOptions`*"] pub fn new_with_audio_node_and_u32_and_options( node: &AudioNode, output: u32, options: &MediaRecorderOptions, ) -> Result; # [wasm_bindgen (static_method_of = MediaRecorder , js_class = "MediaRecorder" , js_name = isTypeSupported)] #[doc = "The `isTypeSupported()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/isTypeSupported)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`*"] pub fn is_type_supported(type_: &str) -> bool; # [wasm_bindgen (catch , method , structural , js_class = "MediaRecorder" , js_name = pause)] #[doc = "The `pause()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/pause)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`*"] pub fn pause(this: &MediaRecorder) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "MediaRecorder" , js_name = requestData)] #[doc = "The `requestData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/requestData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`*"] pub fn request_data(this: &MediaRecorder) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "MediaRecorder" , js_name = resume)] #[doc = "The `resume()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/resume)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`*"] pub fn resume(this: &MediaRecorder) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "MediaRecorder" , js_name = start)] #[doc = "The `start()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/start)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`*"] pub fn start(this: &MediaRecorder) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "MediaRecorder" , js_name = start)] #[doc = "The `start()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/start)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`*"] pub fn start_with_time_slice(this: &MediaRecorder, time_slice: i32) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "MediaRecorder" , js_name = stop)] #[doc = "The `stop()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/stop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`*"] pub fn stop(this: &MediaRecorder) -> Result<(), JsValue>; } web-sys-0.3.55/src/features/gen_MediaRecorderErrorEvent.rs000064400000000000000000000035210072674642500216650ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = MediaRecorderErrorEvent , typescript_type = "MediaRecorderErrorEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaRecorderErrorEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorderErrorEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorderErrorEvent`*"] pub type MediaRecorderErrorEvent; #[cfg(feature = "DomException")] # [wasm_bindgen (structural , method , getter , js_class = "MediaRecorderErrorEvent" , js_name = error)] #[doc = "Getter for the `error` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorderErrorEvent/error)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`, `MediaRecorderErrorEvent`*"] pub fn error(this: &MediaRecorderErrorEvent) -> DomException; #[cfg(feature = "MediaRecorderErrorEventInit")] #[wasm_bindgen(catch, constructor, js_class = "MediaRecorderErrorEvent")] #[doc = "The `new MediaRecorderErrorEvent(..)` constructor, creating a new instance of `MediaRecorderErrorEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorderErrorEvent/MediaRecorderErrorEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorderErrorEvent`, `MediaRecorderErrorEventInit`*"] pub fn new( type_: &str, event_init_dict: &MediaRecorderErrorEventInit, ) -> Result; } web-sys-0.3.55/src/features/gen_MediaRecorderErrorEventInit.rs000064400000000000000000000064540072674642500225210ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaRecorderErrorEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaRecorderErrorEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorderErrorEventInit`*"] pub type MediaRecorderErrorEventInit; } impl MediaRecorderErrorEventInit { #[cfg(feature = "DomException")] #[doc = "Construct a new `MediaRecorderErrorEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`, `MediaRecorderErrorEventInit`*"] pub fn new(error: &DomException) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.error(error); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorderErrorEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorderErrorEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorderErrorEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "DomException")] #[doc = "Change the `error` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`, `MediaRecorderErrorEventInit`*"] pub fn error(&mut self, val: &DomException) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("error"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_MediaRecorderOptions.rs000064400000000000000000000064430072674642500212330ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaRecorderOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaRecorderOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorderOptions`*"] pub type MediaRecorderOptions; } impl MediaRecorderOptions { #[doc = "Construct a new `MediaRecorderOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorderOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `audioBitsPerSecond` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorderOptions`*"] pub fn audio_bits_per_second(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("audioBitsPerSecond"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `bitsPerSecond` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorderOptions`*"] pub fn bits_per_second(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bitsPerSecond"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `mimeType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorderOptions`*"] pub fn mime_type(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("mimeType"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `videoBitsPerSecond` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorderOptions`*"] pub fn video_bits_per_second(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("videoBitsPerSecond"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for MediaRecorderOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_MediaSource.rs000064400000000000000000000236450072674642500173550ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = MediaSource , typescript_type = "MediaSource")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaSource` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSource`*"] pub type MediaSource; #[cfg(feature = "SourceBufferList")] # [wasm_bindgen (structural , method , getter , js_class = "MediaSource" , js_name = sourceBuffers)] #[doc = "Getter for the `sourceBuffers` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/sourceBuffers)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSource`, `SourceBufferList`*"] pub fn source_buffers(this: &MediaSource) -> SourceBufferList; #[cfg(feature = "SourceBufferList")] # [wasm_bindgen (structural , method , getter , js_class = "MediaSource" , js_name = activeSourceBuffers)] #[doc = "Getter for the `activeSourceBuffers` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/activeSourceBuffers)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSource`, `SourceBufferList`*"] pub fn active_source_buffers(this: &MediaSource) -> SourceBufferList; #[cfg(feature = "MediaSourceReadyState")] # [wasm_bindgen (structural , method , getter , js_class = "MediaSource" , js_name = readyState)] #[doc = "Getter for the `readyState` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/readyState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSource`, `MediaSourceReadyState`*"] pub fn ready_state(this: &MediaSource) -> MediaSourceReadyState; # [wasm_bindgen (structural , method , getter , js_class = "MediaSource" , js_name = duration)] #[doc = "Getter for the `duration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/duration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSource`*"] pub fn duration(this: &MediaSource) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "MediaSource" , js_name = duration)] #[doc = "Setter for the `duration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/duration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSource`*"] pub fn set_duration(this: &MediaSource, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "MediaSource" , js_name = onsourceopen)] #[doc = "Getter for the `onsourceopen` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/onsourceopen)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSource`*"] pub fn onsourceopen(this: &MediaSource) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MediaSource" , js_name = onsourceopen)] #[doc = "Setter for the `onsourceopen` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/onsourceopen)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSource`*"] pub fn set_onsourceopen(this: &MediaSource, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MediaSource" , js_name = onsourceended)] #[doc = "Getter for the `onsourceended` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/onsourceended)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSource`*"] pub fn onsourceended(this: &MediaSource) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MediaSource" , js_name = onsourceended)] #[doc = "Setter for the `onsourceended` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/onsourceended)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSource`*"] pub fn set_onsourceended(this: &MediaSource, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MediaSource" , js_name = onsourceclosed)] #[doc = "Getter for the `onsourceclosed` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/onsourceclosed)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSource`*"] pub fn onsourceclosed(this: &MediaSource) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MediaSource" , js_name = onsourceclosed)] #[doc = "Setter for the `onsourceclosed` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/onsourceclosed)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSource`*"] pub fn set_onsourceclosed(this: &MediaSource, value: Option<&::js_sys::Function>); #[wasm_bindgen(catch, constructor, js_class = "MediaSource")] #[doc = "The `new MediaSource(..)` constructor, creating a new instance of `MediaSource`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/MediaSource)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSource`*"] pub fn new() -> Result; #[cfg(feature = "SourceBuffer")] # [wasm_bindgen (catch , method , structural , js_class = "MediaSource" , js_name = addSourceBuffer)] #[doc = "The `addSourceBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/addSourceBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSource`, `SourceBuffer`*"] pub fn add_source_buffer(this: &MediaSource, type_: &str) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "MediaSource" , js_name = clearLiveSeekableRange)] #[doc = "The `clearLiveSeekableRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/clearLiveSeekableRange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSource`*"] pub fn clear_live_seekable_range(this: &MediaSource) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "MediaSource" , js_name = endOfStream)] #[doc = "The `endOfStream()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/endOfStream)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSource`*"] pub fn end_of_stream(this: &MediaSource) -> Result<(), JsValue>; #[cfg(feature = "MediaSourceEndOfStreamError")] # [wasm_bindgen (catch , method , structural , js_class = "MediaSource" , js_name = endOfStream)] #[doc = "The `endOfStream()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/endOfStream)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSource`, `MediaSourceEndOfStreamError`*"] pub fn end_of_stream_with_error( this: &MediaSource, error: MediaSourceEndOfStreamError, ) -> Result<(), JsValue>; # [wasm_bindgen (static_method_of = MediaSource , js_class = "MediaSource" , js_name = isTypeSupported)] #[doc = "The `isTypeSupported()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/isTypeSupported)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSource`*"] pub fn is_type_supported(type_: &str) -> bool; #[cfg(feature = "SourceBuffer")] # [wasm_bindgen (catch , method , structural , js_class = "MediaSource" , js_name = removeSourceBuffer)] #[doc = "The `removeSourceBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/removeSourceBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSource`, `SourceBuffer`*"] pub fn remove_source_buffer( this: &MediaSource, source_buffer: &SourceBuffer, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "MediaSource" , js_name = setLiveSeekableRange)] #[doc = "The `setLiveSeekableRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/setLiveSeekableRange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSource`*"] pub fn set_live_seekable_range(this: &MediaSource, start: f64, end: f64) -> Result<(), JsValue>; } web-sys-0.3.55/src/features/gen_MediaSourceEndOfStreamError.rs000064400000000000000000000005700072674642500224470ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `MediaSourceEndOfStreamError` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSourceEndOfStreamError`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum MediaSourceEndOfStreamError { Network = "network", Decode = "decode", } web-sys-0.3.55/src/features/gen_MediaSourceEnum.rs000064400000000000000000000007720072674642500201760ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `MediaSourceEnum` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSourceEnum`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum MediaSourceEnum { Camera = "camera", Screen = "screen", Application = "application", Window = "window", Browser = "browser", Microphone = "microphone", AudioCapture = "audioCapture", Other = "other", } web-sys-0.3.55/src/features/gen_MediaSourceReadyState.rs000064400000000000000000000005650072674642500213370ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `MediaSourceReadyState` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSourceReadyState`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum MediaSourceReadyState { Closed = "closed", Open = "open", Ended = "ended", } web-sys-0.3.55/src/features/gen_MediaStream.rs000064400000000000000000000205020072674642500173350ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = MediaStream , typescript_type = "MediaStream")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaStream` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`*"] pub type MediaStream; # [wasm_bindgen (structural , method , getter , js_class = "MediaStream" , js_name = id)] #[doc = "Getter for the `id` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream/id)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`*"] pub fn id(this: &MediaStream) -> String; # [wasm_bindgen (structural , method , getter , js_class = "MediaStream" , js_name = active)] #[doc = "Getter for the `active` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream/active)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`*"] pub fn active(this: &MediaStream) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "MediaStream" , js_name = onaddtrack)] #[doc = "Getter for the `onaddtrack` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream/onaddtrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`*"] pub fn onaddtrack(this: &MediaStream) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MediaStream" , js_name = onaddtrack)] #[doc = "Setter for the `onaddtrack` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream/onaddtrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`*"] pub fn set_onaddtrack(this: &MediaStream, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MediaStream" , js_name = onremovetrack)] #[doc = "Getter for the `onremovetrack` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream/onremovetrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`*"] pub fn onremovetrack(this: &MediaStream) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MediaStream" , js_name = onremovetrack)] #[doc = "Setter for the `onremovetrack` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream/onremovetrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`*"] pub fn set_onremovetrack(this: &MediaStream, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MediaStream" , js_name = currentTime)] #[doc = "Getter for the `currentTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream/currentTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`*"] pub fn current_time(this: &MediaStream) -> f64; #[wasm_bindgen(catch, constructor, js_class = "MediaStream")] #[doc = "The `new MediaStream(..)` constructor, creating a new instance of `MediaStream`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream/MediaStream)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`*"] pub fn new() -> Result; #[wasm_bindgen(catch, constructor, js_class = "MediaStream")] #[doc = "The `new MediaStream(..)` constructor, creating a new instance of `MediaStream`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream/MediaStream)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`*"] pub fn new_with_stream(stream: &MediaStream) -> Result; #[wasm_bindgen(catch, constructor, js_class = "MediaStream")] #[doc = "The `new MediaStream(..)` constructor, creating a new instance of `MediaStream`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream/MediaStream)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`*"] pub fn new_with_tracks(tracks: &::wasm_bindgen::JsValue) -> Result; #[cfg(feature = "MediaStreamTrack")] # [wasm_bindgen (method , structural , js_class = "MediaStream" , js_name = addTrack)] #[doc = "The `addTrack()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream/addTrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`, `MediaStreamTrack`*"] pub fn add_track(this: &MediaStream, track: &MediaStreamTrack); # [wasm_bindgen (method , structural , js_class = "MediaStream" , js_name = clone)] #[doc = "The `clone()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream/clone)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`*"] pub fn clone(this: &MediaStream) -> MediaStream; # [wasm_bindgen (method , structural , js_class = "MediaStream" , js_name = getAudioTracks)] #[doc = "The `getAudioTracks()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream/getAudioTracks)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`*"] pub fn get_audio_tracks(this: &MediaStream) -> ::js_sys::Array; #[cfg(feature = "MediaStreamTrack")] # [wasm_bindgen (method , structural , js_class = "MediaStream" , js_name = getTrackById)] #[doc = "The `getTrackById()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream/getTrackById)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`, `MediaStreamTrack`*"] pub fn get_track_by_id(this: &MediaStream, track_id: &str) -> Option; # [wasm_bindgen (method , structural , js_class = "MediaStream" , js_name = getTracks)] #[doc = "The `getTracks()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream/getTracks)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`*"] pub fn get_tracks(this: &MediaStream) -> ::js_sys::Array; # [wasm_bindgen (method , structural , js_class = "MediaStream" , js_name = getVideoTracks)] #[doc = "The `getVideoTracks()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream/getVideoTracks)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`*"] pub fn get_video_tracks(this: &MediaStream) -> ::js_sys::Array; #[cfg(feature = "MediaStreamTrack")] # [wasm_bindgen (method , structural , js_class = "MediaStream" , js_name = removeTrack)] #[doc = "The `removeTrack()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream/removeTrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`, `MediaStreamTrack`*"] pub fn remove_track(this: &MediaStream, track: &MediaStreamTrack); } web-sys-0.3.55/src/features/gen_MediaStreamAudioDestinationNode.rs000064400000000000000000000052540072674642500233360ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = MediaStreamAudioDestinationNode , typescript_type = "MediaStreamAudioDestinationNode")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaStreamAudioDestinationNode` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamAudioDestinationNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamAudioDestinationNode`*"] pub type MediaStreamAudioDestinationNode; #[cfg(feature = "MediaStream")] # [wasm_bindgen (structural , method , getter , js_class = "MediaStreamAudioDestinationNode" , js_name = stream)] #[doc = "Getter for the `stream` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamAudioDestinationNode/stream)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`, `MediaStreamAudioDestinationNode`*"] pub fn stream(this: &MediaStreamAudioDestinationNode) -> MediaStream; #[cfg(feature = "AudioContext")] #[wasm_bindgen(catch, constructor, js_class = "MediaStreamAudioDestinationNode")] #[doc = "The `new MediaStreamAudioDestinationNode(..)` constructor, creating a new instance of `MediaStreamAudioDestinationNode`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamAudioDestinationNode/MediaStreamAudioDestinationNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `MediaStreamAudioDestinationNode`*"] pub fn new(context: &AudioContext) -> Result; #[cfg(all(feature = "AudioContext", feature = "AudioNodeOptions",))] #[wasm_bindgen(catch, constructor, js_class = "MediaStreamAudioDestinationNode")] #[doc = "The `new MediaStreamAudioDestinationNode(..)` constructor, creating a new instance of `MediaStreamAudioDestinationNode`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamAudioDestinationNode/MediaStreamAudioDestinationNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `AudioNodeOptions`, `MediaStreamAudioDestinationNode`*"] pub fn new_with_options( context: &AudioContext, options: &AudioNodeOptions, ) -> Result; } web-sys-0.3.55/src/features/gen_MediaStreamAudioSourceNode.rs000064400000000000000000000026570072674642500223210ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = MediaStreamAudioSourceNode , typescript_type = "MediaStreamAudioSourceNode")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaStreamAudioSourceNode` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamAudioSourceNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamAudioSourceNode`*"] pub type MediaStreamAudioSourceNode; #[cfg(all(feature = "AudioContext", feature = "MediaStreamAudioSourceOptions",))] #[wasm_bindgen(catch, constructor, js_class = "MediaStreamAudioSourceNode")] #[doc = "The `new MediaStreamAudioSourceNode(..)` constructor, creating a new instance of `MediaStreamAudioSourceNode`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamAudioSourceNode/MediaStreamAudioSourceNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `MediaStreamAudioSourceNode`, `MediaStreamAudioSourceOptions`*"] pub fn new( context: &AudioContext, options: &MediaStreamAudioSourceOptions, ) -> Result; } web-sys-0.3.55/src/features/gen_MediaStreamAudioSourceOptions.rs000064400000000000000000000031770072674642500230650ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaStreamAudioSourceOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaStreamAudioSourceOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamAudioSourceOptions`*"] pub type MediaStreamAudioSourceOptions; } impl MediaStreamAudioSourceOptions { #[cfg(feature = "MediaStream")] #[doc = "Construct a new `MediaStreamAudioSourceOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`, `MediaStreamAudioSourceOptions`*"] pub fn new(media_stream: &MediaStream) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.media_stream(media_stream); ret } #[cfg(feature = "MediaStream")] #[doc = "Change the `mediaStream` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`, `MediaStreamAudioSourceOptions`*"] pub fn media_stream(&mut self, val: &MediaStream) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("mediaStream"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_MediaStreamConstraints.rs000064400000000000000000000073150072674642500215740ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaStreamConstraints)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaStreamConstraints` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamConstraints`*"] pub type MediaStreamConstraints; } impl MediaStreamConstraints { #[doc = "Construct a new `MediaStreamConstraints`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamConstraints`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `audio` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamConstraints`*"] pub fn audio(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("audio"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `fake` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamConstraints`*"] pub fn fake(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("fake"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `peerIdentity` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamConstraints`*"] pub fn peer_identity(&mut self, val: Option<&str>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("peerIdentity"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `picture` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamConstraints`*"] pub fn picture(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("picture"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `video` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamConstraints`*"] pub fn video(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("video"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for MediaStreamConstraints { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_MediaStreamError.rs000064400000000000000000000037270072674642500203610ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = MediaStreamError , typescript_type = "MediaStreamError")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaStreamError` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamError)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamError`*"] pub type MediaStreamError; # [wasm_bindgen (structural , method , getter , js_class = "MediaStreamError" , js_name = name)] #[doc = "Getter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamError/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamError`*"] pub fn name(this: &MediaStreamError) -> String; # [wasm_bindgen (structural , method , getter , js_class = "MediaStreamError" , js_name = message)] #[doc = "Getter for the `message` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamError/message)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamError`*"] pub fn message(this: &MediaStreamError) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "MediaStreamError" , js_name = constraint)] #[doc = "Getter for the `constraint` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamError/constraint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamError`*"] pub fn constraint(this: &MediaStreamError) -> Option; } web-sys-0.3.55/src/features/gen_MediaStreamEvent.rs000064400000000000000000000043210072674642500203400ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = MediaStreamEvent , typescript_type = "MediaStreamEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaStreamEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamEvent`*"] pub type MediaStreamEvent; #[cfg(feature = "MediaStream")] # [wasm_bindgen (structural , method , getter , js_class = "MediaStreamEvent" , js_name = stream)] #[doc = "Getter for the `stream` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamEvent/stream)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`, `MediaStreamEvent`*"] pub fn stream(this: &MediaStreamEvent) -> Option; #[wasm_bindgen(catch, constructor, js_class = "MediaStreamEvent")] #[doc = "The `new MediaStreamEvent(..)` constructor, creating a new instance of `MediaStreamEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamEvent/MediaStreamEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamEvent`*"] pub fn new(type_: &str) -> Result; #[cfg(feature = "MediaStreamEventInit")] #[wasm_bindgen(catch, constructor, js_class = "MediaStreamEvent")] #[doc = "The `new MediaStreamEvent(..)` constructor, creating a new instance of `MediaStreamEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamEvent/MediaStreamEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamEvent`, `MediaStreamEventInit`*"] pub fn new_with_event_init_dict( type_: &str, event_init_dict: &MediaStreamEventInit, ) -> Result; } web-sys-0.3.55/src/features/gen_MediaStreamEventInit.rs000064400000000000000000000063570072674642500211770ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaStreamEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaStreamEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamEventInit`*"] pub type MediaStreamEventInit; } impl MediaStreamEventInit { #[doc = "Construct a new `MediaStreamEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "MediaStream")] #[doc = "Change the `stream` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`, `MediaStreamEventInit`*"] pub fn stream(&mut self, val: Option<&MediaStream>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("stream"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for MediaStreamEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_MediaStreamTrack.rs000064400000000000000000000232430072674642500203270ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = MediaStreamTrack , typescript_type = "MediaStreamTrack")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaStreamTrack` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"] pub type MediaStreamTrack; # [wasm_bindgen (structural , method , getter , js_class = "MediaStreamTrack" , js_name = kind)] #[doc = "Getter for the `kind` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/kind)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"] pub fn kind(this: &MediaStreamTrack) -> String; # [wasm_bindgen (structural , method , getter , js_class = "MediaStreamTrack" , js_name = id)] #[doc = "Getter for the `id` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/id)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"] pub fn id(this: &MediaStreamTrack) -> String; # [wasm_bindgen (structural , method , getter , js_class = "MediaStreamTrack" , js_name = label)] #[doc = "Getter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"] pub fn label(this: &MediaStreamTrack) -> String; # [wasm_bindgen (structural , method , getter , js_class = "MediaStreamTrack" , js_name = enabled)] #[doc = "Getter for the `enabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/enabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"] pub fn enabled(this: &MediaStreamTrack) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "MediaStreamTrack" , js_name = enabled)] #[doc = "Setter for the `enabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/enabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"] pub fn set_enabled(this: &MediaStreamTrack, value: bool); # [wasm_bindgen (structural , method , getter , js_class = "MediaStreamTrack" , js_name = muted)] #[doc = "Getter for the `muted` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/muted)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"] pub fn muted(this: &MediaStreamTrack) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "MediaStreamTrack" , js_name = onmute)] #[doc = "Getter for the `onmute` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/onmute)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"] pub fn onmute(this: &MediaStreamTrack) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MediaStreamTrack" , js_name = onmute)] #[doc = "Setter for the `onmute` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/onmute)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"] pub fn set_onmute(this: &MediaStreamTrack, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MediaStreamTrack" , js_name = onunmute)] #[doc = "Getter for the `onunmute` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/onunmute)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"] pub fn onunmute(this: &MediaStreamTrack) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MediaStreamTrack" , js_name = onunmute)] #[doc = "Setter for the `onunmute` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/onunmute)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"] pub fn set_onunmute(this: &MediaStreamTrack, value: Option<&::js_sys::Function>); #[cfg(feature = "MediaStreamTrackState")] # [wasm_bindgen (structural , method , getter , js_class = "MediaStreamTrack" , js_name = readyState)] #[doc = "Getter for the `readyState` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/readyState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `MediaStreamTrackState`*"] pub fn ready_state(this: &MediaStreamTrack) -> MediaStreamTrackState; # [wasm_bindgen (structural , method , getter , js_class = "MediaStreamTrack" , js_name = onended)] #[doc = "Getter for the `onended` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/onended)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"] pub fn onended(this: &MediaStreamTrack) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MediaStreamTrack" , js_name = onended)] #[doc = "Setter for the `onended` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/onended)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"] pub fn set_onended(this: &MediaStreamTrack, value: Option<&::js_sys::Function>); # [wasm_bindgen (catch , method , structural , js_class = "MediaStreamTrack" , js_name = applyConstraints)] #[doc = "The `applyConstraints()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/applyConstraints)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"] pub fn apply_constraints(this: &MediaStreamTrack) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "MediaTrackConstraints")] # [wasm_bindgen (catch , method , structural , js_class = "MediaStreamTrack" , js_name = applyConstraints)] #[doc = "The `applyConstraints()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/applyConstraints)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `MediaTrackConstraints`*"] pub fn apply_constraints_with_constraints( this: &MediaStreamTrack, constraints: &MediaTrackConstraints, ) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (method , structural , js_class = "MediaStreamTrack" , js_name = clone)] #[doc = "The `clone()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/clone)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"] pub fn clone(this: &MediaStreamTrack) -> MediaStreamTrack; #[cfg(feature = "MediaTrackConstraints")] # [wasm_bindgen (method , structural , js_class = "MediaStreamTrack" , js_name = getConstraints)] #[doc = "The `getConstraints()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/getConstraints)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `MediaTrackConstraints`*"] pub fn get_constraints(this: &MediaStreamTrack) -> MediaTrackConstraints; #[cfg(feature = "MediaTrackSettings")] # [wasm_bindgen (method , structural , js_class = "MediaStreamTrack" , js_name = getSettings)] #[doc = "The `getSettings()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/getSettings)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `MediaTrackSettings`*"] pub fn get_settings(this: &MediaStreamTrack) -> MediaTrackSettings; # [wasm_bindgen (method , structural , js_class = "MediaStreamTrack" , js_name = stop)] #[doc = "The `stop()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/stop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"] pub fn stop(this: &MediaStreamTrack); } web-sys-0.3.55/src/features/gen_MediaStreamTrackEvent.rs000064400000000000000000000034650072674642500213350ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = MediaStreamTrackEvent , typescript_type = "MediaStreamTrackEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaStreamTrackEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrackEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrackEvent`*"] pub type MediaStreamTrackEvent; #[cfg(feature = "MediaStreamTrack")] # [wasm_bindgen (structural , method , getter , js_class = "MediaStreamTrackEvent" , js_name = track)] #[doc = "Getter for the `track` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrackEvent/track)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `MediaStreamTrackEvent`*"] pub fn track(this: &MediaStreamTrackEvent) -> MediaStreamTrack; #[cfg(feature = "MediaStreamTrackEventInit")] #[wasm_bindgen(catch, constructor, js_class = "MediaStreamTrackEvent")] #[doc = "The `new MediaStreamTrackEvent(..)` constructor, creating a new instance of `MediaStreamTrackEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrackEvent/MediaStreamTrackEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrackEvent`, `MediaStreamTrackEventInit`*"] pub fn new( type_: &str, event_init_dict: &MediaStreamTrackEventInit, ) -> Result; } web-sys-0.3.55/src/features/gen_MediaStreamTrackEventInit.rs000064400000000000000000000064560072674642500221640ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaStreamTrackEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaStreamTrackEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrackEventInit`*"] pub type MediaStreamTrackEventInit; } impl MediaStreamTrackEventInit { #[cfg(feature = "MediaStreamTrack")] #[doc = "Construct a new `MediaStreamTrackEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `MediaStreamTrackEventInit`*"] pub fn new(track: &MediaStreamTrack) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.track(track); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrackEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrackEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrackEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "MediaStreamTrack")] #[doc = "Change the `track` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `MediaStreamTrackEventInit`*"] pub fn track(&mut self, val: &MediaStreamTrack) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("track"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_MediaStreamTrackState.rs000064400000000000000000000005360072674642500213300ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `MediaStreamTrackState` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrackState`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum MediaStreamTrackState { Live = "live", Ended = "ended", } web-sys-0.3.55/src/features/gen_MediaTrackConstraintSet.rs000064400000000000000000000251650072674642500217010ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaTrackConstraintSet)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaTrackConstraintSet` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] pub type MediaTrackConstraintSet; } impl MediaTrackConstraintSet { #[doc = "Construct a new `MediaTrackConstraintSet`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `autoGainControl` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] pub fn auto_gain_control(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("autoGainControl"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `browserWindow` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] pub fn browser_window(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("browserWindow"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] pub fn channel_count(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("channelCount"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `deviceId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] pub fn device_id(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("deviceId"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `echoCancellation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] pub fn echo_cancellation(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("echoCancellation"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `facingMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] pub fn facing_mode(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("facingMode"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `frameRate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] pub fn frame_rate(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("frameRate"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `height` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] pub fn height(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("height"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `mediaSource` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] pub fn media_source(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("mediaSource"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `noiseSuppression` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] pub fn noise_suppression(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("noiseSuppression"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `scrollWithPage` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] pub fn scroll_with_page(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("scrollWithPage"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `viewportHeight` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] pub fn viewport_height(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("viewportHeight"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `viewportOffsetX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] pub fn viewport_offset_x(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("viewportOffsetX"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `viewportOffsetY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] pub fn viewport_offset_y(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("viewportOffsetY"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `viewportWidth` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] pub fn viewport_width(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("viewportWidth"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `width` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] pub fn width(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("width"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for MediaTrackConstraintSet { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_MediaTrackConstraints.rs000064400000000000000000000262540072674642500214100ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaTrackConstraints)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaTrackConstraints` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] pub type MediaTrackConstraints; } impl MediaTrackConstraints { #[doc = "Construct a new `MediaTrackConstraints`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `autoGainControl` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] pub fn auto_gain_control(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("autoGainControl"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `browserWindow` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] pub fn browser_window(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("browserWindow"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] pub fn channel_count(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("channelCount"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `deviceId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] pub fn device_id(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("deviceId"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `echoCancellation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] pub fn echo_cancellation(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("echoCancellation"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `facingMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] pub fn facing_mode(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("facingMode"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `frameRate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] pub fn frame_rate(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("frameRate"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `height` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] pub fn height(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("height"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `mediaSource` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] pub fn media_source(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("mediaSource"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `noiseSuppression` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] pub fn noise_suppression(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("noiseSuppression"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `scrollWithPage` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] pub fn scroll_with_page(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("scrollWithPage"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `viewportHeight` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] pub fn viewport_height(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("viewportHeight"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `viewportOffsetX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] pub fn viewport_offset_x(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("viewportOffsetX"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `viewportOffsetY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] pub fn viewport_offset_y(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("viewportOffsetY"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `viewportWidth` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] pub fn viewport_width(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("viewportWidth"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `width` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] pub fn width(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("width"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `advanced` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] pub fn advanced(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("advanced"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for MediaTrackConstraints { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_MediaTrackSettings.rs000064400000000000000000000141070072674642500206730ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaTrackSettings)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaTrackSettings` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSettings`*"] pub type MediaTrackSettings; } impl MediaTrackSettings { #[doc = "Construct a new `MediaTrackSettings`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSettings`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `autoGainControl` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSettings`*"] pub fn auto_gain_control(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("autoGainControl"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSettings`*"] pub fn channel_count(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("channelCount"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `deviceId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSettings`*"] pub fn device_id(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("deviceId"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `echoCancellation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSettings`*"] pub fn echo_cancellation(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("echoCancellation"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `facingMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSettings`*"] pub fn facing_mode(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("facingMode"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `frameRate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSettings`*"] pub fn frame_rate(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("frameRate"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `height` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSettings`*"] pub fn height(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("height"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `noiseSuppression` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSettings`*"] pub fn noise_suppression(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("noiseSuppression"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `width` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSettings`*"] pub fn width(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("width"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for MediaTrackSettings { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_MediaTrackSupportedConstraints.rs000064400000000000000000000234510072674642500233120ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaTrackSupportedConstraints)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaTrackSupportedConstraints` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] pub type MediaTrackSupportedConstraints; } impl MediaTrackSupportedConstraints { #[doc = "Construct a new `MediaTrackSupportedConstraints`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `aspectRatio` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] pub fn aspect_ratio(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("aspectRatio"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `autoGainControl` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] pub fn auto_gain_control(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("autoGainControl"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] pub fn channel_count(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("channelCount"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `deviceId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] pub fn device_id(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("deviceId"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `echoCancellation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] pub fn echo_cancellation(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("echoCancellation"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `facingMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] pub fn facing_mode(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("facingMode"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `frameRate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] pub fn frame_rate(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("frameRate"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `groupId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] pub fn group_id(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("groupId"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `height` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] pub fn height(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("height"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `latency` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] pub fn latency(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("latency"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `noiseSuppression` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] pub fn noise_suppression(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("noiseSuppression"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `sampleRate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] pub fn sample_rate(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("sampleRate"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `sampleSize` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] pub fn sample_size(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("sampleSize"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `volume` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] pub fn volume(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("volume"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `width` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] pub fn width(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("width"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for MediaTrackSupportedConstraints { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_MessageChannel.rs000064400000000000000000000037660072674642500200340ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MessageChannel , typescript_type = "MessageChannel")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MessageChannel` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageChannel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageChannel`*"] pub type MessageChannel; #[cfg(feature = "MessagePort")] # [wasm_bindgen (structural , method , getter , js_class = "MessageChannel" , js_name = port1)] #[doc = "Getter for the `port1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageChannel/port1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageChannel`, `MessagePort`*"] pub fn port1(this: &MessageChannel) -> MessagePort; #[cfg(feature = "MessagePort")] # [wasm_bindgen (structural , method , getter , js_class = "MessageChannel" , js_name = port2)] #[doc = "Getter for the `port2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageChannel/port2)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageChannel`, `MessagePort`*"] pub fn port2(this: &MessageChannel) -> MessagePort; #[wasm_bindgen(catch, constructor, js_class = "MessageChannel")] #[doc = "The `new MessageChannel(..)` constructor, creating a new instance of `MessageChannel`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageChannel/MessageChannel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageChannel`*"] pub fn new() -> Result; } web-sys-0.3.55/src/features/gen_MessageEvent.rs000064400000000000000000000277100072674642500175400ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = MessageEvent , typescript_type = "MessageEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MessageEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEvent`*"] pub type MessageEvent; # [wasm_bindgen (structural , method , getter , js_class = "MessageEvent" , js_name = data)] #[doc = "Getter for the `data` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/data)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEvent`*"] pub fn data(this: &MessageEvent) -> ::wasm_bindgen::JsValue; # [wasm_bindgen (structural , method , getter , js_class = "MessageEvent" , js_name = origin)] #[doc = "Getter for the `origin` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/origin)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEvent`*"] pub fn origin(this: &MessageEvent) -> String; # [wasm_bindgen (structural , method , getter , js_class = "MessageEvent" , js_name = lastEventId)] #[doc = "Getter for the `lastEventId` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/lastEventId)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEvent`*"] pub fn last_event_id(this: &MessageEvent) -> String; # [wasm_bindgen (structural , method , getter , js_class = "MessageEvent" , js_name = source)] #[doc = "Getter for the `source` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/source)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEvent`*"] pub fn source(this: &MessageEvent) -> Option<::js_sys::Object>; # [wasm_bindgen (structural , method , getter , js_class = "MessageEvent" , js_name = ports)] #[doc = "Getter for the `ports` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/ports)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEvent`*"] pub fn ports(this: &MessageEvent) -> ::js_sys::Array; #[wasm_bindgen(catch, constructor, js_class = "MessageEvent")] #[doc = "The `new MessageEvent(..)` constructor, creating a new instance of `MessageEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/MessageEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEvent`*"] pub fn new(type_: &str) -> Result; #[cfg(feature = "MessageEventInit")] #[wasm_bindgen(catch, constructor, js_class = "MessageEvent")] #[doc = "The `new MessageEvent(..)` constructor, creating a new instance of `MessageEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/MessageEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEvent`, `MessageEventInit`*"] pub fn new_with_event_init_dict( type_: &str, event_init_dict: &MessageEventInit, ) -> Result; # [wasm_bindgen (method , structural , js_class = "MessageEvent" , js_name = initMessageEvent)] #[doc = "The `initMessageEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/initMessageEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEvent`*"] pub fn init_message_event(this: &MessageEvent, type_: &str); # [wasm_bindgen (method , structural , js_class = "MessageEvent" , js_name = initMessageEvent)] #[doc = "The `initMessageEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/initMessageEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEvent`*"] pub fn init_message_event_with_bubbles(this: &MessageEvent, type_: &str, bubbles: bool); # [wasm_bindgen (method , structural , js_class = "MessageEvent" , js_name = initMessageEvent)] #[doc = "The `initMessageEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/initMessageEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEvent`*"] pub fn init_message_event_with_bubbles_and_cancelable( this: &MessageEvent, type_: &str, bubbles: bool, cancelable: bool, ); # [wasm_bindgen (method , structural , js_class = "MessageEvent" , js_name = initMessageEvent)] #[doc = "The `initMessageEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/initMessageEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEvent`*"] pub fn init_message_event_with_bubbles_and_cancelable_and_data( this: &MessageEvent, type_: &str, bubbles: bool, cancelable: bool, data: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (method , structural , js_class = "MessageEvent" , js_name = initMessageEvent)] #[doc = "The `initMessageEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/initMessageEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEvent`*"] pub fn init_message_event_with_bubbles_and_cancelable_and_data_and_origin( this: &MessageEvent, type_: &str, bubbles: bool, cancelable: bool, data: &::wasm_bindgen::JsValue, origin: &str, ); # [wasm_bindgen (method , structural , js_class = "MessageEvent" , js_name = initMessageEvent)] #[doc = "The `initMessageEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/initMessageEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEvent`*"] pub fn init_message_event_with_bubbles_and_cancelable_and_data_and_origin_and_last_event_id( this: &MessageEvent, type_: &str, bubbles: bool, cancelable: bool, data: &::wasm_bindgen::JsValue, origin: &str, last_event_id: &str, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "MessageEvent" , js_name = initMessageEvent)] #[doc = "The `initMessageEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/initMessageEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEvent`, `Window`*"] pub fn init_message_event_with_bubbles_and_cancelable_and_data_and_origin_and_last_event_id_and_opt_window( this: &MessageEvent, type_: &str, bubbles: bool, cancelable: bool, data: &::wasm_bindgen::JsValue, origin: &str, last_event_id: &str, source: Option<&Window>, ); #[cfg(feature = "MessagePort")] # [wasm_bindgen (method , structural , js_class = "MessageEvent" , js_name = initMessageEvent)] #[doc = "The `initMessageEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/initMessageEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEvent`, `MessagePort`*"] pub fn init_message_event_with_bubbles_and_cancelable_and_data_and_origin_and_last_event_id_and_opt_message_port( this: &MessageEvent, type_: &str, bubbles: bool, cancelable: bool, data: &::wasm_bindgen::JsValue, origin: &str, last_event_id: &str, source: Option<&MessagePort>, ); #[cfg(feature = "ServiceWorker")] # [wasm_bindgen (method , structural , js_class = "MessageEvent" , js_name = initMessageEvent)] #[doc = "The `initMessageEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/initMessageEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEvent`, `ServiceWorker`*"] pub fn init_message_event_with_bubbles_and_cancelable_and_data_and_origin_and_last_event_id_and_opt_service_worker( this: &MessageEvent, type_: &str, bubbles: bool, cancelable: bool, data: &::wasm_bindgen::JsValue, origin: &str, last_event_id: &str, source: Option<&ServiceWorker>, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "MessageEvent" , js_name = initMessageEvent)] #[doc = "The `initMessageEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/initMessageEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEvent`, `Window`*"] pub fn init_message_event_with_bubbles_and_cancelable_and_data_and_origin_and_last_event_id_and_opt_window_and_ports( this: &MessageEvent, type_: &str, bubbles: bool, cancelable: bool, data: &::wasm_bindgen::JsValue, origin: &str, last_event_id: &str, source: Option<&Window>, ports: &::wasm_bindgen::JsValue, ); #[cfg(feature = "MessagePort")] # [wasm_bindgen (method , structural , js_class = "MessageEvent" , js_name = initMessageEvent)] #[doc = "The `initMessageEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/initMessageEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEvent`, `MessagePort`*"] pub fn init_message_event_with_bubbles_and_cancelable_and_data_and_origin_and_last_event_id_and_opt_message_port_and_ports( this: &MessageEvent, type_: &str, bubbles: bool, cancelable: bool, data: &::wasm_bindgen::JsValue, origin: &str, last_event_id: &str, source: Option<&MessagePort>, ports: &::wasm_bindgen::JsValue, ); #[cfg(feature = "ServiceWorker")] # [wasm_bindgen (method , structural , js_class = "MessageEvent" , js_name = initMessageEvent)] #[doc = "The `initMessageEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/initMessageEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEvent`, `ServiceWorker`*"] pub fn init_message_event_with_bubbles_and_cancelable_and_data_and_origin_and_last_event_id_and_opt_service_worker_and_ports( this: &MessageEvent, type_: &str, bubbles: bool, cancelable: bool, data: &::wasm_bindgen::JsValue, origin: &str, last_event_id: &str, source: Option<&ServiceWorker>, ports: &::wasm_bindgen::JsValue, ); } web-sys-0.3.55/src/features/gen_MessageEventInit.rs000064400000000000000000000125400072674642500203570ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MessageEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MessageEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEventInit`*"] pub type MessageEventInit; } impl MessageEventInit { #[doc = "Construct a new `MessageEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `data` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEventInit`*"] pub fn data(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("data"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `lastEventId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEventInit`*"] pub fn last_event_id(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("lastEventId"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `origin` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEventInit`*"] pub fn origin(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("origin"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `ports` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEventInit`*"] pub fn ports(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("ports"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `source` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEventInit`*"] pub fn source(&mut self, val: Option<&::js_sys::Object>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("source"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for MessageEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_MessagePort.rs000064400000000000000000000104330072674642500173750ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = MessagePort , typescript_type = "MessagePort")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MessagePort` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessagePort`*"] pub type MessagePort; # [wasm_bindgen (structural , method , getter , js_class = "MessagePort" , js_name = onmessage)] #[doc = "Getter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessagePort`*"] pub fn onmessage(this: &MessagePort) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MessagePort" , js_name = onmessage)] #[doc = "Setter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessagePort`*"] pub fn set_onmessage(this: &MessagePort, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MessagePort" , js_name = onmessageerror)] #[doc = "Getter for the `onmessageerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort/onmessageerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessagePort`*"] pub fn onmessageerror(this: &MessagePort) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MessagePort" , js_name = onmessageerror)] #[doc = "Setter for the `onmessageerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort/onmessageerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessagePort`*"] pub fn set_onmessageerror(this: &MessagePort, value: Option<&::js_sys::Function>); # [wasm_bindgen (method , structural , js_class = "MessagePort" , js_name = close)] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessagePort`*"] pub fn close(this: &MessagePort); # [wasm_bindgen (catch , method , structural , js_class = "MessagePort" , js_name = postMessage)] #[doc = "The `postMessage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort/postMessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessagePort`*"] pub fn post_message( this: &MessagePort, message: &::wasm_bindgen::JsValue, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "MessagePort" , js_name = postMessage)] #[doc = "The `postMessage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort/postMessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessagePort`*"] pub fn post_message_with_transferable( this: &MessagePort, message: &::wasm_bindgen::JsValue, transferable: &::wasm_bindgen::JsValue, ) -> Result<(), JsValue>; # [wasm_bindgen (method , structural , js_class = "MessagePort" , js_name = start)] #[doc = "The `start()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort/start)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessagePort`*"] pub fn start(this: &MessagePort); } web-sys-0.3.55/src/features/gen_MidiAccess.rs000064400000000000000000000056600072674642500171560ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = MIDIAccess , typescript_type = "MIDIAccess")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MidiAccess` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIAccess)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiAccess`*"] pub type MidiAccess; #[cfg(feature = "MidiInputMap")] # [wasm_bindgen (structural , method , getter , js_class = "MIDIAccess" , js_name = inputs)] #[doc = "Getter for the `inputs` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIAccess/inputs)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiAccess`, `MidiInputMap`*"] pub fn inputs(this: &MidiAccess) -> MidiInputMap; #[cfg(feature = "MidiOutputMap")] # [wasm_bindgen (structural , method , getter , js_class = "MIDIAccess" , js_name = outputs)] #[doc = "Getter for the `outputs` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIAccess/outputs)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiAccess`, `MidiOutputMap`*"] pub fn outputs(this: &MidiAccess) -> MidiOutputMap; # [wasm_bindgen (structural , method , getter , js_class = "MIDIAccess" , js_name = onstatechange)] #[doc = "Getter for the `onstatechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIAccess/onstatechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiAccess`*"] pub fn onstatechange(this: &MidiAccess) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MIDIAccess" , js_name = onstatechange)] #[doc = "Setter for the `onstatechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIAccess/onstatechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiAccess`*"] pub fn set_onstatechange(this: &MidiAccess, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MIDIAccess" , js_name = sysexEnabled)] #[doc = "Getter for the `sysexEnabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIAccess/sysexEnabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiAccess`*"] pub fn sysex_enabled(this: &MidiAccess) -> bool; } web-sys-0.3.55/src/features/gen_MidiConnectionEvent.rs000064400000000000000000000044210072674642500210500ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = MIDIConnectionEvent , typescript_type = "MIDIConnectionEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MidiConnectionEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIConnectionEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiConnectionEvent`*"] pub type MidiConnectionEvent; #[cfg(feature = "MidiPort")] # [wasm_bindgen (structural , method , getter , js_class = "MIDIConnectionEvent" , js_name = port)] #[doc = "Getter for the `port` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIConnectionEvent/port)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiConnectionEvent`, `MidiPort`*"] pub fn port(this: &MidiConnectionEvent) -> Option; #[wasm_bindgen(catch, constructor, js_class = "MIDIConnectionEvent")] #[doc = "The `new MidiConnectionEvent(..)` constructor, creating a new instance of `MidiConnectionEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIConnectionEvent/MIDIConnectionEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiConnectionEvent`*"] pub fn new(type_: &str) -> Result; #[cfg(feature = "MidiConnectionEventInit")] #[wasm_bindgen(catch, constructor, js_class = "MIDIConnectionEvent")] #[doc = "The `new MidiConnectionEvent(..)` constructor, creating a new instance of `MidiConnectionEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIConnectionEvent/MIDIConnectionEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiConnectionEvent`, `MidiConnectionEventInit`*"] pub fn new_with_event_init_dict( type_: &str, event_init_dict: &MidiConnectionEventInit, ) -> Result; } web-sys-0.3.55/src/features/gen_MidiConnectionEventInit.rs000064400000000000000000000063700072674642500217010ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MIDIConnectionEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MidiConnectionEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiConnectionEventInit`*"] pub type MidiConnectionEventInit; } impl MidiConnectionEventInit { #[doc = "Construct a new `MidiConnectionEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiConnectionEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiConnectionEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiConnectionEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiConnectionEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "MidiPort")] #[doc = "Change the `port` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiConnectionEventInit`, `MidiPort`*"] pub fn port(&mut self, val: Option<&MidiPort>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("port"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for MidiConnectionEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_MidiInput.rs000064400000000000000000000030120072674642500170410ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = MidiPort , extends = EventTarget , extends = :: js_sys :: Object , js_name = MIDIInput , typescript_type = "MIDIInput")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MidiInput` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIInput)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiInput`*"] pub type MidiInput; # [wasm_bindgen (structural , method , getter , js_class = "MIDIInput" , js_name = onmidimessage)] #[doc = "Getter for the `onmidimessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIInput/onmidimessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiInput`*"] pub fn onmidimessage(this: &MidiInput) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MIDIInput" , js_name = onmidimessage)] #[doc = "Setter for the `onmidimessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIInput/onmidimessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiInput`*"] pub fn set_onmidimessage(this: &MidiInput, value: Option<&::js_sys::Function>); } web-sys-0.3.55/src/features/gen_MidiInputMap.rs000064400000000000000000000010470072674642500175050ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MIDIInputMap , typescript_type = "MIDIInputMap")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MidiInputMap` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIInputMap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiInputMap`*"] pub type MidiInputMap; } web-sys-0.3.55/src/features/gen_MidiMessageEvent.rs000064400000000000000000000042430072674642500203370ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = MIDIMessageEvent , typescript_type = "MIDIMessageEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MidiMessageEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIMessageEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiMessageEvent`*"] pub type MidiMessageEvent; # [wasm_bindgen (structural , catch , method , getter , js_class = "MIDIMessageEvent" , js_name = data)] #[doc = "Getter for the `data` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIMessageEvent/data)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiMessageEvent`*"] pub fn data(this: &MidiMessageEvent) -> Result, JsValue>; #[wasm_bindgen(catch, constructor, js_class = "MIDIMessageEvent")] #[doc = "The `new MidiMessageEvent(..)` constructor, creating a new instance of `MidiMessageEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIMessageEvent/MIDIMessageEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiMessageEvent`*"] pub fn new(type_: &str) -> Result; #[cfg(feature = "MidiMessageEventInit")] #[wasm_bindgen(catch, constructor, js_class = "MIDIMessageEvent")] #[doc = "The `new MidiMessageEvent(..)` constructor, creating a new instance of `MidiMessageEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIMessageEvent/MIDIMessageEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiMessageEvent`, `MidiMessageEventInit`*"] pub fn new_with_event_init_dict( type_: &str, event_init_dict: &MidiMessageEventInit, ) -> Result; } web-sys-0.3.55/src/features/gen_MidiMessageEventInit.rs000064400000000000000000000052030072674642500211600ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MIDIMessageEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MidiMessageEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiMessageEventInit`*"] pub type MidiMessageEventInit; } impl MidiMessageEventInit { #[doc = "Construct a new `MidiMessageEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiMessageEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiMessageEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiMessageEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiMessageEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for MidiMessageEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_MidiOptions.rs000064400000000000000000000036340072674642500174070ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MIDIOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MidiOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiOptions`*"] pub type MidiOptions; } impl MidiOptions { #[doc = "Construct a new `MidiOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `software` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiOptions`*"] pub fn software(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("software"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `sysex` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiOptions`*"] pub fn sysex(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("sysex"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for MidiOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_MidiOutput.rs000064400000000000000000000036130072674642500172510ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = MidiPort , extends = EventTarget , extends = :: js_sys :: Object , js_name = MIDIOutput , typescript_type = "MIDIOutput")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MidiOutput` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIOutput)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiOutput`*"] pub type MidiOutput; # [wasm_bindgen (method , structural , js_class = "MIDIOutput" , js_name = clear)] #[doc = "The `clear()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIOutput/clear)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiOutput`*"] pub fn clear(this: &MidiOutput); # [wasm_bindgen (catch , method , structural , js_class = "MIDIOutput" , js_name = send)] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIOutput/send)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiOutput`*"] pub fn send(this: &MidiOutput, data: &::wasm_bindgen::JsValue) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "MIDIOutput" , js_name = send)] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIOutput/send)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiOutput`*"] pub fn send_with_timestamp( this: &MidiOutput, data: &::wasm_bindgen::JsValue, timestamp: f64, ) -> Result<(), JsValue>; } web-sys-0.3.55/src/features/gen_MidiOutputMap.rs000064400000000000000000000010550072674642500177050ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MIDIOutputMap , typescript_type = "MIDIOutputMap")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MidiOutputMap` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIOutputMap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiOutputMap`*"] pub type MidiOutputMap; } web-sys-0.3.55/src/features/gen_MidiPort.rs000064400000000000000000000126740072674642500167040ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = MIDIPort , typescript_type = "MIDIPort")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MidiPort` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIPort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiPort`*"] pub type MidiPort; # [wasm_bindgen (structural , method , getter , js_class = "MIDIPort" , js_name = id)] #[doc = "Getter for the `id` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIPort/id)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiPort`*"] pub fn id(this: &MidiPort) -> String; # [wasm_bindgen (structural , method , getter , js_class = "MIDIPort" , js_name = manufacturer)] #[doc = "Getter for the `manufacturer` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIPort/manufacturer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiPort`*"] pub fn manufacturer(this: &MidiPort) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "MIDIPort" , js_name = name)] #[doc = "Getter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIPort/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiPort`*"] pub fn name(this: &MidiPort) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "MIDIPort" , js_name = version)] #[doc = "Getter for the `version` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIPort/version)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiPort`*"] pub fn version(this: &MidiPort) -> Option; #[cfg(feature = "MidiPortType")] # [wasm_bindgen (structural , method , getter , js_class = "MIDIPort" , js_name = type)] #[doc = "Getter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIPort/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiPort`, `MidiPortType`*"] pub fn type_(this: &MidiPort) -> MidiPortType; #[cfg(feature = "MidiPortDeviceState")] # [wasm_bindgen (structural , method , getter , js_class = "MIDIPort" , js_name = state)] #[doc = "Getter for the `state` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIPort/state)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiPort`, `MidiPortDeviceState`*"] pub fn state(this: &MidiPort) -> MidiPortDeviceState; #[cfg(feature = "MidiPortConnectionState")] # [wasm_bindgen (structural , method , getter , js_class = "MIDIPort" , js_name = connection)] #[doc = "Getter for the `connection` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIPort/connection)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiPort`, `MidiPortConnectionState`*"] pub fn connection(this: &MidiPort) -> MidiPortConnectionState; # [wasm_bindgen (structural , method , getter , js_class = "MIDIPort" , js_name = onstatechange)] #[doc = "Getter for the `onstatechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIPort/onstatechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiPort`*"] pub fn onstatechange(this: &MidiPort) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MIDIPort" , js_name = onstatechange)] #[doc = "Setter for the `onstatechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIPort/onstatechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiPort`*"] pub fn set_onstatechange(this: &MidiPort, value: Option<&::js_sys::Function>); # [wasm_bindgen (method , structural , js_class = "MIDIPort" , js_name = close)] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIPort/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiPort`*"] pub fn close(this: &MidiPort) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "MIDIPort" , js_name = open)] #[doc = "The `open()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIPort/open)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiPort`*"] pub fn open(this: &MidiPort) -> ::js_sys::Promise; } web-sys-0.3.55/src/features/gen_MidiPortConnectionState.rs000064400000000000000000000005770072674642500217240ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `MidiPortConnectionState` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiPortConnectionState`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum MidiPortConnectionState { Open = "open", Closed = "closed", Pending = "pending", } web-sys-0.3.55/src/features/gen_MidiPortDeviceState.rs000064400000000000000000000005600072674642500210140ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `MidiPortDeviceState` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiPortDeviceState`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum MidiPortDeviceState { Disconnected = "disconnected", Connected = "connected", } web-sys-0.3.55/src/features/gen_MidiPortType.rs000064400000000000000000000005070072674642500175360ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `MidiPortType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiPortType`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum MidiPortType { Input = "input", Output = "output", } web-sys-0.3.55/src/features/gen_MimeType.rs000064400000000000000000000044360072674642500167030ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MimeType , typescript_type = "MimeType")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MimeType` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MimeType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MimeType`*"] pub type MimeType; # [wasm_bindgen (structural , method , getter , js_class = "MimeType" , js_name = description)] #[doc = "Getter for the `description` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MimeType/description)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MimeType`*"] pub fn description(this: &MimeType) -> String; #[cfg(feature = "Plugin")] # [wasm_bindgen (structural , method , getter , js_class = "MimeType" , js_name = enabledPlugin)] #[doc = "Getter for the `enabledPlugin` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MimeType/enabledPlugin)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MimeType`, `Plugin`*"] pub fn enabled_plugin(this: &MimeType) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "MimeType" , js_name = suffixes)] #[doc = "Getter for the `suffixes` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MimeType/suffixes)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MimeType`*"] pub fn suffixes(this: &MimeType) -> String; # [wasm_bindgen (structural , method , getter , js_class = "MimeType" , js_name = type)] #[doc = "Getter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MimeType/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MimeType`*"] pub fn type_(this: &MimeType) -> String; } web-sys-0.3.55/src/features/gen_MimeTypeArray.rs000064400000000000000000000052710072674642500177000ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MimeTypeArray , typescript_type = "MimeTypeArray")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MimeTypeArray` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MimeTypeArray)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MimeTypeArray`*"] pub type MimeTypeArray; # [wasm_bindgen (structural , method , getter , js_class = "MimeTypeArray" , js_name = length)] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MimeTypeArray/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MimeTypeArray`*"] pub fn length(this: &MimeTypeArray) -> u32; #[cfg(feature = "MimeType")] # [wasm_bindgen (method , structural , js_class = "MimeTypeArray" , js_name = item)] #[doc = "The `item()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MimeTypeArray/item)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MimeType`, `MimeTypeArray`*"] pub fn item(this: &MimeTypeArray, index: u32) -> Option; #[cfg(feature = "MimeType")] # [wasm_bindgen (method , structural , js_class = "MimeTypeArray" , js_name = namedItem)] #[doc = "The `namedItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MimeTypeArray/namedItem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MimeType`, `MimeTypeArray`*"] pub fn named_item(this: &MimeTypeArray, name: &str) -> Option; #[cfg(feature = "MimeType")] #[wasm_bindgen(method, structural, js_class = "MimeTypeArray", indexing_getter)] #[doc = "Indexing getter."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MimeType`, `MimeTypeArray`*"] pub fn get_with_index(this: &MimeTypeArray, index: u32) -> Option; #[cfg(feature = "MimeType")] #[wasm_bindgen(method, structural, js_class = "MimeTypeArray", indexing_getter)] #[doc = "Indexing getter."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MimeType`, `MimeTypeArray`*"] pub fn get_with_name(this: &MimeTypeArray, name: &str) -> Option; } web-sys-0.3.55/src/features/gen_MouseEvent.rs000064400000000000000000000534760072674642500172540ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = UiEvent , extends = Event , extends = :: js_sys :: Object , js_name = MouseEvent , typescript_type = "MouseEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MouseEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] pub type MouseEvent; # [wasm_bindgen (structural , method , getter , js_class = "MouseEvent" , js_name = screenX)] #[doc = "Getter for the `screenX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/screenX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] pub fn screen_x(this: &MouseEvent) -> i32; # [wasm_bindgen (structural , method , getter , js_class = "MouseEvent" , js_name = screenY)] #[doc = "Getter for the `screenY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/screenY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] pub fn screen_y(this: &MouseEvent) -> i32; # [wasm_bindgen (structural , method , getter , js_class = "MouseEvent" , js_name = clientX)] #[doc = "Getter for the `clientX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/clientX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] pub fn client_x(this: &MouseEvent) -> i32; # [wasm_bindgen (structural , method , getter , js_class = "MouseEvent" , js_name = clientY)] #[doc = "Getter for the `clientY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/clientY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] pub fn client_y(this: &MouseEvent) -> i32; # [wasm_bindgen (structural , method , getter , js_class = "MouseEvent" , js_name = x)] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] pub fn x(this: &MouseEvent) -> i32; # [wasm_bindgen (structural , method , getter , js_class = "MouseEvent" , js_name = y)] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] pub fn y(this: &MouseEvent) -> i32; # [wasm_bindgen (structural , method , getter , js_class = "MouseEvent" , js_name = offsetX)] #[doc = "Getter for the `offsetX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/offsetX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] pub fn offset_x(this: &MouseEvent) -> i32; # [wasm_bindgen (structural , method , getter , js_class = "MouseEvent" , js_name = offsetY)] #[doc = "Getter for the `offsetY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/offsetY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] pub fn offset_y(this: &MouseEvent) -> i32; # [wasm_bindgen (structural , method , getter , js_class = "MouseEvent" , js_name = ctrlKey)] #[doc = "Getter for the `ctrlKey` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/ctrlKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] pub fn ctrl_key(this: &MouseEvent) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "MouseEvent" , js_name = shiftKey)] #[doc = "Getter for the `shiftKey` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/shiftKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] pub fn shift_key(this: &MouseEvent) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "MouseEvent" , js_name = altKey)] #[doc = "Getter for the `altKey` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/altKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] pub fn alt_key(this: &MouseEvent) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "MouseEvent" , js_name = metaKey)] #[doc = "Getter for the `metaKey` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/metaKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] pub fn meta_key(this: &MouseEvent) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "MouseEvent" , js_name = button)] #[doc = "Getter for the `button` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] pub fn button(this: &MouseEvent) -> i16; # [wasm_bindgen (structural , method , getter , js_class = "MouseEvent" , js_name = buttons)] #[doc = "Getter for the `buttons` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/buttons)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] pub fn buttons(this: &MouseEvent) -> u16; #[cfg(feature = "EventTarget")] # [wasm_bindgen (structural , method , getter , js_class = "MouseEvent" , js_name = relatedTarget)] #[doc = "Getter for the `relatedTarget` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/relatedTarget)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventTarget`, `MouseEvent`*"] pub fn related_target(this: &MouseEvent) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "MouseEvent" , js_name = region)] #[doc = "Getter for the `region` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/region)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] pub fn region(this: &MouseEvent) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "MouseEvent" , js_name = movementX)] #[doc = "Getter for the `movementX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/movementX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] pub fn movement_x(this: &MouseEvent) -> i32; # [wasm_bindgen (structural , method , getter , js_class = "MouseEvent" , js_name = movementY)] #[doc = "Getter for the `movementY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/movementY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] pub fn movement_y(this: &MouseEvent) -> i32; #[wasm_bindgen(catch, constructor, js_class = "MouseEvent")] #[doc = "The `new MouseEvent(..)` constructor, creating a new instance of `MouseEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/MouseEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] pub fn new(type_arg: &str) -> Result; #[cfg(feature = "MouseEventInit")] #[wasm_bindgen(catch, constructor, js_class = "MouseEvent")] #[doc = "The `new MouseEvent(..)` constructor, creating a new instance of `MouseEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/MouseEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEvent`, `MouseEventInit`*"] pub fn new_with_mouse_event_init_dict( type_arg: &str, mouse_event_init_dict: &MouseEventInit, ) -> Result; # [wasm_bindgen (method , structural , js_class = "MouseEvent" , js_name = getModifierState)] #[doc = "The `getModifierState()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/getModifierState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] pub fn get_modifier_state(this: &MouseEvent, key_arg: &str) -> bool; # [wasm_bindgen (method , structural , js_class = "MouseEvent" , js_name = initMouseEvent)] #[doc = "The `initMouseEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] pub fn init_mouse_event(this: &MouseEvent, type_arg: &str); # [wasm_bindgen (method , structural , js_class = "MouseEvent" , js_name = initMouseEvent)] #[doc = "The `initMouseEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] pub fn init_mouse_event_with_can_bubble_arg( this: &MouseEvent, type_arg: &str, can_bubble_arg: bool, ); # [wasm_bindgen (method , structural , js_class = "MouseEvent" , js_name = initMouseEvent)] #[doc = "The `initMouseEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] pub fn init_mouse_event_with_can_bubble_arg_and_cancelable_arg( this: &MouseEvent, type_arg: &str, can_bubble_arg: bool, cancelable_arg: bool, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "MouseEvent" , js_name = initMouseEvent)] #[doc = "The `initMouseEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEvent`, `Window`*"] pub fn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg( this: &MouseEvent, type_arg: &str, can_bubble_arg: bool, cancelable_arg: bool, view_arg: Option<&Window>, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "MouseEvent" , js_name = initMouseEvent)] #[doc = "The `initMouseEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEvent`, `Window`*"] pub fn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_detail_arg( this: &MouseEvent, type_arg: &str, can_bubble_arg: bool, cancelable_arg: bool, view_arg: Option<&Window>, detail_arg: i32, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "MouseEvent" , js_name = initMouseEvent)] #[doc = "The `initMouseEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEvent`, `Window`*"] pub fn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_detail_arg_and_screen_x_arg( this: &MouseEvent, type_arg: &str, can_bubble_arg: bool, cancelable_arg: bool, view_arg: Option<&Window>, detail_arg: i32, screen_x_arg: i32, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "MouseEvent" , js_name = initMouseEvent)] #[doc = "The `initMouseEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEvent`, `Window`*"] pub fn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_detail_arg_and_screen_x_arg_and_screen_y_arg( this: &MouseEvent, type_arg: &str, can_bubble_arg: bool, cancelable_arg: bool, view_arg: Option<&Window>, detail_arg: i32, screen_x_arg: i32, screen_y_arg: i32, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "MouseEvent" , js_name = initMouseEvent)] #[doc = "The `initMouseEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEvent`, `Window`*"] pub fn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_detail_arg_and_screen_x_arg_and_screen_y_arg_and_client_x_arg( this: &MouseEvent, type_arg: &str, can_bubble_arg: bool, cancelable_arg: bool, view_arg: Option<&Window>, detail_arg: i32, screen_x_arg: i32, screen_y_arg: i32, client_x_arg: i32, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "MouseEvent" , js_name = initMouseEvent)] #[doc = "The `initMouseEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEvent`, `Window`*"] pub fn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_detail_arg_and_screen_x_arg_and_screen_y_arg_and_client_x_arg_and_client_y_arg( this: &MouseEvent, type_arg: &str, can_bubble_arg: bool, cancelable_arg: bool, view_arg: Option<&Window>, detail_arg: i32, screen_x_arg: i32, screen_y_arg: i32, client_x_arg: i32, client_y_arg: i32, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "MouseEvent" , js_name = initMouseEvent)] #[doc = "The `initMouseEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEvent`, `Window`*"] pub fn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_detail_arg_and_screen_x_arg_and_screen_y_arg_and_client_x_arg_and_client_y_arg_and_ctrl_key_arg( this: &MouseEvent, type_arg: &str, can_bubble_arg: bool, cancelable_arg: bool, view_arg: Option<&Window>, detail_arg: i32, screen_x_arg: i32, screen_y_arg: i32, client_x_arg: i32, client_y_arg: i32, ctrl_key_arg: bool, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "MouseEvent" , js_name = initMouseEvent)] #[doc = "The `initMouseEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEvent`, `Window`*"] pub fn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_detail_arg_and_screen_x_arg_and_screen_y_arg_and_client_x_arg_and_client_y_arg_and_ctrl_key_arg_and_alt_key_arg( this: &MouseEvent, type_arg: &str, can_bubble_arg: bool, cancelable_arg: bool, view_arg: Option<&Window>, detail_arg: i32, screen_x_arg: i32, screen_y_arg: i32, client_x_arg: i32, client_y_arg: i32, ctrl_key_arg: bool, alt_key_arg: bool, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "MouseEvent" , js_name = initMouseEvent)] #[doc = "The `initMouseEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEvent`, `Window`*"] pub fn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_detail_arg_and_screen_x_arg_and_screen_y_arg_and_client_x_arg_and_client_y_arg_and_ctrl_key_arg_and_alt_key_arg_and_shift_key_arg( this: &MouseEvent, type_arg: &str, can_bubble_arg: bool, cancelable_arg: bool, view_arg: Option<&Window>, detail_arg: i32, screen_x_arg: i32, screen_y_arg: i32, client_x_arg: i32, client_y_arg: i32, ctrl_key_arg: bool, alt_key_arg: bool, shift_key_arg: bool, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "MouseEvent" , js_name = initMouseEvent)] #[doc = "The `initMouseEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEvent`, `Window`*"] pub fn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_detail_arg_and_screen_x_arg_and_screen_y_arg_and_client_x_arg_and_client_y_arg_and_ctrl_key_arg_and_alt_key_arg_and_shift_key_arg_and_meta_key_arg( this: &MouseEvent, type_arg: &str, can_bubble_arg: bool, cancelable_arg: bool, view_arg: Option<&Window>, detail_arg: i32, screen_x_arg: i32, screen_y_arg: i32, client_x_arg: i32, client_y_arg: i32, ctrl_key_arg: bool, alt_key_arg: bool, shift_key_arg: bool, meta_key_arg: bool, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "MouseEvent" , js_name = initMouseEvent)] #[doc = "The `initMouseEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEvent`, `Window`*"] pub fn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_detail_arg_and_screen_x_arg_and_screen_y_arg_and_client_x_arg_and_client_y_arg_and_ctrl_key_arg_and_alt_key_arg_and_shift_key_arg_and_meta_key_arg_and_button_arg( this: &MouseEvent, type_arg: &str, can_bubble_arg: bool, cancelable_arg: bool, view_arg: Option<&Window>, detail_arg: i32, screen_x_arg: i32, screen_y_arg: i32, client_x_arg: i32, client_y_arg: i32, ctrl_key_arg: bool, alt_key_arg: bool, shift_key_arg: bool, meta_key_arg: bool, button_arg: i16, ); #[cfg(all(feature = "EventTarget", feature = "Window",))] # [wasm_bindgen (method , structural , js_class = "MouseEvent" , js_name = initMouseEvent)] #[doc = "The `initMouseEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventTarget`, `MouseEvent`, `Window`*"] pub fn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_detail_arg_and_screen_x_arg_and_screen_y_arg_and_client_x_arg_and_client_y_arg_and_ctrl_key_arg_and_alt_key_arg_and_shift_key_arg_and_meta_key_arg_and_button_arg_and_related_target_arg( this: &MouseEvent, type_arg: &str, can_bubble_arg: bool, cancelable_arg: bool, view_arg: Option<&Window>, detail_arg: i32, screen_x_arg: i32, screen_y_arg: i32, client_x_arg: i32, client_y_arg: i32, ctrl_key_arg: bool, alt_key_arg: bool, shift_key_arg: bool, meta_key_arg: bool, button_arg: i16, related_target_arg: Option<&EventTarget>, ); } web-sys-0.3.55/src/features/gen_MouseEventInit.rs000064400000000000000000000407440072674642500200720ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MouseEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MouseEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] pub type MouseEventInit; } impl MouseEventInit { #[doc = "Construct a new `MouseEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `detail` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] pub fn detail(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("detail"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "Window")] #[doc = "Change the `view` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`, `Window`*"] pub fn view(&mut self, val: Option<&Window>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("view"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `altKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] pub fn alt_key(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("altKey"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `ctrlKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] pub fn ctrl_key(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("ctrlKey"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `metaKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] pub fn meta_key(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("metaKey"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierAltGraph` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] pub fn modifier_alt_graph(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierAltGraph"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierCapsLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] pub fn modifier_caps_lock(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierCapsLock"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierFn` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] pub fn modifier_fn(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierFn"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierFnLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] pub fn modifier_fn_lock(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierFnLock"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierNumLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] pub fn modifier_num_lock(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierNumLock"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierOS` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] pub fn modifier_os(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierOS"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierScrollLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] pub fn modifier_scroll_lock(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierScrollLock"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierSymbol` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] pub fn modifier_symbol(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierSymbol"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierSymbolLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] pub fn modifier_symbol_lock(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierSymbolLock"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `shiftKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] pub fn shift_key(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("shiftKey"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `button` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] pub fn button(&mut self, val: i16) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("button"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `buttons` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] pub fn buttons(&mut self, val: u16) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("buttons"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `clientX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] pub fn client_x(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("clientX"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `clientY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] pub fn client_y(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("clientY"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `movementX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] pub fn movement_x(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("movementX"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `movementY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] pub fn movement_y(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("movementY"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "EventTarget")] #[doc = "Change the `relatedTarget` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventTarget`, `MouseEventInit`*"] pub fn related_target(&mut self, val: Option<&EventTarget>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("relatedTarget"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `screenX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] pub fn screen_x(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("screenX"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `screenY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] pub fn screen_y(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("screenY"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for MouseEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_MouseScrollEvent.rs000064400000000000000000000350600072674642500204200ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = MouseEvent , extends = UiEvent , extends = Event , extends = :: js_sys :: Object , js_name = MouseScrollEvent , typescript_type = "MouseScrollEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MouseScrollEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`*"] pub type MouseScrollEvent; # [wasm_bindgen (structural , method , getter , js_class = "MouseScrollEvent" , js_name = axis)] #[doc = "Getter for the `axis` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/axis)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`*"] pub fn axis(this: &MouseScrollEvent) -> i32; # [wasm_bindgen (method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent)] #[doc = "The `initMouseScrollEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`*"] pub fn init_mouse_scroll_event(this: &MouseScrollEvent, type_: &str); # [wasm_bindgen (method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent)] #[doc = "The `initMouseScrollEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`*"] pub fn init_mouse_scroll_event_with_can_bubble( this: &MouseScrollEvent, type_: &str, can_bubble: bool, ); # [wasm_bindgen (method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent)] #[doc = "The `initMouseScrollEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`*"] pub fn init_mouse_scroll_event_with_can_bubble_and_cancelable( this: &MouseScrollEvent, type_: &str, can_bubble: bool, cancelable: bool, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent)] #[doc = "The `initMouseScrollEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`, `Window`*"] pub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view( this: &MouseScrollEvent, type_: &str, can_bubble: bool, cancelable: bool, view: Option<&Window>, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent)] #[doc = "The `initMouseScrollEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`, `Window`*"] pub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view_and_detail( this: &MouseScrollEvent, type_: &str, can_bubble: bool, cancelable: bool, view: Option<&Window>, detail: i32, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent)] #[doc = "The `initMouseScrollEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`, `Window`*"] pub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view_and_detail_and_screen_x( this: &MouseScrollEvent, type_: &str, can_bubble: bool, cancelable: bool, view: Option<&Window>, detail: i32, screen_x: i32, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent)] #[doc = "The `initMouseScrollEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`, `Window`*"] pub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view_and_detail_and_screen_x_and_screen_y( this: &MouseScrollEvent, type_: &str, can_bubble: bool, cancelable: bool, view: Option<&Window>, detail: i32, screen_x: i32, screen_y: i32, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent)] #[doc = "The `initMouseScrollEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`, `Window`*"] pub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view_and_detail_and_screen_x_and_screen_y_and_client_x( this: &MouseScrollEvent, type_: &str, can_bubble: bool, cancelable: bool, view: Option<&Window>, detail: i32, screen_x: i32, screen_y: i32, client_x: i32, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent)] #[doc = "The `initMouseScrollEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`, `Window`*"] pub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view_and_detail_and_screen_x_and_screen_y_and_client_x_and_client_y( this: &MouseScrollEvent, type_: &str, can_bubble: bool, cancelable: bool, view: Option<&Window>, detail: i32, screen_x: i32, screen_y: i32, client_x: i32, client_y: i32, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent)] #[doc = "The `initMouseScrollEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`, `Window`*"] pub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view_and_detail_and_screen_x_and_screen_y_and_client_x_and_client_y_and_ctrl_key( this: &MouseScrollEvent, type_: &str, can_bubble: bool, cancelable: bool, view: Option<&Window>, detail: i32, screen_x: i32, screen_y: i32, client_x: i32, client_y: i32, ctrl_key: bool, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent)] #[doc = "The `initMouseScrollEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`, `Window`*"] pub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view_and_detail_and_screen_x_and_screen_y_and_client_x_and_client_y_and_ctrl_key_and_alt_key( this: &MouseScrollEvent, type_: &str, can_bubble: bool, cancelable: bool, view: Option<&Window>, detail: i32, screen_x: i32, screen_y: i32, client_x: i32, client_y: i32, ctrl_key: bool, alt_key: bool, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent)] #[doc = "The `initMouseScrollEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`, `Window`*"] pub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view_and_detail_and_screen_x_and_screen_y_and_client_x_and_client_y_and_ctrl_key_and_alt_key_and_shift_key( this: &MouseScrollEvent, type_: &str, can_bubble: bool, cancelable: bool, view: Option<&Window>, detail: i32, screen_x: i32, screen_y: i32, client_x: i32, client_y: i32, ctrl_key: bool, alt_key: bool, shift_key: bool, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent)] #[doc = "The `initMouseScrollEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`, `Window`*"] pub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view_and_detail_and_screen_x_and_screen_y_and_client_x_and_client_y_and_ctrl_key_and_alt_key_and_shift_key_and_meta_key( this: &MouseScrollEvent, type_: &str, can_bubble: bool, cancelable: bool, view: Option<&Window>, detail: i32, screen_x: i32, screen_y: i32, client_x: i32, client_y: i32, ctrl_key: bool, alt_key: bool, shift_key: bool, meta_key: bool, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent)] #[doc = "The `initMouseScrollEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`, `Window`*"] pub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view_and_detail_and_screen_x_and_screen_y_and_client_x_and_client_y_and_ctrl_key_and_alt_key_and_shift_key_and_meta_key_and_button( this: &MouseScrollEvent, type_: &str, can_bubble: bool, cancelable: bool, view: Option<&Window>, detail: i32, screen_x: i32, screen_y: i32, client_x: i32, client_y: i32, ctrl_key: bool, alt_key: bool, shift_key: bool, meta_key: bool, button: i16, ); #[cfg(all(feature = "EventTarget", feature = "Window",))] # [wasm_bindgen (method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent)] #[doc = "The `initMouseScrollEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventTarget`, `MouseScrollEvent`, `Window`*"] pub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view_and_detail_and_screen_x_and_screen_y_and_client_x_and_client_y_and_ctrl_key_and_alt_key_and_shift_key_and_meta_key_and_button_and_related_target( this: &MouseScrollEvent, type_: &str, can_bubble: bool, cancelable: bool, view: Option<&Window>, detail: i32, screen_x: i32, screen_y: i32, client_x: i32, client_y: i32, ctrl_key: bool, alt_key: bool, shift_key: bool, meta_key: bool, button: i16, related_target: Option<&EventTarget>, ); #[cfg(all(feature = "EventTarget", feature = "Window",))] # [wasm_bindgen (method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent)] #[doc = "The `initMouseScrollEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventTarget`, `MouseScrollEvent`, `Window`*"] pub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view_and_detail_and_screen_x_and_screen_y_and_client_x_and_client_y_and_ctrl_key_and_alt_key_and_shift_key_and_meta_key_and_button_and_related_target_and_axis( this: &MouseScrollEvent, type_: &str, can_bubble: bool, cancelable: bool, view: Option<&Window>, detail: i32, screen_x: i32, screen_y: i32, client_x: i32, client_y: i32, ctrl_key: bool, alt_key: bool, shift_key: bool, meta_key: bool, button: i16, related_target: Option<&EventTarget>, axis: i32, ); } impl MouseScrollEvent { #[doc = "The `MouseScrollEvent.HORIZONTAL_AXIS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`*"] pub const HORIZONTAL_AXIS: i32 = 1u64 as i32; #[doc = "The `MouseScrollEvent.VERTICAL_AXIS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`*"] pub const VERTICAL_AXIS: i32 = 2u64 as i32; } web-sys-0.3.55/src/features/gen_MozDebug.rs000064400000000000000000000032320072674642500166570ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = MOZ_debug , typescript_type = "MOZ_debug")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MozDebug` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MOZ_debug)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MozDebug`*"] pub type MozDebug; # [wasm_bindgen (catch , method , structural , js_class = "MOZ_debug" , js_name = getParameter)] #[doc = "The `getParameter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MOZ_debug/getParameter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MozDebug`*"] pub fn get_parameter(this: &MozDebug, pname: u32) -> Result<::wasm_bindgen::JsValue, JsValue>; } impl MozDebug { #[doc = "The `MOZ_debug.EXTENSIONS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MozDebug`*"] pub const EXTENSIONS: u32 = 7939u64 as u32; #[doc = "The `MOZ_debug.WSI_INFO` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MozDebug`*"] pub const WSI_INFO: u32 = 65536u64 as u32; #[doc = "The `MOZ_debug.UNPACK_REQUIRE_FASTPATH` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MozDebug`*"] pub const UNPACK_REQUIRE_FASTPATH: u32 = 65537u64 as u32; } web-sys-0.3.55/src/features/gen_MutationEvent.rs000064400000000000000000000215760072674642500177600ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = MutationEvent , typescript_type = "MutationEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MutationEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationEvent`*"] pub type MutationEvent; #[cfg(feature = "Node")] # [wasm_bindgen (structural , method , getter , js_class = "MutationEvent" , js_name = relatedNode)] #[doc = "Getter for the `relatedNode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationEvent/relatedNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationEvent`, `Node`*"] pub fn related_node(this: &MutationEvent) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "MutationEvent" , js_name = prevValue)] #[doc = "Getter for the `prevValue` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationEvent/prevValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationEvent`*"] pub fn prev_value(this: &MutationEvent) -> String; # [wasm_bindgen (structural , method , getter , js_class = "MutationEvent" , js_name = newValue)] #[doc = "Getter for the `newValue` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationEvent/newValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationEvent`*"] pub fn new_value(this: &MutationEvent) -> String; # [wasm_bindgen (structural , method , getter , js_class = "MutationEvent" , js_name = attrName)] #[doc = "Getter for the `attrName` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationEvent/attrName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationEvent`*"] pub fn attr_name(this: &MutationEvent) -> String; # [wasm_bindgen (structural , method , getter , js_class = "MutationEvent" , js_name = attrChange)] #[doc = "Getter for the `attrChange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationEvent/attrChange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationEvent`*"] pub fn attr_change(this: &MutationEvent) -> u16; # [wasm_bindgen (catch , method , structural , js_class = "MutationEvent" , js_name = initMutationEvent)] #[doc = "The `initMutationEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationEvent/initMutationEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationEvent`*"] pub fn init_mutation_event(this: &MutationEvent, type_: &str) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "MutationEvent" , js_name = initMutationEvent)] #[doc = "The `initMutationEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationEvent/initMutationEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationEvent`*"] pub fn init_mutation_event_with_can_bubble( this: &MutationEvent, type_: &str, can_bubble: bool, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "MutationEvent" , js_name = initMutationEvent)] #[doc = "The `initMutationEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationEvent/initMutationEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationEvent`*"] pub fn init_mutation_event_with_can_bubble_and_cancelable( this: &MutationEvent, type_: &str, can_bubble: bool, cancelable: bool, ) -> Result<(), JsValue>; #[cfg(feature = "Node")] # [wasm_bindgen (catch , method , structural , js_class = "MutationEvent" , js_name = initMutationEvent)] #[doc = "The `initMutationEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationEvent/initMutationEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationEvent`, `Node`*"] pub fn init_mutation_event_with_can_bubble_and_cancelable_and_related_node( this: &MutationEvent, type_: &str, can_bubble: bool, cancelable: bool, related_node: Option<&Node>, ) -> Result<(), JsValue>; #[cfg(feature = "Node")] # [wasm_bindgen (catch , method , structural , js_class = "MutationEvent" , js_name = initMutationEvent)] #[doc = "The `initMutationEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationEvent/initMutationEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationEvent`, `Node`*"] pub fn init_mutation_event_with_can_bubble_and_cancelable_and_related_node_and_prev_value( this: &MutationEvent, type_: &str, can_bubble: bool, cancelable: bool, related_node: Option<&Node>, prev_value: &str, ) -> Result<(), JsValue>; #[cfg(feature = "Node")] # [wasm_bindgen (catch , method , structural , js_class = "MutationEvent" , js_name = initMutationEvent)] #[doc = "The `initMutationEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationEvent/initMutationEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationEvent`, `Node`*"] pub fn init_mutation_event_with_can_bubble_and_cancelable_and_related_node_and_prev_value_and_new_value( this: &MutationEvent, type_: &str, can_bubble: bool, cancelable: bool, related_node: Option<&Node>, prev_value: &str, new_value: &str, ) -> Result<(), JsValue>; #[cfg(feature = "Node")] # [wasm_bindgen (catch , method , structural , js_class = "MutationEvent" , js_name = initMutationEvent)] #[doc = "The `initMutationEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationEvent/initMutationEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationEvent`, `Node`*"] pub fn init_mutation_event_with_can_bubble_and_cancelable_and_related_node_and_prev_value_and_new_value_and_attr_name( this: &MutationEvent, type_: &str, can_bubble: bool, cancelable: bool, related_node: Option<&Node>, prev_value: &str, new_value: &str, attr_name: &str, ) -> Result<(), JsValue>; #[cfg(feature = "Node")] # [wasm_bindgen (catch , method , structural , js_class = "MutationEvent" , js_name = initMutationEvent)] #[doc = "The `initMutationEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationEvent/initMutationEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationEvent`, `Node`*"] pub fn init_mutation_event_with_can_bubble_and_cancelable_and_related_node_and_prev_value_and_new_value_and_attr_name_and_attr_change( this: &MutationEvent, type_: &str, can_bubble: bool, cancelable: bool, related_node: Option<&Node>, prev_value: &str, new_value: &str, attr_name: &str, attr_change: u16, ) -> Result<(), JsValue>; } impl MutationEvent { #[doc = "The `MutationEvent.MODIFICATION` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationEvent`*"] pub const MODIFICATION: u16 = 1u64 as u16; #[doc = "The `MutationEvent.ADDITION` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationEvent`*"] pub const ADDITION: u16 = 2u64 as u16; #[doc = "The `MutationEvent.REMOVAL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationEvent`*"] pub const REMOVAL: u16 = 3u64 as u16; } web-sys-0.3.55/src/features/gen_MutationObserver.rs000064400000000000000000000060760072674642500204640ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MutationObserver , typescript_type = "MutationObserver")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MutationObserver` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObserver`*"] pub type MutationObserver; #[wasm_bindgen(catch, constructor, js_class = "MutationObserver")] #[doc = "The `new MutationObserver(..)` constructor, creating a new instance of `MutationObserver`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver/MutationObserver)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObserver`*"] pub fn new(mutation_callback: &::js_sys::Function) -> Result; # [wasm_bindgen (method , structural , js_class = "MutationObserver" , js_name = disconnect)] #[doc = "The `disconnect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver/disconnect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObserver`*"] pub fn disconnect(this: &MutationObserver); #[cfg(feature = "Node")] # [wasm_bindgen (catch , method , structural , js_class = "MutationObserver" , js_name = observe)] #[doc = "The `observe()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver/observe)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObserver`, `Node`*"] pub fn observe(this: &MutationObserver, target: &Node) -> Result<(), JsValue>; #[cfg(all(feature = "MutationObserverInit", feature = "Node",))] # [wasm_bindgen (catch , method , structural , js_class = "MutationObserver" , js_name = observe)] #[doc = "The `observe()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver/observe)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObserver`, `MutationObserverInit`, `Node`*"] pub fn observe_with_options( this: &MutationObserver, target: &Node, options: &MutationObserverInit, ) -> Result<(), JsValue>; # [wasm_bindgen (method , structural , js_class = "MutationObserver" , js_name = takeRecords)] #[doc = "The `takeRecords()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver/takeRecords)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObserver`*"] pub fn take_records(this: &MutationObserver) -> ::js_sys::Array; } web-sys-0.3.55/src/features/gen_MutationObserverInit.rs000064400000000000000000000144550072674642500213100ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MutationObserverInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MutationObserverInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObserverInit`*"] pub type MutationObserverInit; } impl MutationObserverInit { #[doc = "Construct a new `MutationObserverInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObserverInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `animations` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObserverInit`*"] pub fn animations(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("animations"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `attributeFilter` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObserverInit`*"] pub fn attribute_filter(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("attributeFilter"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `attributeOldValue` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObserverInit`*"] pub fn attribute_old_value(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("attributeOldValue"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `attributes` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObserverInit`*"] pub fn attributes(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("attributes"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `characterData` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObserverInit`*"] pub fn character_data(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("characterData"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `characterDataOldValue` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObserverInit`*"] pub fn character_data_old_value(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("characterDataOldValue"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `childList` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObserverInit`*"] pub fn child_list(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("childList"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `nativeAnonymousChildList` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObserverInit`*"] pub fn native_anonymous_child_list(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("nativeAnonymousChildList"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `subtree` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObserverInit`*"] pub fn subtree(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("subtree"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for MutationObserverInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_MutationObservingInfo.rs000064400000000000000000000157140072674642500214460ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MutationObservingInfo)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MutationObservingInfo` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"] pub type MutationObservingInfo; } impl MutationObservingInfo { #[doc = "Construct a new `MutationObservingInfo`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `animations` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"] pub fn animations(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("animations"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `attributeFilter` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"] pub fn attribute_filter(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("attributeFilter"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `attributeOldValue` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"] pub fn attribute_old_value(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("attributeOldValue"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `attributes` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"] pub fn attributes(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("attributes"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `characterData` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"] pub fn character_data(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("characterData"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `characterDataOldValue` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"] pub fn character_data_old_value(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("characterDataOldValue"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `childList` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"] pub fn child_list(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("childList"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `nativeAnonymousChildList` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"] pub fn native_anonymous_child_list(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("nativeAnonymousChildList"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `subtree` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"] pub fn subtree(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("subtree"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "Node")] #[doc = "Change the `observedNode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`, `Node`*"] pub fn observed_node(&mut self, val: Option<&Node>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("observedNode"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for MutationObservingInfo { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_MutationRecord.rs000064400000000000000000000116710072674642500201100ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MutationRecord , typescript_type = "MutationRecord")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MutationRecord` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationRecord`*"] pub type MutationRecord; # [wasm_bindgen (structural , method , getter , js_class = "MutationRecord" , js_name = type)] #[doc = "Getter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationRecord`*"] pub fn type_(this: &MutationRecord) -> String; #[cfg(feature = "Node")] # [wasm_bindgen (structural , method , getter , js_class = "MutationRecord" , js_name = target)] #[doc = "Getter for the `target` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord/target)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationRecord`, `Node`*"] pub fn target(this: &MutationRecord) -> Option; #[cfg(feature = "NodeList")] # [wasm_bindgen (structural , method , getter , js_class = "MutationRecord" , js_name = addedNodes)] #[doc = "Getter for the `addedNodes` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord/addedNodes)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationRecord`, `NodeList`*"] pub fn added_nodes(this: &MutationRecord) -> NodeList; #[cfg(feature = "NodeList")] # [wasm_bindgen (structural , method , getter , js_class = "MutationRecord" , js_name = removedNodes)] #[doc = "Getter for the `removedNodes` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord/removedNodes)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationRecord`, `NodeList`*"] pub fn removed_nodes(this: &MutationRecord) -> NodeList; #[cfg(feature = "Node")] # [wasm_bindgen (structural , method , getter , js_class = "MutationRecord" , js_name = previousSibling)] #[doc = "Getter for the `previousSibling` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord/previousSibling)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationRecord`, `Node`*"] pub fn previous_sibling(this: &MutationRecord) -> Option; #[cfg(feature = "Node")] # [wasm_bindgen (structural , method , getter , js_class = "MutationRecord" , js_name = nextSibling)] #[doc = "Getter for the `nextSibling` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord/nextSibling)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationRecord`, `Node`*"] pub fn next_sibling(this: &MutationRecord) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "MutationRecord" , js_name = attributeName)] #[doc = "Getter for the `attributeName` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord/attributeName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationRecord`*"] pub fn attribute_name(this: &MutationRecord) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "MutationRecord" , js_name = attributeNamespace)] #[doc = "Getter for the `attributeNamespace` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord/attributeNamespace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationRecord`*"] pub fn attribute_namespace(this: &MutationRecord) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "MutationRecord" , js_name = oldValue)] #[doc = "Getter for the `oldValue` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord/oldValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationRecord`*"] pub fn old_value(this: &MutationRecord) -> Option; } web-sys-0.3.55/src/features/gen_NamedNodeMap.rs000064400000000000000000000124450072674642500174410ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = NamedNodeMap , typescript_type = "NamedNodeMap")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `NamedNodeMap` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NamedNodeMap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NamedNodeMap`*"] pub type NamedNodeMap; # [wasm_bindgen (structural , method , getter , js_class = "NamedNodeMap" , js_name = length)] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NamedNodeMap/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NamedNodeMap`*"] pub fn length(this: &NamedNodeMap) -> u32; #[cfg(feature = "Attr")] # [wasm_bindgen (method , structural , js_class = "NamedNodeMap" , js_name = getNamedItem)] #[doc = "The `getNamedItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NamedNodeMap/getNamedItem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Attr`, `NamedNodeMap`*"] pub fn get_named_item(this: &NamedNodeMap, name: &str) -> Option; #[cfg(feature = "Attr")] # [wasm_bindgen (method , structural , js_class = "NamedNodeMap" , js_name = getNamedItemNS)] #[doc = "The `getNamedItemNS()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NamedNodeMap/getNamedItemNS)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Attr`, `NamedNodeMap`*"] pub fn get_named_item_ns( this: &NamedNodeMap, namespace_uri: Option<&str>, local_name: &str, ) -> Option; #[cfg(feature = "Attr")] # [wasm_bindgen (method , structural , js_class = "NamedNodeMap" , js_name = item)] #[doc = "The `item()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NamedNodeMap/item)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Attr`, `NamedNodeMap`*"] pub fn item(this: &NamedNodeMap, index: u32) -> Option; #[cfg(feature = "Attr")] # [wasm_bindgen (catch , method , structural , js_class = "NamedNodeMap" , js_name = removeNamedItem)] #[doc = "The `removeNamedItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NamedNodeMap/removeNamedItem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Attr`, `NamedNodeMap`*"] pub fn remove_named_item(this: &NamedNodeMap, name: &str) -> Result; #[cfg(feature = "Attr")] # [wasm_bindgen (catch , method , structural , js_class = "NamedNodeMap" , js_name = removeNamedItemNS)] #[doc = "The `removeNamedItemNS()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NamedNodeMap/removeNamedItemNS)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Attr`, `NamedNodeMap`*"] pub fn remove_named_item_ns( this: &NamedNodeMap, namespace_uri: Option<&str>, local_name: &str, ) -> Result; #[cfg(feature = "Attr")] # [wasm_bindgen (catch , method , structural , js_class = "NamedNodeMap" , js_name = setNamedItem)] #[doc = "The `setNamedItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NamedNodeMap/setNamedItem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Attr`, `NamedNodeMap`*"] pub fn set_named_item(this: &NamedNodeMap, arg: &Attr) -> Result, JsValue>; #[cfg(feature = "Attr")] # [wasm_bindgen (catch , method , structural , js_class = "NamedNodeMap" , js_name = setNamedItemNS)] #[doc = "The `setNamedItemNS()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NamedNodeMap/setNamedItemNS)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Attr`, `NamedNodeMap`*"] pub fn set_named_item_ns(this: &NamedNodeMap, arg: &Attr) -> Result, JsValue>; #[cfg(feature = "Attr")] #[wasm_bindgen(method, structural, js_class = "NamedNodeMap", indexing_getter)] #[doc = "Indexing getter."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Attr`, `NamedNodeMap`*"] pub fn get_with_name(this: &NamedNodeMap, name: &str) -> Option; #[cfg(feature = "Attr")] #[wasm_bindgen(method, structural, js_class = "NamedNodeMap", indexing_getter)] #[doc = "Indexing getter."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Attr`, `NamedNodeMap`*"] pub fn get_with_index(this: &NamedNodeMap, index: u32) -> Option; } web-sys-0.3.55/src/features/gen_NativeOsFileReadOptions.rs000064400000000000000000000040430072674642500216440ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = NativeOSFileReadOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `NativeOsFileReadOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NativeOsFileReadOptions`*"] pub type NativeOsFileReadOptions; } impl NativeOsFileReadOptions { #[doc = "Construct a new `NativeOsFileReadOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NativeOsFileReadOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bytes` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NativeOsFileReadOptions`*"] pub fn bytes(&mut self, val: Option) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("bytes"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `encoding` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NativeOsFileReadOptions`*"] pub fn encoding(&mut self, val: Option<&str>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("encoding"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for NativeOsFileReadOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_NativeOsFileWriteAtomicOptions.rs000064400000000000000000000075260072674642500232310ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = NativeOSFileWriteAtomicOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `NativeOsFileWriteAtomicOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NativeOsFileWriteAtomicOptions`*"] pub type NativeOsFileWriteAtomicOptions; } impl NativeOsFileWriteAtomicOptions { #[doc = "Construct a new `NativeOsFileWriteAtomicOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NativeOsFileWriteAtomicOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `backupTo` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NativeOsFileWriteAtomicOptions`*"] pub fn backup_to(&mut self, val: Option<&str>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("backupTo"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `bytes` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NativeOsFileWriteAtomicOptions`*"] pub fn bytes(&mut self, val: Option) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("bytes"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `flush` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NativeOsFileWriteAtomicOptions`*"] pub fn flush(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("flush"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `noOverwrite` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NativeOsFileWriteAtomicOptions`*"] pub fn no_overwrite(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("noOverwrite"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `tmpPath` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NativeOsFileWriteAtomicOptions`*"] pub fn tmp_path(&mut self, val: Option<&str>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("tmpPath"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for NativeOsFileWriteAtomicOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_NavigationType.rs000064400000000000000000000006220072674642500201040ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `NavigationType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NavigationType`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum NavigationType { Navigate = "navigate", Reload = "reload", BackForward = "back_forward", Prerender = "prerender", } web-sys-0.3.55/src/features/gen_Navigator.rs000064400000000000000000000666220072674642500171110ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Navigator , typescript_type = "Navigator")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Navigator` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] pub type Navigator; #[cfg(feature = "Permissions")] # [wasm_bindgen (structural , catch , method , getter , js_class = "Navigator" , js_name = permissions)] #[doc = "Getter for the `permissions` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/permissions)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`, `Permissions`*"] pub fn permissions(this: &Navigator) -> Result; #[cfg(feature = "MimeTypeArray")] # [wasm_bindgen (structural , catch , method , getter , js_class = "Navigator" , js_name = mimeTypes)] #[doc = "Getter for the `mimeTypes` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/mimeTypes)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MimeTypeArray`, `Navigator`*"] pub fn mime_types(this: &Navigator) -> Result; #[cfg(feature = "PluginArray")] # [wasm_bindgen (structural , catch , method , getter , js_class = "Navigator" , js_name = plugins)] #[doc = "Getter for the `plugins` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/plugins)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`, `PluginArray`*"] pub fn plugins(this: &Navigator) -> Result; # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = doNotTrack)] #[doc = "Getter for the `doNotTrack` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/doNotTrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] pub fn do_not_track(this: &Navigator) -> String; # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = maxTouchPoints)] #[doc = "Getter for the `maxTouchPoints` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/maxTouchPoints)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] pub fn max_touch_points(this: &Navigator) -> i32; #[cfg(feature = "MediaCapabilities")] # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = mediaCapabilities)] #[doc = "Getter for the `mediaCapabilities` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/mediaCapabilities)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaCapabilities`, `Navigator`*"] pub fn media_capabilities(this: &Navigator) -> MediaCapabilities; #[cfg(feature = "NetworkInformation")] # [wasm_bindgen (structural , catch , method , getter , js_class = "Navigator" , js_name = connection)] #[doc = "Getter for the `connection` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/connection)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`, `NetworkInformation`*"] pub fn connection(this: &Navigator) -> Result; # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = activeVRDisplays)] #[doc = "Getter for the `activeVRDisplays` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/activeVRDisplays)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] pub fn active_vr_displays(this: &Navigator) -> ::js_sys::Array; #[cfg(feature = "MediaDevices")] # [wasm_bindgen (structural , catch , method , getter , js_class = "Navigator" , js_name = mediaDevices)] #[doc = "Getter for the `mediaDevices` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/mediaDevices)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaDevices`, `Navigator`*"] pub fn media_devices(this: &Navigator) -> Result; #[cfg(feature = "ServiceWorkerContainer")] # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = serviceWorker)] #[doc = "Getter for the `serviceWorker` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/serviceWorker)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`, `ServiceWorkerContainer`*"] pub fn service_worker(this: &Navigator) -> ServiceWorkerContainer; #[cfg(feature = "Presentation")] # [wasm_bindgen (structural , catch , method , getter , js_class = "Navigator" , js_name = presentation)] #[doc = "Getter for the `presentation` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/presentation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`, `Presentation`*"] pub fn presentation(this: &Navigator) -> Result, JsValue>; #[cfg(feature = "CredentialsContainer")] # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = credentials)] #[doc = "Getter for the `credentials` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/credentials)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CredentialsContainer`, `Navigator`*"] pub fn credentials(this: &Navigator) -> CredentialsContainer; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn bluetooth(this: &Navigator) -> Option; #[cfg(web_sys_unstable_apis)] #[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`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn clipboard(this: &Navigator) -> Option; #[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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn hid(this: &Navigator) -> Hid; #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn usb(this: &Navigator) -> Usb; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "Xr")] # [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`, `Xr`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn xr(this: &Navigator) -> Xr; # [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)] #[cfg(feature = "Gpu")] # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = gpu)] #[doc = "Getter for the `gpu` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/gpu)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Gpu`, `Navigator`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn gpu(this: &Navigator) -> Gpu; #[cfg(feature = "Geolocation")] # [wasm_bindgen (structural , catch , method , getter , js_class = "Navigator" , js_name = geolocation)] #[doc = "Getter for the `geolocation` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/geolocation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Geolocation`, `Navigator`*"] pub fn geolocation(this: &Navigator) -> Result; # [wasm_bindgen (structural , catch , method , getter , js_class = "Navigator" , js_name = appCodeName)] #[doc = "Getter for the `appCodeName` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/appCodeName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] pub fn app_code_name(this: &Navigator) -> Result; # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = appName)] #[doc = "Getter for the `appName` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/appName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] pub fn app_name(this: &Navigator) -> String; # [wasm_bindgen (structural , catch , method , getter , js_class = "Navigator" , js_name = appVersion)] #[doc = "Getter for the `appVersion` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/appVersion)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] pub fn app_version(this: &Navigator) -> Result; # [wasm_bindgen (structural , catch , method , getter , js_class = "Navigator" , js_name = platform)] #[doc = "Getter for the `platform` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/platform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] pub fn platform(this: &Navigator) -> Result; # [wasm_bindgen (structural , catch , method , getter , js_class = "Navigator" , js_name = userAgent)] #[doc = "Getter for the `userAgent` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/userAgent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] pub fn user_agent(this: &Navigator) -> Result; # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = product)] #[doc = "Getter for the `product` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/product)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] pub fn product(this: &Navigator) -> String; # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = language)] #[doc = "Getter for the `language` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/language)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] pub fn language(this: &Navigator) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = languages)] #[doc = "Getter for the `languages` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/languages)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] pub fn languages(this: &Navigator) -> ::js_sys::Array; # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = onLine)] #[doc = "Getter for the `onLine` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/onLine)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] pub fn on_line(this: &Navigator) -> bool; #[cfg(feature = "StorageManager")] # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = storage)] #[doc = "Getter for the `storage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/storage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`, `StorageManager`*"] pub fn storage(this: &Navigator) -> StorageManager; # [wasm_bindgen (catch , method , structural , js_class = "Navigator" , js_name = getGamepads)] #[doc = "The `getGamepads()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/getGamepads)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] pub fn get_gamepads(this: &Navigator) -> Result<::js_sys::Array, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Navigator" , js_name = getVRDisplays)] #[doc = "The `getVRDisplays()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/getVRDisplays)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] pub fn get_vr_displays(this: &Navigator) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "GamepadServiceTest")] # [wasm_bindgen (method , structural , js_class = "Navigator" , js_name = requestGamepadServiceTest)] #[doc = "The `requestGamepadServiceTest()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/requestGamepadServiceTest)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadServiceTest`, `Navigator`*"] pub fn request_gamepad_service_test(this: &Navigator) -> GamepadServiceTest; # [wasm_bindgen (catch , method , structural , js_class = "Navigator" , js_name = requestMIDIAccess)] #[doc = "The `requestMIDIAccess()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/requestMIDIAccess)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] pub fn request_midi_access(this: &Navigator) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "MidiOptions")] # [wasm_bindgen (catch , method , structural , js_class = "Navigator" , js_name = requestMIDIAccess)] #[doc = "The `requestMIDIAccess()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/requestMIDIAccess)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiOptions`, `Navigator`*"] pub fn request_midi_access_with_options( this: &Navigator, options: &MidiOptions, ) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (method , structural , js_class = "Navigator" , js_name = requestMediaKeySystemAccess)] #[doc = "The `requestMediaKeySystemAccess()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/requestMediaKeySystemAccess)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] pub fn request_media_key_system_access( this: &Navigator, key_system: &str, supported_configurations: &::wasm_bindgen::JsValue, ) -> ::js_sys::Promise; #[cfg(feature = "VrServiceTest")] # [wasm_bindgen (method , structural , js_class = "Navigator" , js_name = requestVRServiceTest)] #[doc = "The `requestVRServiceTest()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/requestVRServiceTest)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`, `VrServiceTest`*"] pub fn request_vr_service_test(this: &Navigator) -> VrServiceTest; # [wasm_bindgen (catch , method , structural , js_class = "Navigator" , js_name = sendBeacon)] #[doc = "The `sendBeacon()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/sendBeacon)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] pub fn send_beacon(this: &Navigator, url: &str) -> Result; #[cfg(feature = "Blob")] # [wasm_bindgen (catch , method , structural , js_class = "Navigator" , js_name = sendBeacon)] #[doc = "The `sendBeacon()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/sendBeacon)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`, `Navigator`*"] pub fn send_beacon_with_opt_blob( this: &Navigator, url: &str, data: Option<&Blob>, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Navigator" , js_name = sendBeacon)] #[doc = "The `sendBeacon()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/sendBeacon)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] pub fn send_beacon_with_opt_buffer_source( this: &Navigator, url: &str, data: Option<&::js_sys::Object>, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Navigator" , js_name = sendBeacon)] #[doc = "The `sendBeacon()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/sendBeacon)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] pub fn send_beacon_with_opt_u8_array( this: &Navigator, url: &str, data: Option<&mut [u8]>, ) -> Result; #[cfg(feature = "FormData")] # [wasm_bindgen (catch , method , structural , js_class = "Navigator" , js_name = sendBeacon)] #[doc = "The `sendBeacon()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/sendBeacon)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FormData`, `Navigator`*"] pub fn send_beacon_with_opt_form_data( this: &Navigator, url: &str, data: Option<&FormData>, ) -> Result; #[cfg(feature = "UrlSearchParams")] # [wasm_bindgen (catch , method , structural , js_class = "Navigator" , js_name = sendBeacon)] #[doc = "The `sendBeacon()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/sendBeacon)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`, `UrlSearchParams`*"] pub fn send_beacon_with_opt_url_search_params( this: &Navigator, url: &str, data: Option<&UrlSearchParams>, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Navigator" , js_name = sendBeacon)] #[doc = "The `sendBeacon()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/sendBeacon)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] pub fn send_beacon_with_opt_str( this: &Navigator, url: &str, data: Option<&str>, ) -> Result; #[cfg(feature = "ReadableStream")] # [wasm_bindgen (catch , method , structural , js_class = "Navigator" , js_name = sendBeacon)] #[doc = "The `sendBeacon()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/sendBeacon)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`, `ReadableStream`*"] pub fn send_beacon_with_opt_readable_stream( this: &Navigator, url: &str, data: Option<&ReadableStream>, ) -> Result; # [wasm_bindgen (method , structural , js_class = "Navigator" , js_name = vibrate)] #[doc = "The `vibrate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/vibrate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] pub fn vibrate_with_duration(this: &Navigator, duration: u32) -> bool; # [wasm_bindgen (method , structural , js_class = "Navigator" , js_name = vibrate)] #[doc = "The `vibrate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/vibrate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] pub fn vibrate_with_pattern(this: &Navigator, pattern: &::wasm_bindgen::JsValue) -> bool; # [wasm_bindgen (catch , method , structural , js_class = "Navigator" , js_name = registerContentHandler)] #[doc = "The `registerContentHandler()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/registerContentHandler)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] pub fn register_content_handler( this: &Navigator, mime_type: &str, url: &str, title: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Navigator" , js_name = registerProtocolHandler)] #[doc = "The `registerProtocolHandler()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/registerProtocolHandler)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] pub fn register_protocol_handler( this: &Navigator, scheme: &str, url: &str, title: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (method , structural , js_class = "Navigator" , js_name = taintEnabled)] #[doc = "The `taintEnabled()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/taintEnabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] pub fn taint_enabled(this: &Navigator) -> bool; } web-sys-0.3.55/src/features/gen_NavigatorAutomationInformation.rs000064400000000000000000000022730072674642500233500ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = NavigatorAutomationInformation , typescript_type = "NavigatorAutomationInformation")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `NavigatorAutomationInformation` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NavigatorAutomationInformation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NavigatorAutomationInformation`*"] pub type NavigatorAutomationInformation; # [wasm_bindgen (structural , method , getter , js_class = "NavigatorAutomationInformation" , js_name = webdriver)] #[doc = "Getter for the `webdriver` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NavigatorAutomationInformation/webdriver)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NavigatorAutomationInformation`*"] pub fn webdriver(this: &NavigatorAutomationInformation) -> bool; } web-sys-0.3.55/src/features/gen_NetworkCommandOptions.rs000064400000000000000000000623000072674642500214500ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = NetworkCommandOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `NetworkCommandOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] pub type NetworkCommandOptions; } impl NetworkCommandOptions { #[doc = "Construct a new `NetworkCommandOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `cmd` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] pub fn cmd(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("cmd"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `curExternalIfname` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] pub fn cur_external_ifname(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("curExternalIfname"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `curInternalIfname` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] pub fn cur_internal_ifname(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("curInternalIfname"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `dns1` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] pub fn dns1(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("dns1"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `dns1_long` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] pub fn dns1_long(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("dns1_long"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `dns2` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] pub fn dns2(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("dns2"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `dns2_long` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] pub fn dns2_long(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("dns2_long"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `dnses` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] pub fn dnses(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("dnses"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `domain` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] pub fn domain(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("domain"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `enable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] pub fn enable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("enable"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `enabled` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] pub fn enabled(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("enabled"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `endIp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] pub fn end_ip(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("endIp"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `externalIfname` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] pub fn external_ifname(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("externalIfname"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `gateway` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] pub fn gateway(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("gateway"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `gateway_long` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] pub fn gateway_long(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("gateway_long"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `gateways` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] pub fn gateways(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("gateways"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] pub fn id(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("id"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `ifname` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] pub fn ifname(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("ifname"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `interfaceList` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] pub fn interface_list(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("interfaceList"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `internalIfname` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] pub fn internal_ifname(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("internalIfname"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `ip` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] pub fn ip(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("ip"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `ipaddr` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] pub fn ipaddr(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("ipaddr"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `key` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] pub fn key(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("key"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `link` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] pub fn link(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("link"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `mask` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] pub fn mask(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("mask"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `maskLength` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] pub fn mask_length(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("maskLength"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `mode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] pub fn mode(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("mode"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `mtu` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] pub fn mtu(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("mtu"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `preExternalIfname` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] pub fn pre_external_ifname(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("preExternalIfname"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `preInternalIfname` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] pub fn pre_internal_ifname(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("preInternalIfname"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `prefix` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] pub fn prefix(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("prefix"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `prefixLength` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] pub fn prefix_length(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("prefixLength"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `report` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] pub fn report(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("report"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `security` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] pub fn security(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("security"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `serverIp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] pub fn server_ip(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("serverIp"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `ssid` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] pub fn ssid(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("ssid"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `startIp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] pub fn start_ip(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("startIp"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `threshold` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] pub fn threshold(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("threshold"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `usbEndIp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] pub fn usb_end_ip(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("usbEndIp"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `usbStartIp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] pub fn usb_start_ip(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("usbStartIp"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `wifiEndIp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] pub fn wifi_end_ip(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("wifiEndIp"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `wifiStartIp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] pub fn wifi_start_ip(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("wifiStartIp"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `wifictrlinterfacename` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] pub fn wifictrlinterfacename(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("wifictrlinterfacename"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for NetworkCommandOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_NetworkInformation.rs000064400000000000000000000041700072674642500210040ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = NetworkInformation , typescript_type = "NetworkInformation")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `NetworkInformation` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NetworkInformation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkInformation`*"] pub type NetworkInformation; #[cfg(feature = "ConnectionType")] # [wasm_bindgen (structural , method , getter , js_class = "NetworkInformation" , js_name = type)] #[doc = "Getter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NetworkInformation/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConnectionType`, `NetworkInformation`*"] pub fn type_(this: &NetworkInformation) -> ConnectionType; # [wasm_bindgen (structural , method , getter , js_class = "NetworkInformation" , js_name = ontypechange)] #[doc = "Getter for the `ontypechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NetworkInformation/ontypechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkInformation`*"] pub fn ontypechange(this: &NetworkInformation) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "NetworkInformation" , js_name = ontypechange)] #[doc = "Setter for the `ontypechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NetworkInformation/ontypechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkInformation`*"] pub fn set_ontypechange(this: &NetworkInformation, value: Option<&::js_sys::Function>); } web-sys-0.3.55/src/features/gen_NetworkResultOptions.rs000064400000000000000000000506340072674642500213570ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = NetworkResultOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `NetworkResultOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] pub type NetworkResultOptions; } impl NetworkResultOptions { #[doc = "Construct a new `NetworkResultOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `broadcast` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] pub fn broadcast(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("broadcast"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `curExternalIfname` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] pub fn cur_external_ifname(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("curExternalIfname"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `curInternalIfname` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] pub fn cur_internal_ifname(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("curInternalIfname"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `dns1` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] pub fn dns1(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("dns1"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `dns1_str` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] pub fn dns1_str(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("dns1_str"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `dns2` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] pub fn dns2(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("dns2"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `dns2_str` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] pub fn dns2_str(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("dns2_str"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `enable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] pub fn enable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("enable"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `error` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] pub fn error(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("error"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `flag` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] pub fn flag(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("flag"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `gateway` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] pub fn gateway(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("gateway"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `gateway_str` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] pub fn gateway_str(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("gateway_str"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] pub fn id(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("id"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `interfaceList` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] pub fn interface_list(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("interfaceList"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `ipAddr` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] pub fn ip_addr(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("ipAddr"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `ipaddr` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] pub fn ipaddr(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("ipaddr"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `ipaddr_str` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] pub fn ipaddr_str(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("ipaddr_str"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `lease` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] pub fn lease(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("lease"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `macAddr` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] pub fn mac_addr(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("macAddr"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `mask` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] pub fn mask(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("mask"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `mask_str` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] pub fn mask_str(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("mask_str"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `netId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] pub fn net_id(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("netId"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `prefixLength` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] pub fn prefix_length(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("prefixLength"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `reason` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] pub fn reason(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("reason"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `reply` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] pub fn reply(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("reply"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `result` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] pub fn result(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("result"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `resultCode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] pub fn result_code(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("resultCode"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `resultReason` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] pub fn result_reason(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("resultReason"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `ret` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] pub fn ret(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("ret"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `route` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] pub fn route(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("route"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `server` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] pub fn server(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("server"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `server_str` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] pub fn server_str(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("server_str"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `success` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] pub fn success(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("success"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `topic` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] pub fn topic(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("topic"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `vendor_str` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] pub fn vendor_str(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("vendor_str"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for NetworkResultOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_Node.rs000064400000000000000000000447420072674642500160430ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = Node , typescript_type = "Node")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Node` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub type Node; # [wasm_bindgen (structural , method , getter , js_class = "Node" , js_name = nodeType)] #[doc = "Getter for the `nodeType` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub fn node_type(this: &Node) -> u16; # [wasm_bindgen (structural , method , getter , js_class = "Node" , js_name = nodeName)] #[doc = "Getter for the `nodeName` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub fn node_name(this: &Node) -> String; # [wasm_bindgen (structural , catch , method , getter , js_class = "Node" , js_name = baseURI)] #[doc = "Getter for the `baseURI` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/baseURI)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub fn base_uri(this: &Node) -> Result, JsValue>; # [wasm_bindgen (structural , method , getter , js_class = "Node" , js_name = isConnected)] #[doc = "Getter for the `isConnected` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/isConnected)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub fn is_connected(this: &Node) -> bool; #[cfg(feature = "Document")] # [wasm_bindgen (structural , method , getter , js_class = "Node" , js_name = ownerDocument)] #[doc = "Getter for the `ownerDocument` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/ownerDocument)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `Node`*"] pub fn owner_document(this: &Node) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "Node" , js_name = parentNode)] #[doc = "Getter for the `parentNode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/parentNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub fn parent_node(this: &Node) -> Option; #[cfg(feature = "Element")] # [wasm_bindgen (structural , method , getter , js_class = "Node" , js_name = parentElement)] #[doc = "Getter for the `parentElement` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/parentElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `Node`*"] pub fn parent_element(this: &Node) -> Option; #[cfg(feature = "NodeList")] # [wasm_bindgen (structural , method , getter , js_class = "Node" , js_name = childNodes)] #[doc = "Getter for the `childNodes` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/childNodes)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `NodeList`*"] pub fn child_nodes(this: &Node) -> NodeList; # [wasm_bindgen (structural , method , getter , js_class = "Node" , js_name = firstChild)] #[doc = "Getter for the `firstChild` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/firstChild)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub fn first_child(this: &Node) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "Node" , js_name = lastChild)] #[doc = "Getter for the `lastChild` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/lastChild)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub fn last_child(this: &Node) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "Node" , js_name = previousSibling)] #[doc = "Getter for the `previousSibling` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/previousSibling)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub fn previous_sibling(this: &Node) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "Node" , js_name = nextSibling)] #[doc = "Getter for the `nextSibling` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/nextSibling)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub fn next_sibling(this: &Node) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "Node" , js_name = nodeValue)] #[doc = "Getter for the `nodeValue` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub fn node_value(this: &Node) -> Option; # [wasm_bindgen (structural , method , setter , js_class = "Node" , js_name = nodeValue)] #[doc = "Setter for the `nodeValue` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub fn set_node_value(this: &Node, value: Option<&str>); # [wasm_bindgen (structural , method , getter , js_class = "Node" , js_name = textContent)] #[doc = "Getter for the `textContent` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub fn text_content(this: &Node) -> Option; # [wasm_bindgen (structural , method , setter , js_class = "Node" , js_name = textContent)] #[doc = "Setter for the `textContent` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub fn set_text_content(this: &Node, value: Option<&str>); # [wasm_bindgen (catch , method , structural , js_class = "Node" , js_name = appendChild)] #[doc = "The `appendChild()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/appendChild)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub fn append_child(this: &Node, node: &Node) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Node" , js_name = cloneNode)] #[doc = "The `cloneNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/cloneNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub fn clone_node(this: &Node) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Node" , js_name = cloneNode)] #[doc = "The `cloneNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/cloneNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub fn clone_node_with_deep(this: &Node, deep: bool) -> Result; # [wasm_bindgen (method , structural , js_class = "Node" , js_name = compareDocumentPosition)] #[doc = "The `compareDocumentPosition()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/compareDocumentPosition)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub fn compare_document_position(this: &Node, other: &Node) -> u16; # [wasm_bindgen (method , structural , js_class = "Node" , js_name = contains)] #[doc = "The `contains()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/contains)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub fn contains(this: &Node, other: Option<&Node>) -> bool; # [wasm_bindgen (method , structural , js_class = "Node" , js_name = getRootNode)] #[doc = "The `getRootNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/getRootNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub fn get_root_node(this: &Node) -> Node; #[cfg(feature = "GetRootNodeOptions")] # [wasm_bindgen (method , structural , js_class = "Node" , js_name = getRootNode)] #[doc = "The `getRootNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/getRootNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GetRootNodeOptions`, `Node`*"] pub fn get_root_node_with_options(this: &Node, options: &GetRootNodeOptions) -> Node; # [wasm_bindgen (method , structural , js_class = "Node" , js_name = hasChildNodes)] #[doc = "The `hasChildNodes()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/hasChildNodes)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub fn has_child_nodes(this: &Node) -> bool; # [wasm_bindgen (catch , method , structural , js_class = "Node" , js_name = insertBefore)] #[doc = "The `insertBefore()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/insertBefore)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub fn insert_before(this: &Node, node: &Node, child: Option<&Node>) -> Result; # [wasm_bindgen (method , structural , js_class = "Node" , js_name = isDefaultNamespace)] #[doc = "The `isDefaultNamespace()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/isDefaultNamespace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub fn is_default_namespace(this: &Node, namespace: Option<&str>) -> bool; # [wasm_bindgen (method , structural , js_class = "Node" , js_name = isEqualNode)] #[doc = "The `isEqualNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/isEqualNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub fn is_equal_node(this: &Node, node: Option<&Node>) -> bool; # [wasm_bindgen (method , structural , js_class = "Node" , js_name = isSameNode)] #[doc = "The `isSameNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/isSameNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub fn is_same_node(this: &Node, node: Option<&Node>) -> bool; # [wasm_bindgen (method , structural , js_class = "Node" , js_name = lookupNamespaceURI)] #[doc = "The `lookupNamespaceURI()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/lookupNamespaceURI)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub fn lookup_namespace_uri(this: &Node, prefix: Option<&str>) -> Option; # [wasm_bindgen (method , structural , js_class = "Node" , js_name = lookupPrefix)] #[doc = "The `lookupPrefix()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/lookupPrefix)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub fn lookup_prefix(this: &Node, namespace: Option<&str>) -> Option; # [wasm_bindgen (method , structural , js_class = "Node" , js_name = normalize)] #[doc = "The `normalize()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/normalize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub fn normalize(this: &Node); # [wasm_bindgen (catch , method , structural , js_class = "Node" , js_name = removeChild)] #[doc = "The `removeChild()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/removeChild)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub fn remove_child(this: &Node, child: &Node) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Node" , js_name = replaceChild)] #[doc = "The `replaceChild()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/replaceChild)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub fn replace_child(this: &Node, node: &Node, child: &Node) -> Result; } impl Node { #[doc = "The `Node.ELEMENT_NODE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub const ELEMENT_NODE: u16 = 1u64 as u16; #[doc = "The `Node.ATTRIBUTE_NODE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub const ATTRIBUTE_NODE: u16 = 2u64 as u16; #[doc = "The `Node.TEXT_NODE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub const TEXT_NODE: u16 = 3u64 as u16; #[doc = "The `Node.CDATA_SECTION_NODE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub const CDATA_SECTION_NODE: u16 = 4u64 as u16; #[doc = "The `Node.ENTITY_REFERENCE_NODE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub const ENTITY_REFERENCE_NODE: u16 = 5u64 as u16; #[doc = "The `Node.ENTITY_NODE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub const ENTITY_NODE: u16 = 6u64 as u16; #[doc = "The `Node.PROCESSING_INSTRUCTION_NODE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub const PROCESSING_INSTRUCTION_NODE: u16 = 7u64 as u16; #[doc = "The `Node.COMMENT_NODE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub const COMMENT_NODE: u16 = 8u64 as u16; #[doc = "The `Node.DOCUMENT_NODE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub const DOCUMENT_NODE: u16 = 9u64 as u16; #[doc = "The `Node.DOCUMENT_TYPE_NODE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub const DOCUMENT_TYPE_NODE: u16 = 10u64 as u16; #[doc = "The `Node.DOCUMENT_FRAGMENT_NODE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub const DOCUMENT_FRAGMENT_NODE: u16 = 11u64 as u16; #[doc = "The `Node.NOTATION_NODE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub const NOTATION_NODE: u16 = 12u64 as u16; #[doc = "The `Node.DOCUMENT_POSITION_DISCONNECTED` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub const DOCUMENT_POSITION_DISCONNECTED: u16 = 1u64 as u16; #[doc = "The `Node.DOCUMENT_POSITION_PRECEDING` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub const DOCUMENT_POSITION_PRECEDING: u16 = 2u64 as u16; #[doc = "The `Node.DOCUMENT_POSITION_FOLLOWING` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub const DOCUMENT_POSITION_FOLLOWING: u16 = 4u64 as u16; #[doc = "The `Node.DOCUMENT_POSITION_CONTAINS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub const DOCUMENT_POSITION_CONTAINS: u16 = 8u64 as u16; #[doc = "The `Node.DOCUMENT_POSITION_CONTAINED_BY` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub const DOCUMENT_POSITION_CONTAINED_BY: u16 = 16u64 as u16; #[doc = "The `Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] pub const DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: u16 = 32u64 as u16; } web-sys-0.3.55/src/features/gen_NodeFilter.rs000064400000000000000000000026300072674642500171770ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = NodeFilter)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `NodeFilter` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NodeFilter`*"] pub type NodeFilter; } impl NodeFilter { #[doc = "Construct a new `NodeFilter`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NodeFilter`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `acceptNode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NodeFilter`*"] pub fn accept_node(&mut self, val: &::js_sys::Function) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("acceptNode"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for NodeFilter { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_NodeIterator.rs000064400000000000000000000104770072674642500175530ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = NodeIterator , typescript_type = "NodeIterator")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `NodeIterator` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NodeIterator`*"] pub type NodeIterator; #[cfg(feature = "Node")] # [wasm_bindgen (structural , method , getter , js_class = "NodeIterator" , js_name = root)] #[doc = "Getter for the `root` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator/root)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `NodeIterator`*"] pub fn root(this: &NodeIterator) -> Node; #[cfg(feature = "Node")] # [wasm_bindgen (structural , method , getter , js_class = "NodeIterator" , js_name = referenceNode)] #[doc = "Getter for the `referenceNode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator/referenceNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `NodeIterator`*"] pub fn reference_node(this: &NodeIterator) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "NodeIterator" , js_name = pointerBeforeReferenceNode)] #[doc = "Getter for the `pointerBeforeReferenceNode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator/pointerBeforeReferenceNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NodeIterator`*"] pub fn pointer_before_reference_node(this: &NodeIterator) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "NodeIterator" , js_name = whatToShow)] #[doc = "Getter for the `whatToShow` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator/whatToShow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NodeIterator`*"] pub fn what_to_show(this: &NodeIterator) -> u32; #[cfg(feature = "NodeFilter")] # [wasm_bindgen (structural , method , getter , js_class = "NodeIterator" , js_name = filter)] #[doc = "Getter for the `filter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator/filter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NodeFilter`, `NodeIterator`*"] pub fn filter(this: &NodeIterator) -> Option; # [wasm_bindgen (method , structural , js_class = "NodeIterator" , js_name = detach)] #[doc = "The `detach()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator/detach)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NodeIterator`*"] pub fn detach(this: &NodeIterator); #[cfg(feature = "Node")] # [wasm_bindgen (catch , method , structural , js_class = "NodeIterator" , js_name = nextNode)] #[doc = "The `nextNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator/nextNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `NodeIterator`*"] pub fn next_node(this: &NodeIterator) -> Result, JsValue>; #[cfg(feature = "Node")] # [wasm_bindgen (catch , method , structural , js_class = "NodeIterator" , js_name = previousNode)] #[doc = "The `previousNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator/previousNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `NodeIterator`*"] pub fn previous_node(this: &NodeIterator) -> Result, JsValue>; } web-sys-0.3.55/src/features/gen_NodeList.rs000064400000000000000000000033170072674642500166700ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = NodeList , typescript_type = "NodeList")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `NodeList` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NodeList)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NodeList`*"] pub type NodeList; # [wasm_bindgen (structural , method , getter , js_class = "NodeList" , js_name = length)] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NodeList/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NodeList`*"] pub fn length(this: &NodeList) -> u32; #[cfg(feature = "Node")] # [wasm_bindgen (method , structural , js_class = "NodeList" , js_name = item)] #[doc = "The `item()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NodeList/item)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `NodeList`*"] pub fn item(this: &NodeList, index: u32) -> Option; #[cfg(feature = "Node")] #[wasm_bindgen(method, structural, js_class = "NodeList", indexing_getter)] #[doc = "Indexing getter."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `NodeList`*"] pub fn get(this: &NodeList, index: u32) -> Option; } web-sys-0.3.55/src/features/gen_Notification.rs000064400000000000000000000274200072674642500175760ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = Notification , typescript_type = "Notification")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Notification` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`*"] pub type Notification; #[cfg(feature = "NotificationPermission")] # [wasm_bindgen (structural , static_method_of = Notification , getter , js_class = "Notification" , js_name = permission)] #[doc = "Getter for the `permission` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/permission)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`, `NotificationPermission`*"] pub fn permission() -> NotificationPermission; # [wasm_bindgen (structural , method , getter , js_class = "Notification" , js_name = onclick)] #[doc = "Getter for the `onclick` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/onclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`*"] pub fn onclick(this: &Notification) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Notification" , js_name = onclick)] #[doc = "Setter for the `onclick` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/onclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`*"] pub fn set_onclick(this: &Notification, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Notification" , js_name = onshow)] #[doc = "Getter for the `onshow` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/onshow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`*"] pub fn onshow(this: &Notification) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Notification" , js_name = onshow)] #[doc = "Setter for the `onshow` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/onshow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`*"] pub fn set_onshow(this: &Notification, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Notification" , js_name = onerror)] #[doc = "Getter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`*"] pub fn onerror(this: &Notification) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Notification" , js_name = onerror)] #[doc = "Setter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`*"] pub fn set_onerror(this: &Notification, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Notification" , js_name = onclose)] #[doc = "Getter for the `onclose` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/onclose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`*"] pub fn onclose(this: &Notification) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Notification" , js_name = onclose)] #[doc = "Setter for the `onclose` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/onclose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`*"] pub fn set_onclose(this: &Notification, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Notification" , js_name = title)] #[doc = "Getter for the `title` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/title)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`*"] pub fn title(this: &Notification) -> String; #[cfg(feature = "NotificationDirection")] # [wasm_bindgen (structural , method , getter , js_class = "Notification" , js_name = dir)] #[doc = "Getter for the `dir` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/dir)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`, `NotificationDirection`*"] pub fn dir(this: &Notification) -> NotificationDirection; # [wasm_bindgen (structural , method , getter , js_class = "Notification" , js_name = lang)] #[doc = "Getter for the `lang` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/lang)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`*"] pub fn lang(this: &Notification) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "Notification" , js_name = body)] #[doc = "Getter for the `body` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/body)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`*"] pub fn body(this: &Notification) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "Notification" , js_name = tag)] #[doc = "Getter for the `tag` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/tag)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`*"] pub fn tag(this: &Notification) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "Notification" , js_name = icon)] #[doc = "Getter for the `icon` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/icon)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`*"] pub fn icon(this: &Notification) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "Notification" , js_name = requireInteraction)] #[doc = "Getter for the `requireInteraction` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/requireInteraction)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`*"] pub fn require_interaction(this: &Notification) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "Notification" , js_name = data)] #[doc = "Getter for the `data` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/data)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`*"] pub fn data(this: &Notification) -> ::wasm_bindgen::JsValue; #[wasm_bindgen(catch, constructor, js_class = "Notification")] #[doc = "The `new Notification(..)` constructor, creating a new instance of `Notification`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/Notification)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`*"] pub fn new(title: &str) -> Result; #[cfg(feature = "NotificationOptions")] #[wasm_bindgen(catch, constructor, js_class = "Notification")] #[doc = "The `new Notification(..)` constructor, creating a new instance of `Notification`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/Notification)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`, `NotificationOptions`*"] pub fn new_with_options( title: &str, options: &NotificationOptions, ) -> Result; # [wasm_bindgen (method , structural , js_class = "Notification" , js_name = close)] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`*"] pub fn close(this: &Notification); # [wasm_bindgen (catch , static_method_of = Notification , js_class = "Notification" , js_name = get)] #[doc = "The `get()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/get)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`*"] pub fn get() -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "GetNotificationOptions")] # [wasm_bindgen (catch , static_method_of = Notification , js_class = "Notification" , js_name = get)] #[doc = "The `get()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/get)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GetNotificationOptions`, `Notification`*"] pub fn get_with_filter(filter: &GetNotificationOptions) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , static_method_of = Notification , js_class = "Notification" , js_name = requestPermission)] #[doc = "The `requestPermission()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/requestPermission)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`*"] pub fn request_permission() -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , static_method_of = Notification , js_class = "Notification" , js_name = requestPermission)] #[doc = "The `requestPermission()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/requestPermission)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`*"] pub fn request_permission_with_permission_callback( permission_callback: &::js_sys::Function, ) -> Result<::js_sys::Promise, JsValue>; } web-sys-0.3.55/src/features/gen_NotificationBehavior.rs000064400000000000000000000075400072674642500212570ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = NotificationBehavior)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `NotificationBehavior` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationBehavior`*"] pub type NotificationBehavior; } impl NotificationBehavior { #[doc = "Construct a new `NotificationBehavior`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationBehavior`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `noclear` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationBehavior`*"] pub fn noclear(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("noclear"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `noscreen` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationBehavior`*"] pub fn noscreen(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("noscreen"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `showOnlyOnce` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationBehavior`*"] pub fn show_only_once(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("showOnlyOnce"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `soundFile` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationBehavior`*"] pub fn sound_file(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("soundFile"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `vibrationPattern` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationBehavior`*"] pub fn vibration_pattern(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("vibrationPattern"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for NotificationBehavior { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_NotificationDirection.rs000064400000000000000000000005530072674642500214350ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `NotificationDirection` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationDirection`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum NotificationDirection { Auto = "auto", Ltr = "ltr", Rtl = "rtl", } web-sys-0.3.55/src/features/gen_NotificationEvent.rs000064400000000000000000000034210072674642500205730ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = ExtendableEvent , extends = Event , extends = :: js_sys :: Object , js_name = NotificationEvent , typescript_type = "NotificationEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `NotificationEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NotificationEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationEvent`*"] pub type NotificationEvent; #[cfg(feature = "Notification")] # [wasm_bindgen (structural , method , getter , js_class = "NotificationEvent" , js_name = notification)] #[doc = "Getter for the `notification` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NotificationEvent/notification)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`, `NotificationEvent`*"] pub fn notification(this: &NotificationEvent) -> Notification; #[cfg(feature = "NotificationEventInit")] #[wasm_bindgen(catch, constructor, js_class = "NotificationEvent")] #[doc = "The `new NotificationEvent(..)` constructor, creating a new instance of `NotificationEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NotificationEvent/NotificationEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationEvent`, `NotificationEventInit`*"] pub fn new( type_: &str, event_init_dict: &NotificationEventInit, ) -> Result; } web-sys-0.3.55/src/features/gen_NotificationEventInit.rs000064400000000000000000000065030072674642500214230ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = NotificationEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `NotificationEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationEventInit`*"] pub type NotificationEventInit; } impl NotificationEventInit { #[cfg(feature = "Notification")] #[doc = "Construct a new `NotificationEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`, `NotificationEventInit`*"] pub fn new(notification: &Notification) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.notification(notification); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "Notification")] #[doc = "Change the `notification` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`, `NotificationEventInit`*"] pub fn notification(&mut self, val: &Notification) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("notification"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_NotificationOptions.rs000064400000000000000000000113340072674642500211470ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = NotificationOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `NotificationOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"] pub type NotificationOptions; } impl NotificationOptions { #[doc = "Construct a new `NotificationOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `body` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"] pub fn body(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("body"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `data` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"] pub fn data(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("data"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "NotificationDirection")] #[doc = "Change the `dir` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationDirection`, `NotificationOptions`*"] pub fn dir(&mut self, val: NotificationDirection) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("dir"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `icon` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"] pub fn icon(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("icon"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `lang` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"] pub fn lang(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("lang"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `requireInteraction` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"] pub fn require_interaction(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("requireInteraction"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `tag` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"] pub fn tag(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("tag"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for NotificationOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_NotificationPermission.rs000064400000000000000000000006020072674642500216400ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `NotificationPermission` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationPermission`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum NotificationPermission { Default = "default", Denied = "denied", Granted = "granted", } web-sys-0.3.55/src/features/gen_ObserverCallback.rs000064400000000000000000000027210072674642500203510ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ObserverCallback)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ObserverCallback` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ObserverCallback`*"] pub type ObserverCallback; } impl ObserverCallback { #[doc = "Construct a new `ObserverCallback`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ObserverCallback`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `handleEvent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ObserverCallback`*"] pub fn handle_event(&mut self, val: &::js_sys::Function) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("handleEvent"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for ObserverCallback { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_OesElementIndexUint.rs000064400000000000000000000011650072674642500210360ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = OES_element_index_uint , typescript_type = "OES_element_index_uint")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `OesElementIndexUint` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OES_element_index_uint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OesElementIndexUint`*"] pub type OesElementIndexUint; } web-sys-0.3.55/src/features/gen_OesStandardDerivatives.rs000064400000000000000000000017010072674642500215570ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = OES_standard_derivatives , typescript_type = "OES_standard_derivatives")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `OesStandardDerivatives` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OES_standard_derivatives)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OesStandardDerivatives`*"] pub type OesStandardDerivatives; } impl OesStandardDerivatives { #[doc = "The `OES_standard_derivatives.FRAGMENT_SHADER_DERIVATIVE_HINT_OES` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OesStandardDerivatives`*"] pub const FRAGMENT_SHADER_DERIVATIVE_HINT_OES: u32 = 35723u64 as u32; } web-sys-0.3.55/src/features/gen_OesTextureFloat.rs000064400000000000000000000011320072674642500202350ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = OES_texture_float , typescript_type = "OES_texture_float")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `OesTextureFloat` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OES_texture_float)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OesTextureFloat`*"] pub type OesTextureFloat; } web-sys-0.3.55/src/features/gen_OesTextureFloatLinear.rs000064400000000000000000000012010072674642500213650ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = OES_texture_float_linear , typescript_type = "OES_texture_float_linear")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `OesTextureFloatLinear` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OES_texture_float_linear)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OesTextureFloatLinear`*"] pub type OesTextureFloatLinear; } web-sys-0.3.55/src/features/gen_OesTextureHalfFloat.rs000064400000000000000000000016000072674642500210300ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = OES_texture_half_float , typescript_type = "OES_texture_half_float")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `OesTextureHalfFloat` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OES_texture_half_float)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OesTextureHalfFloat`*"] pub type OesTextureHalfFloat; } impl OesTextureHalfFloat { #[doc = "The `OES_texture_half_float.HALF_FLOAT_OES` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OesTextureHalfFloat`*"] pub const HALF_FLOAT_OES: u32 = 36193u64 as u32; } web-sys-0.3.55/src/features/gen_OesTextureHalfFloatLinear.rs000064400000000000000000000012340072674642500221660ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = OES_texture_half_float_linear , typescript_type = "OES_texture_half_float_linear")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `OesTextureHalfFloatLinear` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OES_texture_half_float_linear)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OesTextureHalfFloatLinear`*"] pub type OesTextureHalfFloatLinear; } web-sys-0.3.55/src/features/gen_OesVertexArrayObject.rs000064400000000000000000000065550072674642500212300ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = OES_vertex_array_object , typescript_type = "OES_vertex_array_object")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `OesVertexArrayObject` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OES_vertex_array_object)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OesVertexArrayObject`*"] pub type OesVertexArrayObject; #[cfg(feature = "WebGlVertexArrayObject")] # [wasm_bindgen (method , structural , js_class = "OES_vertex_array_object" , js_name = bindVertexArrayOES)] #[doc = "The `bindVertexArrayOES()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OES_vertex_array_object/bindVertexArrayOES)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OesVertexArrayObject`, `WebGlVertexArrayObject`*"] pub fn bind_vertex_array_oes( this: &OesVertexArrayObject, array_object: Option<&WebGlVertexArrayObject>, ); #[cfg(feature = "WebGlVertexArrayObject")] # [wasm_bindgen (method , structural , js_class = "OES_vertex_array_object" , js_name = createVertexArrayOES)] #[doc = "The `createVertexArrayOES()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OES_vertex_array_object/createVertexArrayOES)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OesVertexArrayObject`, `WebGlVertexArrayObject`*"] pub fn create_vertex_array_oes(this: &OesVertexArrayObject) -> Option; #[cfg(feature = "WebGlVertexArrayObject")] # [wasm_bindgen (method , structural , js_class = "OES_vertex_array_object" , js_name = deleteVertexArrayOES)] #[doc = "The `deleteVertexArrayOES()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OES_vertex_array_object/deleteVertexArrayOES)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OesVertexArrayObject`, `WebGlVertexArrayObject`*"] pub fn delete_vertex_array_oes( this: &OesVertexArrayObject, array_object: Option<&WebGlVertexArrayObject>, ); #[cfg(feature = "WebGlVertexArrayObject")] # [wasm_bindgen (method , structural , js_class = "OES_vertex_array_object" , js_name = isVertexArrayOES)] #[doc = "The `isVertexArrayOES()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OES_vertex_array_object/isVertexArrayOES)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OesVertexArrayObject`, `WebGlVertexArrayObject`*"] pub fn is_vertex_array_oes( this: &OesVertexArrayObject, array_object: Option<&WebGlVertexArrayObject>, ) -> bool; } impl OesVertexArrayObject { #[doc = "The `OES_vertex_array_object.VERTEX_ARRAY_BINDING_OES` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OesVertexArrayObject`*"] pub const VERTEX_ARRAY_BINDING_OES: u32 = 34229u64 as u32; } web-sys-0.3.55/src/features/gen_OfflineAudioCompletionEvent.rs000064400000000000000000000037030072674642500225460ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = OfflineAudioCompletionEvent , typescript_type = "OfflineAudioCompletionEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `OfflineAudioCompletionEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioCompletionEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineAudioCompletionEvent`*"] pub type OfflineAudioCompletionEvent; #[cfg(feature = "AudioBuffer")] # [wasm_bindgen (structural , method , getter , js_class = "OfflineAudioCompletionEvent" , js_name = renderedBuffer)] #[doc = "Getter for the `renderedBuffer` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioCompletionEvent/renderedBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`, `OfflineAudioCompletionEvent`*"] pub fn rendered_buffer(this: &OfflineAudioCompletionEvent) -> AudioBuffer; #[cfg(feature = "OfflineAudioCompletionEventInit")] #[wasm_bindgen(catch, constructor, js_class = "OfflineAudioCompletionEvent")] #[doc = "The `new OfflineAudioCompletionEvent(..)` constructor, creating a new instance of `OfflineAudioCompletionEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioCompletionEvent/OfflineAudioCompletionEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineAudioCompletionEvent`, `OfflineAudioCompletionEventInit`*"] pub fn new( type_: &str, event_init_dict: &OfflineAudioCompletionEventInit, ) -> Result; } web-sys-0.3.55/src/features/gen_OfflineAudioCompletionEventInit.rs000064400000000000000000000066730072674642500234030ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = OfflineAudioCompletionEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `OfflineAudioCompletionEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineAudioCompletionEventInit`*"] pub type OfflineAudioCompletionEventInit; } impl OfflineAudioCompletionEventInit { #[cfg(feature = "AudioBuffer")] #[doc = "Construct a new `OfflineAudioCompletionEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`, `OfflineAudioCompletionEventInit`*"] pub fn new(rendered_buffer: &AudioBuffer) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.rendered_buffer(rendered_buffer); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineAudioCompletionEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineAudioCompletionEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineAudioCompletionEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "AudioBuffer")] #[doc = "Change the `renderedBuffer` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`, `OfflineAudioCompletionEventInit`*"] pub fn rendered_buffer(&mut self, val: &AudioBuffer) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("renderedBuffer"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_OfflineAudioContext.rs000064400000000000000000000631600072674642500210620ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (vendor_prefix = webkit , extends = BaseAudioContext , extends = EventTarget , extends = :: js_sys :: Object , js_name = OfflineAudioContext , typescript_type = "OfflineAudioContext")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `OfflineAudioContext` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`*"] pub type OfflineAudioContext; # [wasm_bindgen (structural , method , getter , js_class = "OfflineAudioContext" , js_name = length)] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`*"] pub fn length(this: &OfflineAudioContext) -> u32; # [wasm_bindgen (structural , method , getter , js_class = "OfflineAudioContext" , js_name = oncomplete)] #[doc = "Getter for the `oncomplete` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/oncomplete)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`*"] pub fn oncomplete(this: &OfflineAudioContext) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "OfflineAudioContext" , js_name = oncomplete)] #[doc = "Setter for the `oncomplete` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/oncomplete)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`*"] pub fn set_oncomplete(this: &OfflineAudioContext, value: Option<&::js_sys::Function>); #[cfg(feature = "AudioDestinationNode")] # [wasm_bindgen (structural , method , getter , js_class = "OfflineAudioContext" , js_name = destination)] #[doc = "Getter for the `destination` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/destination)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDestinationNode`, `OfflineAudioContext`*"] pub fn destination(this: &OfflineAudioContext) -> AudioDestinationNode; # [wasm_bindgen (structural , method , getter , js_class = "OfflineAudioContext" , js_name = sampleRate)] #[doc = "Getter for the `sampleRate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/sampleRate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`*"] pub fn sample_rate(this: &OfflineAudioContext) -> f32; # [wasm_bindgen (structural , method , getter , js_class = "OfflineAudioContext" , js_name = currentTime)] #[doc = "Getter for the `currentTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/currentTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`*"] pub fn current_time(this: &OfflineAudioContext) -> f64; #[cfg(feature = "AudioListener")] # [wasm_bindgen (structural , method , getter , js_class = "OfflineAudioContext" , js_name = listener)] #[doc = "Getter for the `listener` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/listener)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioListener`, `OfflineAudioContext`*"] pub fn listener(this: &OfflineAudioContext) -> AudioListener; #[cfg(feature = "AudioContextState")] # [wasm_bindgen (structural , method , getter , js_class = "OfflineAudioContext" , js_name = state)] #[doc = "Getter for the `state` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/state)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContextState`, `OfflineAudioContext`*"] pub fn state(this: &OfflineAudioContext) -> AudioContextState; #[cfg(feature = "AudioWorklet")] # [wasm_bindgen (structural , catch , method , getter , js_class = "OfflineAudioContext" , js_name = audioWorklet)] #[doc = "Getter for the `audioWorklet` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/audioWorklet)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioWorklet`, `OfflineAudioContext`*"] pub fn audio_worklet(this: &OfflineAudioContext) -> Result; # [wasm_bindgen (structural , method , getter , js_class = "OfflineAudioContext" , js_name = onstatechange)] #[doc = "Getter for the `onstatechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/onstatechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`*"] pub fn onstatechange(this: &OfflineAudioContext) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "OfflineAudioContext" , js_name = onstatechange)] #[doc = "Setter for the `onstatechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/onstatechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`*"] pub fn set_onstatechange(this: &OfflineAudioContext, value: Option<&::js_sys::Function>); #[cfg(feature = "OfflineAudioContextOptions")] #[wasm_bindgen(catch, constructor, js_class = "OfflineAudioContext")] #[doc = "The `new OfflineAudioContext(..)` constructor, creating a new instance of `OfflineAudioContext`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/OfflineAudioContext)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`, `OfflineAudioContextOptions`*"] pub fn new_with_context_options( context_options: &OfflineAudioContextOptions, ) -> Result; #[wasm_bindgen(catch, constructor, js_class = "OfflineAudioContext")] #[doc = "The `new OfflineAudioContext(..)` constructor, creating a new instance of `OfflineAudioContext`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/OfflineAudioContext)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`*"] pub fn new_with_number_of_channels_and_length_and_sample_rate( number_of_channels: u32, length: u32, sample_rate: f32, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = startRendering)] #[doc = "The `startRendering()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/startRendering)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`*"] pub fn start_rendering(this: &OfflineAudioContext) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "AnalyserNode")] # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = createAnalyser)] #[doc = "The `createAnalyser()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createAnalyser)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnalyserNode`, `OfflineAudioContext`*"] pub fn create_analyser(this: &OfflineAudioContext) -> Result; #[cfg(feature = "BiquadFilterNode")] # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = createBiquadFilter)] #[doc = "The `createBiquadFilter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createBiquadFilter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BiquadFilterNode`, `OfflineAudioContext`*"] pub fn create_biquad_filter(this: &OfflineAudioContext) -> Result; #[cfg(feature = "AudioBuffer")] # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = createBuffer)] #[doc = "The `createBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`, `OfflineAudioContext`*"] pub fn create_buffer( this: &OfflineAudioContext, number_of_channels: u32, length: u32, sample_rate: f32, ) -> Result; #[cfg(feature = "AudioBufferSourceNode")] # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = createBufferSource)] #[doc = "The `createBufferSource()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createBufferSource)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`, `OfflineAudioContext`*"] pub fn create_buffer_source( this: &OfflineAudioContext, ) -> Result; #[cfg(feature = "ChannelMergerNode")] # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = createChannelMerger)] #[doc = "The `createChannelMerger()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createChannelMerger)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelMergerNode`, `OfflineAudioContext`*"] pub fn create_channel_merger(this: &OfflineAudioContext) -> Result; #[cfg(feature = "ChannelMergerNode")] # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = createChannelMerger)] #[doc = "The `createChannelMerger()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createChannelMerger)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelMergerNode`, `OfflineAudioContext`*"] pub fn create_channel_merger_with_number_of_inputs( this: &OfflineAudioContext, number_of_inputs: u32, ) -> Result; #[cfg(feature = "ChannelSplitterNode")] # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = createChannelSplitter)] #[doc = "The `createChannelSplitter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createChannelSplitter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelSplitterNode`, `OfflineAudioContext`*"] pub fn create_channel_splitter( this: &OfflineAudioContext, ) -> Result; #[cfg(feature = "ChannelSplitterNode")] # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = createChannelSplitter)] #[doc = "The `createChannelSplitter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createChannelSplitter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelSplitterNode`, `OfflineAudioContext`*"] pub fn create_channel_splitter_with_number_of_outputs( this: &OfflineAudioContext, number_of_outputs: u32, ) -> Result; #[cfg(feature = "ConstantSourceNode")] # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = createConstantSource)] #[doc = "The `createConstantSource()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createConstantSource)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstantSourceNode`, `OfflineAudioContext`*"] pub fn create_constant_source( this: &OfflineAudioContext, ) -> Result; #[cfg(feature = "ConvolverNode")] # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = createConvolver)] #[doc = "The `createConvolver()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createConvolver)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConvolverNode`, `OfflineAudioContext`*"] pub fn create_convolver(this: &OfflineAudioContext) -> Result; #[cfg(feature = "DelayNode")] # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = createDelay)] #[doc = "The `createDelay()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createDelay)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DelayNode`, `OfflineAudioContext`*"] pub fn create_delay(this: &OfflineAudioContext) -> Result; #[cfg(feature = "DelayNode")] # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = createDelay)] #[doc = "The `createDelay()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createDelay)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DelayNode`, `OfflineAudioContext`*"] pub fn create_delay_with_max_delay_time( this: &OfflineAudioContext, max_delay_time: f64, ) -> Result; #[cfg(feature = "DynamicsCompressorNode")] # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = createDynamicsCompressor)] #[doc = "The `createDynamicsCompressor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createDynamicsCompressor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DynamicsCompressorNode`, `OfflineAudioContext`*"] pub fn create_dynamics_compressor( this: &OfflineAudioContext, ) -> Result; #[cfg(feature = "GainNode")] # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = createGain)] #[doc = "The `createGain()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createGain)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GainNode`, `OfflineAudioContext`*"] pub fn create_gain(this: &OfflineAudioContext) -> Result; #[cfg(feature = "IirFilterNode")] # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = createIIRFilter)] #[doc = "The `createIIRFilter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createIIRFilter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IirFilterNode`, `OfflineAudioContext`*"] pub fn create_iir_filter( this: &OfflineAudioContext, feedforward: &::wasm_bindgen::JsValue, feedback: &::wasm_bindgen::JsValue, ) -> Result; #[cfg(feature = "OscillatorNode")] # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = createOscillator)] #[doc = "The `createOscillator()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createOscillator)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`, `OscillatorNode`*"] pub fn create_oscillator(this: &OfflineAudioContext) -> Result; #[cfg(feature = "PannerNode")] # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = createPanner)] #[doc = "The `createPanner()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createPanner)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`, `PannerNode`*"] pub fn create_panner(this: &OfflineAudioContext) -> Result; #[cfg(feature = "PeriodicWave")] # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = createPeriodicWave)] #[doc = "The `createPeriodicWave()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createPeriodicWave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`, `PeriodicWave`*"] pub fn create_periodic_wave( this: &OfflineAudioContext, real: &mut [f32], imag: &mut [f32], ) -> Result; #[cfg(all(feature = "PeriodicWave", feature = "PeriodicWaveConstraints",))] # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = createPeriodicWave)] #[doc = "The `createPeriodicWave()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createPeriodicWave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`, `PeriodicWave`, `PeriodicWaveConstraints`*"] pub fn create_periodic_wave_with_constraints( this: &OfflineAudioContext, real: &mut [f32], imag: &mut [f32], constraints: &PeriodicWaveConstraints, ) -> Result; #[cfg(feature = "ScriptProcessorNode")] # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = createScriptProcessor)] #[doc = "The `createScriptProcessor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createScriptProcessor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`, `ScriptProcessorNode`*"] pub fn create_script_processor( this: &OfflineAudioContext, ) -> Result; #[cfg(feature = "ScriptProcessorNode")] # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = createScriptProcessor)] #[doc = "The `createScriptProcessor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createScriptProcessor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`, `ScriptProcessorNode`*"] pub fn create_script_processor_with_buffer_size( this: &OfflineAudioContext, buffer_size: u32, ) -> Result; #[cfg(feature = "ScriptProcessorNode")] # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = createScriptProcessor)] #[doc = "The `createScriptProcessor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createScriptProcessor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`, `ScriptProcessorNode`*"] pub fn create_script_processor_with_buffer_size_and_number_of_input_channels( this: &OfflineAudioContext, buffer_size: u32, number_of_input_channels: u32, ) -> Result; #[cfg(feature = "ScriptProcessorNode")] # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = createScriptProcessor)] #[doc = "The `createScriptProcessor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createScriptProcessor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`, `ScriptProcessorNode`*"] pub fn create_script_processor_with_buffer_size_and_number_of_input_channels_and_number_of_output_channels( this: &OfflineAudioContext, buffer_size: u32, number_of_input_channels: u32, number_of_output_channels: u32, ) -> Result; #[cfg(feature = "StereoPannerNode")] # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = createStereoPanner)] #[doc = "The `createStereoPanner()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createStereoPanner)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`, `StereoPannerNode`*"] pub fn create_stereo_panner(this: &OfflineAudioContext) -> Result; #[cfg(feature = "WaveShaperNode")] # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = createWaveShaper)] #[doc = "The `createWaveShaper()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createWaveShaper)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`, `WaveShaperNode`*"] pub fn create_wave_shaper(this: &OfflineAudioContext) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = decodeAudioData)] #[doc = "The `decodeAudioData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/decodeAudioData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`*"] pub fn decode_audio_data( this: &OfflineAudioContext, audio_data: &::js_sys::ArrayBuffer, ) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = decodeAudioData)] #[doc = "The `decodeAudioData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/decodeAudioData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`*"] pub fn decode_audio_data_with_success_callback( this: &OfflineAudioContext, audio_data: &::js_sys::ArrayBuffer, success_callback: &::js_sys::Function, ) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = decodeAudioData)] #[doc = "The `decodeAudioData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/decodeAudioData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`*"] pub fn decode_audio_data_with_success_callback_and_error_callback( this: &OfflineAudioContext, audio_data: &::js_sys::ArrayBuffer, success_callback: &::js_sys::Function, error_callback: &::js_sys::Function, ) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "OfflineAudioContext" , js_name = resume)] #[doc = "The `resume()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/resume)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`*"] pub fn resume(this: &OfflineAudioContext) -> Result<::js_sys::Promise, JsValue>; } web-sys-0.3.55/src/features/gen_OfflineAudioContextOptions.rs000064400000000000000000000052610072674642500224340ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = OfflineAudioContextOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `OfflineAudioContextOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContextOptions`*"] pub type OfflineAudioContextOptions; } impl OfflineAudioContextOptions { #[doc = "Construct a new `OfflineAudioContextOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContextOptions`*"] pub fn new(length: u32, sample_rate: f32) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.length(length); ret.sample_rate(sample_rate); ret } #[doc = "Change the `length` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContextOptions`*"] pub fn length(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("length"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `numberOfChannels` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContextOptions`*"] pub fn number_of_channels(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("numberOfChannels"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `sampleRate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContextOptions`*"] pub fn sample_rate(&mut self, val: f32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("sampleRate"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_OfflineResourceList.rs000064400000000000000000000265060072674642500211020ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = OfflineResourceList , typescript_type = "OfflineResourceList")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `OfflineResourceList` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] pub type OfflineResourceList; # [wasm_bindgen (structural , catch , method , getter , js_class = "OfflineResourceList" , js_name = status)] #[doc = "Getter for the `status` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/status)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] pub fn status(this: &OfflineResourceList) -> Result; # [wasm_bindgen (structural , method , getter , js_class = "OfflineResourceList" , js_name = onchecking)] #[doc = "Getter for the `onchecking` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onchecking)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] pub fn onchecking(this: &OfflineResourceList) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "OfflineResourceList" , js_name = onchecking)] #[doc = "Setter for the `onchecking` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onchecking)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] pub fn set_onchecking(this: &OfflineResourceList, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "OfflineResourceList" , js_name = onerror)] #[doc = "Getter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] pub fn onerror(this: &OfflineResourceList) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "OfflineResourceList" , js_name = onerror)] #[doc = "Setter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] pub fn set_onerror(this: &OfflineResourceList, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "OfflineResourceList" , js_name = onnoupdate)] #[doc = "Getter for the `onnoupdate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onnoupdate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] pub fn onnoupdate(this: &OfflineResourceList) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "OfflineResourceList" , js_name = onnoupdate)] #[doc = "Setter for the `onnoupdate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onnoupdate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] pub fn set_onnoupdate(this: &OfflineResourceList, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "OfflineResourceList" , js_name = ondownloading)] #[doc = "Getter for the `ondownloading` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/ondownloading)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] pub fn ondownloading(this: &OfflineResourceList) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "OfflineResourceList" , js_name = ondownloading)] #[doc = "Setter for the `ondownloading` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/ondownloading)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] pub fn set_ondownloading(this: &OfflineResourceList, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "OfflineResourceList" , js_name = onprogress)] #[doc = "Getter for the `onprogress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onprogress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] pub fn onprogress(this: &OfflineResourceList) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "OfflineResourceList" , js_name = onprogress)] #[doc = "Setter for the `onprogress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onprogress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] pub fn set_onprogress(this: &OfflineResourceList, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "OfflineResourceList" , js_name = onupdateready)] #[doc = "Getter for the `onupdateready` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onupdateready)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] pub fn onupdateready(this: &OfflineResourceList) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "OfflineResourceList" , js_name = onupdateready)] #[doc = "Setter for the `onupdateready` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onupdateready)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] pub fn set_onupdateready(this: &OfflineResourceList, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "OfflineResourceList" , js_name = oncached)] #[doc = "Getter for the `oncached` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/oncached)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] pub fn oncached(this: &OfflineResourceList) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "OfflineResourceList" , js_name = oncached)] #[doc = "Setter for the `oncached` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/oncached)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] pub fn set_oncached(this: &OfflineResourceList, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "OfflineResourceList" , js_name = onobsolete)] #[doc = "Getter for the `onobsolete` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onobsolete)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] pub fn onobsolete(this: &OfflineResourceList) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "OfflineResourceList" , js_name = onobsolete)] #[doc = "Setter for the `onobsolete` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onobsolete)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] pub fn set_onobsolete(this: &OfflineResourceList, value: Option<&::js_sys::Function>); # [wasm_bindgen (catch , method , structural , js_class = "OfflineResourceList" , js_name = swapCache)] #[doc = "The `swapCache()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/swapCache)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] pub fn swap_cache(this: &OfflineResourceList) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "OfflineResourceList" , js_name = update)] #[doc = "The `update()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/update)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] pub fn update(this: &OfflineResourceList) -> Result<(), JsValue>; } impl OfflineResourceList { #[doc = "The `OfflineResourceList.UNCACHED` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] pub const UNCACHED: u16 = 0i64 as u16; #[doc = "The `OfflineResourceList.IDLE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] pub const IDLE: u16 = 1u64 as u16; #[doc = "The `OfflineResourceList.CHECKING` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] pub const CHECKING: u16 = 2u64 as u16; #[doc = "The `OfflineResourceList.DOWNLOADING` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] pub const DOWNLOADING: u16 = 3u64 as u16; #[doc = "The `OfflineResourceList.UPDATEREADY` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] pub const UPDATEREADY: u16 = 4u64 as u16; #[doc = "The `OfflineResourceList.OBSOLETE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] pub const OBSOLETE: u16 = 5u64 as u16; } web-sys-0.3.55/src/features/gen_OffscreenCanvas.rs000064400000000000000000000137740072674642500202250ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = OffscreenCanvas , typescript_type = "OffscreenCanvas")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `OffscreenCanvas` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvas`*"] pub type OffscreenCanvas; # [wasm_bindgen (structural , method , getter , js_class = "OffscreenCanvas" , js_name = width)] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvas`*"] pub fn width(this: &OffscreenCanvas) -> u32; # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvas" , js_name = width)] #[doc = "Setter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvas`*"] pub fn set_width(this: &OffscreenCanvas, value: u32); # [wasm_bindgen (structural , method , getter , js_class = "OffscreenCanvas" , js_name = height)] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvas`*"] pub fn height(this: &OffscreenCanvas) -> u32; # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvas" , js_name = height)] #[doc = "Setter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvas`*"] pub fn set_height(this: &OffscreenCanvas, value: u32); #[wasm_bindgen(catch, constructor, js_class = "OffscreenCanvas")] #[doc = "The `new OffscreenCanvas(..)` constructor, creating a new instance of `OffscreenCanvas`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/OffscreenCanvas)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvas`*"] pub fn new(width: u32, height: u32) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvas" , js_name = getContext)] #[doc = "The `getContext()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/getContext)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvas`*"] pub fn get_context( this: &OffscreenCanvas, context_id: &str, ) -> Result, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvas" , js_name = getContext)] #[doc = "The `getContext()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/getContext)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvas`*"] pub fn get_context_with_context_options( this: &OffscreenCanvas, context_id: &str, context_options: &::wasm_bindgen::JsValue, ) -> Result, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvas" , js_name = toBlob)] #[doc = "The `toBlob()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/toBlob)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvas`*"] pub fn to_blob(this: &OffscreenCanvas) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvas" , js_name = toBlob)] #[doc = "The `toBlob()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/toBlob)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvas`*"] pub fn to_blob_with_type( this: &OffscreenCanvas, type_: &str, ) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvas" , js_name = toBlob)] #[doc = "The `toBlob()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/toBlob)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvas`*"] pub fn to_blob_with_type_and_encoder_options( this: &OffscreenCanvas, type_: &str, encoder_options: &::wasm_bindgen::JsValue, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "ImageBitmap")] # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvas" , js_name = transferToImageBitmap)] #[doc = "The `transferToImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/transferToImageBitmap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `OffscreenCanvas`*"] pub fn transfer_to_image_bitmap(this: &OffscreenCanvas) -> Result; } web-sys-0.3.55/src/features/gen_OpenWindowEventDetail.rs000064400000000000000000000062400072674642500213630ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = OpenWindowEventDetail)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `OpenWindowEventDetail` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OpenWindowEventDetail`*"] pub type OpenWindowEventDetail; } impl OpenWindowEventDetail { #[doc = "Construct a new `OpenWindowEventDetail`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OpenWindowEventDetail`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `features` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OpenWindowEventDetail`*"] pub fn features(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("features"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "Node")] #[doc = "Change the `frameElement` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `OpenWindowEventDetail`*"] pub fn frame_element(&mut self, val: Option<&Node>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("frameElement"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OpenWindowEventDetail`*"] pub fn name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `url` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OpenWindowEventDetail`*"] pub fn url(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("url"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for OpenWindowEventDetail { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_OptionalEffectTiming.rs000064400000000000000000000130500072674642500212140ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = OptionalEffectTiming)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `OptionalEffectTiming` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OptionalEffectTiming`*"] pub type OptionalEffectTiming; } impl OptionalEffectTiming { #[doc = "Construct a new `OptionalEffectTiming`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OptionalEffectTiming`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `delay` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OptionalEffectTiming`*"] pub fn delay(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("delay"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "PlaybackDirection")] #[doc = "Change the `direction` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OptionalEffectTiming`, `PlaybackDirection`*"] pub fn direction(&mut self, val: PlaybackDirection) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("direction"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `duration` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OptionalEffectTiming`*"] pub fn duration(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("duration"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `easing` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OptionalEffectTiming`*"] pub fn easing(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("easing"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `endDelay` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OptionalEffectTiming`*"] pub fn end_delay(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("endDelay"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "FillMode")] #[doc = "Change the `fill` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FillMode`, `OptionalEffectTiming`*"] pub fn fill(&mut self, val: FillMode) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("fill"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `iterationStart` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OptionalEffectTiming`*"] pub fn iteration_start(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("iterationStart"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `iterations` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OptionalEffectTiming`*"] pub fn iterations(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("iterations"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for OptionalEffectTiming { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_OrientationLockType.rs000064400000000000000000000011060072674642500211070ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `OrientationLockType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OrientationLockType`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum OrientationLockType { Any = "any", Natural = "natural", Landscape = "landscape", Portrait = "portrait", PortraitPrimary = "portrait-primary", PortraitSecondary = "portrait-secondary", LandscapePrimary = "landscape-primary", LandscapeSecondary = "landscape-secondary", } web-sys-0.3.55/src/features/gen_OrientationType.rs000064400000000000000000000007300072674642500203000ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `OrientationType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OrientationType`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum OrientationType { PortraitPrimary = "portrait-primary", PortraitSecondary = "portrait-secondary", LandscapePrimary = "landscape-primary", LandscapeSecondary = "landscape-secondary", } web-sys-0.3.55/src/features/gen_OscillatorNode.rs000064400000000000000000000160330072674642500200670ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = AudioScheduledSourceNode , extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = OscillatorNode , typescript_type = "OscillatorNode")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `OscillatorNode` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OscillatorNode`*"] pub type OscillatorNode; #[cfg(feature = "OscillatorType")] # [wasm_bindgen (structural , method , getter , js_class = "OscillatorNode" , js_name = type)] #[doc = "Getter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OscillatorNode`, `OscillatorType`*"] pub fn type_(this: &OscillatorNode) -> OscillatorType; #[cfg(feature = "OscillatorType")] # [wasm_bindgen (structural , method , setter , js_class = "OscillatorNode" , js_name = type)] #[doc = "Setter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OscillatorNode`, `OscillatorType`*"] pub fn set_type(this: &OscillatorNode, value: OscillatorType); #[cfg(feature = "AudioParam")] # [wasm_bindgen (structural , method , getter , js_class = "OscillatorNode" , js_name = frequency)] #[doc = "Getter for the `frequency` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/frequency)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `OscillatorNode`*"] pub fn frequency(this: &OscillatorNode) -> AudioParam; #[cfg(feature = "AudioParam")] # [wasm_bindgen (structural , method , getter , js_class = "OscillatorNode" , js_name = detune)] #[doc = "Getter for the `detune` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/detune)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `OscillatorNode`*"] pub fn detune(this: &OscillatorNode) -> AudioParam; # [wasm_bindgen (structural , method , getter , js_class = "OscillatorNode" , js_name = onended)] #[doc = "Getter for the `onended` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/onended)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OscillatorNode`*"] pub fn onended(this: &OscillatorNode) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "OscillatorNode" , js_name = onended)] #[doc = "Setter for the `onended` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/onended)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OscillatorNode`*"] pub fn set_onended(this: &OscillatorNode, value: Option<&::js_sys::Function>); #[cfg(feature = "BaseAudioContext")] #[wasm_bindgen(catch, constructor, js_class = "OscillatorNode")] #[doc = "The `new OscillatorNode(..)` constructor, creating a new instance of `OscillatorNode`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/OscillatorNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `OscillatorNode`*"] pub fn new(context: &BaseAudioContext) -> Result; #[cfg(all(feature = "BaseAudioContext", feature = "OscillatorOptions",))] #[wasm_bindgen(catch, constructor, js_class = "OscillatorNode")] #[doc = "The `new OscillatorNode(..)` constructor, creating a new instance of `OscillatorNode`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/OscillatorNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `OscillatorNode`, `OscillatorOptions`*"] pub fn new_with_options( context: &BaseAudioContext, options: &OscillatorOptions, ) -> Result; #[cfg(feature = "PeriodicWave")] # [wasm_bindgen (method , structural , js_class = "OscillatorNode" , js_name = setPeriodicWave)] #[doc = "The `setPeriodicWave()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/setPeriodicWave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OscillatorNode`, `PeriodicWave`*"] pub fn set_periodic_wave(this: &OscillatorNode, periodic_wave: &PeriodicWave); # [wasm_bindgen (catch , method , structural , js_class = "OscillatorNode" , js_name = start)] #[doc = "The `start()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/start)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OscillatorNode`*"] pub fn start(this: &OscillatorNode) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "OscillatorNode" , js_name = start)] #[doc = "The `start()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/start)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OscillatorNode`*"] pub fn start_with_when(this: &OscillatorNode, when: f64) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "OscillatorNode" , js_name = stop)] #[doc = "The `stop()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/stop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OscillatorNode`*"] pub fn stop(this: &OscillatorNode) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "OscillatorNode" , js_name = stop)] #[doc = "The `stop()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/stop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OscillatorNode`*"] pub fn stop_with_when(this: &OscillatorNode, when: f64) -> Result<(), JsValue>; } web-sys-0.3.55/src/features/gen_OscillatorOptions.rs000064400000000000000000000122660072674642500206410ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = OscillatorOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `OscillatorOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OscillatorOptions`*"] pub type OscillatorOptions; } impl OscillatorOptions { #[doc = "Construct a new `OscillatorOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OscillatorOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OscillatorOptions`*"] pub fn channel_count(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("channelCount"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "ChannelCountMode")] #[doc = "Change the `channelCountMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelCountMode`, `OscillatorOptions`*"] pub fn channel_count_mode(&mut self, val: ChannelCountMode) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("channelCountMode"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "ChannelInterpretation")] #[doc = "Change the `channelInterpretation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelInterpretation`, `OscillatorOptions`*"] pub fn channel_interpretation(&mut self, val: ChannelInterpretation) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("channelInterpretation"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `detune` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OscillatorOptions`*"] pub fn detune(&mut self, val: f32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("detune"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `frequency` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OscillatorOptions`*"] pub fn frequency(&mut self, val: f32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("frequency"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "PeriodicWave")] #[doc = "Change the `periodicWave` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OscillatorOptions`, `PeriodicWave`*"] pub fn periodic_wave(&mut self, val: &PeriodicWave) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("periodicWave"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "OscillatorType")] #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OscillatorOptions`, `OscillatorType`*"] pub fn type_(&mut self, val: OscillatorType) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for OscillatorOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_OscillatorType.rs000064400000000000000000000006300072674642500201170ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `OscillatorType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OscillatorType`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum OscillatorType { Sine = "sine", Square = "square", Sawtooth = "sawtooth", Triangle = "triangle", Custom = "custom", } web-sys-0.3.55/src/features/gen_OverSampleType.rs000064400000000000000000000005240072674642500200630ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `OverSampleType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OverSampleType`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum OverSampleType { None = "none", N2x = "2x", N4x = "4x", } web-sys-0.3.55/src/features/gen_PageTransitionEvent.rs000064400000000000000000000043540072674642500211020ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = PageTransitionEvent , typescript_type = "PageTransitionEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PageTransitionEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PageTransitionEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PageTransitionEvent`*"] pub type PageTransitionEvent; # [wasm_bindgen (structural , method , getter , js_class = "PageTransitionEvent" , js_name = persisted)] #[doc = "Getter for the `persisted` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PageTransitionEvent/persisted)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PageTransitionEvent`*"] pub fn persisted(this: &PageTransitionEvent) -> bool; #[wasm_bindgen(catch, constructor, js_class = "PageTransitionEvent")] #[doc = "The `new PageTransitionEvent(..)` constructor, creating a new instance of `PageTransitionEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PageTransitionEvent/PageTransitionEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PageTransitionEvent`*"] pub fn new(type_: &str) -> Result; #[cfg(feature = "PageTransitionEventInit")] #[wasm_bindgen(catch, constructor, js_class = "PageTransitionEvent")] #[doc = "The `new PageTransitionEvent(..)` constructor, creating a new instance of `PageTransitionEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PageTransitionEvent/PageTransitionEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PageTransitionEvent`, `PageTransitionEventInit`*"] pub fn new_with_event_init_dict( type_: &str, event_init_dict: &PageTransitionEventInit, ) -> Result; } web-sys-0.3.55/src/features/gen_PageTransitionEventInit.rs000064400000000000000000000075340072674642500217310ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PageTransitionEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PageTransitionEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PageTransitionEventInit`*"] pub type PageTransitionEventInit; } impl PageTransitionEventInit { #[doc = "Construct a new `PageTransitionEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PageTransitionEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PageTransitionEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PageTransitionEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PageTransitionEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `inFrameSwap` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PageTransitionEventInit`*"] pub fn in_frame_swap(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("inFrameSwap"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `persisted` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PageTransitionEventInit`*"] pub fn persisted(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("persisted"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for PageTransitionEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_PaintRequest.rs000064400000000000000000000027320072674642500175730ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PaintRequest , typescript_type = "PaintRequest")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PaintRequest` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaintRequest)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaintRequest`*"] pub type PaintRequest; #[cfg(feature = "DomRect")] # [wasm_bindgen (structural , method , getter , js_class = "PaintRequest" , js_name = clientRect)] #[doc = "Getter for the `clientRect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaintRequest/clientRect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRect`, `PaintRequest`*"] pub fn client_rect(this: &PaintRequest) -> DomRect; # [wasm_bindgen (structural , method , getter , js_class = "PaintRequest" , js_name = reason)] #[doc = "Getter for the `reason` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaintRequest/reason)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaintRequest`*"] pub fn reason(this: &PaintRequest) -> String; } web-sys-0.3.55/src/features/gen_PaintRequestList.rs000064400000000000000000000036070072674642500204310ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PaintRequestList , typescript_type = "PaintRequestList")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PaintRequestList` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaintRequestList)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaintRequestList`*"] pub type PaintRequestList; # [wasm_bindgen (structural , method , getter , js_class = "PaintRequestList" , js_name = length)] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaintRequestList/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaintRequestList`*"] pub fn length(this: &PaintRequestList) -> u32; #[cfg(feature = "PaintRequest")] # [wasm_bindgen (method , structural , js_class = "PaintRequestList" , js_name = item)] #[doc = "The `item()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaintRequestList/item)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaintRequest`, `PaintRequestList`*"] pub fn item(this: &PaintRequestList, index: u32) -> Option; #[cfg(feature = "PaintRequest")] #[wasm_bindgen(method, structural, js_class = "PaintRequestList", indexing_getter)] #[doc = "Indexing getter."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaintRequest`, `PaintRequestList`*"] pub fn get(this: &PaintRequestList, index: u32) -> Option; } web-sys-0.3.55/src/features/gen_PaintWorkletGlobalScope.rs000064400000000000000000000022560072674642500217060ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = WorkletGlobalScope , extends = :: js_sys :: Object , js_name = PaintWorkletGlobalScope , typescript_type = "PaintWorkletGlobalScope")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PaintWorkletGlobalScope` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaintWorkletGlobalScope)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaintWorkletGlobalScope`*"] pub type PaintWorkletGlobalScope; # [wasm_bindgen (method , structural , js_class = "PaintWorkletGlobalScope" , js_name = registerPaint)] #[doc = "The `registerPaint()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaintWorkletGlobalScope/registerPaint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaintWorkletGlobalScope`*"] pub fn register_paint( this: &PaintWorkletGlobalScope, name: &str, paint_ctor: &::js_sys::Function, ); } web-sys-0.3.55/src/features/gen_PannerNode.rs000064400000000000000000000330340072674642500171770ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = PannerNode , typescript_type = "PannerNode")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PannerNode` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"] pub type PannerNode; #[cfg(feature = "PanningModelType")] # [wasm_bindgen (structural , method , getter , js_class = "PannerNode" , js_name = panningModel)] #[doc = "Getter for the `panningModel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/panningModel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerNode`, `PanningModelType`*"] pub fn panning_model(this: &PannerNode) -> PanningModelType; #[cfg(feature = "PanningModelType")] # [wasm_bindgen (structural , method , setter , js_class = "PannerNode" , js_name = panningModel)] #[doc = "Setter for the `panningModel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/panningModel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerNode`, `PanningModelType`*"] pub fn set_panning_model(this: &PannerNode, value: PanningModelType); #[cfg(feature = "AudioParam")] # [wasm_bindgen (structural , method , getter , js_class = "PannerNode" , js_name = positionX)] #[doc = "Getter for the `positionX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/positionX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `PannerNode`*"] pub fn position_x(this: &PannerNode) -> AudioParam; #[cfg(feature = "AudioParam")] # [wasm_bindgen (structural , method , getter , js_class = "PannerNode" , js_name = positionY)] #[doc = "Getter for the `positionY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/positionY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `PannerNode`*"] pub fn position_y(this: &PannerNode) -> AudioParam; #[cfg(feature = "AudioParam")] # [wasm_bindgen (structural , method , getter , js_class = "PannerNode" , js_name = positionZ)] #[doc = "Getter for the `positionZ` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/positionZ)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `PannerNode`*"] pub fn position_z(this: &PannerNode) -> AudioParam; #[cfg(feature = "AudioParam")] # [wasm_bindgen (structural , method , getter , js_class = "PannerNode" , js_name = orientationX)] #[doc = "Getter for the `orientationX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/orientationX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `PannerNode`*"] pub fn orientation_x(this: &PannerNode) -> AudioParam; #[cfg(feature = "AudioParam")] # [wasm_bindgen (structural , method , getter , js_class = "PannerNode" , js_name = orientationY)] #[doc = "Getter for the `orientationY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/orientationY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `PannerNode`*"] pub fn orientation_y(this: &PannerNode) -> AudioParam; #[cfg(feature = "AudioParam")] # [wasm_bindgen (structural , method , getter , js_class = "PannerNode" , js_name = orientationZ)] #[doc = "Getter for the `orientationZ` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/orientationZ)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `PannerNode`*"] pub fn orientation_z(this: &PannerNode) -> AudioParam; #[cfg(feature = "DistanceModelType")] # [wasm_bindgen (structural , method , getter , js_class = "PannerNode" , js_name = distanceModel)] #[doc = "Getter for the `distanceModel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/distanceModel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DistanceModelType`, `PannerNode`*"] pub fn distance_model(this: &PannerNode) -> DistanceModelType; #[cfg(feature = "DistanceModelType")] # [wasm_bindgen (structural , method , setter , js_class = "PannerNode" , js_name = distanceModel)] #[doc = "Setter for the `distanceModel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/distanceModel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DistanceModelType`, `PannerNode`*"] pub fn set_distance_model(this: &PannerNode, value: DistanceModelType); # [wasm_bindgen (structural , method , getter , js_class = "PannerNode" , js_name = refDistance)] #[doc = "Getter for the `refDistance` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/refDistance)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"] pub fn ref_distance(this: &PannerNode) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "PannerNode" , js_name = refDistance)] #[doc = "Setter for the `refDistance` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/refDistance)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"] pub fn set_ref_distance(this: &PannerNode, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "PannerNode" , js_name = maxDistance)] #[doc = "Getter for the `maxDistance` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/maxDistance)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"] pub fn max_distance(this: &PannerNode) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "PannerNode" , js_name = maxDistance)] #[doc = "Setter for the `maxDistance` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/maxDistance)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"] pub fn set_max_distance(this: &PannerNode, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "PannerNode" , js_name = rolloffFactor)] #[doc = "Getter for the `rolloffFactor` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/rolloffFactor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"] pub fn rolloff_factor(this: &PannerNode) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "PannerNode" , js_name = rolloffFactor)] #[doc = "Setter for the `rolloffFactor` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/rolloffFactor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"] pub fn set_rolloff_factor(this: &PannerNode, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "PannerNode" , js_name = coneInnerAngle)] #[doc = "Getter for the `coneInnerAngle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/coneInnerAngle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"] pub fn cone_inner_angle(this: &PannerNode) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "PannerNode" , js_name = coneInnerAngle)] #[doc = "Setter for the `coneInnerAngle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/coneInnerAngle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"] pub fn set_cone_inner_angle(this: &PannerNode, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "PannerNode" , js_name = coneOuterAngle)] #[doc = "Getter for the `coneOuterAngle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/coneOuterAngle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"] pub fn cone_outer_angle(this: &PannerNode) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "PannerNode" , js_name = coneOuterAngle)] #[doc = "Setter for the `coneOuterAngle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/coneOuterAngle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"] pub fn set_cone_outer_angle(this: &PannerNode, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "PannerNode" , js_name = coneOuterGain)] #[doc = "Getter for the `coneOuterGain` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/coneOuterGain)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"] pub fn cone_outer_gain(this: &PannerNode) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "PannerNode" , js_name = coneOuterGain)] #[doc = "Setter for the `coneOuterGain` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/coneOuterGain)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"] pub fn set_cone_outer_gain(this: &PannerNode, value: f64); #[cfg(feature = "BaseAudioContext")] #[wasm_bindgen(catch, constructor, js_class = "PannerNode")] #[doc = "The `new PannerNode(..)` constructor, creating a new instance of `PannerNode`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/PannerNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `PannerNode`*"] pub fn new(context: &BaseAudioContext) -> Result; #[cfg(all(feature = "BaseAudioContext", feature = "PannerOptions",))] #[wasm_bindgen(catch, constructor, js_class = "PannerNode")] #[doc = "The `new PannerNode(..)` constructor, creating a new instance of `PannerNode`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/PannerNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `PannerNode`, `PannerOptions`*"] pub fn new_with_options( context: &BaseAudioContext, options: &PannerOptions, ) -> Result; # [wasm_bindgen (method , structural , js_class = "PannerNode" , js_name = setOrientation)] #[doc = "The `setOrientation()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/setOrientation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"] pub fn set_orientation(this: &PannerNode, x: f64, y: f64, z: f64); # [wasm_bindgen (method , structural , js_class = "PannerNode" , js_name = setPosition)] #[doc = "The `setPosition()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/setPosition)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"] pub fn set_position(this: &PannerNode, x: f64, y: f64, z: f64); # [wasm_bindgen (method , structural , js_class = "PannerNode" , js_name = setVelocity)] #[doc = "The `setVelocity()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/setVelocity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"] pub fn set_velocity(this: &PannerNode, x: f64, y: f64, z: f64); } web-sys-0.3.55/src/features/gen_PannerOptions.rs000064400000000000000000000261620072674642500177510ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PannerOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PannerOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerOptions`*"] pub type PannerOptions; } impl PannerOptions { #[doc = "Construct a new `PannerOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerOptions`*"] pub fn channel_count(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("channelCount"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "ChannelCountMode")] #[doc = "Change the `channelCountMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelCountMode`, `PannerOptions`*"] pub fn channel_count_mode(&mut self, val: ChannelCountMode) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("channelCountMode"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "ChannelInterpretation")] #[doc = "Change the `channelInterpretation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelInterpretation`, `PannerOptions`*"] pub fn channel_interpretation(&mut self, val: ChannelInterpretation) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("channelInterpretation"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `coneInnerAngle` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerOptions`*"] pub fn cone_inner_angle(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("coneInnerAngle"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `coneOuterAngle` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerOptions`*"] pub fn cone_outer_angle(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("coneOuterAngle"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `coneOuterGain` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerOptions`*"] pub fn cone_outer_gain(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("coneOuterGain"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "DistanceModelType")] #[doc = "Change the `distanceModel` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DistanceModelType`, `PannerOptions`*"] pub fn distance_model(&mut self, val: DistanceModelType) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("distanceModel"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `maxDistance` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerOptions`*"] pub fn max_distance(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("maxDistance"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `orientationX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerOptions`*"] pub fn orientation_x(&mut self, val: f32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("orientationX"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `orientationY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerOptions`*"] pub fn orientation_y(&mut self, val: f32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("orientationY"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `orientationZ` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerOptions`*"] pub fn orientation_z(&mut self, val: f32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("orientationZ"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "PanningModelType")] #[doc = "Change the `panningModel` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerOptions`, `PanningModelType`*"] pub fn panning_model(&mut self, val: PanningModelType) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("panningModel"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `positionX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerOptions`*"] pub fn position_x(&mut self, val: f32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("positionX"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `positionY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerOptions`*"] pub fn position_y(&mut self, val: f32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("positionY"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `positionZ` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerOptions`*"] pub fn position_z(&mut self, val: f32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("positionZ"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `refDistance` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerOptions`*"] pub fn ref_distance(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("refDistance"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `rolloffFactor` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerOptions`*"] pub fn rolloff_factor(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("rolloffFactor"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for PannerOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_PanningModelType.rs000064400000000000000000000005310072674642500203570ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `PanningModelType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PanningModelType`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum PanningModelType { Equalpower = "equalpower", Hrtf = "HRTF", } web-sys-0.3.55/src/features/gen_Path2d.rs000064400000000000000000000175670072674642500163050ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Path2D , typescript_type = "Path2D")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Path2d` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Path2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Path2d`*"] pub type Path2d; #[wasm_bindgen(catch, constructor, js_class = "Path2D")] #[doc = "The `new Path2d(..)` constructor, creating a new instance of `Path2d`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Path2D/Path2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Path2d`*"] pub fn new() -> Result; #[wasm_bindgen(catch, constructor, js_class = "Path2D")] #[doc = "The `new Path2d(..)` constructor, creating a new instance of `Path2d`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Path2D/Path2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Path2d`*"] pub fn new_with_other(other: &Path2d) -> Result; #[wasm_bindgen(catch, constructor, js_class = "Path2D")] #[doc = "The `new Path2d(..)` constructor, creating a new instance of `Path2d`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Path2D/Path2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Path2d`*"] pub fn new_with_path_string(path_string: &str) -> Result; # [wasm_bindgen (method , structural , js_class = "Path2D" , js_name = addPath)] #[doc = "The `addPath()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Path2D/addPath)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Path2d`*"] pub fn add_path(this: &Path2d, path: &Path2d); #[cfg(feature = "SvgMatrix")] # [wasm_bindgen (method , structural , js_class = "Path2D" , js_name = addPath)] #[doc = "The `addPath()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Path2D/addPath)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Path2d`, `SvgMatrix`*"] pub fn add_path_with_transformation(this: &Path2d, path: &Path2d, transformation: &SvgMatrix); # [wasm_bindgen (catch , method , structural , js_class = "Path2D" , js_name = arc)] #[doc = "The `arc()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Path2D/arc)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Path2d`*"] pub fn arc( this: &Path2d, x: f64, y: f64, radius: f64, start_angle: f64, end_angle: f64, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Path2D" , js_name = arc)] #[doc = "The `arc()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Path2D/arc)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Path2d`*"] pub fn arc_with_anticlockwise( this: &Path2d, x: f64, y: f64, radius: f64, start_angle: f64, end_angle: f64, anticlockwise: bool, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Path2D" , js_name = arcTo)] #[doc = "The `arcTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Path2D/arcTo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Path2d`*"] pub fn arc_to( this: &Path2d, x1: f64, y1: f64, x2: f64, y2: f64, radius: f64, ) -> Result<(), JsValue>; # [wasm_bindgen (method , structural , js_class = "Path2D" , js_name = bezierCurveTo)] #[doc = "The `bezierCurveTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Path2D/bezierCurveTo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Path2d`*"] pub fn bezier_curve_to( this: &Path2d, cp1x: f64, cp1y: f64, cp2x: f64, cp2y: f64, x: f64, y: f64, ); # [wasm_bindgen (method , structural , js_class = "Path2D" , js_name = closePath)] #[doc = "The `closePath()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Path2D/closePath)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Path2d`*"] pub fn close_path(this: &Path2d); # [wasm_bindgen (catch , method , structural , js_class = "Path2D" , js_name = ellipse)] #[doc = "The `ellipse()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Path2D/ellipse)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Path2d`*"] pub fn ellipse( this: &Path2d, x: f64, y: f64, radius_x: f64, radius_y: f64, rotation: f64, start_angle: f64, end_angle: f64, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Path2D" , js_name = ellipse)] #[doc = "The `ellipse()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Path2D/ellipse)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Path2d`*"] pub fn ellipse_with_anticlockwise( this: &Path2d, x: f64, y: f64, radius_x: f64, radius_y: f64, rotation: f64, start_angle: f64, end_angle: f64, anticlockwise: bool, ) -> Result<(), JsValue>; # [wasm_bindgen (method , structural , js_class = "Path2D" , js_name = lineTo)] #[doc = "The `lineTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Path2D/lineTo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Path2d`*"] pub fn line_to(this: &Path2d, x: f64, y: f64); # [wasm_bindgen (method , structural , js_class = "Path2D" , js_name = moveTo)] #[doc = "The `moveTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Path2D/moveTo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Path2d`*"] pub fn move_to(this: &Path2d, x: f64, y: f64); # [wasm_bindgen (method , structural , js_class = "Path2D" , js_name = quadraticCurveTo)] #[doc = "The `quadraticCurveTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Path2D/quadraticCurveTo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Path2d`*"] pub fn quadratic_curve_to(this: &Path2d, cpx: f64, cpy: f64, x: f64, y: f64); # [wasm_bindgen (method , structural , js_class = "Path2D" , js_name = rect)] #[doc = "The `rect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Path2D/rect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Path2d`*"] pub fn rect(this: &Path2d, x: f64, y: f64, w: f64, h: f64); } web-sys-0.3.55/src/features/gen_PaymentAddress.rs000064400000000000000000000137500072674642500200740ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PaymentAddress , typescript_type = "PaymentAddress")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PaymentAddress` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentAddress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentAddress`*"] pub type PaymentAddress; # [wasm_bindgen (structural , method , getter , js_class = "PaymentAddress" , js_name = country)] #[doc = "Getter for the `country` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentAddress/country)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentAddress`*"] pub fn country(this: &PaymentAddress) -> String; # [wasm_bindgen (structural , method , getter , js_class = "PaymentAddress" , js_name = addressLine)] #[doc = "Getter for the `addressLine` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentAddress/addressLine)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentAddress`*"] pub fn address_line(this: &PaymentAddress) -> ::js_sys::Array; # [wasm_bindgen (structural , method , getter , js_class = "PaymentAddress" , js_name = region)] #[doc = "Getter for the `region` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentAddress/region)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentAddress`*"] pub fn region(this: &PaymentAddress) -> String; # [wasm_bindgen (structural , method , getter , js_class = "PaymentAddress" , js_name = city)] #[doc = "Getter for the `city` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentAddress/city)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentAddress`*"] pub fn city(this: &PaymentAddress) -> String; # [wasm_bindgen (structural , method , getter , js_class = "PaymentAddress" , js_name = dependentLocality)] #[doc = "Getter for the `dependentLocality` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentAddress/dependentLocality)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentAddress`*"] pub fn dependent_locality(this: &PaymentAddress) -> String; # [wasm_bindgen (structural , method , getter , js_class = "PaymentAddress" , js_name = postalCode)] #[doc = "Getter for the `postalCode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentAddress/postalCode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentAddress`*"] pub fn postal_code(this: &PaymentAddress) -> String; # [wasm_bindgen (structural , method , getter , js_class = "PaymentAddress" , js_name = sortingCode)] #[doc = "Getter for the `sortingCode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentAddress/sortingCode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentAddress`*"] pub fn sorting_code(this: &PaymentAddress) -> String; # [wasm_bindgen (structural , method , getter , js_class = "PaymentAddress" , js_name = languageCode)] #[doc = "Getter for the `languageCode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentAddress/languageCode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentAddress`*"] pub fn language_code(this: &PaymentAddress) -> String; # [wasm_bindgen (structural , method , getter , js_class = "PaymentAddress" , js_name = organization)] #[doc = "Getter for the `organization` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentAddress/organization)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentAddress`*"] pub fn organization(this: &PaymentAddress) -> String; # [wasm_bindgen (structural , method , getter , js_class = "PaymentAddress" , js_name = recipient)] #[doc = "Getter for the `recipient` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentAddress/recipient)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentAddress`*"] pub fn recipient(this: &PaymentAddress) -> String; # [wasm_bindgen (structural , method , getter , js_class = "PaymentAddress" , js_name = phone)] #[doc = "Getter for the `phone` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentAddress/phone)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentAddress`*"] pub fn phone(this: &PaymentAddress) -> String; # [wasm_bindgen (method , structural , js_class = "PaymentAddress" , js_name = toJSON)] #[doc = "The `toJSON()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentAddress/toJSON)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentAddress`*"] pub fn to_json(this: &PaymentAddress) -> ::js_sys::Object; } web-sys-0.3.55/src/features/gen_PaymentComplete.rs000064400000000000000000000005510072674642500202520ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `PaymentComplete` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentComplete`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum PaymentComplete { Success = "success", Fail = "fail", Unknown = "unknown", } web-sys-0.3.55/src/features/gen_PaymentMethodChangeEvent.rs000064400000000000000000000056720072674642500220430ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = PaymentRequestUpdateEvent , extends = Event , extends = :: js_sys :: Object , js_name = PaymentMethodChangeEvent , typescript_type = "PaymentMethodChangeEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PaymentMethodChangeEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentMethodChangeEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentMethodChangeEvent`*"] pub type PaymentMethodChangeEvent; # [wasm_bindgen (structural , method , getter , js_class = "PaymentMethodChangeEvent" , js_name = methodName)] #[doc = "Getter for the `methodName` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentMethodChangeEvent/methodName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentMethodChangeEvent`*"] pub fn method_name(this: &PaymentMethodChangeEvent) -> String; # [wasm_bindgen (structural , method , getter , js_class = "PaymentMethodChangeEvent" , js_name = methodDetails)] #[doc = "Getter for the `methodDetails` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentMethodChangeEvent/methodDetails)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentMethodChangeEvent`*"] pub fn method_details(this: &PaymentMethodChangeEvent) -> Option<::js_sys::Object>; #[wasm_bindgen(catch, constructor, js_class = "PaymentMethodChangeEvent")] #[doc = "The `new PaymentMethodChangeEvent(..)` constructor, creating a new instance of `PaymentMethodChangeEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentMethodChangeEvent/PaymentMethodChangeEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentMethodChangeEvent`*"] pub fn new(type_: &str) -> Result; #[cfg(feature = "PaymentMethodChangeEventInit")] #[wasm_bindgen(catch, constructor, js_class = "PaymentMethodChangeEvent")] #[doc = "The `new PaymentMethodChangeEvent(..)` constructor, creating a new instance of `PaymentMethodChangeEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentMethodChangeEvent/PaymentMethodChangeEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentMethodChangeEvent`, `PaymentMethodChangeEventInit`*"] pub fn new_with_event_init_dict( type_: &str, event_init_dict: &PaymentMethodChangeEventInit, ) -> Result; } web-sys-0.3.55/src/features/gen_PaymentMethodChangeEventInit.rs000064400000000000000000000076130072674642500226640ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PaymentMethodChangeEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PaymentMethodChangeEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentMethodChangeEventInit`*"] pub type PaymentMethodChangeEventInit; } impl PaymentMethodChangeEventInit { #[doc = "Construct a new `PaymentMethodChangeEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentMethodChangeEventInit`*"] pub fn new(method_name: &str) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.method_name(method_name); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentMethodChangeEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentMethodChangeEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentMethodChangeEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `methodDetails` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentMethodChangeEventInit`*"] pub fn method_details(&mut self, val: Option<&::js_sys::Object>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("methodDetails"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `methodName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentMethodChangeEventInit`*"] pub fn method_name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("methodName"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_PaymentRequestUpdateEvent.rs000064400000000000000000000047060072674642500223050ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = PaymentRequestUpdateEvent , typescript_type = "PaymentRequestUpdateEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PaymentRequestUpdateEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentRequestUpdateEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentRequestUpdateEvent`*"] pub type PaymentRequestUpdateEvent; #[wasm_bindgen(catch, constructor, js_class = "PaymentRequestUpdateEvent")] #[doc = "The `new PaymentRequestUpdateEvent(..)` constructor, creating a new instance of `PaymentRequestUpdateEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentRequestUpdateEvent/PaymentRequestUpdateEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentRequestUpdateEvent`*"] pub fn new(type_: &str) -> Result; #[cfg(feature = "PaymentRequestUpdateEventInit")] #[wasm_bindgen(catch, constructor, js_class = "PaymentRequestUpdateEvent")] #[doc = "The `new PaymentRequestUpdateEvent(..)` constructor, creating a new instance of `PaymentRequestUpdateEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentRequestUpdateEvent/PaymentRequestUpdateEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentRequestUpdateEvent`, `PaymentRequestUpdateEventInit`*"] pub fn new_with_event_init_dict( type_: &str, event_init_dict: &PaymentRequestUpdateEventInit, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "PaymentRequestUpdateEvent" , js_name = updateWith)] #[doc = "The `updateWith()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentRequestUpdateEvent/updateWith)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentRequestUpdateEvent`*"] pub fn update_with( this: &PaymentRequestUpdateEvent, details_promise: &::js_sys::Promise, ) -> Result<(), JsValue>; } web-sys-0.3.55/src/features/gen_PaymentRequestUpdateEventInit.rs000064400000000000000000000053460072674642500231320ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PaymentRequestUpdateEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PaymentRequestUpdateEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentRequestUpdateEventInit`*"] pub type PaymentRequestUpdateEventInit; } impl PaymentRequestUpdateEventInit { #[doc = "Construct a new `PaymentRequestUpdateEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentRequestUpdateEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentRequestUpdateEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentRequestUpdateEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentRequestUpdateEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for PaymentRequestUpdateEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_PaymentResponse.rs000064400000000000000000000134300072674642500203000ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PaymentResponse , typescript_type = "PaymentResponse")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PaymentResponse` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentResponse)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentResponse`*"] pub type PaymentResponse; # [wasm_bindgen (structural , method , getter , js_class = "PaymentResponse" , js_name = requestId)] #[doc = "Getter for the `requestId` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentResponse/requestId)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentResponse`*"] pub fn request_id(this: &PaymentResponse) -> String; # [wasm_bindgen (structural , method , getter , js_class = "PaymentResponse" , js_name = methodName)] #[doc = "Getter for the `methodName` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentResponse/methodName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentResponse`*"] pub fn method_name(this: &PaymentResponse) -> String; # [wasm_bindgen (structural , method , getter , js_class = "PaymentResponse" , js_name = details)] #[doc = "Getter for the `details` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentResponse/details)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentResponse`*"] pub fn details(this: &PaymentResponse) -> ::js_sys::Object; #[cfg(feature = "PaymentAddress")] # [wasm_bindgen (structural , method , getter , js_class = "PaymentResponse" , js_name = shippingAddress)] #[doc = "Getter for the `shippingAddress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentResponse/shippingAddress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentAddress`, `PaymentResponse`*"] pub fn shipping_address(this: &PaymentResponse) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "PaymentResponse" , js_name = shippingOption)] #[doc = "Getter for the `shippingOption` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentResponse/shippingOption)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentResponse`*"] pub fn shipping_option(this: &PaymentResponse) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "PaymentResponse" , js_name = payerName)] #[doc = "Getter for the `payerName` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentResponse/payerName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentResponse`*"] pub fn payer_name(this: &PaymentResponse) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "PaymentResponse" , js_name = payerEmail)] #[doc = "Getter for the `payerEmail` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentResponse/payerEmail)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentResponse`*"] pub fn payer_email(this: &PaymentResponse) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "PaymentResponse" , js_name = payerPhone)] #[doc = "Getter for the `payerPhone` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentResponse/payerPhone)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentResponse`*"] pub fn payer_phone(this: &PaymentResponse) -> Option; # [wasm_bindgen (method , structural , js_class = "PaymentResponse" , js_name = complete)] #[doc = "The `complete()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentResponse/complete)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentResponse`*"] pub fn complete(this: &PaymentResponse) -> ::js_sys::Promise; #[cfg(feature = "PaymentComplete")] # [wasm_bindgen (method , structural , js_class = "PaymentResponse" , js_name = complete)] #[doc = "The `complete()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentResponse/complete)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentComplete`, `PaymentResponse`*"] pub fn complete_with_result( this: &PaymentResponse, result: PaymentComplete, ) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "PaymentResponse" , js_name = toJSON)] #[doc = "The `toJSON()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentResponse/toJSON)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentResponse`*"] pub fn to_json(this: &PaymentResponse) -> ::js_sys::Object; } web-sys-0.3.55/src/features/gen_Pbkdf2Params.rs000064400000000000000000000061670072674642500174310ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Pbkdf2Params)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Pbkdf2Params` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Pbkdf2Params`*"] pub type Pbkdf2Params; } impl Pbkdf2Params { #[doc = "Construct a new `Pbkdf2Params`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Pbkdf2Params`*"] pub fn new( name: &str, hash: &::wasm_bindgen::JsValue, iterations: u32, salt: &::js_sys::Object, ) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.name(name); ret.hash(hash); ret.iterations(iterations); ret.salt(salt); ret } #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Pbkdf2Params`*"] pub fn name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `hash` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Pbkdf2Params`*"] pub fn hash(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("hash"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `iterations` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Pbkdf2Params`*"] pub fn iterations(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("iterations"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `salt` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Pbkdf2Params`*"] pub fn salt(&mut self, val: &::js_sys::Object) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("salt"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_PcImplIceConnectionState.rs000064400000000000000000000007660072674642500220020ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `PcImplIceConnectionState` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PcImplIceConnectionState`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum PcImplIceConnectionState { New = "new", Checking = "checking", Connected = "connected", Completed = "completed", Failed = "failed", Disconnected = "disconnected", Closed = "closed", } web-sys-0.3.55/src/features/gen_PcImplIceGatheringState.rs000064400000000000000000000006050072674642500216030ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `PcImplIceGatheringState` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PcImplIceGatheringState`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum PcImplIceGatheringState { New = "new", Gathering = "gathering", Complete = "complete", } web-sys-0.3.55/src/features/gen_PcImplSignalingState.rs000064400000000000000000000012440072674642500211650ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `PcImplSignalingState` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PcImplSignalingState`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum PcImplSignalingState { SignalingInvalid = "SignalingInvalid", SignalingStable = "SignalingStable", SignalingHaveLocalOffer = "SignalingHaveLocalOffer", SignalingHaveRemoteOffer = "SignalingHaveRemoteOffer", SignalingHaveLocalPranswer = "SignalingHaveLocalPranswer", SignalingHaveRemotePranswer = "SignalingHaveRemotePranswer", SignalingClosed = "SignalingClosed", } web-sys-0.3.55/src/features/gen_PcObserverStateType.rs000064400000000000000000000007060072674642500210630ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `PcObserverStateType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PcObserverStateType`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum PcObserverStateType { None = "None", IceConnectionState = "IceConnectionState", IceGatheringState = "IceGatheringState", SignalingState = "SignalingState", } web-sys-0.3.55/src/features/gen_Performance.rs000064400000000000000000000244740072674642500174170ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = Performance , typescript_type = "Performance")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Performance` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Performance`*"] pub type Performance; # [wasm_bindgen (structural , method , getter , js_class = "Performance" , js_name = timeOrigin)] #[doc = "Getter for the `timeOrigin` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/timeOrigin)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Performance`*"] pub fn time_origin(this: &Performance) -> f64; #[cfg(feature = "PerformanceTiming")] # [wasm_bindgen (structural , method , getter , js_class = "Performance" , js_name = timing)] #[doc = "Getter for the `timing` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/timing)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Performance`, `PerformanceTiming`*"] pub fn timing(this: &Performance) -> PerformanceTiming; #[cfg(feature = "PerformanceNavigation")] # [wasm_bindgen (structural , method , getter , js_class = "Performance" , js_name = navigation)] #[doc = "Getter for the `navigation` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/navigation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Performance`, `PerformanceNavigation`*"] pub fn navigation(this: &Performance) -> PerformanceNavigation; # [wasm_bindgen (structural , method , getter , js_class = "Performance" , js_name = onresourcetimingbufferfull)] #[doc = "Getter for the `onresourcetimingbufferfull` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/onresourcetimingbufferfull)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Performance`*"] pub fn onresourcetimingbufferfull(this: &Performance) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Performance" , js_name = onresourcetimingbufferfull)] #[doc = "Setter for the `onresourcetimingbufferfull` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/onresourcetimingbufferfull)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Performance`*"] pub fn set_onresourcetimingbufferfull(this: &Performance, value: Option<&::js_sys::Function>); # [wasm_bindgen (method , structural , js_class = "Performance" , js_name = clearMarks)] #[doc = "The `clearMarks()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/clearMarks)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Performance`*"] pub fn clear_marks(this: &Performance); # [wasm_bindgen (method , structural , js_class = "Performance" , js_name = clearMarks)] #[doc = "The `clearMarks()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/clearMarks)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Performance`*"] pub fn clear_marks_with_mark_name(this: &Performance, mark_name: &str); # [wasm_bindgen (method , structural , js_class = "Performance" , js_name = clearMeasures)] #[doc = "The `clearMeasures()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/clearMeasures)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Performance`*"] pub fn clear_measures(this: &Performance); # [wasm_bindgen (method , structural , js_class = "Performance" , js_name = clearMeasures)] #[doc = "The `clearMeasures()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/clearMeasures)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Performance`*"] pub fn clear_measures_with_measure_name(this: &Performance, measure_name: &str); # [wasm_bindgen (method , structural , js_class = "Performance" , js_name = clearResourceTimings)] #[doc = "The `clearResourceTimings()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/clearResourceTimings)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Performance`*"] pub fn clear_resource_timings(this: &Performance); # [wasm_bindgen (method , structural , js_class = "Performance" , js_name = getEntries)] #[doc = "The `getEntries()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/getEntries)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Performance`*"] pub fn get_entries(this: &Performance) -> ::js_sys::Array; # [wasm_bindgen (method , structural , js_class = "Performance" , js_name = getEntriesByName)] #[doc = "The `getEntriesByName()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/getEntriesByName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Performance`*"] pub fn get_entries_by_name(this: &Performance, name: &str) -> ::js_sys::Array; # [wasm_bindgen (method , structural , js_class = "Performance" , js_name = getEntriesByName)] #[doc = "The `getEntriesByName()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/getEntriesByName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Performance`*"] pub fn get_entries_by_name_with_entry_type( this: &Performance, name: &str, entry_type: &str, ) -> ::js_sys::Array; # [wasm_bindgen (method , structural , js_class = "Performance" , js_name = getEntriesByType)] #[doc = "The `getEntriesByType()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/getEntriesByType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Performance`*"] pub fn get_entries_by_type(this: &Performance, entry_type: &str) -> ::js_sys::Array; # [wasm_bindgen (catch , method , structural , js_class = "Performance" , js_name = mark)] #[doc = "The `mark()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/mark)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Performance`*"] pub fn mark(this: &Performance, mark_name: &str) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Performance" , js_name = measure)] #[doc = "The `measure()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/measure)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Performance`*"] pub fn measure(this: &Performance, measure_name: &str) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Performance" , js_name = measure)] #[doc = "The `measure()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/measure)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Performance`*"] pub fn measure_with_start_mark( this: &Performance, measure_name: &str, start_mark: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Performance" , js_name = measure)] #[doc = "The `measure()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/measure)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Performance`*"] pub fn measure_with_start_mark_and_end_mark( this: &Performance, measure_name: &str, start_mark: &str, end_mark: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (method , structural , js_class = "Performance" , js_name = now)] #[doc = "The `now()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/now)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Performance`*"] pub fn now(this: &Performance) -> f64; # [wasm_bindgen (method , structural , js_class = "Performance" , js_name = setResourceTimingBufferSize)] #[doc = "The `setResourceTimingBufferSize()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/setResourceTimingBufferSize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Performance`*"] pub fn set_resource_timing_buffer_size(this: &Performance, max_size: u32); # [wasm_bindgen (method , structural , js_class = "Performance" , js_name = toJSON)] #[doc = "The `toJSON()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/toJSON)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Performance`*"] pub fn to_json(this: &Performance) -> ::js_sys::Object; } web-sys-0.3.55/src/features/gen_PerformanceEntry.rs000064400000000000000000000054650072674642500204400ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PerformanceEntry , typescript_type = "PerformanceEntry")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PerformanceEntry` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceEntry)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntry`*"] pub type PerformanceEntry; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceEntry" , js_name = name)] #[doc = "Getter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceEntry/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntry`*"] pub fn name(this: &PerformanceEntry) -> String; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceEntry" , js_name = entryType)] #[doc = "Getter for the `entryType` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceEntry/entryType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntry`*"] pub fn entry_type(this: &PerformanceEntry) -> String; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceEntry" , js_name = startTime)] #[doc = "Getter for the `startTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceEntry/startTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntry`*"] pub fn start_time(this: &PerformanceEntry) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceEntry" , js_name = duration)] #[doc = "Getter for the `duration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceEntry/duration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntry`*"] pub fn duration(this: &PerformanceEntry) -> f64; # [wasm_bindgen (method , structural , js_class = "PerformanceEntry" , js_name = toJSON)] #[doc = "The `toJSON()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceEntry/toJSON)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntry`*"] pub fn to_json(this: &PerformanceEntry) -> ::js_sys::Object; } web-sys-0.3.55/src/features/gen_PerformanceEntryEventInit.rs000064400000000000000000000140550072674642500222610ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PerformanceEntryEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PerformanceEntryEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryEventInit`*"] pub type PerformanceEntryEventInit; } impl PerformanceEntryEventInit { #[doc = "Construct a new `PerformanceEntryEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `duration` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryEventInit`*"] pub fn duration(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("duration"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `entryType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryEventInit`*"] pub fn entry_type(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("entryType"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `epoch` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryEventInit`*"] pub fn epoch(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("epoch"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryEventInit`*"] pub fn name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `origin` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryEventInit`*"] pub fn origin(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("origin"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `startTime` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryEventInit`*"] pub fn start_time(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("startTime"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for PerformanceEntryEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_PerformanceEntryFilterOptions.rs000064400000000000000000000052740072674642500231600ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PerformanceEntryFilterOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PerformanceEntryFilterOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryFilterOptions`*"] pub type PerformanceEntryFilterOptions; } impl PerformanceEntryFilterOptions { #[doc = "Construct a new `PerformanceEntryFilterOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryFilterOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `entryType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryFilterOptions`*"] pub fn entry_type(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("entryType"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `initiatorType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryFilterOptions`*"] pub fn initiator_type(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("initiatorType"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryFilterOptions`*"] pub fn name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for PerformanceEntryFilterOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_PerformanceMark.rs000064400000000000000000000011260072674642500202170ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = PerformanceEntry , extends = :: js_sys :: Object , js_name = PerformanceMark , typescript_type = "PerformanceMark")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PerformanceMark` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceMark)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceMark`*"] pub type PerformanceMark; } web-sys-0.3.55/src/features/gen_PerformanceMeasure.rs000064400000000000000000000011500072674642500207230ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = PerformanceEntry , extends = :: js_sys :: Object , js_name = PerformanceMeasure , typescript_type = "PerformanceMeasure")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PerformanceMeasure` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceMeasure)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceMeasure`*"] pub type PerformanceMeasure; } web-sys-0.3.55/src/features/gen_PerformanceNavigation.rs000064400000000000000000000056760072674642500214420ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PerformanceNavigation , typescript_type = "PerformanceNavigation")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PerformanceNavigation` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigation`*"] pub type PerformanceNavigation; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceNavigation" , js_name = type)] #[doc = "Getter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigation/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigation`*"] pub fn type_(this: &PerformanceNavigation) -> u16; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceNavigation" , js_name = redirectCount)] #[doc = "Getter for the `redirectCount` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigation/redirectCount)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigation`*"] pub fn redirect_count(this: &PerformanceNavigation) -> u16; # [wasm_bindgen (method , structural , js_class = "PerformanceNavigation" , js_name = toJSON)] #[doc = "The `toJSON()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigation/toJSON)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigation`*"] pub fn to_json(this: &PerformanceNavigation) -> ::js_sys::Object; } impl PerformanceNavigation { #[doc = "The `PerformanceNavigation.TYPE_NAVIGATE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigation`*"] pub const TYPE_NAVIGATE: u16 = 0i64 as u16; #[doc = "The `PerformanceNavigation.TYPE_RELOAD` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigation`*"] pub const TYPE_RELOAD: u16 = 1u64 as u16; #[doc = "The `PerformanceNavigation.TYPE_BACK_FORWARD` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigation`*"] pub const TYPE_BACK_FORWARD: u16 = 2u64 as u16; #[doc = "The `PerformanceNavigation.TYPE_RESERVED` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigation`*"] pub const TYPE_RESERVED: u16 = 255u64 as u16; } web-sys-0.3.55/src/features/gen_PerformanceNavigationTiming.rs000064400000000000000000000147460072674642500226100ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = PerformanceResourceTiming , extends = PerformanceEntry , extends = :: js_sys :: Object , js_name = PerformanceNavigationTiming , typescript_type = "PerformanceNavigationTiming")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PerformanceNavigationTiming` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigationTiming`*"] pub type PerformanceNavigationTiming; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceNavigationTiming" , js_name = unloadEventStart)] #[doc = "Getter for the `unloadEventStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/unloadEventStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigationTiming`*"] pub fn unload_event_start(this: &PerformanceNavigationTiming) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceNavigationTiming" , js_name = unloadEventEnd)] #[doc = "Getter for the `unloadEventEnd` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/unloadEventEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigationTiming`*"] pub fn unload_event_end(this: &PerformanceNavigationTiming) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceNavigationTiming" , js_name = domInteractive)] #[doc = "Getter for the `domInteractive` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/domInteractive)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigationTiming`*"] pub fn dom_interactive(this: &PerformanceNavigationTiming) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceNavigationTiming" , js_name = domContentLoadedEventStart)] #[doc = "Getter for the `domContentLoadedEventStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/domContentLoadedEventStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigationTiming`*"] pub fn dom_content_loaded_event_start(this: &PerformanceNavigationTiming) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceNavigationTiming" , js_name = domContentLoadedEventEnd)] #[doc = "Getter for the `domContentLoadedEventEnd` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/domContentLoadedEventEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigationTiming`*"] pub fn dom_content_loaded_event_end(this: &PerformanceNavigationTiming) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceNavigationTiming" , js_name = domComplete)] #[doc = "Getter for the `domComplete` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/domComplete)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigationTiming`*"] pub fn dom_complete(this: &PerformanceNavigationTiming) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceNavigationTiming" , js_name = loadEventStart)] #[doc = "Getter for the `loadEventStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/loadEventStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigationTiming`*"] pub fn load_event_start(this: &PerformanceNavigationTiming) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceNavigationTiming" , js_name = loadEventEnd)] #[doc = "Getter for the `loadEventEnd` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/loadEventEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigationTiming`*"] pub fn load_event_end(this: &PerformanceNavigationTiming) -> f64; #[cfg(feature = "NavigationType")] # [wasm_bindgen (structural , method , getter , js_class = "PerformanceNavigationTiming" , js_name = type)] #[doc = "Getter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NavigationType`, `PerformanceNavigationTiming`*"] pub fn type_(this: &PerformanceNavigationTiming) -> NavigationType; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceNavigationTiming" , js_name = redirectCount)] #[doc = "Getter for the `redirectCount` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/redirectCount)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigationTiming`*"] pub fn redirect_count(this: &PerformanceNavigationTiming) -> u16; # [wasm_bindgen (method , structural , js_class = "PerformanceNavigationTiming" , js_name = toJSON)] #[doc = "The `toJSON()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/toJSON)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigationTiming`*"] pub fn to_json(this: &PerformanceNavigationTiming) -> ::js_sys::Object; } web-sys-0.3.55/src/features/gen_PerformanceObserver.rs000064400000000000000000000050270072674642500211200ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PerformanceObserver , typescript_type = "PerformanceObserver")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PerformanceObserver` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserver)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceObserver`*"] pub type PerformanceObserver; #[wasm_bindgen(catch, constructor, js_class = "PerformanceObserver")] #[doc = "The `new PerformanceObserver(..)` constructor, creating a new instance of `PerformanceObserver`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserver/PerformanceObserver)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceObserver`*"] pub fn new(callback: &::js_sys::Function) -> Result; # [wasm_bindgen (method , structural , js_class = "PerformanceObserver" , js_name = disconnect)] #[doc = "The `disconnect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserver/disconnect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceObserver`*"] pub fn disconnect(this: &PerformanceObserver); #[cfg(feature = "PerformanceObserverInit")] # [wasm_bindgen (method , structural , js_class = "PerformanceObserver" , js_name = observe)] #[doc = "The `observe()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserver/observe)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceObserver`, `PerformanceObserverInit`*"] pub fn observe(this: &PerformanceObserver, options: &PerformanceObserverInit); # [wasm_bindgen (method , structural , js_class = "PerformanceObserver" , js_name = takeRecords)] #[doc = "The `takeRecords()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserver/takeRecords)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceObserver`*"] pub fn take_records(this: &PerformanceObserver) -> ::js_sys::Array; } web-sys-0.3.55/src/features/gen_PerformanceObserverEntryList.rs000064400000000000000000000067020072674642500227770ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PerformanceObserverEntryList , typescript_type = "PerformanceObserverEntryList")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PerformanceObserverEntryList` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserverEntryList)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceObserverEntryList`*"] pub type PerformanceObserverEntryList; # [wasm_bindgen (method , structural , js_class = "PerformanceObserverEntryList" , js_name = getEntries)] #[doc = "The `getEntries()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserverEntryList/getEntries)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceObserverEntryList`*"] pub fn get_entries(this: &PerformanceObserverEntryList) -> ::js_sys::Array; #[cfg(feature = "PerformanceEntryFilterOptions")] # [wasm_bindgen (method , structural , js_class = "PerformanceObserverEntryList" , js_name = getEntries)] #[doc = "The `getEntries()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserverEntryList/getEntries)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryFilterOptions`, `PerformanceObserverEntryList`*"] pub fn get_entries_with_filter( this: &PerformanceObserverEntryList, filter: &PerformanceEntryFilterOptions, ) -> ::js_sys::Array; # [wasm_bindgen (method , structural , js_class = "PerformanceObserverEntryList" , js_name = getEntriesByName)] #[doc = "The `getEntriesByName()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserverEntryList/getEntriesByName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceObserverEntryList`*"] pub fn get_entries_by_name(this: &PerformanceObserverEntryList, name: &str) -> ::js_sys::Array; # [wasm_bindgen (method , structural , js_class = "PerformanceObserverEntryList" , js_name = getEntriesByName)] #[doc = "The `getEntriesByName()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserverEntryList/getEntriesByName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceObserverEntryList`*"] pub fn get_entries_by_name_with_entry_type( this: &PerformanceObserverEntryList, name: &str, entry_type: &str, ) -> ::js_sys::Array; # [wasm_bindgen (method , structural , js_class = "PerformanceObserverEntryList" , js_name = getEntriesByType)] #[doc = "The `getEntriesByType()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserverEntryList/getEntriesByType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceObserverEntryList`*"] pub fn get_entries_by_type( this: &PerformanceObserverEntryList, entry_type: &str, ) -> ::js_sys::Array; } web-sys-0.3.55/src/features/gen_PerformanceObserverInit.rs000064400000000000000000000041200072674642500217350ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PerformanceObserverInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PerformanceObserverInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceObserverInit`*"] pub type PerformanceObserverInit; } impl PerformanceObserverInit { #[doc = "Construct a new `PerformanceObserverInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceObserverInit`*"] pub fn new(entry_types: &::wasm_bindgen::JsValue) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.entry_types(entry_types); ret } #[doc = "Change the `buffered` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceObserverInit`*"] pub fn buffered(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("buffered"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `entryTypes` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceObserverInit`*"] pub fn entry_types(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("entryTypes"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_PerformanceResourceTiming.rs000064400000000000000000000244660072674642500223000ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = PerformanceEntry , extends = :: js_sys :: Object , js_name = PerformanceResourceTiming , typescript_type = "PerformanceResourceTiming")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PerformanceResourceTiming` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] pub type PerformanceResourceTiming; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = initiatorType)] #[doc = "Getter for the `initiatorType` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/initiatorType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] pub fn initiator_type(this: &PerformanceResourceTiming) -> String; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = nextHopProtocol)] #[doc = "Getter for the `nextHopProtocol` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/nextHopProtocol)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] pub fn next_hop_protocol(this: &PerformanceResourceTiming) -> String; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = workerStart)] #[doc = "Getter for the `workerStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/workerStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] pub fn worker_start(this: &PerformanceResourceTiming) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = redirectStart)] #[doc = "Getter for the `redirectStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/redirectStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] pub fn redirect_start(this: &PerformanceResourceTiming) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = redirectEnd)] #[doc = "Getter for the `redirectEnd` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/redirectEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] pub fn redirect_end(this: &PerformanceResourceTiming) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = fetchStart)] #[doc = "Getter for the `fetchStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/fetchStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] pub fn fetch_start(this: &PerformanceResourceTiming) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = domainLookupStart)] #[doc = "Getter for the `domainLookupStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/domainLookupStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] pub fn domain_lookup_start(this: &PerformanceResourceTiming) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = domainLookupEnd)] #[doc = "Getter for the `domainLookupEnd` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/domainLookupEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] pub fn domain_lookup_end(this: &PerformanceResourceTiming) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = connectStart)] #[doc = "Getter for the `connectStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/connectStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] pub fn connect_start(this: &PerformanceResourceTiming) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = connectEnd)] #[doc = "Getter for the `connectEnd` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/connectEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] pub fn connect_end(this: &PerformanceResourceTiming) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = secureConnectionStart)] #[doc = "Getter for the `secureConnectionStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/secureConnectionStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] pub fn secure_connection_start(this: &PerformanceResourceTiming) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = requestStart)] #[doc = "Getter for the `requestStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/requestStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] pub fn request_start(this: &PerformanceResourceTiming) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = responseStart)] #[doc = "Getter for the `responseStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/responseStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] pub fn response_start(this: &PerformanceResourceTiming) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = responseEnd)] #[doc = "Getter for the `responseEnd` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/responseEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] pub fn response_end(this: &PerformanceResourceTiming) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = transferSize)] #[doc = "Getter for the `transferSize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/transferSize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] pub fn transfer_size(this: &PerformanceResourceTiming) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = encodedBodySize)] #[doc = "Getter for the `encodedBodySize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/encodedBodySize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] pub fn encoded_body_size(this: &PerformanceResourceTiming) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = decodedBodySize)] #[doc = "Getter for the `decodedBodySize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/decodedBodySize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] pub fn decoded_body_size(this: &PerformanceResourceTiming) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = serverTiming)] #[doc = "Getter for the `serverTiming` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/serverTiming)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] pub fn server_timing(this: &PerformanceResourceTiming) -> ::js_sys::Array; # [wasm_bindgen (method , structural , js_class = "PerformanceResourceTiming" , js_name = toJSON)] #[doc = "The `toJSON()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/toJSON)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] pub fn to_json(this: &PerformanceResourceTiming) -> ::js_sys::Object; } web-sys-0.3.55/src/features/gen_PerformanceServerTiming.rs000064400000000000000000000050010072674642500217370ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PerformanceServerTiming , typescript_type = "PerformanceServerTiming")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PerformanceServerTiming` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceServerTiming)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceServerTiming`*"] pub type PerformanceServerTiming; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceServerTiming" , js_name = name)] #[doc = "Getter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceServerTiming/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceServerTiming`*"] pub fn name(this: &PerformanceServerTiming) -> String; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceServerTiming" , js_name = duration)] #[doc = "Getter for the `duration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceServerTiming/duration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceServerTiming`*"] pub fn duration(this: &PerformanceServerTiming) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceServerTiming" , js_name = description)] #[doc = "Getter for the `description` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceServerTiming/description)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceServerTiming`*"] pub fn description(this: &PerformanceServerTiming) -> String; # [wasm_bindgen (method , structural , js_class = "PerformanceServerTiming" , js_name = toJSON)] #[doc = "The `toJSON()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceServerTiming/toJSON)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceServerTiming`*"] pub fn to_json(this: &PerformanceServerTiming) -> ::js_sys::Object; } web-sys-0.3.55/src/features/gen_PerformanceTiming.rs000064400000000000000000000302610072674642500205560ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PerformanceTiming , typescript_type = "PerformanceTiming")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PerformanceTiming` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] pub type PerformanceTiming; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceTiming" , js_name = navigationStart)] #[doc = "Getter for the `navigationStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/navigationStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] pub fn navigation_start(this: &PerformanceTiming) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceTiming" , js_name = unloadEventStart)] #[doc = "Getter for the `unloadEventStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/unloadEventStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] pub fn unload_event_start(this: &PerformanceTiming) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceTiming" , js_name = unloadEventEnd)] #[doc = "Getter for the `unloadEventEnd` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/unloadEventEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] pub fn unload_event_end(this: &PerformanceTiming) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceTiming" , js_name = redirectStart)] #[doc = "Getter for the `redirectStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/redirectStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] pub fn redirect_start(this: &PerformanceTiming) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceTiming" , js_name = redirectEnd)] #[doc = "Getter for the `redirectEnd` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/redirectEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] pub fn redirect_end(this: &PerformanceTiming) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceTiming" , js_name = fetchStart)] #[doc = "Getter for the `fetchStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/fetchStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] pub fn fetch_start(this: &PerformanceTiming) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceTiming" , js_name = domainLookupStart)] #[doc = "Getter for the `domainLookupStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/domainLookupStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] pub fn domain_lookup_start(this: &PerformanceTiming) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceTiming" , js_name = domainLookupEnd)] #[doc = "Getter for the `domainLookupEnd` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/domainLookupEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] pub fn domain_lookup_end(this: &PerformanceTiming) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceTiming" , js_name = connectStart)] #[doc = "Getter for the `connectStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/connectStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] pub fn connect_start(this: &PerformanceTiming) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceTiming" , js_name = connectEnd)] #[doc = "Getter for the `connectEnd` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/connectEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] pub fn connect_end(this: &PerformanceTiming) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceTiming" , js_name = secureConnectionStart)] #[doc = "Getter for the `secureConnectionStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/secureConnectionStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] pub fn secure_connection_start(this: &PerformanceTiming) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceTiming" , js_name = requestStart)] #[doc = "Getter for the `requestStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/requestStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] pub fn request_start(this: &PerformanceTiming) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceTiming" , js_name = responseStart)] #[doc = "Getter for the `responseStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/responseStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] pub fn response_start(this: &PerformanceTiming) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceTiming" , js_name = responseEnd)] #[doc = "Getter for the `responseEnd` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/responseEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] pub fn response_end(this: &PerformanceTiming) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceTiming" , js_name = domLoading)] #[doc = "Getter for the `domLoading` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/domLoading)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] pub fn dom_loading(this: &PerformanceTiming) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceTiming" , js_name = domInteractive)] #[doc = "Getter for the `domInteractive` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/domInteractive)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] pub fn dom_interactive(this: &PerformanceTiming) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceTiming" , js_name = domContentLoadedEventStart)] #[doc = "Getter for the `domContentLoadedEventStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/domContentLoadedEventStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] pub fn dom_content_loaded_event_start(this: &PerformanceTiming) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceTiming" , js_name = domContentLoadedEventEnd)] #[doc = "Getter for the `domContentLoadedEventEnd` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/domContentLoadedEventEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] pub fn dom_content_loaded_event_end(this: &PerformanceTiming) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceTiming" , js_name = domComplete)] #[doc = "Getter for the `domComplete` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/domComplete)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] pub fn dom_complete(this: &PerformanceTiming) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceTiming" , js_name = loadEventStart)] #[doc = "Getter for the `loadEventStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/loadEventStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] pub fn load_event_start(this: &PerformanceTiming) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceTiming" , js_name = loadEventEnd)] #[doc = "Getter for the `loadEventEnd` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/loadEventEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] pub fn load_event_end(this: &PerformanceTiming) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceTiming" , js_name = timeToNonBlankPaint)] #[doc = "Getter for the `timeToNonBlankPaint` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/timeToNonBlankPaint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] pub fn time_to_non_blank_paint(this: &PerformanceTiming) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceTiming" , js_name = timeToDOMContentFlushed)] #[doc = "Getter for the `timeToDOMContentFlushed` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/timeToDOMContentFlushed)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] pub fn time_to_dom_content_flushed(this: &PerformanceTiming) -> f64; # [wasm_bindgen (method , structural , js_class = "PerformanceTiming" , js_name = toJSON)] #[doc = "The `toJSON()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/toJSON)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] pub fn to_json(this: &PerformanceTiming) -> ::js_sys::Object; } web-sys-0.3.55/src/features/gen_PeriodicWave.rs000064400000000000000000000033440072674642500175300ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PeriodicWave , typescript_type = "PeriodicWave")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PeriodicWave` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PeriodicWave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PeriodicWave`*"] pub type PeriodicWave; #[cfg(feature = "BaseAudioContext")] #[wasm_bindgen(catch, constructor, js_class = "PeriodicWave")] #[doc = "The `new PeriodicWave(..)` constructor, creating a new instance of `PeriodicWave`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PeriodicWave/PeriodicWave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `PeriodicWave`*"] pub fn new(context: &BaseAudioContext) -> Result; #[cfg(all(feature = "BaseAudioContext", feature = "PeriodicWaveOptions",))] #[wasm_bindgen(catch, constructor, js_class = "PeriodicWave")] #[doc = "The `new PeriodicWave(..)` constructor, creating a new instance of `PeriodicWave`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PeriodicWave/PeriodicWave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `PeriodicWave`, `PeriodicWaveOptions`*"] pub fn new_with_options( context: &BaseAudioContext, options: &PeriodicWaveOptions, ) -> Result; } web-sys-0.3.55/src/features/gen_PeriodicWaveConstraints.rs000064400000000000000000000030340072674642500217540ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PeriodicWaveConstraints)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PeriodicWaveConstraints` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PeriodicWaveConstraints`*"] pub type PeriodicWaveConstraints; } impl PeriodicWaveConstraints { #[doc = "Construct a new `PeriodicWaveConstraints`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PeriodicWaveConstraints`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `disableNormalization` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PeriodicWaveConstraints`*"] pub fn disable_normalization(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("disableNormalization"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for PeriodicWaveConstraints { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_PeriodicWaveOptions.rs000064400000000000000000000051140072674642500211010ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PeriodicWaveOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PeriodicWaveOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PeriodicWaveOptions`*"] pub type PeriodicWaveOptions; } impl PeriodicWaveOptions { #[doc = "Construct a new `PeriodicWaveOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PeriodicWaveOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `disableNormalization` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PeriodicWaveOptions`*"] pub fn disable_normalization(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("disableNormalization"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `imag` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PeriodicWaveOptions`*"] pub fn imag(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("imag"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `real` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PeriodicWaveOptions`*"] pub fn real(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("real"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for PeriodicWaveOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_PermissionDescriptor.rs000064400000000000000000000027520072674642500213400ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PermissionDescriptor)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PermissionDescriptor` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PermissionDescriptor`*"] pub type PermissionDescriptor; } impl PermissionDescriptor { #[cfg(feature = "PermissionName")] #[doc = "Construct a new `PermissionDescriptor`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PermissionDescriptor`, `PermissionName`*"] pub fn new(name: PermissionName) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.name(name); ret } #[cfg(feature = "PermissionName")] #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PermissionDescriptor`, `PermissionName`*"] pub fn name(&mut self, val: PermissionName) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_PermissionName.rs000064400000000000000000000006500072674642500200750ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `PermissionName` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PermissionName`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum PermissionName { Geolocation = "geolocation", Notifications = "notifications", Push = "push", PersistentStorage = "persistent-storage", } web-sys-0.3.55/src/features/gen_PermissionState.rs000064400000000000000000000005530072674642500202770ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `PermissionState` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PermissionState`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum PermissionState { Granted = "granted", Denied = "denied", Prompt = "prompt", } web-sys-0.3.55/src/features/gen_PermissionStatus.rs000064400000000000000000000040720072674642500205020ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = PermissionStatus , typescript_type = "PermissionStatus")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PermissionStatus` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PermissionStatus)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PermissionStatus`*"] pub type PermissionStatus; #[cfg(feature = "PermissionState")] # [wasm_bindgen (structural , method , getter , js_class = "PermissionStatus" , js_name = state)] #[doc = "Getter for the `state` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PermissionStatus/state)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PermissionState`, `PermissionStatus`*"] pub fn state(this: &PermissionStatus) -> PermissionState; # [wasm_bindgen (structural , method , getter , js_class = "PermissionStatus" , js_name = onchange)] #[doc = "Getter for the `onchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PermissionStatus/onchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PermissionStatus`*"] pub fn onchange(this: &PermissionStatus) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "PermissionStatus" , js_name = onchange)] #[doc = "Setter for the `onchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PermissionStatus/onchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PermissionStatus`*"] pub fn set_onchange(this: &PermissionStatus, value: Option<&::js_sys::Function>); } web-sys-0.3.55/src/features/gen_Permissions.rs000064400000000000000000000027770072674642500174730ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Permissions , typescript_type = "Permissions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Permissions` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Permissions)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Permissions`*"] pub type Permissions; # [wasm_bindgen (catch , method , structural , js_class = "Permissions" , js_name = query)] #[doc = "The `query()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Permissions/query)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Permissions`*"] pub fn query( this: &Permissions, permission: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Permissions" , js_name = revoke)] #[doc = "The `revoke()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Permissions/revoke)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Permissions`*"] pub fn revoke( this: &Permissions, permission: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>; } web-sys-0.3.55/src/features/gen_PlaybackDirection.rs000064400000000000000000000006430072674642500205350ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `PlaybackDirection` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PlaybackDirection`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum PlaybackDirection { Normal = "normal", Reverse = "reverse", Alternate = "alternate", AlternateReverse = "alternate-reverse", } web-sys-0.3.55/src/features/gen_Plugin.rs000064400000000000000000000102650072674642500164050ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Plugin , typescript_type = "Plugin")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Plugin` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Plugin)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Plugin`*"] pub type Plugin; # [wasm_bindgen (structural , method , getter , js_class = "Plugin" , js_name = description)] #[doc = "Getter for the `description` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Plugin/description)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Plugin`*"] pub fn description(this: &Plugin) -> String; # [wasm_bindgen (structural , method , getter , js_class = "Plugin" , js_name = filename)] #[doc = "Getter for the `filename` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Plugin/filename)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Plugin`*"] pub fn filename(this: &Plugin) -> String; # [wasm_bindgen (structural , method , getter , js_class = "Plugin" , js_name = version)] #[doc = "Getter for the `version` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Plugin/version)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Plugin`*"] pub fn version(this: &Plugin) -> String; # [wasm_bindgen (structural , method , getter , js_class = "Plugin" , js_name = name)] #[doc = "Getter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Plugin/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Plugin`*"] pub fn name(this: &Plugin) -> String; # [wasm_bindgen (structural , method , getter , js_class = "Plugin" , js_name = length)] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Plugin/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Plugin`*"] pub fn length(this: &Plugin) -> u32; #[cfg(feature = "MimeType")] # [wasm_bindgen (method , structural , js_class = "Plugin" , js_name = item)] #[doc = "The `item()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Plugin/item)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MimeType`, `Plugin`*"] pub fn item(this: &Plugin, index: u32) -> Option; #[cfg(feature = "MimeType")] # [wasm_bindgen (method , structural , js_class = "Plugin" , js_name = namedItem)] #[doc = "The `namedItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Plugin/namedItem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MimeType`, `Plugin`*"] pub fn named_item(this: &Plugin, name: &str) -> Option; #[cfg(feature = "MimeType")] #[wasm_bindgen(method, structural, js_class = "Plugin", indexing_getter)] #[doc = "Indexing getter."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MimeType`, `Plugin`*"] pub fn get_with_index(this: &Plugin, index: u32) -> Option; #[cfg(feature = "MimeType")] #[wasm_bindgen(method, structural, js_class = "Plugin", indexing_getter)] #[doc = "Indexing getter."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MimeType`, `Plugin`*"] pub fn get_with_name(this: &Plugin, name: &str) -> Option; } web-sys-0.3.55/src/features/gen_PluginArray.rs000064400000000000000000000067010072674642500174040ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PluginArray , typescript_type = "PluginArray")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PluginArray` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PluginArray)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PluginArray`*"] pub type PluginArray; # [wasm_bindgen (structural , method , getter , js_class = "PluginArray" , js_name = length)] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PluginArray/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PluginArray`*"] pub fn length(this: &PluginArray) -> u32; #[cfg(feature = "Plugin")] # [wasm_bindgen (method , structural , js_class = "PluginArray" , js_name = item)] #[doc = "The `item()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PluginArray/item)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Plugin`, `PluginArray`*"] pub fn item(this: &PluginArray, index: u32) -> Option; #[cfg(feature = "Plugin")] # [wasm_bindgen (method , structural , js_class = "PluginArray" , js_name = namedItem)] #[doc = "The `namedItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PluginArray/namedItem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Plugin`, `PluginArray`*"] pub fn named_item(this: &PluginArray, name: &str) -> Option; # [wasm_bindgen (method , structural , js_class = "PluginArray" , js_name = refresh)] #[doc = "The `refresh()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PluginArray/refresh)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PluginArray`*"] pub fn refresh(this: &PluginArray); # [wasm_bindgen (method , structural , js_class = "PluginArray" , js_name = refresh)] #[doc = "The `refresh()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PluginArray/refresh)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PluginArray`*"] pub fn refresh_with_reload_documents(this: &PluginArray, reload_documents: bool); #[cfg(feature = "Plugin")] #[wasm_bindgen(method, structural, js_class = "PluginArray", indexing_getter)] #[doc = "Indexing getter."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Plugin`, `PluginArray`*"] pub fn get_with_index(this: &PluginArray, index: u32) -> Option; #[cfg(feature = "Plugin")] #[wasm_bindgen(method, structural, js_class = "PluginArray", indexing_getter)] #[doc = "Indexing getter."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Plugin`, `PluginArray`*"] pub fn get_with_name(this: &PluginArray, name: &str) -> Option; } web-sys-0.3.55/src/features/gen_PluginCrashedEventInit.rs000064400000000000000000000155300072674642500215250ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PluginCrashedEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PluginCrashedEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"] pub type PluginCrashedEventInit; } impl PluginCrashedEventInit { #[doc = "Construct a new `PluginCrashedEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `browserDumpID` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"] pub fn browser_dump_id(&mut self, val: Option<&str>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("browserDumpID"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `gmpPlugin` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"] pub fn gmp_plugin(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("gmpPlugin"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `pluginDumpID` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"] pub fn plugin_dump_id(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("pluginDumpID"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `pluginFilename` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"] pub fn plugin_filename(&mut self, val: Option<&str>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("pluginFilename"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `pluginID` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"] pub fn plugin_id(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("pluginID"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `pluginName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"] pub fn plugin_name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("pluginName"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `submittedCrashReport` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"] pub fn submitted_crash_report(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("submittedCrashReport"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for PluginCrashedEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_PointerEvent.rs000064400000000000000000000147710072674642500175770ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = MouseEvent , extends = UiEvent , extends = Event , extends = :: js_sys :: Object , js_name = PointerEvent , typescript_type = "PointerEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PointerEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEvent`*"] pub type PointerEvent; # [wasm_bindgen (structural , method , getter , js_class = "PointerEvent" , js_name = pointerId)] #[doc = "Getter for the `pointerId` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/pointerId)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEvent`*"] pub fn pointer_id(this: &PointerEvent) -> i32; # [wasm_bindgen (structural , method , getter , js_class = "PointerEvent" , js_name = width)] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEvent`*"] pub fn width(this: &PointerEvent) -> i32; # [wasm_bindgen (structural , method , getter , js_class = "PointerEvent" , js_name = height)] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEvent`*"] pub fn height(this: &PointerEvent) -> i32; # [wasm_bindgen (structural , method , getter , js_class = "PointerEvent" , js_name = pressure)] #[doc = "Getter for the `pressure` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/pressure)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEvent`*"] pub fn pressure(this: &PointerEvent) -> f32; # [wasm_bindgen (structural , method , getter , js_class = "PointerEvent" , js_name = tangentialPressure)] #[doc = "Getter for the `tangentialPressure` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/tangentialPressure)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEvent`*"] pub fn tangential_pressure(this: &PointerEvent) -> f32; # [wasm_bindgen (structural , method , getter , js_class = "PointerEvent" , js_name = tiltX)] #[doc = "Getter for the `tiltX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/tiltX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEvent`*"] pub fn tilt_x(this: &PointerEvent) -> i32; # [wasm_bindgen (structural , method , getter , js_class = "PointerEvent" , js_name = tiltY)] #[doc = "Getter for the `tiltY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/tiltY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEvent`*"] pub fn tilt_y(this: &PointerEvent) -> i32; # [wasm_bindgen (structural , method , getter , js_class = "PointerEvent" , js_name = twist)] #[doc = "Getter for the `twist` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/twist)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEvent`*"] pub fn twist(this: &PointerEvent) -> i32; # [wasm_bindgen (structural , method , getter , js_class = "PointerEvent" , js_name = pointerType)] #[doc = "Getter for the `pointerType` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/pointerType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEvent`*"] pub fn pointer_type(this: &PointerEvent) -> String; # [wasm_bindgen (structural , method , getter , js_class = "PointerEvent" , js_name = isPrimary)] #[doc = "Getter for the `isPrimary` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/isPrimary)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEvent`*"] pub fn is_primary(this: &PointerEvent) -> bool; #[wasm_bindgen(catch, constructor, js_class = "PointerEvent")] #[doc = "The `new PointerEvent(..)` constructor, creating a new instance of `PointerEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/PointerEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEvent`*"] pub fn new(type_: &str) -> Result; #[cfg(feature = "PointerEventInit")] #[wasm_bindgen(catch, constructor, js_class = "PointerEvent")] #[doc = "The `new PointerEvent(..)` constructor, creating a new instance of `PointerEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/PointerEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEvent`, `PointerEventInit`*"] pub fn new_with_event_init_dict( type_: &str, event_init_dict: &PointerEventInit, ) -> Result; # [wasm_bindgen (method , structural , js_class = "PointerEvent" , js_name = getCoalescedEvents)] #[doc = "The `getCoalescedEvents()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/getCoalescedEvents)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEvent`*"] pub fn get_coalesced_events(this: &PointerEvent) -> ::js_sys::Array; } web-sys-0.3.55/src/features/gen_PointerEventInit.rs000064400000000000000000000553200072674642500204160ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PointerEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PointerEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] pub type PointerEventInit; } impl PointerEventInit { #[doc = "Construct a new `PointerEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `detail` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] pub fn detail(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("detail"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "Window")] #[doc = "Change the `view` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`, `Window`*"] pub fn view(&mut self, val: Option<&Window>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("view"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `altKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] pub fn alt_key(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("altKey"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `ctrlKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] pub fn ctrl_key(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("ctrlKey"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `metaKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] pub fn meta_key(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("metaKey"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierAltGraph` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] pub fn modifier_alt_graph(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierAltGraph"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierCapsLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] pub fn modifier_caps_lock(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierCapsLock"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierFn` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] pub fn modifier_fn(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierFn"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierFnLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] pub fn modifier_fn_lock(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierFnLock"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierNumLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] pub fn modifier_num_lock(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierNumLock"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierOS` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] pub fn modifier_os(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierOS"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierScrollLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] pub fn modifier_scroll_lock(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierScrollLock"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierSymbol` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] pub fn modifier_symbol(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierSymbol"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierSymbolLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] pub fn modifier_symbol_lock(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierSymbolLock"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `shiftKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] pub fn shift_key(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("shiftKey"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `button` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] pub fn button(&mut self, val: i16) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("button"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `buttons` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] pub fn buttons(&mut self, val: u16) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("buttons"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `clientX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] pub fn client_x(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("clientX"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `clientY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] pub fn client_y(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("clientY"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `movementX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] pub fn movement_x(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("movementX"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `movementY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] pub fn movement_y(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("movementY"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "EventTarget")] #[doc = "Change the `relatedTarget` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventTarget`, `PointerEventInit`*"] pub fn related_target(&mut self, val: Option<&EventTarget>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("relatedTarget"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `screenX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] pub fn screen_x(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("screenX"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `screenY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] pub fn screen_y(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("screenY"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `coalescedEvents` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] pub fn coalesced_events(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("coalescedEvents"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `height` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] pub fn height(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("height"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `isPrimary` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] pub fn is_primary(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("isPrimary"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `pointerId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] pub fn pointer_id(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("pointerId"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `pointerType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] pub fn pointer_type(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("pointerType"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `pressure` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] pub fn pressure(&mut self, val: f32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("pressure"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `tangentialPressure` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] pub fn tangential_pressure(&mut self, val: f32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("tangentialPressure"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `tiltX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] pub fn tilt_x(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("tiltX"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `tiltY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] pub fn tilt_y(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("tiltY"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `twist` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] pub fn twist(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("twist"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `width` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] pub fn width(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("width"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for PointerEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_PopStateEvent.rs000064400000000000000000000041150072674642500177050ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = PopStateEvent , typescript_type = "PopStateEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PopStateEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PopStateEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PopStateEvent`*"] pub type PopStateEvent; # [wasm_bindgen (structural , method , getter , js_class = "PopStateEvent" , js_name = state)] #[doc = "Getter for the `state` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PopStateEvent/state)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PopStateEvent`*"] pub fn state(this: &PopStateEvent) -> ::wasm_bindgen::JsValue; #[wasm_bindgen(catch, constructor, js_class = "PopStateEvent")] #[doc = "The `new PopStateEvent(..)` constructor, creating a new instance of `PopStateEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PopStateEvent/PopStateEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PopStateEvent`*"] pub fn new(type_: &str) -> Result; #[cfg(feature = "PopStateEventInit")] #[wasm_bindgen(catch, constructor, js_class = "PopStateEvent")] #[doc = "The `new PopStateEvent(..)` constructor, creating a new instance of `PopStateEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PopStateEvent/PopStateEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PopStateEvent`, `PopStateEventInit`*"] pub fn new_with_event_init_dict( type_: &str, event_init_dict: &PopStateEventInit, ) -> Result; } web-sys-0.3.55/src/features/gen_PopStateEventInit.rs000064400000000000000000000062150072674642500205340ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PopStateEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PopStateEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PopStateEventInit`*"] pub type PopStateEventInit; } impl PopStateEventInit { #[doc = "Construct a new `PopStateEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PopStateEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PopStateEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PopStateEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PopStateEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `state` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PopStateEventInit`*"] pub fn state(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("state"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for PopStateEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_PopupBlockedEvent.rs000064400000000000000000000064200072674642500205360ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = PopupBlockedEvent , typescript_type = "PopupBlockedEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PopupBlockedEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PopupBlockedEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEvent`*"] pub type PopupBlockedEvent; #[cfg(feature = "Window")] # [wasm_bindgen (structural , method , getter , js_class = "PopupBlockedEvent" , js_name = requestingWindow)] #[doc = "Getter for the `requestingWindow` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PopupBlockedEvent/requestingWindow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEvent`, `Window`*"] pub fn requesting_window(this: &PopupBlockedEvent) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "PopupBlockedEvent" , js_name = popupWindowName)] #[doc = "Getter for the `popupWindowName` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PopupBlockedEvent/popupWindowName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEvent`*"] pub fn popup_window_name(this: &PopupBlockedEvent) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "PopupBlockedEvent" , js_name = popupWindowFeatures)] #[doc = "Getter for the `popupWindowFeatures` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PopupBlockedEvent/popupWindowFeatures)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEvent`*"] pub fn popup_window_features(this: &PopupBlockedEvent) -> Option; #[wasm_bindgen(catch, constructor, js_class = "PopupBlockedEvent")] #[doc = "The `new PopupBlockedEvent(..)` constructor, creating a new instance of `PopupBlockedEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PopupBlockedEvent/PopupBlockedEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEvent`*"] pub fn new(type_: &str) -> Result; #[cfg(feature = "PopupBlockedEventInit")] #[wasm_bindgen(catch, constructor, js_class = "PopupBlockedEvent")] #[doc = "The `new PopupBlockedEvent(..)` constructor, creating a new instance of `PopupBlockedEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PopupBlockedEvent/PopupBlockedEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEvent`, `PopupBlockedEventInit`*"] pub fn new_with_event_init_dict( type_: &str, event_init_dict: &PopupBlockedEventInit, ) -> Result; } web-sys-0.3.55/src/features/gen_PopupBlockedEventInit.rs000064400000000000000000000110160072674642500213570ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PopupBlockedEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PopupBlockedEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEventInit`*"] pub type PopupBlockedEventInit; } impl PopupBlockedEventInit { #[doc = "Construct a new `PopupBlockedEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `popupWindowFeatures` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEventInit`*"] pub fn popup_window_features(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("popupWindowFeatures"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `popupWindowName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEventInit`*"] pub fn popup_window_name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("popupWindowName"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "Window")] #[doc = "Change the `requestingWindow` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEventInit`, `Window`*"] pub fn requesting_window(&mut self, val: Option<&Window>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("requestingWindow"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for PopupBlockedEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_Position.rs000064400000000000000000000027010072674642500167470ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = Position , typescript_type = "Position")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Position` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Position)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Position`*"] pub type Position; #[cfg(feature = "Coordinates")] # [wasm_bindgen (structural , method , getter , js_class = "Position" , js_name = coords)] #[doc = "Getter for the `coords` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Position/coords)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Coordinates`, `Position`*"] pub fn coords(this: &Position) -> Coordinates; # [wasm_bindgen (structural , method , getter , js_class = "Position" , js_name = timestamp)] #[doc = "Getter for the `timestamp` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Position/timestamp)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Position`*"] pub fn timestamp(this: &Position) -> f64; } web-sys-0.3.55/src/features/gen_PositionAlignSetting.rs000064400000000000000000000006270072674642500212650ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `PositionAlignSetting` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PositionAlignSetting`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum PositionAlignSetting { LineLeft = "line-left", Center = "center", LineRight = "line-right", Auto = "auto", } web-sys-0.3.55/src/features/gen_PositionError.rs000064400000000000000000000041530072674642500177640ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = PositionError , typescript_type = "PositionError")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PositionError` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PositionError)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PositionError`*"] pub type PositionError; # [wasm_bindgen (structural , method , getter , js_class = "PositionError" , js_name = code)] #[doc = "Getter for the `code` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PositionError/code)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PositionError`*"] pub fn code(this: &PositionError) -> u16; # [wasm_bindgen (structural , method , getter , js_class = "PositionError" , js_name = message)] #[doc = "Getter for the `message` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PositionError/message)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PositionError`*"] pub fn message(this: &PositionError) -> String; } impl PositionError { #[doc = "The `PositionError.PERMISSION_DENIED` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PositionError`*"] pub const PERMISSION_DENIED: u16 = 1u64 as u16; #[doc = "The `PositionError.POSITION_UNAVAILABLE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PositionError`*"] pub const POSITION_UNAVAILABLE: u16 = 2u64 as u16; #[doc = "The `PositionError.TIMEOUT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PositionError`*"] pub const TIMEOUT: u16 = 3u64 as u16; } web-sys-0.3.55/src/features/gen_PositionOptions.rs000064400000000000000000000051530072674642500203270ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PositionOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PositionOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PositionOptions`*"] pub type PositionOptions; } impl PositionOptions { #[doc = "Construct a new `PositionOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PositionOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `enableHighAccuracy` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PositionOptions`*"] pub fn enable_high_accuracy(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("enableHighAccuracy"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `maximumAge` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PositionOptions`*"] pub fn maximum_age(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("maximumAge"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `timeout` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PositionOptions`*"] pub fn timeout(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("timeout"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for PositionOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_Presentation.rs000064400000000000000000000042670072674642500176270ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Presentation , typescript_type = "Presentation")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Presentation` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Presentation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Presentation`*"] pub type Presentation; #[cfg(feature = "PresentationRequest")] # [wasm_bindgen (structural , method , getter , js_class = "Presentation" , js_name = defaultRequest)] #[doc = "Getter for the `defaultRequest` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Presentation/defaultRequest)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Presentation`, `PresentationRequest`*"] pub fn default_request(this: &Presentation) -> Option; #[cfg(feature = "PresentationRequest")] # [wasm_bindgen (structural , method , setter , js_class = "Presentation" , js_name = defaultRequest)] #[doc = "Setter for the `defaultRequest` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Presentation/defaultRequest)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Presentation`, `PresentationRequest`*"] pub fn set_default_request(this: &Presentation, value: Option<&PresentationRequest>); #[cfg(feature = "PresentationReceiver")] # [wasm_bindgen (structural , method , getter , js_class = "Presentation" , js_name = receiver)] #[doc = "Getter for the `receiver` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Presentation/receiver)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Presentation`, `PresentationReceiver`*"] pub fn receiver(this: &Presentation) -> Option; } web-sys-0.3.55/src/features/gen_PresentationAvailability.rs000064400000000000000000000042040072674642500221510ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = PresentationAvailability , typescript_type = "PresentationAvailability")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PresentationAvailability` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationAvailability)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationAvailability`*"] pub type PresentationAvailability; # [wasm_bindgen (structural , method , getter , js_class = "PresentationAvailability" , js_name = value)] #[doc = "Getter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationAvailability/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationAvailability`*"] pub fn value(this: &PresentationAvailability) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "PresentationAvailability" , js_name = onchange)] #[doc = "Getter for the `onchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationAvailability/onchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationAvailability`*"] pub fn onchange(this: &PresentationAvailability) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "PresentationAvailability" , js_name = onchange)] #[doc = "Setter for the `onchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationAvailability/onchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationAvailability`*"] pub fn set_onchange(this: &PresentationAvailability, value: Option<&::js_sys::Function>); } web-sys-0.3.55/src/features/gen_PresentationConnection.rs000064400000000000000000000255150072674642500216460ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = PresentationConnection , typescript_type = "PresentationConnection")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PresentationConnection` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] pub type PresentationConnection; # [wasm_bindgen (structural , method , getter , js_class = "PresentationConnection" , js_name = id)] #[doc = "Getter for the `id` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/id)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] pub fn id(this: &PresentationConnection) -> String; # [wasm_bindgen (structural , method , getter , js_class = "PresentationConnection" , js_name = url)] #[doc = "Getter for the `url` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/url)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] pub fn url(this: &PresentationConnection) -> String; #[cfg(feature = "PresentationConnectionState")] # [wasm_bindgen (structural , method , getter , js_class = "PresentationConnection" , js_name = state)] #[doc = "Getter for the `state` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/state)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`, `PresentationConnectionState`*"] pub fn state(this: &PresentationConnection) -> PresentationConnectionState; # [wasm_bindgen (structural , method , getter , js_class = "PresentationConnection" , js_name = onconnect)] #[doc = "Getter for the `onconnect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/onconnect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] pub fn onconnect(this: &PresentationConnection) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "PresentationConnection" , js_name = onconnect)] #[doc = "Setter for the `onconnect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/onconnect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] pub fn set_onconnect(this: &PresentationConnection, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "PresentationConnection" , js_name = onclose)] #[doc = "Getter for the `onclose` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/onclose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] pub fn onclose(this: &PresentationConnection) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "PresentationConnection" , js_name = onclose)] #[doc = "Setter for the `onclose` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/onclose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] pub fn set_onclose(this: &PresentationConnection, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "PresentationConnection" , js_name = onterminate)] #[doc = "Getter for the `onterminate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/onterminate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] pub fn onterminate(this: &PresentationConnection) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "PresentationConnection" , js_name = onterminate)] #[doc = "Setter for the `onterminate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/onterminate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] pub fn set_onterminate(this: &PresentationConnection, value: Option<&::js_sys::Function>); #[cfg(feature = "PresentationConnectionBinaryType")] # [wasm_bindgen (structural , method , getter , js_class = "PresentationConnection" , js_name = binaryType)] #[doc = "Getter for the `binaryType` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/binaryType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`, `PresentationConnectionBinaryType`*"] pub fn binary_type(this: &PresentationConnection) -> PresentationConnectionBinaryType; #[cfg(feature = "PresentationConnectionBinaryType")] # [wasm_bindgen (structural , method , setter , js_class = "PresentationConnection" , js_name = binaryType)] #[doc = "Setter for the `binaryType` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/binaryType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`, `PresentationConnectionBinaryType`*"] pub fn set_binary_type(this: &PresentationConnection, value: PresentationConnectionBinaryType); # [wasm_bindgen (structural , method , getter , js_class = "PresentationConnection" , js_name = onmessage)] #[doc = "Getter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] pub fn onmessage(this: &PresentationConnection) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "PresentationConnection" , js_name = onmessage)] #[doc = "Setter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] pub fn set_onmessage(this: &PresentationConnection, value: Option<&::js_sys::Function>); # [wasm_bindgen (catch , method , structural , js_class = "PresentationConnection" , js_name = close)] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] pub fn close(this: &PresentationConnection) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "PresentationConnection" , js_name = send)] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/send)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] pub fn send_with_str(this: &PresentationConnection, data: &str) -> Result<(), JsValue>; #[cfg(feature = "Blob")] # [wasm_bindgen (catch , method , structural , js_class = "PresentationConnection" , js_name = send)] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/send)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`, `PresentationConnection`*"] pub fn send_with_blob(this: &PresentationConnection, data: &Blob) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "PresentationConnection" , js_name = send)] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/send)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] pub fn send_with_array_buffer( this: &PresentationConnection, data: &::js_sys::ArrayBuffer, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "PresentationConnection" , js_name = send)] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/send)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] pub fn send_with_array_buffer_view( this: &PresentationConnection, data: &::js_sys::Object, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "PresentationConnection" , js_name = send)] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/send)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] pub fn send_with_u8_array(this: &PresentationConnection, data: &[u8]) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "PresentationConnection" , js_name = terminate)] #[doc = "The `terminate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/terminate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] pub fn terminate(this: &PresentationConnection) -> Result<(), JsValue>; } web-sys-0.3.55/src/features/gen_PresentationConnectionAvailableEvent.rs000064400000000000000000000042070072674642500244440ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = PresentationConnectionAvailableEvent , typescript_type = "PresentationConnectionAvailableEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PresentationConnectionAvailableEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnectionAvailableEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionAvailableEvent`*"] pub type PresentationConnectionAvailableEvent; #[cfg(feature = "PresentationConnection")] # [wasm_bindgen (structural , method , getter , js_class = "PresentationConnectionAvailableEvent" , js_name = connection)] #[doc = "Getter for the `connection` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnectionAvailableEvent/connection)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`, `PresentationConnectionAvailableEvent`*"] pub fn connection(this: &PresentationConnectionAvailableEvent) -> PresentationConnection; #[cfg(feature = "PresentationConnectionAvailableEventInit")] #[wasm_bindgen(catch, constructor, js_class = "PresentationConnectionAvailableEvent")] #[doc = "The `new PresentationConnectionAvailableEvent(..)` constructor, creating a new instance of `PresentationConnectionAvailableEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnectionAvailableEvent/PresentationConnectionAvailableEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionAvailableEvent`, `PresentationConnectionAvailableEventInit`*"] pub fn new( type_: &str, event_init_dict: &PresentationConnectionAvailableEventInit, ) -> Result; } web-sys-0.3.55/src/features/gen_PresentationConnectionAvailableEventInit.rs000064400000000000000000000071040072674642500252670ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PresentationConnectionAvailableEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PresentationConnectionAvailableEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionAvailableEventInit`*"] pub type PresentationConnectionAvailableEventInit; } impl PresentationConnectionAvailableEventInit { #[cfg(feature = "PresentationConnection")] #[doc = "Construct a new `PresentationConnectionAvailableEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`, `PresentationConnectionAvailableEventInit`*"] pub fn new(connection: &PresentationConnection) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.connection(connection); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionAvailableEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionAvailableEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionAvailableEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "PresentationConnection")] #[doc = "Change the `connection` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`, `PresentationConnectionAvailableEventInit`*"] pub fn connection(&mut self, val: &PresentationConnection) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("connection"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_PresentationConnectionBinaryType.rs000064400000000000000000000006130072674642500236450ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `PresentationConnectionBinaryType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionBinaryType`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum PresentationConnectionBinaryType { Blob = "blob", Arraybuffer = "arraybuffer", } web-sys-0.3.55/src/features/gen_PresentationConnectionCloseEvent.rs000064400000000000000000000051320072674642500236270ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = PresentationConnectionCloseEvent , typescript_type = "PresentationConnectionCloseEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PresentationConnectionCloseEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnectionCloseEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionCloseEvent`*"] pub type PresentationConnectionCloseEvent; #[cfg(feature = "PresentationConnectionClosedReason")] # [wasm_bindgen (structural , method , getter , js_class = "PresentationConnectionCloseEvent" , js_name = reason)] #[doc = "Getter for the `reason` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnectionCloseEvent/reason)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionCloseEvent`, `PresentationConnectionClosedReason`*"] pub fn reason(this: &PresentationConnectionCloseEvent) -> PresentationConnectionClosedReason; # [wasm_bindgen (structural , method , getter , js_class = "PresentationConnectionCloseEvent" , js_name = message)] #[doc = "Getter for the `message` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnectionCloseEvent/message)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionCloseEvent`*"] pub fn message(this: &PresentationConnectionCloseEvent) -> String; #[cfg(feature = "PresentationConnectionCloseEventInit")] #[wasm_bindgen(catch, constructor, js_class = "PresentationConnectionCloseEvent")] #[doc = "The `new PresentationConnectionCloseEvent(..)` constructor, creating a new instance of `PresentationConnectionCloseEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnectionCloseEvent/PresentationConnectionCloseEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionCloseEvent`, `PresentationConnectionCloseEventInit`*"] pub fn new( type_: &str, event_init_dict: &PresentationConnectionCloseEventInit, ) -> Result; } web-sys-0.3.55/src/features/gen_PresentationConnectionCloseEventInit.rs000064400000000000000000000102020072674642500244450ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PresentationConnectionCloseEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PresentationConnectionCloseEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionCloseEventInit`*"] pub type PresentationConnectionCloseEventInit; } impl PresentationConnectionCloseEventInit { #[cfg(feature = "PresentationConnectionClosedReason")] #[doc = "Construct a new `PresentationConnectionCloseEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionCloseEventInit`, `PresentationConnectionClosedReason`*"] pub fn new(reason: PresentationConnectionClosedReason) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.reason(reason); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionCloseEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionCloseEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionCloseEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `message` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionCloseEventInit`*"] pub fn message(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("message"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "PresentationConnectionClosedReason")] #[doc = "Change the `reason` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionCloseEventInit`, `PresentationConnectionClosedReason`*"] pub fn reason(&mut self, val: PresentationConnectionClosedReason) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("reason"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_PresentationConnectionClosedReason.rs000064400000000000000000000006440072674642500241440ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `PresentationConnectionClosedReason` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionClosedReason`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum PresentationConnectionClosedReason { Error = "error", Closed = "closed", Wentaway = "wentaway", } web-sys-0.3.55/src/features/gen_PresentationConnectionList.rs000064400000000000000000000045120072674642500224740ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = PresentationConnectionList , typescript_type = "PresentationConnectionList")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PresentationConnectionList` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnectionList)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionList`*"] pub type PresentationConnectionList; # [wasm_bindgen (structural , method , getter , js_class = "PresentationConnectionList" , js_name = connections)] #[doc = "Getter for the `connections` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnectionList/connections)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionList`*"] pub fn connections(this: &PresentationConnectionList) -> ::js_sys::Array; # [wasm_bindgen (structural , method , getter , js_class = "PresentationConnectionList" , js_name = onconnectionavailable)] #[doc = "Getter for the `onconnectionavailable` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnectionList/onconnectionavailable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionList`*"] pub fn onconnectionavailable(this: &PresentationConnectionList) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "PresentationConnectionList" , js_name = onconnectionavailable)] #[doc = "Setter for the `onconnectionavailable` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnectionList/onconnectionavailable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionList`*"] pub fn set_onconnectionavailable( this: &PresentationConnectionList, value: Option<&::js_sys::Function>, ); } web-sys-0.3.55/src/features/gen_PresentationConnectionState.rs000064400000000000000000000006720072674642500226440ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `PresentationConnectionState` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionState`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum PresentationConnectionState { Connecting = "connecting", Connected = "connected", Closed = "closed", Terminated = "terminated", } web-sys-0.3.55/src/features/gen_PresentationReceiver.rs000064400000000000000000000021670072674642500213110ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PresentationReceiver , typescript_type = "PresentationReceiver")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PresentationReceiver` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationReceiver)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationReceiver`*"] pub type PresentationReceiver; # [wasm_bindgen (structural , catch , method , getter , js_class = "PresentationReceiver" , js_name = connectionList)] #[doc = "Getter for the `connectionList` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationReceiver/connectionList)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationReceiver`*"] pub fn connection_list(this: &PresentationReceiver) -> Result<::js_sys::Promise, JsValue>; } web-sys-0.3.55/src/features/gen_PresentationRequest.rs000064400000000000000000000103560072674642500211740ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = PresentationRequest , typescript_type = "PresentationRequest")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PresentationRequest` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationRequest)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationRequest`*"] pub type PresentationRequest; # [wasm_bindgen (structural , method , getter , js_class = "PresentationRequest" , js_name = onconnectionavailable)] #[doc = "Getter for the `onconnectionavailable` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationRequest/onconnectionavailable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationRequest`*"] pub fn onconnectionavailable(this: &PresentationRequest) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "PresentationRequest" , js_name = onconnectionavailable)] #[doc = "Setter for the `onconnectionavailable` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationRequest/onconnectionavailable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationRequest`*"] pub fn set_onconnectionavailable( this: &PresentationRequest, value: Option<&::js_sys::Function>, ); #[wasm_bindgen(catch, constructor, js_class = "PresentationRequest")] #[doc = "The `new PresentationRequest(..)` constructor, creating a new instance of `PresentationRequest`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationRequest/PresentationRequest)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationRequest`*"] pub fn new_with_url(url: &str) -> Result; #[wasm_bindgen(catch, constructor, js_class = "PresentationRequest")] #[doc = "The `new PresentationRequest(..)` constructor, creating a new instance of `PresentationRequest`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationRequest/PresentationRequest)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationRequest`*"] pub fn new_with_urls(urls: &::wasm_bindgen::JsValue) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "PresentationRequest" , js_name = getAvailability)] #[doc = "The `getAvailability()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationRequest/getAvailability)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationRequest`*"] pub fn get_availability(this: &PresentationRequest) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "PresentationRequest" , js_name = reconnect)] #[doc = "The `reconnect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationRequest/reconnect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationRequest`*"] pub fn reconnect( this: &PresentationRequest, presentation_id: &str, ) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "PresentationRequest" , js_name = start)] #[doc = "The `start()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationRequest/start)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationRequest`*"] pub fn start(this: &PresentationRequest) -> Result<::js_sys::Promise, JsValue>; } web-sys-0.3.55/src/features/gen_PresentationStyle.rs000064400000000000000000000012100072674642500206310ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `PresentationStyle` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationStyle`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum PresentationStyle { Unspecified = "unspecified", Inline = "inline", Attachment = "attachment", } web-sys-0.3.55/src/features/gen_ProcessingInstruction.rs000064400000000000000000000032270072674642500215250ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = CharacterData , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = ProcessingInstruction , typescript_type = "ProcessingInstruction")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ProcessingInstruction` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ProcessingInstruction)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProcessingInstruction`*"] pub type ProcessingInstruction; # [wasm_bindgen (structural , method , getter , js_class = "ProcessingInstruction" , js_name = target)] #[doc = "Getter for the `target` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ProcessingInstruction/target)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProcessingInstruction`*"] pub fn target(this: &ProcessingInstruction) -> String; #[cfg(feature = "StyleSheet")] # [wasm_bindgen (structural , method , getter , js_class = "ProcessingInstruction" , js_name = sheet)] #[doc = "Getter for the `sheet` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ProcessingInstruction/sheet)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProcessingInstruction`, `StyleSheet`*"] pub fn sheet(this: &ProcessingInstruction) -> Option; } web-sys-0.3.55/src/features/gen_ProfileTimelineLayerRect.rs000064400000000000000000000060250072674642500220500ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ProfileTimelineLayerRect)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ProfileTimelineLayerRect` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineLayerRect`*"] pub type ProfileTimelineLayerRect; } impl ProfileTimelineLayerRect { #[doc = "Construct a new `ProfileTimelineLayerRect`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineLayerRect`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `height` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineLayerRect`*"] pub fn height(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("height"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `width` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineLayerRect`*"] pub fn width(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("width"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `x` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineLayerRect`*"] pub fn x(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("x"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `y` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineLayerRect`*"] pub fn y(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("y"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for ProfileTimelineLayerRect { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_ProfileTimelineMarker.rs000064400000000000000000000234610072674642500214020ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ProfileTimelineMarker)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ProfileTimelineMarker` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] pub type ProfileTimelineMarker; } impl ProfileTimelineMarker { #[doc = "Construct a new `ProfileTimelineMarker`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `causeName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] pub fn cause_name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("causeName"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `end` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] pub fn end(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("end"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `endStack` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] pub fn end_stack(&mut self, val: Option<&::js_sys::Object>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("endStack"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `eventPhase` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] pub fn event_phase(&mut self, val: u16) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("eventPhase"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `isAnimationOnly` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] pub fn is_animation_only(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("isAnimationOnly"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `isOffMainThread` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] pub fn is_off_main_thread(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("isOffMainThread"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "ProfileTimelineMessagePortOperationType")] #[doc = "Change the `messagePortOperation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`, `ProfileTimelineMessagePortOperationType`*"] pub fn message_port_operation( &mut self, val: ProfileTimelineMessagePortOperationType, ) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("messagePortOperation"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] pub fn name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `processType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] pub fn process_type(&mut self, val: u16) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("processType"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `rectangles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] pub fn rectangles(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("rectangles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `stack` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] pub fn stack(&mut self, val: Option<&::js_sys::Object>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("stack"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `start` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] pub fn start(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("start"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] pub fn type_(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `unixTime` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] pub fn unix_time(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("unixTime"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "ProfileTimelineWorkerOperationType")] #[doc = "Change the `workerOperation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`, `ProfileTimelineWorkerOperationType`*"] pub fn worker_operation(&mut self, val: ProfileTimelineWorkerOperationType) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("workerOperation"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for ProfileTimelineMarker { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_ProfileTimelineMessagePortOperationType.rs000064400000000000000000000006720072674642500251340ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `ProfileTimelineMessagePortOperationType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMessagePortOperationType`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum ProfileTimelineMessagePortOperationType { SerializeData = "serializeData", DeserializeData = "deserializeData", } web-sys-0.3.55/src/features/gen_ProfileTimelineStackFrame.rs000064400000000000000000000116710072674642500222010ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ProfileTimelineStackFrame)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ProfileTimelineStackFrame` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"] pub type ProfileTimelineStackFrame; } impl ProfileTimelineStackFrame { #[doc = "Construct a new `ProfileTimelineStackFrame`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `asyncCause` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"] pub fn async_cause(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("asyncCause"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `asyncParent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"] pub fn async_parent(&mut self, val: Option<&::js_sys::Object>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("asyncParent"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `column` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"] pub fn column(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("column"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `functionDisplayName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"] pub fn function_display_name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("functionDisplayName"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `line` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"] pub fn line(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("line"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `parent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"] pub fn parent(&mut self, val: Option<&::js_sys::Object>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("parent"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `source` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"] pub fn source(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("source"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for ProfileTimelineStackFrame { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_ProfileTimelineWorkerOperationType.rs000064400000000000000000000011350072674642500241470ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `ProfileTimelineWorkerOperationType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineWorkerOperationType`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum ProfileTimelineWorkerOperationType { SerializeDataOffMainThread = "serializeDataOffMainThread", SerializeDataOnMainThread = "serializeDataOnMainThread", DeserializeDataOffMainThread = "deserializeDataOffMainThread", DeserializeDataOnMainThread = "deserializeDataOnMainThread", } web-sys-0.3.55/src/features/gen_ProgressEvent.rs000064400000000000000000000057330072674642500177610ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = ProgressEvent , typescript_type = "ProgressEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ProgressEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ProgressEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProgressEvent`*"] pub type ProgressEvent; # [wasm_bindgen (structural , method , getter , js_class = "ProgressEvent" , js_name = lengthComputable)] #[doc = "Getter for the `lengthComputable` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ProgressEvent/lengthComputable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProgressEvent`*"] pub fn length_computable(this: &ProgressEvent) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "ProgressEvent" , js_name = loaded)] #[doc = "Getter for the `loaded` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ProgressEvent/loaded)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProgressEvent`*"] pub fn loaded(this: &ProgressEvent) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "ProgressEvent" , js_name = total)] #[doc = "Getter for the `total` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ProgressEvent/total)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProgressEvent`*"] pub fn total(this: &ProgressEvent) -> f64; #[wasm_bindgen(catch, constructor, js_class = "ProgressEvent")] #[doc = "The `new ProgressEvent(..)` constructor, creating a new instance of `ProgressEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ProgressEvent/ProgressEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProgressEvent`*"] pub fn new(type_: &str) -> Result; #[cfg(feature = "ProgressEventInit")] #[wasm_bindgen(catch, constructor, js_class = "ProgressEvent")] #[doc = "The `new ProgressEvent(..)` constructor, creating a new instance of `ProgressEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ProgressEvent/ProgressEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProgressEvent`, `ProgressEventInit`*"] pub fn new_with_event_init_dict( type_: &str, event_init_dict: &ProgressEventInit, ) -> Result; } web-sys-0.3.55/src/features/gen_ProgressEventInit.rs000064400000000000000000000104050072674642500205750ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ProgressEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ProgressEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProgressEventInit`*"] pub type ProgressEventInit; } impl ProgressEventInit { #[doc = "Construct a new `ProgressEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProgressEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProgressEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProgressEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProgressEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `lengthComputable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProgressEventInit`*"] pub fn length_computable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("lengthComputable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `loaded` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProgressEventInit`*"] pub fn loaded(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("loaded"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `total` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProgressEventInit`*"] pub fn total(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("total"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for ProgressEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_PromiseNativeHandler.rs000064400000000000000000000011620072674642500212260ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = PromiseNativeHandler , typescript_type = "PromiseNativeHandler")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PromiseNativeHandler` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PromiseNativeHandler)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PromiseNativeHandler`*"] pub type PromiseNativeHandler; } web-sys-0.3.55/src/features/gen_PromiseRejectionEvent.rs000064400000000000000000000043610072674642500214320ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = PromiseRejectionEvent , typescript_type = "PromiseRejectionEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PromiseRejectionEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PromiseRejectionEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PromiseRejectionEvent`*"] pub type PromiseRejectionEvent; # [wasm_bindgen (structural , method , getter , js_class = "PromiseRejectionEvent" , js_name = promise)] #[doc = "Getter for the `promise` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PromiseRejectionEvent/promise)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PromiseRejectionEvent`*"] pub fn promise(this: &PromiseRejectionEvent) -> ::js_sys::Promise; # [wasm_bindgen (structural , method , getter , js_class = "PromiseRejectionEvent" , js_name = reason)] #[doc = "Getter for the `reason` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PromiseRejectionEvent/reason)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PromiseRejectionEvent`*"] pub fn reason(this: &PromiseRejectionEvent) -> ::wasm_bindgen::JsValue; #[cfg(feature = "PromiseRejectionEventInit")] #[wasm_bindgen(catch, constructor, js_class = "PromiseRejectionEvent")] #[doc = "The `new PromiseRejectionEvent(..)` constructor, creating a new instance of `PromiseRejectionEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PromiseRejectionEvent/PromiseRejectionEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PromiseRejectionEvent`, `PromiseRejectionEventInit`*"] pub fn new( type_: &str, event_init_dict: &PromiseRejectionEventInit, ) -> Result; } web-sys-0.3.55/src/features/gen_PromiseRejectionEventInit.rs000064400000000000000000000074630072674642500222640ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PromiseRejectionEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PromiseRejectionEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PromiseRejectionEventInit`*"] pub type PromiseRejectionEventInit; } impl PromiseRejectionEventInit { #[doc = "Construct a new `PromiseRejectionEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PromiseRejectionEventInit`*"] pub fn new(promise: &::js_sys::Promise) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.promise(promise); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PromiseRejectionEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PromiseRejectionEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PromiseRejectionEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `promise` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PromiseRejectionEventInit`*"] pub fn promise(&mut self, val: &::js_sys::Promise) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("promise"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `reason` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PromiseRejectionEventInit`*"] pub fn reason(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("reason"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_PublicKeyCredential.rs000064400000000000000000000055670072674642500210420ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Credential , extends = :: js_sys :: Object , js_name = PublicKeyCredential , typescript_type = "PublicKeyCredential")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PublicKeyCredential` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredential)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredential`*"] pub type PublicKeyCredential; # [wasm_bindgen (structural , method , getter , js_class = "PublicKeyCredential" , js_name = rawId)] #[doc = "Getter for the `rawId` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredential/rawId)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredential`*"] pub fn raw_id(this: &PublicKeyCredential) -> ::js_sys::ArrayBuffer; #[cfg(feature = "AuthenticatorResponse")] # [wasm_bindgen (structural , method , getter , js_class = "PublicKeyCredential" , js_name = response)] #[doc = "Getter for the `response` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredential/response)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorResponse`, `PublicKeyCredential`*"] pub fn response(this: &PublicKeyCredential) -> AuthenticatorResponse; #[cfg(feature = "AuthenticationExtensionsClientOutputs")] # [wasm_bindgen (method , structural , js_class = "PublicKeyCredential" , js_name = getClientExtensionResults)] #[doc = "The `getClientExtensionResults()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredential/getClientExtensionResults)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputs`, `PublicKeyCredential`*"] pub fn get_client_extension_results( this: &PublicKeyCredential, ) -> AuthenticationExtensionsClientOutputs; # [wasm_bindgen (static_method_of = PublicKeyCredential , js_class = "PublicKeyCredential" , js_name = isUserVerifyingPlatformAuthenticatorAvailable)] #[doc = "The `isUserVerifyingPlatformAuthenticatorAvailable()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredential/isUserVerifyingPlatformAuthenticatorAvailable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredential`*"] pub fn is_user_verifying_platform_authenticator_available() -> ::js_sys::Promise; } web-sys-0.3.55/src/features/gen_PublicKeyCredentialCreationOptions.rs000064400000000000000000000165360072674642500241010ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PublicKeyCredentialCreationOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PublicKeyCredentialCreationOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialCreationOptions`*"] pub type PublicKeyCredentialCreationOptions; } impl PublicKeyCredentialCreationOptions { #[cfg(all( feature = "PublicKeyCredentialRpEntity", feature = "PublicKeyCredentialUserEntity", ))] #[doc = "Construct a new `PublicKeyCredentialCreationOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialCreationOptions`, `PublicKeyCredentialRpEntity`, `PublicKeyCredentialUserEntity`*"] pub fn new( challenge: &::js_sys::Object, pub_key_cred_params: &::wasm_bindgen::JsValue, rp: &PublicKeyCredentialRpEntity, user: &PublicKeyCredentialUserEntity, ) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.challenge(challenge); ret.pub_key_cred_params(pub_key_cred_params); ret.rp(rp); ret.user(user); ret } #[cfg(feature = "AttestationConveyancePreference")] #[doc = "Change the `attestation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AttestationConveyancePreference`, `PublicKeyCredentialCreationOptions`*"] pub fn attestation(&mut self, val: AttestationConveyancePreference) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("attestation"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "AuthenticatorSelectionCriteria")] #[doc = "Change the `authenticatorSelection` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorSelectionCriteria`, `PublicKeyCredentialCreationOptions`*"] pub fn authenticator_selection(&mut self, val: &AuthenticatorSelectionCriteria) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("authenticatorSelection"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `challenge` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialCreationOptions`*"] pub fn challenge(&mut self, val: &::js_sys::Object) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("challenge"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `excludeCredentials` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialCreationOptions`*"] pub fn exclude_credentials(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("excludeCredentials"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "AuthenticationExtensionsClientInputs")] #[doc = "Change the `extensions` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputs`, `PublicKeyCredentialCreationOptions`*"] pub fn extensions(&mut self, val: &AuthenticationExtensionsClientInputs) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("extensions"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `pubKeyCredParams` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialCreationOptions`*"] pub fn pub_key_cred_params(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("pubKeyCredParams"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "PublicKeyCredentialRpEntity")] #[doc = "Change the `rp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialCreationOptions`, `PublicKeyCredentialRpEntity`*"] pub fn rp(&mut self, val: &PublicKeyCredentialRpEntity) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("rp"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `timeout` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialCreationOptions`*"] pub fn timeout(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("timeout"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "PublicKeyCredentialUserEntity")] #[doc = "Change the `user` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialCreationOptions`, `PublicKeyCredentialUserEntity`*"] pub fn user(&mut self, val: &PublicKeyCredentialUserEntity) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("user"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_PublicKeyCredentialDescriptor.rs000064400000000000000000000054630072674642500230740ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PublicKeyCredentialDescriptor)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PublicKeyCredentialDescriptor` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialDescriptor`*"] pub type PublicKeyCredentialDescriptor; } impl PublicKeyCredentialDescriptor { #[cfg(feature = "PublicKeyCredentialType")] #[doc = "Construct a new `PublicKeyCredentialDescriptor`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialDescriptor`, `PublicKeyCredentialType`*"] pub fn new(id: &::js_sys::Object, type_: PublicKeyCredentialType) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.id(id); ret.type_(type_); ret } #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialDescriptor`*"] pub fn id(&mut self, val: &::js_sys::Object) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("id"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `transports` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialDescriptor`*"] pub fn transports(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("transports"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "PublicKeyCredentialType")] #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialDescriptor`, `PublicKeyCredentialType`*"] pub fn type_(&mut self, val: PublicKeyCredentialType) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_PublicKeyCredentialEntity.rs000064400000000000000000000036500072674642500222260ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PublicKeyCredentialEntity)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PublicKeyCredentialEntity` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialEntity`*"] pub type PublicKeyCredentialEntity; } impl PublicKeyCredentialEntity { #[doc = "Construct a new `PublicKeyCredentialEntity`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialEntity`*"] pub fn new(name: &str) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.name(name); ret } #[doc = "Change the `icon` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialEntity`*"] pub fn icon(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("icon"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialEntity`*"] pub fn name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_PublicKeyCredentialParameters.rs000064400000000000000000000042500072674642500230520ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PublicKeyCredentialParameters)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PublicKeyCredentialParameters` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialParameters`*"] pub type PublicKeyCredentialParameters; } impl PublicKeyCredentialParameters { #[cfg(feature = "PublicKeyCredentialType")] #[doc = "Construct a new `PublicKeyCredentialParameters`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialParameters`, `PublicKeyCredentialType`*"] pub fn new(alg: i32, type_: PublicKeyCredentialType) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.alg(alg); ret.type_(type_); ret } #[doc = "Change the `alg` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialParameters`*"] pub fn alg(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("alg"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "PublicKeyCredentialType")] #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialParameters`, `PublicKeyCredentialType`*"] pub fn type_(&mut self, val: PublicKeyCredentialType) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_PublicKeyCredentialRequestOptions.rs000064400000000000000000000114140072674642500237530ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PublicKeyCredentialRequestOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PublicKeyCredentialRequestOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRequestOptions`*"] pub type PublicKeyCredentialRequestOptions; } impl PublicKeyCredentialRequestOptions { #[doc = "Construct a new `PublicKeyCredentialRequestOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRequestOptions`*"] pub fn new(challenge: &::js_sys::Object) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.challenge(challenge); ret } #[doc = "Change the `allowCredentials` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRequestOptions`*"] pub fn allow_credentials(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("allowCredentials"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `challenge` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRequestOptions`*"] pub fn challenge(&mut self, val: &::js_sys::Object) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("challenge"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "AuthenticationExtensionsClientInputs")] #[doc = "Change the `extensions` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputs`, `PublicKeyCredentialRequestOptions`*"] pub fn extensions(&mut self, val: &AuthenticationExtensionsClientInputs) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("extensions"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `rpId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRequestOptions`*"] pub fn rp_id(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("rpId"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `timeout` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRequestOptions`*"] pub fn timeout(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("timeout"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "UserVerificationRequirement")] #[doc = "Change the `userVerification` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRequestOptions`, `UserVerificationRequirement`*"] pub fn user_verification(&mut self, val: UserVerificationRequirement) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("userVerification"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_PublicKeyCredentialRpEntity.rs000064400000000000000000000047220072674642500225310ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PublicKeyCredentialRpEntity)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PublicKeyCredentialRpEntity` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRpEntity`*"] pub type PublicKeyCredentialRpEntity; } impl PublicKeyCredentialRpEntity { #[doc = "Construct a new `PublicKeyCredentialRpEntity`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRpEntity`*"] pub fn new(name: &str) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.name(name); ret } #[doc = "Change the `icon` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRpEntity`*"] pub fn icon(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("icon"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRpEntity`*"] pub fn name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRpEntity`*"] pub fn id(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("id"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_PublicKeyCredentialType.rs000064400000000000000000000005320072674642500216670ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `PublicKeyCredentialType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialType`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum PublicKeyCredentialType { PublicKey = "public-key", } web-sys-0.3.55/src/features/gen_PublicKeyCredentialUserEntity.rs000064400000000000000000000062770072674642500230750ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PublicKeyCredentialUserEntity)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PublicKeyCredentialUserEntity` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialUserEntity`*"] pub type PublicKeyCredentialUserEntity; } impl PublicKeyCredentialUserEntity { #[doc = "Construct a new `PublicKeyCredentialUserEntity`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialUserEntity`*"] pub fn new(name: &str, display_name: &str, id: &::js_sys::Object) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.name(name); ret.display_name(display_name); ret.id(id); ret } #[doc = "Change the `icon` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialUserEntity`*"] pub fn icon(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("icon"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialUserEntity`*"] pub fn name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `displayName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialUserEntity`*"] pub fn display_name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("displayName"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialUserEntity`*"] pub fn id(&mut self, val: &::js_sys::Object) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("id"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_PushEncryptionKeyName.rs000064400000000000000000000005400072674642500214060ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `PushEncryptionKeyName` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushEncryptionKeyName`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum PushEncryptionKeyName { P256dh = "p256dh", Auth = "auth", } web-sys-0.3.55/src/features/gen_PushEvent.rs000064400000000000000000000040640072674642500170700ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = ExtendableEvent , extends = Event , extends = :: js_sys :: Object , js_name = PushEvent , typescript_type = "PushEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PushEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushEvent`*"] pub type PushEvent; #[cfg(feature = "PushMessageData")] # [wasm_bindgen (structural , method , getter , js_class = "PushEvent" , js_name = data)] #[doc = "Getter for the `data` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushEvent/data)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushEvent`, `PushMessageData`*"] pub fn data(this: &PushEvent) -> Option; #[wasm_bindgen(catch, constructor, js_class = "PushEvent")] #[doc = "The `new PushEvent(..)` constructor, creating a new instance of `PushEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushEvent/PushEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushEvent`*"] pub fn new(type_: &str) -> Result; #[cfg(feature = "PushEventInit")] #[wasm_bindgen(catch, constructor, js_class = "PushEvent")] #[doc = "The `new PushEvent(..)` constructor, creating a new instance of `PushEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushEvent/PushEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushEvent`, `PushEventInit`*"] pub fn new_with_event_init_dict( type_: &str, event_init_dict: &PushEventInit, ) -> Result; } web-sys-0.3.55/src/features/gen_PushEventInit.rs000064400000000000000000000061320072674642500177120ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PushEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PushEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushEventInit`*"] pub type PushEventInit; } impl PushEventInit { #[doc = "Construct a new `PushEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `data` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushEventInit`*"] pub fn data(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("data"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for PushEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_PushManager.rs000064400000000000000000000062130072674642500173570ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PushManager , typescript_type = "PushManager")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PushManager` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushManager)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushManager`*"] pub type PushManager; # [wasm_bindgen (catch , method , structural , js_class = "PushManager" , js_name = getSubscription)] #[doc = "The `getSubscription()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushManager/getSubscription)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushManager`*"] pub fn get_subscription(this: &PushManager) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "PushManager" , js_name = permissionState)] #[doc = "The `permissionState()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushManager/permissionState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushManager`*"] pub fn permission_state(this: &PushManager) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "PushSubscriptionOptionsInit")] # [wasm_bindgen (catch , method , structural , js_class = "PushManager" , js_name = permissionState)] #[doc = "The `permissionState()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushManager/permissionState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushManager`, `PushSubscriptionOptionsInit`*"] pub fn permission_state_with_options( this: &PushManager, options: &PushSubscriptionOptionsInit, ) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "PushManager" , js_name = subscribe)] #[doc = "The `subscribe()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushManager/subscribe)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushManager`*"] pub fn subscribe(this: &PushManager) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "PushSubscriptionOptionsInit")] # [wasm_bindgen (catch , method , structural , js_class = "PushManager" , js_name = subscribe)] #[doc = "The `subscribe()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushManager/subscribe)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushManager`, `PushSubscriptionOptionsInit`*"] pub fn subscribe_with_options( this: &PushManager, options: &PushSubscriptionOptionsInit, ) -> Result<::js_sys::Promise, JsValue>; } web-sys-0.3.55/src/features/gen_PushMessageData.rs000064400000000000000000000045400072674642500201640ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PushMessageData , typescript_type = "PushMessageData")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PushMessageData` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushMessageData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushMessageData`*"] pub type PushMessageData; # [wasm_bindgen (catch , method , structural , js_class = "PushMessageData" , js_name = arrayBuffer)] #[doc = "The `arrayBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushMessageData/arrayBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushMessageData`*"] pub fn array_buffer(this: &PushMessageData) -> Result<::js_sys::ArrayBuffer, JsValue>; #[cfg(feature = "Blob")] # [wasm_bindgen (catch , method , structural , js_class = "PushMessageData" , js_name = blob)] #[doc = "The `blob()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushMessageData/blob)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`, `PushMessageData`*"] pub fn blob(this: &PushMessageData) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "PushMessageData" , js_name = json)] #[doc = "The `json()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushMessageData/json)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushMessageData`*"] pub fn json(this: &PushMessageData) -> Result<::wasm_bindgen::JsValue, JsValue>; # [wasm_bindgen (method , structural , js_class = "PushMessageData" , js_name = text)] #[doc = "The `text()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushMessageData/text)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushMessageData`*"] pub fn text(this: &PushMessageData) -> String; } web-sys-0.3.55/src/features/gen_PushPermissionState.rs000064400000000000000000000005670072674642500211440ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `PushPermissionState` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushPermissionState`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum PushPermissionState { Granted = "granted", Denied = "denied", Prompt = "prompt", } web-sys-0.3.55/src/features/gen_PushSubscription.rs000064400000000000000000000062170072674642500204750ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PushSubscription , typescript_type = "PushSubscription")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PushSubscription` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushSubscription)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscription`*"] pub type PushSubscription; # [wasm_bindgen (structural , method , getter , js_class = "PushSubscription" , js_name = endpoint)] #[doc = "Getter for the `endpoint` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushSubscription/endpoint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscription`*"] pub fn endpoint(this: &PushSubscription) -> String; #[cfg(feature = "PushSubscriptionOptions")] # [wasm_bindgen (structural , method , getter , js_class = "PushSubscription" , js_name = options)] #[doc = "Getter for the `options` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushSubscription/options)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscription`, `PushSubscriptionOptions`*"] pub fn options(this: &PushSubscription) -> PushSubscriptionOptions; #[cfg(feature = "PushEncryptionKeyName")] # [wasm_bindgen (catch , method , structural , js_class = "PushSubscription" , js_name = getKey)] #[doc = "The `getKey()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushSubscription/getKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushEncryptionKeyName`, `PushSubscription`*"] pub fn get_key( this: &PushSubscription, name: PushEncryptionKeyName, ) -> Result, JsValue>; #[cfg(feature = "PushSubscriptionJson")] # [wasm_bindgen (catch , method , structural , js_class = "PushSubscription" , js_name = toJSON)] #[doc = "The `toJSON()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushSubscription/toJSON)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscription`, `PushSubscriptionJson`*"] pub fn to_json(this: &PushSubscription) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "PushSubscription" , js_name = unsubscribe)] #[doc = "The `unsubscribe()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushSubscription/unsubscribe)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscription`*"] pub fn unsubscribe(this: &PushSubscription) -> Result<::js_sys::Promise, JsValue>; } web-sys-0.3.55/src/features/gen_PushSubscriptionInit.rs000064400000000000000000000075040072674642500213210ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PushSubscriptionInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PushSubscriptionInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionInit`*"] pub type PushSubscriptionInit; } impl PushSubscriptionInit { #[doc = "Construct a new `PushSubscriptionInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionInit`*"] pub fn new(endpoint: &str, scope: &str) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.endpoint(endpoint); ret.scope(scope); ret } #[doc = "Change the `appServerKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionInit`*"] pub fn app_server_key(&mut self, val: Option<&::js_sys::Object>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("appServerKey"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `authSecret` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionInit`*"] pub fn auth_secret(&mut self, val: Option<&::js_sys::ArrayBuffer>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("authSecret"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `endpoint` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionInit`*"] pub fn endpoint(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("endpoint"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `p256dhKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionInit`*"] pub fn p256dh_key(&mut self, val: Option<&::js_sys::ArrayBuffer>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("p256dhKey"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `scope` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionInit`*"] pub fn scope(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("scope"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_PushSubscriptionJson.rs000064400000000000000000000041110072674642500213160ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PushSubscriptionJSON)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PushSubscriptionJson` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionJson`*"] pub type PushSubscriptionJson; } impl PushSubscriptionJson { #[doc = "Construct a new `PushSubscriptionJson`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionJson`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `endpoint` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionJson`*"] pub fn endpoint(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("endpoint"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "PushSubscriptionKeys")] #[doc = "Change the `keys` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionJson`, `PushSubscriptionKeys`*"] pub fn keys(&mut self, val: &PushSubscriptionKeys) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("keys"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for PushSubscriptionJson { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_PushSubscriptionKeys.rs000064400000000000000000000037120072674642500213260ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PushSubscriptionKeys)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PushSubscriptionKeys` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionKeys`*"] pub type PushSubscriptionKeys; } impl PushSubscriptionKeys { #[doc = "Construct a new `PushSubscriptionKeys`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionKeys`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `auth` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionKeys`*"] pub fn auth(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("auth"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `p256dh` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionKeys`*"] pub fn p256dh(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("p256dh"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for PushSubscriptionKeys { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_PushSubscriptionOptions.rs000064400000000000000000000023110072674642500220400ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PushSubscriptionOptions , typescript_type = "PushSubscriptionOptions")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PushSubscriptionOptions` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushSubscriptionOptions)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionOptions`*"] pub type PushSubscriptionOptions; # [wasm_bindgen (structural , catch , method , getter , js_class = "PushSubscriptionOptions" , js_name = applicationServerKey)] #[doc = "Getter for the `applicationServerKey` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushSubscriptionOptions/applicationServerKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionOptions`*"] pub fn application_server_key( this: &PushSubscriptionOptions, ) -> Result, JsValue>; } web-sys-0.3.55/src/features/gen_PushSubscriptionOptionsInit.rs000064400000000000000000000043150072674642500226720ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PushSubscriptionOptionsInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PushSubscriptionOptionsInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionOptionsInit`*"] pub type PushSubscriptionOptionsInit; } impl PushSubscriptionOptionsInit { #[doc = "Construct a new `PushSubscriptionOptionsInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionOptionsInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `applicationServerKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionOptionsInit`*"] pub fn application_server_key(&mut self, val: Option<&::wasm_bindgen::JsValue>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("applicationServerKey"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `userVisibleOnly` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionOptionsInit`*"] pub fn user_visible_only(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("userVisibleOnly"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for PushSubscriptionOptionsInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_QueuingStrategy.rs000064400000000000000000000061220072674642500203040ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = QueuingStrategy)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `QueuingStrategy` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `QueuingStrategy`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type QueuingStrategy; } #[cfg(web_sys_unstable_apis)] impl QueuingStrategy { #[doc = "Construct a new `QueuingStrategy`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `QueuingStrategy`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `highWaterMark` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `QueuingStrategy`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn high_water_mark(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("highWaterMark"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `size` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `QueuingStrategy`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn size(&mut self, val: &::js_sys::Function) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("size"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } #[cfg(web_sys_unstable_apis)] impl Default for QueuingStrategy { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_RadioNodeList.rs000064400000000000000000000026770072674642500176570ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = NodeList , extends = :: js_sys :: Object , js_name = RadioNodeList , typescript_type = "RadioNodeList")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RadioNodeList` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RadioNodeList)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RadioNodeList`*"] pub type RadioNodeList; # [wasm_bindgen (structural , method , getter , js_class = "RadioNodeList" , js_name = value)] #[doc = "Getter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RadioNodeList/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RadioNodeList`*"] pub fn value(this: &RadioNodeList) -> String; # [wasm_bindgen (structural , method , setter , js_class = "RadioNodeList" , js_name = value)] #[doc = "Setter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RadioNodeList/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RadioNodeList`*"] pub fn set_value(this: &RadioNodeList, value: &str); } web-sys-0.3.55/src/features/gen_Range.rs000064400000000000000000000373030072674642500162050ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Range , typescript_type = "Range")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Range` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Range`*"] pub type Range; #[cfg(feature = "Node")] # [wasm_bindgen (structural , catch , method , getter , js_class = "Range" , js_name = startContainer)] #[doc = "Getter for the `startContainer` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/startContainer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `Range`*"] pub fn start_container(this: &Range) -> Result; # [wasm_bindgen (structural , catch , method , getter , js_class = "Range" , js_name = startOffset)] #[doc = "Getter for the `startOffset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/startOffset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Range`*"] pub fn start_offset(this: &Range) -> Result; #[cfg(feature = "Node")] # [wasm_bindgen (structural , catch , method , getter , js_class = "Range" , js_name = endContainer)] #[doc = "Getter for the `endContainer` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/endContainer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `Range`*"] pub fn end_container(this: &Range) -> Result; # [wasm_bindgen (structural , catch , method , getter , js_class = "Range" , js_name = endOffset)] #[doc = "Getter for the `endOffset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/endOffset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Range`*"] pub fn end_offset(this: &Range) -> Result; # [wasm_bindgen (structural , method , getter , js_class = "Range" , js_name = collapsed)] #[doc = "Getter for the `collapsed` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/collapsed)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Range`*"] pub fn collapsed(this: &Range) -> bool; #[cfg(feature = "Node")] # [wasm_bindgen (structural , catch , method , getter , js_class = "Range" , js_name = commonAncestorContainer)] #[doc = "Getter for the `commonAncestorContainer` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/commonAncestorContainer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `Range`*"] pub fn common_ancestor_container(this: &Range) -> Result; #[wasm_bindgen(catch, constructor, js_class = "Range")] #[doc = "The `new Range(..)` constructor, creating a new instance of `Range`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/Range)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Range`*"] pub fn new() -> Result; #[cfg(feature = "DocumentFragment")] # [wasm_bindgen (catch , method , structural , js_class = "Range" , js_name = cloneContents)] #[doc = "The `cloneContents()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/cloneContents)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`, `Range`*"] pub fn clone_contents(this: &Range) -> Result; # [wasm_bindgen (method , structural , js_class = "Range" , js_name = cloneRange)] #[doc = "The `cloneRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/cloneRange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Range`*"] pub fn clone_range(this: &Range) -> Range; # [wasm_bindgen (method , structural , js_class = "Range" , js_name = collapse)] #[doc = "The `collapse()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/collapse)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Range`*"] pub fn collapse(this: &Range); # [wasm_bindgen (method , structural , js_class = "Range" , js_name = collapse)] #[doc = "The `collapse()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/collapse)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Range`*"] pub fn collapse_with_to_start(this: &Range, to_start: bool); # [wasm_bindgen (catch , method , structural , js_class = "Range" , js_name = compareBoundaryPoints)] #[doc = "The `compareBoundaryPoints()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/compareBoundaryPoints)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Range`*"] pub fn compare_boundary_points( this: &Range, how: u16, source_range: &Range, ) -> Result; #[cfg(feature = "Node")] # [wasm_bindgen (catch , method , structural , js_class = "Range" , js_name = comparePoint)] #[doc = "The `comparePoint()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/comparePoint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `Range`*"] pub fn compare_point(this: &Range, node: &Node, offset: u32) -> Result; #[cfg(feature = "DocumentFragment")] # [wasm_bindgen (catch , method , structural , js_class = "Range" , js_name = createContextualFragment)] #[doc = "The `createContextualFragment()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/createContextualFragment)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`, `Range`*"] pub fn create_contextual_fragment( this: &Range, fragment: &str, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Range" , js_name = deleteContents)] #[doc = "The `deleteContents()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/deleteContents)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Range`*"] pub fn delete_contents(this: &Range) -> Result<(), JsValue>; # [wasm_bindgen (method , structural , js_class = "Range" , js_name = detach)] #[doc = "The `detach()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/detach)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Range`*"] pub fn detach(this: &Range); #[cfg(feature = "DocumentFragment")] # [wasm_bindgen (catch , method , structural , js_class = "Range" , js_name = extractContents)] #[doc = "The `extractContents()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/extractContents)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`, `Range`*"] pub fn extract_contents(this: &Range) -> Result; #[cfg(feature = "DomRect")] # [wasm_bindgen (method , structural , js_class = "Range" , js_name = getBoundingClientRect)] #[doc = "The `getBoundingClientRect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/getBoundingClientRect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRect`, `Range`*"] pub fn get_bounding_client_rect(this: &Range) -> DomRect; #[cfg(feature = "DomRectList")] # [wasm_bindgen (method , structural , js_class = "Range" , js_name = getClientRects)] #[doc = "The `getClientRects()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/getClientRects)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectList`, `Range`*"] pub fn get_client_rects(this: &Range) -> Option; #[cfg(feature = "Node")] # [wasm_bindgen (catch , method , structural , js_class = "Range" , js_name = insertNode)] #[doc = "The `insertNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/insertNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `Range`*"] pub fn insert_node(this: &Range, node: &Node) -> Result<(), JsValue>; #[cfg(feature = "Node")] # [wasm_bindgen (catch , method , structural , js_class = "Range" , js_name = intersectsNode)] #[doc = "The `intersectsNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/intersectsNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `Range`*"] pub fn intersects_node(this: &Range, node: &Node) -> Result; #[cfg(feature = "Node")] # [wasm_bindgen (catch , method , structural , js_class = "Range" , js_name = isPointInRange)] #[doc = "The `isPointInRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/isPointInRange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `Range`*"] pub fn is_point_in_range(this: &Range, node: &Node, offset: u32) -> Result; #[cfg(feature = "Node")] # [wasm_bindgen (catch , method , structural , js_class = "Range" , js_name = selectNode)] #[doc = "The `selectNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/selectNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `Range`*"] pub fn select_node(this: &Range, ref_node: &Node) -> Result<(), JsValue>; #[cfg(feature = "Node")] # [wasm_bindgen (catch , method , structural , js_class = "Range" , js_name = selectNodeContents)] #[doc = "The `selectNodeContents()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/selectNodeContents)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `Range`*"] pub fn select_node_contents(this: &Range, ref_node: &Node) -> Result<(), JsValue>; #[cfg(feature = "Node")] # [wasm_bindgen (catch , method , structural , js_class = "Range" , js_name = setEnd)] #[doc = "The `setEnd()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/setEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `Range`*"] pub fn set_end(this: &Range, ref_node: &Node, offset: u32) -> Result<(), JsValue>; #[cfg(feature = "Node")] # [wasm_bindgen (catch , method , structural , js_class = "Range" , js_name = setEndAfter)] #[doc = "The `setEndAfter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/setEndAfter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `Range`*"] pub fn set_end_after(this: &Range, ref_node: &Node) -> Result<(), JsValue>; #[cfg(feature = "Node")] # [wasm_bindgen (catch , method , structural , js_class = "Range" , js_name = setEndBefore)] #[doc = "The `setEndBefore()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/setEndBefore)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `Range`*"] pub fn set_end_before(this: &Range, ref_node: &Node) -> Result<(), JsValue>; #[cfg(feature = "Node")] # [wasm_bindgen (catch , method , structural , js_class = "Range" , js_name = setStart)] #[doc = "The `setStart()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/setStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `Range`*"] pub fn set_start(this: &Range, ref_node: &Node, offset: u32) -> Result<(), JsValue>; #[cfg(feature = "Node")] # [wasm_bindgen (catch , method , structural , js_class = "Range" , js_name = setStartAfter)] #[doc = "The `setStartAfter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/setStartAfter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `Range`*"] pub fn set_start_after(this: &Range, ref_node: &Node) -> Result<(), JsValue>; #[cfg(feature = "Node")] # [wasm_bindgen (catch , method , structural , js_class = "Range" , js_name = setStartBefore)] #[doc = "The `setStartBefore()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/setStartBefore)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `Range`*"] pub fn set_start_before(this: &Range, ref_node: &Node) -> Result<(), JsValue>; #[cfg(feature = "Node")] # [wasm_bindgen (catch , method , structural , js_class = "Range" , js_name = surroundContents)] #[doc = "The `surroundContents()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/surroundContents)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `Range`*"] pub fn surround_contents(this: &Range, new_parent: &Node) -> Result<(), JsValue>; } impl Range { #[doc = "The `Range.START_TO_START` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Range`*"] pub const START_TO_START: u16 = 0i64 as u16; #[doc = "The `Range.START_TO_END` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Range`*"] pub const START_TO_END: u16 = 1u64 as u16; #[doc = "The `Range.END_TO_END` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Range`*"] pub const END_TO_END: u16 = 2u64 as u16; #[doc = "The `Range.END_TO_START` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Range`*"] pub const END_TO_START: u16 = 3u64 as u16; } web-sys-0.3.55/src/features/gen_RcwnPerfStats.rs000064400000000000000000000050660072674642500177170ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RcwnPerfStats)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RcwnPerfStats` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RcwnPerfStats`*"] pub type RcwnPerfStats; } impl RcwnPerfStats { #[doc = "Construct a new `RcwnPerfStats`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RcwnPerfStats`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `avgLong` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RcwnPerfStats`*"] pub fn avg_long(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("avgLong"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `avgShort` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RcwnPerfStats`*"] pub fn avg_short(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("avgShort"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `stddevLong` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RcwnPerfStats`*"] pub fn stddev_long(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("stddevLong"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for RcwnPerfStats { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_RcwnStatus.rs000064400000000000000000000106130072674642500172610ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RcwnStatus)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RcwnStatus` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RcwnStatus`*"] pub type RcwnStatus; } impl RcwnStatus { #[doc = "Construct a new `RcwnStatus`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RcwnStatus`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `cacheNotSlowCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RcwnStatus`*"] pub fn cache_not_slow_count(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cacheNotSlowCount"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cacheSlowCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RcwnStatus`*"] pub fn cache_slow_count(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cacheSlowCount"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `perfStats` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RcwnStatus`*"] pub fn perf_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("perfStats"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `rcwnCacheWonCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RcwnStatus`*"] pub fn rcwn_cache_won_count(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("rcwnCacheWonCount"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `rcwnNetWonCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RcwnStatus`*"] pub fn rcwn_net_won_count(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("rcwnNetWonCount"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `totalNetworkRequests` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RcwnStatus`*"] pub fn total_network_requests(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("totalNetworkRequests"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for RcwnStatus { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_ReadableStream.rs000064400000000000000000000143360072674642500200250ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ReadableStream , typescript_type = "ReadableStream")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ReadableStream` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStream`*"] pub type ReadableStream; # [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 (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 = 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; #[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(web_sys_unstable_apis)] #[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`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn pipe_to(this: &ReadableStream, destination: &WritableStream) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[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`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] 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; } web-sys-0.3.55/src/features/gen_ReadableStreamByobReadResult.rs000064400000000000000000000062120072674642500226260ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ReadableStreamBYOBReadResult)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ReadableStreamByobReadResult` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStreamByobReadResult`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type ReadableStreamByobReadResult; } #[cfg(web_sys_unstable_apis)] impl ReadableStreamByobReadResult { #[doc = "Construct a new `ReadableStreamByobReadResult`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStreamByobReadResult`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `done` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStreamByobReadResult`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn done(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("done"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[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: `ReadableStreamByobReadResult`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn value(&mut self, val: &::js_sys::Object) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("value"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } #[cfg(web_sys_unstable_apis)] impl Default for ReadableStreamByobReadResult { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_ReadableStreamByobReader.rs000064400000000000000000000127420072674642500217630ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type ReadableStreamByobReader; #[cfg(web_sys_unstable_apis)] # [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`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn closed(this: &ReadableStreamByobReader) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [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`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn read_with_array_buffer_view( this: &ReadableStreamByobReader, view: &::js_sys::Object, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [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`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn read_with_u8_array( this: &ReadableStreamByobReader, view: &mut [u8], ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [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`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn release_lock(this: &ReadableStreamByobReader); #[cfg(web_sys_unstable_apis)] # [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`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn cancel(this: &ReadableStreamByobReader) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [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`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn cancel_with_reason( this: &ReadableStreamByobReader, reason: &::wasm_bindgen::JsValue, ) -> ::js_sys::Promise; } web-sys-0.3.55/src/features/gen_ReadableStreamDefaultReadResult.rs000064400000000000000000000062570072674642500233300ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ReadableStreamDefaultReadResult)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ReadableStreamDefaultReadResult` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStreamDefaultReadResult`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type ReadableStreamDefaultReadResult; } #[cfg(web_sys_unstable_apis)] impl ReadableStreamDefaultReadResult { #[doc = "Construct a new `ReadableStreamDefaultReadResult`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStreamDefaultReadResult`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `done` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStreamDefaultReadResult`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn done(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("done"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[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: `ReadableStreamDefaultReadResult`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn value(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("value"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } #[cfg(web_sys_unstable_apis)] impl Default for ReadableStreamDefaultReadResult { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_ReadableStreamDefaultReader.rs000064400000000000000000000113160072674642500224500ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type ReadableStreamDefaultReader; #[cfg(web_sys_unstable_apis)] # [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`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn closed(this: &ReadableStreamDefaultReader) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [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`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn read(this: &ReadableStreamDefaultReader) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [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`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn release_lock(this: &ReadableStreamDefaultReader); #[cfg(web_sys_unstable_apis)] # [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`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn cancel(this: &ReadableStreamDefaultReader) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [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`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn cancel_with_reason( this: &ReadableStreamDefaultReader, reason: &::wasm_bindgen::JsValue, ) -> ::js_sys::Promise; } web-sys-0.3.55/src/features/gen_ReadableStreamGetReaderOptions.rs000064400000000000000000000031340072674642500231560ustar 00000000000000#![allow(unused_imports)] 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; } 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")] #[doc = "Change the `mode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStreamGetReaderOptions`, `ReadableStreamReaderMode`*"] pub fn mode(&mut self, val: ReadableStreamReaderMode) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("mode"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for ReadableStreamGetReaderOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_ReadableStreamIteratorOptions.rs000064400000000000000000000030750072674642500231110ustar 00000000000000#![allow(unused_imports)] 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; } 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 } #[doc = "Change the `preventCancel` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStreamIteratorOptions`*"] pub fn prevent_cancel(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("preventCancel"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for ReadableStreamIteratorOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_ReadableStreamReaderMode.rs000064400000000000000000000005220072674642500217450ustar 00000000000000#![allow(unused_imports)] 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.55/src/features/gen_ReadableWritablePair.rs000064400000000000000000000055460072674642500211620ustar 00000000000000#![allow(unused_imports)] 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; } impl ReadableWritablePair { #[cfg(web_sys_unstable_apis)] #[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`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(readable: &ReadableStream, writable: &WritableStream) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.readable(readable); ret.writable(writable); ret } #[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`*"] pub fn readable(&mut self, val: &ReadableStream) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("readable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[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`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn writable(&mut self, val: &WritableStream) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("writable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_RecordingState.rs000064400000000000000000000005600072674642500200610ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `RecordingState` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RecordingState`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum RecordingState { Inactive = "inactive", Recording = "recording", Paused = "paused", } web-sys-0.3.55/src/features/gen_ReferrerPolicy.rs000064400000000000000000000012020072674642500200720ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `ReferrerPolicy` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReferrerPolicy`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum ReferrerPolicy { None = "", NoReferrer = "no-referrer", NoReferrerWhenDowngrade = "no-referrer-when-downgrade", Origin = "origin", OriginWhenCrossOrigin = "origin-when-cross-origin", UnsafeUrl = "unsafe-url", SameOrigin = "same-origin", StrictOrigin = "strict-origin", StrictOriginWhenCrossOrigin = "strict-origin-when-cross-origin", } web-sys-0.3.55/src/features/gen_RegisterRequest.rs000064400000000000000000000037740072674642500203130ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RegisterRequest)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RegisterRequest` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisterRequest`*"] pub type RegisterRequest; } impl RegisterRequest { #[doc = "Construct a new `RegisterRequest`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisterRequest`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `challenge` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisterRequest`*"] pub fn challenge(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("challenge"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `version` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisterRequest`*"] pub fn version(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("version"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for RegisterRequest { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_RegisterResponse.rs000064400000000000000000000074550072674642500204610ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RegisterResponse)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RegisterResponse` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisterResponse`*"] pub type RegisterResponse; } impl RegisterResponse { #[doc = "Construct a new `RegisterResponse`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisterResponse`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `clientData` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisterResponse`*"] pub fn client_data(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("clientData"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `errorCode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisterResponse`*"] pub fn error_code(&mut self, val: Option) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("errorCode"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `errorMessage` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisterResponse`*"] pub fn error_message(&mut self, val: Option<&str>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("errorMessage"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `registrationData` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisterResponse`*"] pub fn registration_data(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("registrationData"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `version` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisterResponse`*"] pub fn version(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("version"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for RegisterResponse { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_RegisteredKey.rs000064400000000000000000000061620072674642500177160ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RegisteredKey)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RegisteredKey` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisteredKey`*"] pub type RegisteredKey; } impl RegisteredKey { #[doc = "Construct a new `RegisteredKey`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisteredKey`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `appId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisteredKey`*"] pub fn app_id(&mut self, val: Option<&str>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("appId"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `keyHandle` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisteredKey`*"] pub fn key_handle(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("keyHandle"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `transports` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisteredKey`*"] pub fn transports(&mut self, val: Option<&::wasm_bindgen::JsValue>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("transports"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `version` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisteredKey`*"] pub fn version(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("version"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for RegisteredKey { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_RegistrationOptions.rs000064400000000000000000000041520072674642500211730ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RegistrationOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RegistrationOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegistrationOptions`*"] pub type RegistrationOptions; } impl RegistrationOptions { #[doc = "Construct a new `RegistrationOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegistrationOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `scope` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegistrationOptions`*"] pub fn scope(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("scope"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "ServiceWorkerUpdateViaCache")] #[doc = "Change the `updateViaCache` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegistrationOptions`, `ServiceWorkerUpdateViaCache`*"] pub fn update_via_cache(&mut self, val: ServiceWorkerUpdateViaCache) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("updateViaCache"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for RegistrationOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_Request.rs000064400000000000000000000265330072674642500166040ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Request , typescript_type = "Request")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Request` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Request`*"] pub type Request; # [wasm_bindgen (structural , method , getter , js_class = "Request" , js_name = method)] #[doc = "Getter for the `method` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/method)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Request`*"] pub fn method(this: &Request) -> String; # [wasm_bindgen (structural , method , getter , js_class = "Request" , js_name = url)] #[doc = "Getter for the `url` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/url)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Request`*"] pub fn url(this: &Request) -> String; #[cfg(feature = "Headers")] # [wasm_bindgen (structural , method , getter , js_class = "Request" , js_name = headers)] #[doc = "Getter for the `headers` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/headers)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Headers`, `Request`*"] pub fn headers(this: &Request) -> Headers; #[cfg(feature = "RequestDestination")] # [wasm_bindgen (structural , method , getter , js_class = "Request" , js_name = destination)] #[doc = "Getter for the `destination` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/destination)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Request`, `RequestDestination`*"] pub fn destination(this: &Request) -> RequestDestination; # [wasm_bindgen (structural , method , getter , js_class = "Request" , js_name = referrer)] #[doc = "Getter for the `referrer` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/referrer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Request`*"] pub fn referrer(this: &Request) -> String; #[cfg(feature = "ReferrerPolicy")] # [wasm_bindgen (structural , method , getter , js_class = "Request" , js_name = referrerPolicy)] #[doc = "Getter for the `referrerPolicy` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/referrerPolicy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReferrerPolicy`, `Request`*"] pub fn referrer_policy(this: &Request) -> ReferrerPolicy; #[cfg(feature = "RequestMode")] # [wasm_bindgen (structural , method , getter , js_class = "Request" , js_name = mode)] #[doc = "Getter for the `mode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/mode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Request`, `RequestMode`*"] pub fn mode(this: &Request) -> RequestMode; #[cfg(feature = "RequestCredentials")] # [wasm_bindgen (structural , method , getter , js_class = "Request" , js_name = credentials)] #[doc = "Getter for the `credentials` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/credentials)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Request`, `RequestCredentials`*"] pub fn credentials(this: &Request) -> RequestCredentials; #[cfg(feature = "RequestCache")] # [wasm_bindgen (structural , method , getter , js_class = "Request" , js_name = cache)] #[doc = "Getter for the `cache` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/cache)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Request`, `RequestCache`*"] pub fn cache(this: &Request) -> RequestCache; #[cfg(feature = "RequestRedirect")] # [wasm_bindgen (structural , method , getter , js_class = "Request" , js_name = redirect)] #[doc = "Getter for the `redirect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/redirect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Request`, `RequestRedirect`*"] pub fn redirect(this: &Request) -> RequestRedirect; # [wasm_bindgen (structural , method , getter , js_class = "Request" , js_name = integrity)] #[doc = "Getter for the `integrity` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/integrity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Request`*"] pub fn integrity(this: &Request) -> String; #[cfg(feature = "AbortSignal")] # [wasm_bindgen (structural , method , getter , js_class = "Request" , js_name = signal)] #[doc = "Getter for the `signal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/signal)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AbortSignal`, `Request`*"] pub fn signal(this: &Request) -> AbortSignal; # [wasm_bindgen (structural , method , getter , js_class = "Request" , js_name = bodyUsed)] #[doc = "Getter for the `bodyUsed` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/bodyUsed)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Request`*"] pub fn body_used(this: &Request) -> bool; #[cfg(feature = "ReadableStream")] # [wasm_bindgen (structural , method , getter , js_class = "Request" , js_name = body)] #[doc = "Getter for the `body` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/body)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStream`, `Request`*"] pub fn body(this: &Request) -> Option; #[wasm_bindgen(catch, constructor, js_class = "Request")] #[doc = "The `new Request(..)` constructor, creating a new instance of `Request`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Request`*"] pub fn new_with_request(input: &Request) -> Result; #[wasm_bindgen(catch, constructor, js_class = "Request")] #[doc = "The `new Request(..)` constructor, creating a new instance of `Request`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Request`*"] pub fn new_with_str(input: &str) -> Result; #[cfg(feature = "RequestInit")] #[wasm_bindgen(catch, constructor, js_class = "Request")] #[doc = "The `new Request(..)` constructor, creating a new instance of `Request`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Request`, `RequestInit`*"] pub fn new_with_request_and_init( input: &Request, init: &RequestInit, ) -> Result; #[cfg(feature = "RequestInit")] #[wasm_bindgen(catch, constructor, js_class = "Request")] #[doc = "The `new Request(..)` constructor, creating a new instance of `Request`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Request`, `RequestInit`*"] pub fn new_with_str_and_init(input: &str, init: &RequestInit) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Request" , js_name = clone)] #[doc = "The `clone()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/clone)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Request`*"] pub fn clone(this: &Request) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Request" , js_name = arrayBuffer)] #[doc = "The `arrayBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/arrayBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Request`*"] pub fn array_buffer(this: &Request) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Request" , js_name = blob)] #[doc = "The `blob()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/blob)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Request`*"] pub fn blob(this: &Request) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Request" , js_name = formData)] #[doc = "The `formData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/formData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Request`*"] pub fn form_data(this: &Request) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Request" , js_name = json)] #[doc = "The `json()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/json)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Request`*"] pub fn json(this: &Request) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Request" , js_name = text)] #[doc = "The `text()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/text)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Request`*"] pub fn text(this: &Request) -> Result<::js_sys::Promise, JsValue>; } web-sys-0.3.55/src/features/gen_RequestCache.rs000064400000000000000000000007040072674642500175200ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `RequestCache` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RequestCache`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum RequestCache { Default = "default", NoStore = "no-store", Reload = "reload", NoCache = "no-cache", ForceCache = "force-cache", OnlyIfCached = "only-if-cached", } web-sys-0.3.55/src/features/gen_RequestCredentials.rs000064400000000000000000000005710072674642500207540ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `RequestCredentials` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RequestCredentials`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum RequestCredentials { Omit = "omit", SameOrigin = "same-origin", Include = "include", } web-sys-0.3.55/src/features/gen_RequestDestination.rs000064400000000000000000000013330072674642500207750ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `RequestDestination` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RequestDestination`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum RequestDestination { None = "", Audio = "audio", Audioworklet = "audioworklet", Document = "document", Embed = "embed", Font = "font", Image = "image", Manifest = "manifest", Object = "object", Paintworklet = "paintworklet", Report = "report", Script = "script", Sharedworker = "sharedworker", Style = "style", Track = "track", Video = "video", Worker = "worker", Xslt = "xslt", } web-sys-0.3.55/src/features/gen_RequestDeviceOptions.rs000064400000000000000000000101410072674642500212640ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type RequestDeviceOptions; } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn accept_all_devices(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("acceptAllDevices"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn filters(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("filters"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn optional_services(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("optionalServices"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } #[cfg(web_sys_unstable_apis)] impl Default for RequestDeviceOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_RequestInit.rs000064400000000000000000000177230072674642500174310ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RequestInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RequestInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RequestInit`*"] pub type RequestInit; } impl RequestInit { #[doc = "Construct a new `RequestInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RequestInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `body` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RequestInit`*"] pub fn body(&mut self, val: Option<&::wasm_bindgen::JsValue>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("body"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "RequestCache")] #[doc = "Change the `cache` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RequestCache`, `RequestInit`*"] pub fn cache(&mut self, val: RequestCache) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("cache"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "RequestCredentials")] #[doc = "Change the `credentials` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RequestCredentials`, `RequestInit`*"] pub fn credentials(&mut self, val: RequestCredentials) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("credentials"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `headers` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RequestInit`*"] pub fn headers(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("headers"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `integrity` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RequestInit`*"] pub fn integrity(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("integrity"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `method` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RequestInit`*"] pub fn method(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("method"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "RequestMode")] #[doc = "Change the `mode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RequestInit`, `RequestMode`*"] pub fn mode(&mut self, val: RequestMode) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("mode"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "ObserverCallback")] #[doc = "Change the `observe` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ObserverCallback`, `RequestInit`*"] pub fn observe(&mut self, val: &ObserverCallback) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("observe"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "RequestRedirect")] #[doc = "Change the `redirect` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RequestInit`, `RequestRedirect`*"] pub fn redirect(&mut self, val: RequestRedirect) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("redirect"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `referrer` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RequestInit`*"] pub fn referrer(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("referrer"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "ReferrerPolicy")] #[doc = "Change the `referrerPolicy` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReferrerPolicy`, `RequestInit`*"] pub fn referrer_policy(&mut self, val: ReferrerPolicy) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("referrerPolicy"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "AbortSignal")] #[doc = "Change the `signal` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AbortSignal`, `RequestInit`*"] pub fn signal(&mut self, val: Option<&AbortSignal>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("signal"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for RequestInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_RequestMediaKeySystemAccessNotification.rs000064400000000000000000000045350072674642500251110ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RequestMediaKeySystemAccessNotification)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RequestMediaKeySystemAccessNotification` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RequestMediaKeySystemAccessNotification`*"] pub type RequestMediaKeySystemAccessNotification; } impl RequestMediaKeySystemAccessNotification { #[cfg(feature = "MediaKeySystemStatus")] #[doc = "Construct a new `RequestMediaKeySystemAccessNotification`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemStatus`, `RequestMediaKeySystemAccessNotification`*"] pub fn new(key_system: &str, status: MediaKeySystemStatus) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.key_system(key_system); ret.status(status); ret } #[doc = "Change the `keySystem` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RequestMediaKeySystemAccessNotification`*"] pub fn key_system(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("keySystem"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "MediaKeySystemStatus")] #[doc = "Change the `status` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemStatus`, `RequestMediaKeySystemAccessNotification`*"] pub fn status(&mut self, val: MediaKeySystemStatus) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("status"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_RequestMode.rs000064400000000000000000000005760072674642500174100ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `RequestMode` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RequestMode`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum RequestMode { SameOrigin = "same-origin", NoCors = "no-cors", Cors = "cors", Navigate = "navigate", } web-sys-0.3.55/src/features/gen_RequestRedirect.rs000064400000000000000000000005470072674642500202630ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `RequestRedirect` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RequestRedirect`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum RequestRedirect { Follow = "follow", Error = "error", Manual = "manual", } web-sys-0.3.55/src/features/gen_Response.rs000064400000000000000000000402740072674642500167500ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Response , typescript_type = "Response")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Response` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Response`*"] pub type Response; #[cfg(feature = "ResponseType")] # [wasm_bindgen (structural , method , getter , js_class = "Response" , js_name = type)] #[doc = "Getter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Response`, `ResponseType`*"] pub fn type_(this: &Response) -> ResponseType; # [wasm_bindgen (structural , method , getter , js_class = "Response" , js_name = url)] #[doc = "Getter for the `url` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/url)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Response`*"] pub fn url(this: &Response) -> String; # [wasm_bindgen (structural , method , getter , js_class = "Response" , js_name = redirected)] #[doc = "Getter for the `redirected` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/redirected)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Response`*"] pub fn redirected(this: &Response) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "Response" , js_name = status)] #[doc = "Getter for the `status` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/status)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Response`*"] pub fn status(this: &Response) -> u16; # [wasm_bindgen (structural , method , getter , js_class = "Response" , js_name = ok)] #[doc = "Getter for the `ok` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/ok)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Response`*"] pub fn ok(this: &Response) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "Response" , js_name = statusText)] #[doc = "Getter for the `statusText` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/statusText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Response`*"] pub fn status_text(this: &Response) -> String; #[cfg(feature = "Headers")] # [wasm_bindgen (structural , method , getter , js_class = "Response" , js_name = headers)] #[doc = "Getter for the `headers` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/headers)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Headers`, `Response`*"] pub fn headers(this: &Response) -> Headers; # [wasm_bindgen (structural , method , getter , js_class = "Response" , js_name = bodyUsed)] #[doc = "Getter for the `bodyUsed` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/bodyUsed)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Response`*"] pub fn body_used(this: &Response) -> bool; #[cfg(feature = "ReadableStream")] # [wasm_bindgen (structural , method , getter , js_class = "Response" , js_name = body)] #[doc = "Getter for the `body` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/body)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStream`, `Response`*"] pub fn body(this: &Response) -> Option; #[wasm_bindgen(catch, constructor, js_class = "Response")] #[doc = "The `new Response(..)` constructor, creating a new instance of `Response`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/Response)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Response`*"] pub fn new() -> Result; #[cfg(feature = "Blob")] #[wasm_bindgen(catch, constructor, js_class = "Response")] #[doc = "The `new Response(..)` constructor, creating a new instance of `Response`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/Response)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`, `Response`*"] pub fn new_with_opt_blob(body: Option<&Blob>) -> Result; #[wasm_bindgen(catch, constructor, js_class = "Response")] #[doc = "The `new Response(..)` constructor, creating a new instance of `Response`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/Response)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Response`*"] pub fn new_with_opt_buffer_source(body: Option<&::js_sys::Object>) -> Result; #[wasm_bindgen(catch, constructor, js_class = "Response")] #[doc = "The `new Response(..)` constructor, creating a new instance of `Response`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/Response)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Response`*"] pub fn new_with_opt_u8_array(body: Option<&mut [u8]>) -> Result; #[cfg(feature = "FormData")] #[wasm_bindgen(catch, constructor, js_class = "Response")] #[doc = "The `new Response(..)` constructor, creating a new instance of `Response`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/Response)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FormData`, `Response`*"] pub fn new_with_opt_form_data(body: Option<&FormData>) -> Result; #[cfg(feature = "UrlSearchParams")] #[wasm_bindgen(catch, constructor, js_class = "Response")] #[doc = "The `new Response(..)` constructor, creating a new instance of `Response`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/Response)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Response`, `UrlSearchParams`*"] pub fn new_with_opt_url_search_params( body: Option<&UrlSearchParams>, ) -> Result; #[wasm_bindgen(catch, constructor, js_class = "Response")] #[doc = "The `new Response(..)` constructor, creating a new instance of `Response`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/Response)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Response`*"] pub fn new_with_opt_str(body: Option<&str>) -> Result; #[cfg(feature = "ReadableStream")] #[wasm_bindgen(catch, constructor, js_class = "Response")] #[doc = "The `new Response(..)` constructor, creating a new instance of `Response`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/Response)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStream`, `Response`*"] pub fn new_with_opt_readable_stream(body: Option<&ReadableStream>) -> Result; #[cfg(all(feature = "Blob", feature = "ResponseInit",))] #[wasm_bindgen(catch, constructor, js_class = "Response")] #[doc = "The `new Response(..)` constructor, creating a new instance of `Response`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/Response)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`, `Response`, `ResponseInit`*"] pub fn new_with_opt_blob_and_init( body: Option<&Blob>, init: &ResponseInit, ) -> Result; #[cfg(feature = "ResponseInit")] #[wasm_bindgen(catch, constructor, js_class = "Response")] #[doc = "The `new Response(..)` constructor, creating a new instance of `Response`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/Response)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Response`, `ResponseInit`*"] pub fn new_with_opt_buffer_source_and_init( body: Option<&::js_sys::Object>, init: &ResponseInit, ) -> Result; #[cfg(feature = "ResponseInit")] #[wasm_bindgen(catch, constructor, js_class = "Response")] #[doc = "The `new Response(..)` constructor, creating a new instance of `Response`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/Response)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Response`, `ResponseInit`*"] pub fn new_with_opt_u8_array_and_init( body: Option<&mut [u8]>, init: &ResponseInit, ) -> Result; #[cfg(all(feature = "FormData", feature = "ResponseInit",))] #[wasm_bindgen(catch, constructor, js_class = "Response")] #[doc = "The `new Response(..)` constructor, creating a new instance of `Response`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/Response)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FormData`, `Response`, `ResponseInit`*"] pub fn new_with_opt_form_data_and_init( body: Option<&FormData>, init: &ResponseInit, ) -> Result; #[cfg(all(feature = "ResponseInit", feature = "UrlSearchParams",))] #[wasm_bindgen(catch, constructor, js_class = "Response")] #[doc = "The `new Response(..)` constructor, creating a new instance of `Response`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/Response)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Response`, `ResponseInit`, `UrlSearchParams`*"] pub fn new_with_opt_url_search_params_and_init( body: Option<&UrlSearchParams>, init: &ResponseInit, ) -> Result; #[cfg(feature = "ResponseInit")] #[wasm_bindgen(catch, constructor, js_class = "Response")] #[doc = "The `new Response(..)` constructor, creating a new instance of `Response`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/Response)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Response`, `ResponseInit`*"] pub fn new_with_opt_str_and_init( body: Option<&str>, init: &ResponseInit, ) -> Result; #[cfg(all(feature = "ReadableStream", feature = "ResponseInit",))] #[wasm_bindgen(catch, constructor, js_class = "Response")] #[doc = "The `new Response(..)` constructor, creating a new instance of `Response`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/Response)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStream`, `Response`, `ResponseInit`*"] pub fn new_with_opt_readable_stream_and_init( body: Option<&ReadableStream>, init: &ResponseInit, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Response" , js_name = clone)] #[doc = "The `clone()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/clone)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Response`*"] pub fn clone(this: &Response) -> Result; # [wasm_bindgen (static_method_of = Response , js_class = "Response" , js_name = error)] #[doc = "The `error()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/error)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Response`*"] pub fn error() -> Response; # [wasm_bindgen (catch , static_method_of = Response , js_class = "Response" , js_name = redirect)] #[doc = "The `redirect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/redirect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Response`*"] pub fn redirect(url: &str) -> Result; # [wasm_bindgen (catch , static_method_of = Response , js_class = "Response" , js_name = redirect)] #[doc = "The `redirect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/redirect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Response`*"] pub fn redirect_with_status(url: &str, status: u16) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Response" , js_name = arrayBuffer)] #[doc = "The `arrayBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/arrayBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Response`*"] pub fn array_buffer(this: &Response) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Response" , js_name = blob)] #[doc = "The `blob()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/blob)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Response`*"] pub fn blob(this: &Response) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Response" , js_name = formData)] #[doc = "The `formData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/formData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Response`*"] pub fn form_data(this: &Response) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Response" , js_name = json)] #[doc = "The `json()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/json)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Response`*"] pub fn json(this: &Response) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Response" , js_name = text)] #[doc = "The `text()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/text)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Response`*"] pub fn text(this: &Response) -> Result<::js_sys::Promise, JsValue>; } web-sys-0.3.55/src/features/gen_ResponseInit.rs000064400000000000000000000050260072674642500175700ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ResponseInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ResponseInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ResponseInit`*"] pub type ResponseInit; } impl ResponseInit { #[doc = "Construct a new `ResponseInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ResponseInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `headers` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ResponseInit`*"] pub fn headers(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("headers"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `status` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ResponseInit`*"] pub fn status(&mut self, val: u16) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("status"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `statusText` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ResponseInit`*"] pub fn status_text(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("statusText"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for ResponseInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_ResponseType.rs000064400000000000000000000006570072674642500176130ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `ResponseType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ResponseType`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum ResponseType { Basic = "basic", Cors = "cors", Default = "default", Error = "error", Opaque = "opaque", Opaqueredirect = "opaqueredirect", } web-sys-0.3.55/src/features/gen_RsaHashedImportParams.rs000064400000000000000000000026240072674642500213500ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RsaHashedImportParams)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RsaHashedImportParams` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RsaHashedImportParams`*"] pub type RsaHashedImportParams; } impl RsaHashedImportParams { #[doc = "Construct a new `RsaHashedImportParams`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RsaHashedImportParams`*"] pub fn new(hash: &::wasm_bindgen::JsValue) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.hash(hash); ret } #[doc = "Change the `hash` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RsaHashedImportParams`*"] pub fn hash(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("hash"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_RsaOaepParams.rs000064400000000000000000000035140072674642500176440ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RsaOaepParams)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RsaOaepParams` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RsaOaepParams`*"] pub type RsaOaepParams; } impl RsaOaepParams { #[doc = "Construct a new `RsaOaepParams`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RsaOaepParams`*"] pub fn new(name: &str) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.name(name); ret } #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RsaOaepParams`*"] pub fn name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `label` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RsaOaepParams`*"] pub fn label(&mut self, val: &::js_sys::Object) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_RsaOtherPrimesInfo.rs000064400000000000000000000046200072674642500206700ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RsaOtherPrimesInfo)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RsaOtherPrimesInfo` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RsaOtherPrimesInfo`*"] pub type RsaOtherPrimesInfo; } impl RsaOtherPrimesInfo { #[doc = "Construct a new `RsaOtherPrimesInfo`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RsaOtherPrimesInfo`*"] pub fn new(d: &str, r: &str, t: &str) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.d(d); ret.r(r); ret.t(t); ret } #[doc = "Change the `d` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RsaOtherPrimesInfo`*"] pub fn d(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("d"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `r` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RsaOtherPrimesInfo`*"] pub fn r(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("r"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `t` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RsaOtherPrimesInfo`*"] pub fn t(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("t"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_RsaPssParams.rs000064400000000000000000000036540072674642500175320ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RsaPssParams)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RsaPssParams` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RsaPssParams`*"] pub type RsaPssParams; } impl RsaPssParams { #[doc = "Construct a new `RsaPssParams`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RsaPssParams`*"] pub fn new(name: &str, salt_length: u32) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.name(name); ret.salt_length(salt_length); ret } #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RsaPssParams`*"] pub fn name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `saltLength` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RsaPssParams`*"] pub fn salt_length(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("saltLength"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_RtcAnswerOptions.rs000064400000000000000000000015520072674642500204320ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCAnswerOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcAnswerOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcAnswerOptions`*"] pub type RtcAnswerOptions; } impl RtcAnswerOptions { #[doc = "Construct a new `RtcAnswerOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcAnswerOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } } impl Default for RtcAnswerOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_RtcBundlePolicy.rs000064400000000000000000000005730072674642500202120ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `RtcBundlePolicy` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcBundlePolicy`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum RtcBundlePolicy { Balanced = "balanced", MaxCompat = "max-compat", MaxBundle = "max-bundle", } web-sys-0.3.55/src/features/gen_RtcCertificate.rs000064400000000000000000000017670072674642500200510ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCCertificate , typescript_type = "RTCCertificate")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcCertificate` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCCertificate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcCertificate`*"] pub type RtcCertificate; # [wasm_bindgen (structural , method , getter , js_class = "RTCCertificate" , js_name = expires)] #[doc = "Getter for the `expires` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCCertificate/expires)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcCertificate`*"] pub fn expires(this: &RtcCertificate) -> f64; } web-sys-0.3.55/src/features/gen_RtcCertificateExpiration.rs000064400000000000000000000027740072674642500221130ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCCertificateExpiration)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcCertificateExpiration` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcCertificateExpiration`*"] pub type RtcCertificateExpiration; } impl RtcCertificateExpiration { #[doc = "Construct a new `RtcCertificateExpiration`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcCertificateExpiration`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `expires` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcCertificateExpiration`*"] pub fn expires(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("expires"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for RtcCertificateExpiration { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_RtcCodecStats.rs000064400000000000000000000125070072674642500176550ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCCodecStats)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcCodecStats` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcCodecStats`*"] pub type RtcCodecStats; } impl RtcCodecStats { #[doc = "Construct a new `RtcCodecStats`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcCodecStats`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcCodecStats`*"] pub fn id(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("id"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcCodecStats`*"] pub fn timestamp(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("timestamp"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "RtcStatsType")] #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcCodecStats`, `RtcStatsType`*"] pub fn type_(&mut self, val: RtcStatsType) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `channels` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcCodecStats`*"] pub fn channels(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("channels"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `clockRate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcCodecStats`*"] pub fn clock_rate(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("clockRate"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `codec` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcCodecStats`*"] pub fn codec(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("codec"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `parameters` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcCodecStats`*"] pub fn parameters(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("parameters"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `payloadType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcCodecStats`*"] pub fn payload_type(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("payloadType"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for RtcCodecStats { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_RtcConfiguration.rs000064400000000000000000000100130072674642500204160ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCConfiguration)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcConfiguration` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcConfiguration`*"] pub type RtcConfiguration; } impl RtcConfiguration { #[doc = "Construct a new `RtcConfiguration`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcConfiguration`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(feature = "RtcBundlePolicy")] #[doc = "Change the `bundlePolicy` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcBundlePolicy`, `RtcConfiguration`*"] pub fn bundle_policy(&mut self, val: RtcBundlePolicy) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bundlePolicy"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `certificates` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcConfiguration`*"] pub fn certificates(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("certificates"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `iceServers` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcConfiguration`*"] pub fn ice_servers(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("iceServers"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "RtcIceTransportPolicy")] #[doc = "Change the `iceTransportPolicy` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcConfiguration`, `RtcIceTransportPolicy`*"] pub fn ice_transport_policy(&mut self, val: RtcIceTransportPolicy) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("iceTransportPolicy"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `peerIdentity` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcConfiguration`*"] pub fn peer_identity(&mut self, val: Option<&str>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("peerIdentity"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for RtcConfiguration { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_RtcDataChannel.rs000064400000000000000000000321310072674642500177560ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = RTCDataChannel , typescript_type = "RTCDataChannel")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcDataChannel` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] pub type RtcDataChannel; # [wasm_bindgen (structural , method , getter , js_class = "RTCDataChannel" , js_name = label)] #[doc = "Getter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] pub fn label(this: &RtcDataChannel) -> String; # [wasm_bindgen (structural , method , getter , js_class = "RTCDataChannel" , js_name = reliable)] #[doc = "Getter for the `reliable` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/reliable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] pub fn reliable(this: &RtcDataChannel) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "RTCDataChannel" , js_name = maxPacketLifeTime)] #[doc = "Getter for the `maxPacketLifeTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/maxPacketLifeTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] pub fn max_packet_life_time(this: &RtcDataChannel) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "RTCDataChannel" , js_name = maxRetransmits)] #[doc = "Getter for the `maxRetransmits` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/maxRetransmits)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] pub fn max_retransmits(this: &RtcDataChannel) -> Option; #[cfg(feature = "RtcDataChannelState")] # [wasm_bindgen (structural , method , getter , js_class = "RTCDataChannel" , js_name = readyState)] #[doc = "Getter for the `readyState` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/readyState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`, `RtcDataChannelState`*"] pub fn ready_state(this: &RtcDataChannel) -> RtcDataChannelState; # [wasm_bindgen (structural , method , getter , js_class = "RTCDataChannel" , js_name = bufferedAmount)] #[doc = "Getter for the `bufferedAmount` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/bufferedAmount)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] pub fn buffered_amount(this: &RtcDataChannel) -> u32; # [wasm_bindgen (structural , method , getter , js_class = "RTCDataChannel" , js_name = bufferedAmountLowThreshold)] #[doc = "Getter for the `bufferedAmountLowThreshold` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/bufferedAmountLowThreshold)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] pub fn buffered_amount_low_threshold(this: &RtcDataChannel) -> u32; # [wasm_bindgen (structural , method , setter , js_class = "RTCDataChannel" , js_name = bufferedAmountLowThreshold)] #[doc = "Setter for the `bufferedAmountLowThreshold` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/bufferedAmountLowThreshold)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] pub fn set_buffered_amount_low_threshold(this: &RtcDataChannel, value: u32); # [wasm_bindgen (structural , method , getter , js_class = "RTCDataChannel" , js_name = onopen)] #[doc = "Getter for the `onopen` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/onopen)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] pub fn onopen(this: &RtcDataChannel) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "RTCDataChannel" , js_name = onopen)] #[doc = "Setter for the `onopen` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/onopen)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] pub fn set_onopen(this: &RtcDataChannel, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "RTCDataChannel" , js_name = onerror)] #[doc = "Getter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] pub fn onerror(this: &RtcDataChannel) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "RTCDataChannel" , js_name = onerror)] #[doc = "Setter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] pub fn set_onerror(this: &RtcDataChannel, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "RTCDataChannel" , js_name = onclose)] #[doc = "Getter for the `onclose` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/onclose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] pub fn onclose(this: &RtcDataChannel) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "RTCDataChannel" , js_name = onclose)] #[doc = "Setter for the `onclose` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/onclose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] pub fn set_onclose(this: &RtcDataChannel, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "RTCDataChannel" , js_name = onmessage)] #[doc = "Getter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] pub fn onmessage(this: &RtcDataChannel) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "RTCDataChannel" , js_name = onmessage)] #[doc = "Setter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] pub fn set_onmessage(this: &RtcDataChannel, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "RTCDataChannel" , js_name = onbufferedamountlow)] #[doc = "Getter for the `onbufferedamountlow` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/onbufferedamountlow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] pub fn onbufferedamountlow(this: &RtcDataChannel) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "RTCDataChannel" , js_name = onbufferedamountlow)] #[doc = "Setter for the `onbufferedamountlow` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/onbufferedamountlow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] pub fn set_onbufferedamountlow(this: &RtcDataChannel, value: Option<&::js_sys::Function>); #[cfg(feature = "RtcDataChannelType")] # [wasm_bindgen (structural , method , getter , js_class = "RTCDataChannel" , js_name = binaryType)] #[doc = "Getter for the `binaryType` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/binaryType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`, `RtcDataChannelType`*"] pub fn binary_type(this: &RtcDataChannel) -> RtcDataChannelType; #[cfg(feature = "RtcDataChannelType")] # [wasm_bindgen (structural , method , setter , js_class = "RTCDataChannel" , js_name = binaryType)] #[doc = "Setter for the `binaryType` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/binaryType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`, `RtcDataChannelType`*"] pub fn set_binary_type(this: &RtcDataChannel, value: RtcDataChannelType); # [wasm_bindgen (method , structural , js_class = "RTCDataChannel" , js_name = close)] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] pub fn close(this: &RtcDataChannel); # [wasm_bindgen (catch , method , structural , js_class = "RTCDataChannel" , js_name = send)] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/send)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] pub fn send_with_str(this: &RtcDataChannel, data: &str) -> Result<(), JsValue>; #[cfg(feature = "Blob")] # [wasm_bindgen (catch , method , structural , js_class = "RTCDataChannel" , js_name = send)] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/send)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`, `RtcDataChannel`*"] pub fn send_with_blob(this: &RtcDataChannel, data: &Blob) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "RTCDataChannel" , js_name = send)] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/send)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] pub fn send_with_array_buffer( this: &RtcDataChannel, data: &::js_sys::ArrayBuffer, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "RTCDataChannel" , js_name = send)] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/send)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] pub fn send_with_array_buffer_view( this: &RtcDataChannel, data: &::js_sys::Object, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "RTCDataChannel" , js_name = send)] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/send)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] pub fn send_with_u8_array(this: &RtcDataChannel, data: &[u8]) -> Result<(), JsValue>; } web-sys-0.3.55/src/features/gen_RtcDataChannelEvent.rs000064400000000000000000000034170072674642500207650ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = RTCDataChannelEvent , typescript_type = "RTCDataChannelEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcDataChannelEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannelEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannelEvent`*"] pub type RtcDataChannelEvent; #[cfg(feature = "RtcDataChannel")] # [wasm_bindgen (structural , method , getter , js_class = "RTCDataChannelEvent" , js_name = channel)] #[doc = "Getter for the `channel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannelEvent/channel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`, `RtcDataChannelEvent`*"] pub fn channel(this: &RtcDataChannelEvent) -> RtcDataChannel; #[cfg(feature = "RtcDataChannelEventInit")] #[wasm_bindgen(catch, constructor, js_class = "RTCDataChannelEvent")] #[doc = "The `new RtcDataChannelEvent(..)` constructor, creating a new instance of `RtcDataChannelEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannelEvent/RTCDataChannelEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannelEvent`, `RtcDataChannelEventInit`*"] pub fn new( type_: &str, event_init_dict: &RtcDataChannelEventInit, ) -> Result; } web-sys-0.3.55/src/features/gen_RtcDataChannelEventInit.rs000064400000000000000000000065070072674642500216140ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCDataChannelEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcDataChannelEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannelEventInit`*"] pub type RtcDataChannelEventInit; } impl RtcDataChannelEventInit { #[cfg(feature = "RtcDataChannel")] #[doc = "Construct a new `RtcDataChannelEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`, `RtcDataChannelEventInit`*"] pub fn new(channel: &RtcDataChannel) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.channel(channel); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannelEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannelEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannelEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "RtcDataChannel")] #[doc = "Change the `channel` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`, `RtcDataChannelEventInit`*"] pub fn channel(&mut self, val: &RtcDataChannel) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("channel"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_RtcDataChannelInit.rs000064400000000000000000000116660072674642500206140ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCDataChannelInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcDataChannelInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannelInit`*"] pub type RtcDataChannelInit; } impl RtcDataChannelInit { #[doc = "Construct a new `RtcDataChannelInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannelInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannelInit`*"] pub fn id(&mut self, val: u16) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("id"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `maxPacketLifeTime` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannelInit`*"] pub fn max_packet_life_time(&mut self, val: u16) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("maxPacketLifeTime"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `maxRetransmitTime` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannelInit`*"] pub fn max_retransmit_time(&mut self, val: u16) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("maxRetransmitTime"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `maxRetransmits` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannelInit`*"] pub fn max_retransmits(&mut self, val: u16) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("maxRetransmits"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `negotiated` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannelInit`*"] pub fn negotiated(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("negotiated"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `ordered` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannelInit`*"] pub fn ordered(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("ordered"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `protocol` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannelInit`*"] pub fn protocol(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("protocol"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for RtcDataChannelInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_RtcDataChannelState.rs000064400000000000000000000006220072674642500207570ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `RtcDataChannelState` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannelState`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum RtcDataChannelState { Connecting = "connecting", Open = "open", Closing = "closing", Closed = "closed", } web-sys-0.3.55/src/features/gen_RtcDataChannelType.rs000064400000000000000000000005410072674642500206200ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `RtcDataChannelType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannelType`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum RtcDataChannelType { Arraybuffer = "arraybuffer", Blob = "blob", } web-sys-0.3.55/src/features/gen_RtcDegradationPreference.rs000064400000000000000000000006700072674642500220370ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `RtcDegradationPreference` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDegradationPreference`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum RtcDegradationPreference { MaintainFramerate = "maintain-framerate", MaintainResolution = "maintain-resolution", Balanced = "balanced", } web-sys-0.3.55/src/features/gen_RtcFecParameters.rs000064400000000000000000000025740072674642500203450ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCFecParameters)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcFecParameters` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcFecParameters`*"] pub type RtcFecParameters; } impl RtcFecParameters { #[doc = "Construct a new `RtcFecParameters`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcFecParameters`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `ssrc` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcFecParameters`*"] pub fn ssrc(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("ssrc"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for RtcFecParameters { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_RtcIceCandidate.rs000064400000000000000000000105460072674642500201170ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCIceCandidate , typescript_type = "RTCIceCandidate")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcIceCandidate` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidate`*"] pub type RtcIceCandidate; # [wasm_bindgen (structural , method , getter , js_class = "RTCIceCandidate" , js_name = candidate)] #[doc = "Getter for the `candidate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/candidate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidate`*"] pub fn candidate(this: &RtcIceCandidate) -> String; # [wasm_bindgen (structural , method , setter , js_class = "RTCIceCandidate" , js_name = candidate)] #[doc = "Setter for the `candidate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/candidate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidate`*"] pub fn set_candidate(this: &RtcIceCandidate, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "RTCIceCandidate" , js_name = sdpMid)] #[doc = "Getter for the `sdpMid` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/sdpMid)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidate`*"] pub fn sdp_mid(this: &RtcIceCandidate) -> Option; # [wasm_bindgen (structural , method , setter , js_class = "RTCIceCandidate" , js_name = sdpMid)] #[doc = "Setter for the `sdpMid` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/sdpMid)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidate`*"] pub fn set_sdp_mid(this: &RtcIceCandidate, value: Option<&str>); # [wasm_bindgen (structural , method , getter , js_class = "RTCIceCandidate" , js_name = sdpMLineIndex)] #[doc = "Getter for the `sdpMLineIndex` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/sdpMLineIndex)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidate`*"] pub fn sdp_m_line_index(this: &RtcIceCandidate) -> Option; # [wasm_bindgen (structural , method , setter , js_class = "RTCIceCandidate" , js_name = sdpMLineIndex)] #[doc = "Setter for the `sdpMLineIndex` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/sdpMLineIndex)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidate`*"] pub fn set_sdp_m_line_index(this: &RtcIceCandidate, value: Option); #[cfg(feature = "RtcIceCandidateInit")] #[wasm_bindgen(catch, constructor, js_class = "RTCIceCandidate")] #[doc = "The `new RtcIceCandidate(..)` constructor, creating a new instance of `RtcIceCandidate`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/RTCIceCandidate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidate`, `RtcIceCandidateInit`*"] pub fn new(candidate_init_dict: &RtcIceCandidateInit) -> Result; # [wasm_bindgen (method , structural , js_class = "RTCIceCandidate" , js_name = toJSON)] #[doc = "The `toJSON()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/toJSON)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidate`*"] pub fn to_json(this: &RtcIceCandidate) -> ::js_sys::Object; } web-sys-0.3.55/src/features/gen_RtcIceCandidateInit.rs000064400000000000000000000051040072674642500207350ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCIceCandidateInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcIceCandidateInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateInit`*"] pub type RtcIceCandidateInit; } impl RtcIceCandidateInit { #[doc = "Construct a new `RtcIceCandidateInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateInit`*"] pub fn new(candidate: &str) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.candidate(candidate); ret } #[doc = "Change the `candidate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateInit`*"] pub fn candidate(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("candidate"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `sdpMLineIndex` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateInit`*"] pub fn sdp_m_line_index(&mut self, val: Option) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("sdpMLineIndex"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `sdpMid` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateInit`*"] pub fn sdp_mid(&mut self, val: Option<&str>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("sdpMid"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_RtcIceCandidatePairStats.rs000064400000000000000000000260440072674642500217520ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCIceCandidatePairStats)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcIceCandidatePairStats` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] pub type RtcIceCandidatePairStats; } impl RtcIceCandidatePairStats { #[doc = "Construct a new `RtcIceCandidatePairStats`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] pub fn id(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("id"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] pub fn timestamp(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("timestamp"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "RtcStatsType")] #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`, `RtcStatsType`*"] pub fn type_(&mut self, val: RtcStatsType) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `bytesReceived` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] pub fn bytes_received(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bytesReceived"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `bytesSent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] pub fn bytes_sent(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bytesSent"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `componentId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] pub fn component_id(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("componentId"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `lastPacketReceivedTimestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] pub fn last_packet_received_timestamp(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("lastPacketReceivedTimestamp"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `lastPacketSentTimestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] pub fn last_packet_sent_timestamp(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("lastPacketSentTimestamp"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `localCandidateId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] pub fn local_candidate_id(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("localCandidateId"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `nominated` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] pub fn nominated(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("nominated"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `priority` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] pub fn priority(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("priority"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `readable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] pub fn readable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("readable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `remoteCandidateId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] pub fn remote_candidate_id(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("remoteCandidateId"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `selected` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] pub fn selected(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("selected"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "RtcStatsIceCandidatePairState")] #[doc = "Change the `state` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`, `RtcStatsIceCandidatePairState`*"] pub fn state(&mut self, val: RtcStatsIceCandidatePairState) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("state"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `transportId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] pub fn transport_id(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("transportId"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `writable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] pub fn writable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("writable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for RtcIceCandidatePairStats { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_RtcIceCandidateStats.rs000064400000000000000000000143020072674642500211300ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCIceCandidateStats)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcIceCandidateStats` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateStats`*"] pub type RtcIceCandidateStats; } impl RtcIceCandidateStats { #[doc = "Construct a new `RtcIceCandidateStats`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateStats`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateStats`*"] pub fn id(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("id"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateStats`*"] pub fn timestamp(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("timestamp"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "RtcStatsType")] #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateStats`, `RtcStatsType`*"] pub fn type_(&mut self, val: RtcStatsType) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `candidateId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateStats`*"] pub fn candidate_id(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("candidateId"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "RtcStatsIceCandidateType")] #[doc = "Change the `candidateType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateStats`, `RtcStatsIceCandidateType`*"] pub fn candidate_type(&mut self, val: RtcStatsIceCandidateType) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("candidateType"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `componentId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateStats`*"] pub fn component_id(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("componentId"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `ipAddress` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateStats`*"] pub fn ip_address(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("ipAddress"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `portNumber` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateStats`*"] pub fn port_number(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("portNumber"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `transport` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateStats`*"] pub fn transport(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("transport"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for RtcIceCandidateStats { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_RtcIceComponentStats.rs000064400000000000000000000130250072674642500212170ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCIceComponentStats)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcIceComponentStats` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceComponentStats`*"] pub type RtcIceComponentStats; } impl RtcIceComponentStats { #[doc = "Construct a new `RtcIceComponentStats`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceComponentStats`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceComponentStats`*"] pub fn id(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("id"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceComponentStats`*"] pub fn timestamp(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("timestamp"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "RtcStatsType")] #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceComponentStats`, `RtcStatsType`*"] pub fn type_(&mut self, val: RtcStatsType) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `activeConnection` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceComponentStats`*"] pub fn active_connection(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("activeConnection"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `bytesReceived` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceComponentStats`*"] pub fn bytes_received(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bytesReceived"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `bytesSent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceComponentStats`*"] pub fn bytes_sent(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bytesSent"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `component` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceComponentStats`*"] pub fn component(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("component"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `transportId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceComponentStats`*"] pub fn transport_id(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("transportId"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for RtcIceComponentStats { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_RtcIceConnectionState.rs000064400000000000000000000007550072674642500213440ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `RtcIceConnectionState` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceConnectionState`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum RtcIceConnectionState { New = "new", Checking = "checking", Connected = "connected", Completed = "completed", Failed = "failed", Disconnected = "disconnected", Closed = "closed", } web-sys-0.3.55/src/features/gen_RtcIceCredentialType.rs000064400000000000000000000005430072674642500211530ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `RtcIceCredentialType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCredentialType`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum RtcIceCredentialType { Password = "password", Token = "token", } web-sys-0.3.55/src/features/gen_RtcIceGatheringState.rs000064400000000000000000000005740072674642500211540ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `RtcIceGatheringState` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceGatheringState`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum RtcIceGatheringState { New = "new", Gathering = "gathering", Complete = "complete", } web-sys-0.3.55/src/features/gen_RtcIceServer.rs000064400000000000000000000073050072674642500175100ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCIceServer)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcIceServer` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceServer`*"] pub type RtcIceServer; } impl RtcIceServer { #[doc = "Construct a new `RtcIceServer`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceServer`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `credential` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceServer`*"] pub fn credential(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("credential"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "RtcIceCredentialType")] #[doc = "Change the `credentialType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCredentialType`, `RtcIceServer`*"] pub fn credential_type(&mut self, val: RtcIceCredentialType) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("credentialType"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `url` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceServer`*"] pub fn url(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("url"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `urls` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceServer`*"] pub fn urls(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("urls"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `username` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceServer`*"] pub fn username(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("username"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for RtcIceServer { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_RtcIceTransportPolicy.rs000064400000000000000000000005340072674642500214130ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `RtcIceTransportPolicy` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceTransportPolicy`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum RtcIceTransportPolicy { Relay = "relay", All = "all", } web-sys-0.3.55/src/features/gen_RtcIdentityAssertion.rs000064400000000000000000000036650072674642500213070ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCIdentityAssertion)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcIdentityAssertion` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityAssertion`*"] pub type RtcIdentityAssertion; } impl RtcIdentityAssertion { #[doc = "Construct a new `RtcIdentityAssertion`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityAssertion`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `idp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityAssertion`*"] pub fn idp(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("idp"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityAssertion`*"] pub fn name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for RtcIdentityAssertion { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_RtcIdentityAssertionResult.rs000064400000000000000000000043540072674642500225020ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCIdentityAssertionResult)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcIdentityAssertionResult` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityAssertionResult`*"] pub type RtcIdentityAssertionResult; } impl RtcIdentityAssertionResult { #[cfg(feature = "RtcIdentityProviderDetails")] #[doc = "Construct a new `RtcIdentityAssertionResult`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityAssertionResult`, `RtcIdentityProviderDetails`*"] pub fn new(assertion: &str, idp: &RtcIdentityProviderDetails) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.assertion(assertion); ret.idp(idp); ret } #[doc = "Change the `assertion` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityAssertionResult`*"] pub fn assertion(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("assertion"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "RtcIdentityProviderDetails")] #[doc = "Change the `idp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityAssertionResult`, `RtcIdentityProviderDetails`*"] pub fn idp(&mut self, val: &RtcIdentityProviderDetails) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("idp"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_RtcIdentityProvider.rs000064400000000000000000000043530072674642500211250ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCIdentityProvider)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcIdentityProvider` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProvider`*"] pub type RtcIdentityProvider; } impl RtcIdentityProvider { #[doc = "Construct a new `RtcIdentityProvider`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProvider`*"] pub fn new( generate_assertion: &::js_sys::Function, validate_assertion: &::js_sys::Function, ) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.generate_assertion(generate_assertion); ret.validate_assertion(validate_assertion); ret } #[doc = "Change the `generateAssertion` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProvider`*"] pub fn generate_assertion(&mut self, val: &::js_sys::Function) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("generateAssertion"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `validateAssertion` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProvider`*"] pub fn validate_assertion(&mut self, val: &::js_sys::Function) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("validateAssertion"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_RtcIdentityProviderDetails.rs000064400000000000000000000040040072674642500224240ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCIdentityProviderDetails)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcIdentityProviderDetails` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProviderDetails`*"] pub type RtcIdentityProviderDetails; } impl RtcIdentityProviderDetails { #[doc = "Construct a new `RtcIdentityProviderDetails`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProviderDetails`*"] pub fn new(domain: &str) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.domain(domain); ret } #[doc = "Change the `domain` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProviderDetails`*"] pub fn domain(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("domain"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `protocol` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProviderDetails`*"] pub fn protocol(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("protocol"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_RtcIdentityProviderOptions.rs000064400000000000000000000053340072674642500225010ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCIdentityProviderOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcIdentityProviderOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProviderOptions`*"] pub type RtcIdentityProviderOptions; } impl RtcIdentityProviderOptions { #[doc = "Construct a new `RtcIdentityProviderOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProviderOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `peerIdentity` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProviderOptions`*"] pub fn peer_identity(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("peerIdentity"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `protocol` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProviderOptions`*"] pub fn protocol(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("protocol"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `usernameHint` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProviderOptions`*"] pub fn username_hint(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("usernameHint"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for RtcIdentityProviderOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_RtcIdentityProviderRegistrar.rs000064400000000000000000000023310072674642500230020ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = RTCIdentityProviderRegistrar , typescript_type = "RTCIdentityProviderRegistrar")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcIdentityProviderRegistrar` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCIdentityProviderRegistrar)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProviderRegistrar`*"] pub type RtcIdentityProviderRegistrar; #[cfg(feature = "RtcIdentityProvider")] # [wasm_bindgen (method , structural , js_class = "RTCIdentityProviderRegistrar" , js_name = register)] #[doc = "The `register()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCIdentityProviderRegistrar/register)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProvider`, `RtcIdentityProviderRegistrar`*"] pub fn register(this: &RtcIdentityProviderRegistrar, idp: &RtcIdentityProvider); } web-sys-0.3.55/src/features/gen_RtcIdentityValidationResult.rs000064400000000000000000000041540072674642500226230ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCIdentityValidationResult)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcIdentityValidationResult` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityValidationResult`*"] pub type RtcIdentityValidationResult; } impl RtcIdentityValidationResult { #[doc = "Construct a new `RtcIdentityValidationResult`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityValidationResult`*"] pub fn new(contents: &str, identity: &str) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.contents(contents); ret.identity(identity); ret } #[doc = "Change the `contents` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityValidationResult`*"] pub fn contents(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("contents"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `identity` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityValidationResult`*"] pub fn identity(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("identity"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_RtcInboundRtpStreamStats.rs000064400000000000000000000357320072674642500221050ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCInboundRTPStreamStats)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcInboundRtpStreamStats` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] pub type RtcInboundRtpStreamStats; } impl RtcInboundRtpStreamStats { #[doc = "Construct a new `RtcInboundRtpStreamStats`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] pub fn id(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("id"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] pub fn timestamp(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("timestamp"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "RtcStatsType")] #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`, `RtcStatsType`*"] pub fn type_(&mut self, val: RtcStatsType) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `bitrateMean` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] pub fn bitrate_mean(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bitrateMean"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `bitrateStdDev` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] pub fn bitrate_std_dev(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bitrateStdDev"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `codecId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] pub fn codec_id(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("codecId"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `firCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] pub fn fir_count(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("firCount"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `framerateMean` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] pub fn framerate_mean(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("framerateMean"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `framerateStdDev` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] pub fn framerate_std_dev(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("framerateStdDev"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `isRemote` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] pub fn is_remote(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("isRemote"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `mediaTrackId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] pub fn media_track_id(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("mediaTrackId"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `mediaType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] pub fn media_type(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("mediaType"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `nackCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] pub fn nack_count(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("nackCount"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `pliCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] pub fn pli_count(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("pliCount"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `remoteId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] pub fn remote_id(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("remoteId"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `ssrc` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] pub fn ssrc(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("ssrc"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `transportId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] pub fn transport_id(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("transportId"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `bytesReceived` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] pub fn bytes_received(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bytesReceived"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `discardedPackets` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] pub fn discarded_packets(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("discardedPackets"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `framesDecoded` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] pub fn frames_decoded(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("framesDecoded"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `jitter` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] pub fn jitter(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("jitter"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `packetsLost` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] pub fn packets_lost(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("packetsLost"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `packetsReceived` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] pub fn packets_received(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("packetsReceived"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `roundTripTime` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] pub fn round_trip_time(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("roundTripTime"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for RtcInboundRtpStreamStats { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_RtcLifecycleEvent.rs000064400000000000000000000006770072674642500205270ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `RtcLifecycleEvent` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcLifecycleEvent`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum RtcLifecycleEvent { Initialized = "initialized", Icegatheringstatechange = "icegatheringstatechange", Iceconnectionstatechange = "iceconnectionstatechange", } web-sys-0.3.55/src/features/gen_RtcMediaStreamStats.rs000064400000000000000000000074110072674642500210310ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCMediaStreamStats)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcMediaStreamStats` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamStats`*"] pub type RtcMediaStreamStats; } impl RtcMediaStreamStats { #[doc = "Construct a new `RtcMediaStreamStats`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamStats`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamStats`*"] pub fn id(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("id"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamStats`*"] pub fn timestamp(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("timestamp"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "RtcStatsType")] #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamStats`, `RtcStatsType`*"] pub fn type_(&mut self, val: RtcStatsType) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `streamIdentifier` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamStats`*"] pub fn stream_identifier(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("streamIdentifier"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `trackIds` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamStats`*"] pub fn track_ids(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("trackIds"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for RtcMediaStreamStats { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_RtcMediaStreamTrackStats.rs000064400000000000000000000260270072674642500220220ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCMediaStreamTrackStats)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcMediaStreamTrackStats` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] pub type RtcMediaStreamTrackStats; } impl RtcMediaStreamTrackStats { #[doc = "Construct a new `RtcMediaStreamTrackStats`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] pub fn id(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("id"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] pub fn timestamp(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("timestamp"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "RtcStatsType")] #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`, `RtcStatsType`*"] pub fn type_(&mut self, val: RtcStatsType) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `audioLevel` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] pub fn audio_level(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("audioLevel"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `echoReturnLoss` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] pub fn echo_return_loss(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("echoReturnLoss"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `echoReturnLossEnhancement` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] pub fn echo_return_loss_enhancement(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("echoReturnLossEnhancement"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `frameHeight` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] pub fn frame_height(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("frameHeight"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `frameWidth` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] pub fn frame_width(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("frameWidth"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `framesCorrupted` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] pub fn frames_corrupted(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("framesCorrupted"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `framesDecoded` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] pub fn frames_decoded(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("framesDecoded"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `framesDropped` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] pub fn frames_dropped(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("framesDropped"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `framesPerSecond` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] pub fn frames_per_second(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("framesPerSecond"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `framesReceived` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] pub fn frames_received(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("framesReceived"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `framesSent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] pub fn frames_sent(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("framesSent"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `remoteSource` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] pub fn remote_source(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("remoteSource"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `ssrcIds` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] pub fn ssrc_ids(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("ssrcIds"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `trackIdentifier` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] pub fn track_identifier(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("trackIdentifier"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for RtcMediaStreamTrackStats { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_RtcOfferAnswerOptions.rs000064400000000000000000000016220072674642500214120ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCOfferAnswerOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcOfferAnswerOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOfferAnswerOptions`*"] pub type RtcOfferAnswerOptions; } impl RtcOfferAnswerOptions { #[doc = "Construct a new `RtcOfferAnswerOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOfferAnswerOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } } impl Default for RtcOfferAnswerOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_RtcOfferOptions.rs000064400000000000000000000052300072674642500202310ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCOfferOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcOfferOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOfferOptions`*"] pub type RtcOfferOptions; } impl RtcOfferOptions { #[doc = "Construct a new `RtcOfferOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOfferOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `iceRestart` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOfferOptions`*"] pub fn ice_restart(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("iceRestart"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `offerToReceiveAudio` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOfferOptions`*"] pub fn offer_to_receive_audio(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("offerToReceiveAudio"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `offerToReceiveVideo` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOfferOptions`*"] pub fn offer_to_receive_video(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("offerToReceiveVideo"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for RtcOfferOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_RtcOutboundRtpStreamStats.rs000064400000000000000000000335130072674642500223010ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCOutboundRTPStreamStats)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcOutboundRtpStreamStats` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] pub type RtcOutboundRtpStreamStats; } impl RtcOutboundRtpStreamStats { #[doc = "Construct a new `RtcOutboundRtpStreamStats`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] pub fn id(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("id"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] pub fn timestamp(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("timestamp"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "RtcStatsType")] #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`, `RtcStatsType`*"] pub fn type_(&mut self, val: RtcStatsType) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `bitrateMean` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] pub fn bitrate_mean(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bitrateMean"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `bitrateStdDev` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] pub fn bitrate_std_dev(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bitrateStdDev"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `codecId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] pub fn codec_id(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("codecId"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `firCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] pub fn fir_count(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("firCount"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `framerateMean` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] pub fn framerate_mean(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("framerateMean"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `framerateStdDev` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] pub fn framerate_std_dev(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("framerateStdDev"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `isRemote` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] pub fn is_remote(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("isRemote"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `mediaTrackId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] pub fn media_track_id(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("mediaTrackId"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `mediaType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] pub fn media_type(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("mediaType"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `nackCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] pub fn nack_count(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("nackCount"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `pliCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] pub fn pli_count(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("pliCount"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `remoteId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] pub fn remote_id(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("remoteId"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `ssrc` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] pub fn ssrc(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("ssrc"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `transportId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] pub fn transport_id(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("transportId"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `bytesSent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] pub fn bytes_sent(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bytesSent"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `droppedFrames` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] pub fn dropped_frames(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("droppedFrames"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `framesEncoded` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] pub fn frames_encoded(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("framesEncoded"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `packetsSent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] pub fn packets_sent(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("packetsSent"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `targetBitrate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] pub fn target_bitrate(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("targetBitrate"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for RtcOutboundRtpStreamStats { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_RtcPeerConnection.rs000064400000000000000000001402670072674642500205410ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = RTCPeerConnection , typescript_type = "RTCPeerConnection")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcPeerConnection` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub type RtcPeerConnection; #[cfg(feature = "RtcSessionDescription")] # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = localDescription)] #[doc = "Getter for the `localDescription` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/localDescription)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`, `RtcSessionDescription`*"] pub fn local_description(this: &RtcPeerConnection) -> Option; #[cfg(feature = "RtcSessionDescription")] # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = currentLocalDescription)] #[doc = "Getter for the `currentLocalDescription` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/currentLocalDescription)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`, `RtcSessionDescription`*"] pub fn current_local_description(this: &RtcPeerConnection) -> Option; #[cfg(feature = "RtcSessionDescription")] # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = pendingLocalDescription)] #[doc = "Getter for the `pendingLocalDescription` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/pendingLocalDescription)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`, `RtcSessionDescription`*"] pub fn pending_local_description(this: &RtcPeerConnection) -> Option; #[cfg(feature = "RtcSessionDescription")] # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = remoteDescription)] #[doc = "Getter for the `remoteDescription` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/remoteDescription)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`, `RtcSessionDescription`*"] pub fn remote_description(this: &RtcPeerConnection) -> Option; #[cfg(feature = "RtcSessionDescription")] # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = currentRemoteDescription)] #[doc = "Getter for the `currentRemoteDescription` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/currentRemoteDescription)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`, `RtcSessionDescription`*"] pub fn current_remote_description(this: &RtcPeerConnection) -> Option; #[cfg(feature = "RtcSessionDescription")] # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = pendingRemoteDescription)] #[doc = "Getter for the `pendingRemoteDescription` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/pendingRemoteDescription)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`, `RtcSessionDescription`*"] pub fn pending_remote_description(this: &RtcPeerConnection) -> Option; #[cfg(feature = "RtcSignalingState")] # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = signalingState)] #[doc = "Getter for the `signalingState` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/signalingState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`, `RtcSignalingState`*"] pub fn signaling_state(this: &RtcPeerConnection) -> RtcSignalingState; # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = canTrickleIceCandidates)] #[doc = "Getter for the `canTrickleIceCandidates` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/canTrickleIceCandidates)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn can_trickle_ice_candidates(this: &RtcPeerConnection) -> Option; #[cfg(feature = "RtcIceGatheringState")] # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = iceGatheringState)] #[doc = "Getter for the `iceGatheringState` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/iceGatheringState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceGatheringState`, `RtcPeerConnection`*"] pub fn ice_gathering_state(this: &RtcPeerConnection) -> RtcIceGatheringState; #[cfg(feature = "RtcIceConnectionState")] # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = iceConnectionState)] #[doc = "Getter for the `iceConnectionState` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/iceConnectionState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceConnectionState`, `RtcPeerConnection`*"] pub fn ice_connection_state(this: &RtcPeerConnection) -> RtcIceConnectionState; # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = peerIdentity)] #[doc = "Getter for the `peerIdentity` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/peerIdentity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn peer_identity(this: &RtcPeerConnection) -> ::js_sys::Promise; # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = idpLoginUrl)] #[doc = "Getter for the `idpLoginUrl` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/idpLoginUrl)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn idp_login_url(this: &RtcPeerConnection) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = onnegotiationneeded)] #[doc = "Getter for the `onnegotiationneeded` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onnegotiationneeded)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn onnegotiationneeded(this: &RtcPeerConnection) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "RTCPeerConnection" , js_name = onnegotiationneeded)] #[doc = "Setter for the `onnegotiationneeded` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onnegotiationneeded)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn set_onnegotiationneeded(this: &RtcPeerConnection, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = onicecandidate)] #[doc = "Getter for the `onicecandidate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onicecandidate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn onicecandidate(this: &RtcPeerConnection) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "RTCPeerConnection" , js_name = onicecandidate)] #[doc = "Setter for the `onicecandidate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onicecandidate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn set_onicecandidate(this: &RtcPeerConnection, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = onsignalingstatechange)] #[doc = "Getter for the `onsignalingstatechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onsignalingstatechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn onsignalingstatechange(this: &RtcPeerConnection) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "RTCPeerConnection" , js_name = onsignalingstatechange)] #[doc = "Setter for the `onsignalingstatechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onsignalingstatechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn set_onsignalingstatechange(this: &RtcPeerConnection, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = onaddstream)] #[doc = "Getter for the `onaddstream` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onaddstream)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn onaddstream(this: &RtcPeerConnection) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "RTCPeerConnection" , js_name = onaddstream)] #[doc = "Setter for the `onaddstream` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onaddstream)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn set_onaddstream(this: &RtcPeerConnection, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = onaddtrack)] #[doc = "Getter for the `onaddtrack` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onaddtrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn onaddtrack(this: &RtcPeerConnection) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "RTCPeerConnection" , js_name = onaddtrack)] #[doc = "Setter for the `onaddtrack` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onaddtrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn set_onaddtrack(this: &RtcPeerConnection, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = ontrack)] #[doc = "Getter for the `ontrack` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/ontrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn ontrack(this: &RtcPeerConnection) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "RTCPeerConnection" , js_name = ontrack)] #[doc = "Setter for the `ontrack` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/ontrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn set_ontrack(this: &RtcPeerConnection, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = onremovestream)] #[doc = "Getter for the `onremovestream` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onremovestream)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn onremovestream(this: &RtcPeerConnection) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "RTCPeerConnection" , js_name = onremovestream)] #[doc = "Setter for the `onremovestream` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onremovestream)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn set_onremovestream(this: &RtcPeerConnection, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = oniceconnectionstatechange)] #[doc = "Getter for the `oniceconnectionstatechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/oniceconnectionstatechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn oniceconnectionstatechange(this: &RtcPeerConnection) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "RTCPeerConnection" , js_name = oniceconnectionstatechange)] #[doc = "Setter for the `oniceconnectionstatechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/oniceconnectionstatechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn set_oniceconnectionstatechange( this: &RtcPeerConnection, value: Option<&::js_sys::Function>, ); # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = onicegatheringstatechange)] #[doc = "Getter for the `onicegatheringstatechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onicegatheringstatechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn onicegatheringstatechange(this: &RtcPeerConnection) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "RTCPeerConnection" , js_name = onicegatheringstatechange)] #[doc = "Setter for the `onicegatheringstatechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onicegatheringstatechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn set_onicegatheringstatechange( this: &RtcPeerConnection, value: Option<&::js_sys::Function>, ); # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = ondatachannel)] #[doc = "Getter for the `ondatachannel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/ondatachannel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn ondatachannel(this: &RtcPeerConnection) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "RTCPeerConnection" , js_name = ondatachannel)] #[doc = "Setter for the `ondatachannel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/ondatachannel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn set_ondatachannel(this: &RtcPeerConnection, value: Option<&::js_sys::Function>); #[wasm_bindgen(catch, constructor, js_class = "RTCPeerConnection")] #[doc = "The `new RtcPeerConnection(..)` constructor, creating a new instance of `RtcPeerConnection`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/RTCPeerConnection)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn new() -> Result; #[cfg(feature = "RtcConfiguration")] #[wasm_bindgen(catch, constructor, js_class = "RTCPeerConnection")] #[doc = "The `new RtcPeerConnection(..)` constructor, creating a new instance of `RtcPeerConnection`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/RTCPeerConnection)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcConfiguration`, `RtcPeerConnection`*"] pub fn new_with_configuration( configuration: &RtcConfiguration, ) -> Result; #[cfg(feature = "RtcConfiguration")] #[wasm_bindgen(catch, constructor, js_class = "RTCPeerConnection")] #[doc = "The `new RtcPeerConnection(..)` constructor, creating a new instance of `RtcPeerConnection`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/RTCPeerConnection)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcConfiguration`, `RtcPeerConnection`*"] pub fn new_with_configuration_and_constraints( configuration: &RtcConfiguration, constraints: Option<&::js_sys::Object>, ) -> Result; #[cfg(feature = "RtcIceCandidateInit")] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = addIceCandidate)] #[doc = "The `addIceCandidate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addIceCandidate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateInit`, `RtcPeerConnection`*"] pub fn add_ice_candidate_with_opt_rtc_ice_candidate_init( this: &RtcPeerConnection, candidate: Option<&RtcIceCandidateInit>, ) -> ::js_sys::Promise; #[cfg(feature = "RtcIceCandidate")] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = addIceCandidate)] #[doc = "The `addIceCandidate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addIceCandidate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidate`, `RtcPeerConnection`*"] pub fn add_ice_candidate_with_opt_rtc_ice_candidate( this: &RtcPeerConnection, candidate: Option<&RtcIceCandidate>, ) -> ::js_sys::Promise; #[cfg(feature = "RtcIceCandidate")] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = addIceCandidate)] #[doc = "The `addIceCandidate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addIceCandidate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidate`, `RtcPeerConnection`*"] pub fn add_ice_candidate_with_rtc_ice_candidate_and_success_callback_and_failure_callback( this: &RtcPeerConnection, candidate: &RtcIceCandidate, success_callback: &::js_sys::Function, failure_callback: &::js_sys::Function, ) -> ::js_sys::Promise; #[cfg(feature = "MediaStream")] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = addStream)] #[doc = "The `addStream()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addStream)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`, `RtcPeerConnection`*"] pub fn add_stream(this: &RtcPeerConnection, stream: &MediaStream); #[cfg(all( feature = "MediaStream", feature = "MediaStreamTrack", feature = "RtcRtpSender", ))] # [wasm_bindgen (method , structural , variadic , js_class = "RTCPeerConnection" , js_name = addTrack)] #[doc = "The `addTrack()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addTrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`, `MediaStreamTrack`, `RtcPeerConnection`, `RtcRtpSender`*"] pub fn add_track( this: &RtcPeerConnection, track: &MediaStreamTrack, stream: &MediaStream, more_streams: &::js_sys::Array, ) -> RtcRtpSender; #[cfg(all( feature = "MediaStream", feature = "MediaStreamTrack", feature = "RtcRtpSender", ))] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = addTrack)] #[doc = "The `addTrack()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addTrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`, `MediaStreamTrack`, `RtcPeerConnection`, `RtcRtpSender`*"] pub fn add_track_0( this: &RtcPeerConnection, track: &MediaStreamTrack, stream: &MediaStream, ) -> RtcRtpSender; #[cfg(all( feature = "MediaStream", feature = "MediaStreamTrack", feature = "RtcRtpSender", ))] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = addTrack)] #[doc = "The `addTrack()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addTrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`, `MediaStreamTrack`, `RtcPeerConnection`, `RtcRtpSender`*"] pub fn add_track_1( this: &RtcPeerConnection, track: &MediaStreamTrack, stream: &MediaStream, more_streams_1: &MediaStream, ) -> RtcRtpSender; #[cfg(all( feature = "MediaStream", feature = "MediaStreamTrack", feature = "RtcRtpSender", ))] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = addTrack)] #[doc = "The `addTrack()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addTrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`, `MediaStreamTrack`, `RtcPeerConnection`, `RtcRtpSender`*"] pub fn add_track_2( this: &RtcPeerConnection, track: &MediaStreamTrack, stream: &MediaStream, more_streams_1: &MediaStream, more_streams_2: &MediaStream, ) -> RtcRtpSender; #[cfg(all( feature = "MediaStream", feature = "MediaStreamTrack", feature = "RtcRtpSender", ))] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = addTrack)] #[doc = "The `addTrack()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addTrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`, `MediaStreamTrack`, `RtcPeerConnection`, `RtcRtpSender`*"] pub fn add_track_3( this: &RtcPeerConnection, track: &MediaStreamTrack, stream: &MediaStream, more_streams_1: &MediaStream, more_streams_2: &MediaStream, more_streams_3: &MediaStream, ) -> RtcRtpSender; #[cfg(all( feature = "MediaStream", feature = "MediaStreamTrack", feature = "RtcRtpSender", ))] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = addTrack)] #[doc = "The `addTrack()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addTrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`, `MediaStreamTrack`, `RtcPeerConnection`, `RtcRtpSender`*"] pub fn add_track_4( this: &RtcPeerConnection, track: &MediaStreamTrack, stream: &MediaStream, more_streams_1: &MediaStream, more_streams_2: &MediaStream, more_streams_3: &MediaStream, more_streams_4: &MediaStream, ) -> RtcRtpSender; #[cfg(all( feature = "MediaStream", feature = "MediaStreamTrack", feature = "RtcRtpSender", ))] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = addTrack)] #[doc = "The `addTrack()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addTrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`, `MediaStreamTrack`, `RtcPeerConnection`, `RtcRtpSender`*"] pub fn add_track_5( this: &RtcPeerConnection, track: &MediaStreamTrack, stream: &MediaStream, more_streams_1: &MediaStream, more_streams_2: &MediaStream, more_streams_3: &MediaStream, more_streams_4: &MediaStream, more_streams_5: &MediaStream, ) -> RtcRtpSender; #[cfg(all( feature = "MediaStream", feature = "MediaStreamTrack", feature = "RtcRtpSender", ))] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = addTrack)] #[doc = "The `addTrack()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addTrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`, `MediaStreamTrack`, `RtcPeerConnection`, `RtcRtpSender`*"] pub fn add_track_6( this: &RtcPeerConnection, track: &MediaStreamTrack, stream: &MediaStream, more_streams_1: &MediaStream, more_streams_2: &MediaStream, more_streams_3: &MediaStream, more_streams_4: &MediaStream, more_streams_5: &MediaStream, more_streams_6: &MediaStream, ) -> RtcRtpSender; #[cfg(all( feature = "MediaStream", feature = "MediaStreamTrack", feature = "RtcRtpSender", ))] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = addTrack)] #[doc = "The `addTrack()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addTrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`, `MediaStreamTrack`, `RtcPeerConnection`, `RtcRtpSender`*"] pub fn add_track_7( this: &RtcPeerConnection, track: &MediaStreamTrack, stream: &MediaStream, more_streams_1: &MediaStream, more_streams_2: &MediaStream, more_streams_3: &MediaStream, more_streams_4: &MediaStream, more_streams_5: &MediaStream, more_streams_6: &MediaStream, more_streams_7: &MediaStream, ) -> RtcRtpSender; #[cfg(all(feature = "MediaStreamTrack", feature = "RtcRtpTransceiver",))] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = addTransceiver)] #[doc = "The `addTransceiver()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addTransceiver)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `RtcPeerConnection`, `RtcRtpTransceiver`*"] pub fn add_transceiver_with_media_stream_track( this: &RtcPeerConnection, track_or_kind: &MediaStreamTrack, ) -> RtcRtpTransceiver; #[cfg(feature = "RtcRtpTransceiver")] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = addTransceiver)] #[doc = "The `addTransceiver()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addTransceiver)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`, `RtcRtpTransceiver`*"] pub fn add_transceiver_with_str( this: &RtcPeerConnection, track_or_kind: &str, ) -> RtcRtpTransceiver; #[cfg(all( feature = "MediaStreamTrack", feature = "RtcRtpTransceiver", feature = "RtcRtpTransceiverInit", ))] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = addTransceiver)] #[doc = "The `addTransceiver()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addTransceiver)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `RtcPeerConnection`, `RtcRtpTransceiver`, `RtcRtpTransceiverInit`*"] pub fn add_transceiver_with_media_stream_track_and_init( this: &RtcPeerConnection, track_or_kind: &MediaStreamTrack, init: &RtcRtpTransceiverInit, ) -> RtcRtpTransceiver; #[cfg(all(feature = "RtcRtpTransceiver", feature = "RtcRtpTransceiverInit",))] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = addTransceiver)] #[doc = "The `addTransceiver()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addTransceiver)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`, `RtcRtpTransceiver`, `RtcRtpTransceiverInit`*"] pub fn add_transceiver_with_str_and_init( this: &RtcPeerConnection, track_or_kind: &str, init: &RtcRtpTransceiverInit, ) -> RtcRtpTransceiver; # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = close)] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn close(this: &RtcPeerConnection); # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = createAnswer)] #[doc = "The `createAnswer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/createAnswer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn create_answer(this: &RtcPeerConnection) -> ::js_sys::Promise; #[cfg(feature = "RtcAnswerOptions")] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = createAnswer)] #[doc = "The `createAnswer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/createAnswer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcAnswerOptions`, `RtcPeerConnection`*"] pub fn create_answer_with_rtc_answer_options( this: &RtcPeerConnection, options: &RtcAnswerOptions, ) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = createAnswer)] #[doc = "The `createAnswer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/createAnswer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn create_answer_with_success_callback_and_failure_callback( this: &RtcPeerConnection, success_callback: &::js_sys::Function, failure_callback: &::js_sys::Function, ) -> ::js_sys::Promise; #[cfg(feature = "RtcDataChannel")] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = createDataChannel)] #[doc = "The `createDataChannel()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/createDataChannel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`, `RtcPeerConnection`*"] pub fn create_data_channel(this: &RtcPeerConnection, label: &str) -> RtcDataChannel; #[cfg(all(feature = "RtcDataChannel", feature = "RtcDataChannelInit",))] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = createDataChannel)] #[doc = "The `createDataChannel()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/createDataChannel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`, `RtcDataChannelInit`, `RtcPeerConnection`*"] pub fn create_data_channel_with_data_channel_dict( this: &RtcPeerConnection, label: &str, data_channel_dict: &RtcDataChannelInit, ) -> RtcDataChannel; # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = createOffer)] #[doc = "The `createOffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/createOffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn create_offer(this: &RtcPeerConnection) -> ::js_sys::Promise; #[cfg(feature = "RtcOfferOptions")] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = createOffer)] #[doc = "The `createOffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/createOffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOfferOptions`, `RtcPeerConnection`*"] pub fn create_offer_with_rtc_offer_options( this: &RtcPeerConnection, options: &RtcOfferOptions, ) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = createOffer)] #[doc = "The `createOffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/createOffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn create_offer_with_callback_and_failure_callback( this: &RtcPeerConnection, success_callback: &::js_sys::Function, failure_callback: &::js_sys::Function, ) -> ::js_sys::Promise; #[cfg(feature = "RtcOfferOptions")] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = createOffer)] #[doc = "The `createOffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/createOffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOfferOptions`, `RtcPeerConnection`*"] pub fn create_offer_with_callback_and_failure_callback_and_options( this: &RtcPeerConnection, success_callback: &::js_sys::Function, failure_callback: &::js_sys::Function, options: &RtcOfferOptions, ) -> ::js_sys::Promise; # [wasm_bindgen (catch , static_method_of = RtcPeerConnection , js_class = "RTCPeerConnection" , js_name = generateCertificate)] #[doc = "The `generateCertificate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/generateCertificate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn generate_certificate_with_object( keygen_algorithm: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , static_method_of = RtcPeerConnection , js_class = "RTCPeerConnection" , js_name = generateCertificate)] #[doc = "The `generateCertificate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/generateCertificate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn generate_certificate_with_str( keygen_algorithm: &str, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "RtcConfiguration")] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = getConfiguration)] #[doc = "The `getConfiguration()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/getConfiguration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcConfiguration`, `RtcPeerConnection`*"] pub fn get_configuration(this: &RtcPeerConnection) -> RtcConfiguration; # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = getIdentityAssertion)] #[doc = "The `getIdentityAssertion()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/getIdentityAssertion)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn get_identity_assertion(this: &RtcPeerConnection) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = getLocalStreams)] #[doc = "The `getLocalStreams()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/getLocalStreams)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn get_local_streams(this: &RtcPeerConnection) -> ::js_sys::Array; # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = getReceivers)] #[doc = "The `getReceivers()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/getReceivers)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn get_receivers(this: &RtcPeerConnection) -> ::js_sys::Array; # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = getRemoteStreams)] #[doc = "The `getRemoteStreams()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/getRemoteStreams)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn get_remote_streams(this: &RtcPeerConnection) -> ::js_sys::Array; # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = getSenders)] #[doc = "The `getSenders()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/getSenders)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn get_senders(this: &RtcPeerConnection) -> ::js_sys::Array; # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = getStats)] #[doc = "The `getStats()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/getStats)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn get_stats(this: &RtcPeerConnection) -> ::js_sys::Promise; #[cfg(feature = "MediaStreamTrack")] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = getStats)] #[doc = "The `getStats()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/getStats)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `RtcPeerConnection`*"] pub fn get_stats_with_selector( this: &RtcPeerConnection, selector: Option<&MediaStreamTrack>, ) -> ::js_sys::Promise; #[cfg(feature = "MediaStreamTrack")] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = getStats)] #[doc = "The `getStats()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/getStats)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `RtcPeerConnection`*"] pub fn get_stats_with_selector_and_success_callback_and_failure_callback( this: &RtcPeerConnection, selector: Option<&MediaStreamTrack>, success_callback: &::js_sys::Function, failure_callback: &::js_sys::Function, ) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = getTransceivers)] #[doc = "The `getTransceivers()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/getTransceivers)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn get_transceivers(this: &RtcPeerConnection) -> ::js_sys::Array; #[cfg(feature = "RtcRtpSender")] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = removeTrack)] #[doc = "The `removeTrack()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/removeTrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`, `RtcRtpSender`*"] pub fn remove_track(this: &RtcPeerConnection, sender: &RtcRtpSender); # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = setIdentityProvider)] #[doc = "The `setIdentityProvider()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/setIdentityProvider)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn set_identity_provider(this: &RtcPeerConnection, provider: &str); #[cfg(feature = "RtcIdentityProviderOptions")] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = setIdentityProvider)] #[doc = "The `setIdentityProvider()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/setIdentityProvider)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProviderOptions`, `RtcPeerConnection`*"] pub fn set_identity_provider_with_options( this: &RtcPeerConnection, provider: &str, options: &RtcIdentityProviderOptions, ); #[cfg(feature = "RtcSessionDescriptionInit")] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = setLocalDescription)] #[doc = "The `setLocalDescription()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/setLocalDescription)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`, `RtcSessionDescriptionInit`*"] pub fn set_local_description( this: &RtcPeerConnection, description: &RtcSessionDescriptionInit, ) -> ::js_sys::Promise; #[cfg(feature = "RtcSessionDescriptionInit")] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = setLocalDescription)] #[doc = "The `setLocalDescription()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/setLocalDescription)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`, `RtcSessionDescriptionInit`*"] pub fn set_local_description_with_success_callback_and_failure_callback( this: &RtcPeerConnection, description: &RtcSessionDescriptionInit, success_callback: &::js_sys::Function, failure_callback: &::js_sys::Function, ) -> ::js_sys::Promise; #[cfg(feature = "RtcSessionDescriptionInit")] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = setRemoteDescription)] #[doc = "The `setRemoteDescription()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/setRemoteDescription)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`, `RtcSessionDescriptionInit`*"] pub fn set_remote_description( this: &RtcPeerConnection, description: &RtcSessionDescriptionInit, ) -> ::js_sys::Promise; #[cfg(feature = "RtcSessionDescriptionInit")] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = setRemoteDescription)] #[doc = "The `setRemoteDescription()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/setRemoteDescription)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`, `RtcSessionDescriptionInit`*"] pub fn set_remote_description_with_success_callback_and_failure_callback( this: &RtcPeerConnection, description: &RtcSessionDescriptionInit, success_callback: &::js_sys::Function, failure_callback: &::js_sys::Function, ) -> ::js_sys::Promise; } web-sys-0.3.55/src/features/gen_RtcPeerConnectionIceEvent.rs000064400000000000000000000047340072674642500221620ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = RTCPeerConnectionIceEvent , typescript_type = "RTCPeerConnectionIceEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcPeerConnectionIceEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnectionIceEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnectionIceEvent`*"] pub type RtcPeerConnectionIceEvent; #[cfg(feature = "RtcIceCandidate")] # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnectionIceEvent" , js_name = candidate)] #[doc = "Getter for the `candidate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnectionIceEvent/candidate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidate`, `RtcPeerConnectionIceEvent`*"] pub fn candidate(this: &RtcPeerConnectionIceEvent) -> Option; #[wasm_bindgen(catch, constructor, js_class = "RTCPeerConnectionIceEvent")] #[doc = "The `new RtcPeerConnectionIceEvent(..)` constructor, creating a new instance of `RtcPeerConnectionIceEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnectionIceEvent/RTCPeerConnectionIceEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnectionIceEvent`*"] pub fn new(type_: &str) -> Result; #[cfg(feature = "RtcPeerConnectionIceEventInit")] #[wasm_bindgen(catch, constructor, js_class = "RTCPeerConnectionIceEvent")] #[doc = "The `new RtcPeerConnectionIceEvent(..)` constructor, creating a new instance of `RtcPeerConnectionIceEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnectionIceEvent/RTCPeerConnectionIceEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnectionIceEvent`, `RtcPeerConnectionIceEventInit`*"] pub fn new_with_event_init_dict( type_: &str, event_init_dict: &RtcPeerConnectionIceEventInit, ) -> Result; } web-sys-0.3.55/src/features/gen_RtcPeerConnectionIceEventInit.rs000064400000000000000000000066230072674642500230050ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCPeerConnectionIceEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcPeerConnectionIceEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnectionIceEventInit`*"] pub type RtcPeerConnectionIceEventInit; } impl RtcPeerConnectionIceEventInit { #[doc = "Construct a new `RtcPeerConnectionIceEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnectionIceEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnectionIceEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnectionIceEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnectionIceEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "RtcIceCandidate")] #[doc = "Change the `candidate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidate`, `RtcPeerConnectionIceEventInit`*"] pub fn candidate(&mut self, val: Option<&RtcIceCandidate>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("candidate"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for RtcPeerConnectionIceEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_RtcPriorityType.rs000064400000000000000000000005710072674642500203020ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `RtcPriorityType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPriorityType`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum RtcPriorityType { VeryLow = "very-low", Low = "low", Medium = "medium", High = "high", } web-sys-0.3.55/src/features/gen_RtcRtcpParameters.rs000064400000000000000000000037420072674642500205560ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCRtcpParameters)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcRtcpParameters` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtcpParameters`*"] pub type RtcRtcpParameters; } impl RtcRtcpParameters { #[doc = "Construct a new `RtcRtcpParameters`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtcpParameters`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `cname` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtcpParameters`*"] pub fn cname(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("cname"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `reducedSize` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtcpParameters`*"] pub fn reduced_size(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("reducedSize"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for RtcRtcpParameters { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_RtcRtpCodecParameters.rs000064400000000000000000000075100072674642500213460ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCRtpCodecParameters)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcRtpCodecParameters` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpCodecParameters`*"] pub type RtcRtpCodecParameters; } impl RtcRtpCodecParameters { #[doc = "Construct a new `RtcRtpCodecParameters`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpCodecParameters`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `channels` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpCodecParameters`*"] pub fn channels(&mut self, val: u16) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("channels"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `clockRate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpCodecParameters`*"] pub fn clock_rate(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("clockRate"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `mimeType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpCodecParameters`*"] pub fn mime_type(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("mimeType"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `payloadType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpCodecParameters`*"] pub fn payload_type(&mut self, val: u16) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("payloadType"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `sdpFmtpLine` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpCodecParameters`*"] pub fn sdp_fmtp_line(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("sdpFmtpLine"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for RtcRtpCodecParameters { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_RtcRtpContributingSource.rs000064400000000000000000000052000072674642500221270ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCRtpContributingSource)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcRtpContributingSource` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpContributingSource`*"] pub type RtcRtpContributingSource; } impl RtcRtpContributingSource { #[doc = "Construct a new `RtcRtpContributingSource`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpContributingSource`*"] pub fn new(source: u32, timestamp: f64) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.source(source); ret.timestamp(timestamp); ret } #[doc = "Change the `audioLevel` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpContributingSource`*"] pub fn audio_level(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("audioLevel"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `source` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpContributingSource`*"] pub fn source(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("source"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpContributingSource`*"] pub fn timestamp(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("timestamp"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_RtcRtpEncodingParameters.rs000064400000000000000000000144430072674642500220620ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCRtpEncodingParameters)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcRtpEncodingParameters` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpEncodingParameters`*"] pub type RtcRtpEncodingParameters; } impl RtcRtpEncodingParameters { #[doc = "Construct a new `RtcRtpEncodingParameters`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpEncodingParameters`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `active` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpEncodingParameters`*"] pub fn active(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("active"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "RtcDegradationPreference")] #[doc = "Change the `degradationPreference` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDegradationPreference`, `RtcRtpEncodingParameters`*"] pub fn degradation_preference(&mut self, val: RtcDegradationPreference) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("degradationPreference"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "RtcFecParameters")] #[doc = "Change the `fec` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcFecParameters`, `RtcRtpEncodingParameters`*"] pub fn fec(&mut self, val: &RtcFecParameters) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("fec"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `maxBitrate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpEncodingParameters`*"] pub fn max_bitrate(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("maxBitrate"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "RtcPriorityType")] #[doc = "Change the `priority` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPriorityType`, `RtcRtpEncodingParameters`*"] pub fn priority(&mut self, val: RtcPriorityType) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("priority"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `rid` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpEncodingParameters`*"] pub fn rid(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("rid"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "RtcRtxParameters")] #[doc = "Change the `rtx` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpEncodingParameters`, `RtcRtxParameters`*"] pub fn rtx(&mut self, val: &RtcRtxParameters) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("rtx"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `scaleResolutionDownBy` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpEncodingParameters`*"] pub fn scale_resolution_down_by(&mut self, val: f32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("scaleResolutionDownBy"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `ssrc` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpEncodingParameters`*"] pub fn ssrc(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("ssrc"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for RtcRtpEncodingParameters { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_RtcRtpHeaderExtensionParameters.rs000064400000000000000000000051740072674642500234220ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCRtpHeaderExtensionParameters)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcRtpHeaderExtensionParameters` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpHeaderExtensionParameters`*"] pub type RtcRtpHeaderExtensionParameters; } impl RtcRtpHeaderExtensionParameters { #[doc = "Construct a new `RtcRtpHeaderExtensionParameters`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpHeaderExtensionParameters`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `encrypted` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpHeaderExtensionParameters`*"] pub fn encrypted(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("encrypted"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpHeaderExtensionParameters`*"] pub fn id(&mut self, val: u16) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("id"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `uri` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpHeaderExtensionParameters`*"] pub fn uri(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("uri"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for RtcRtpHeaderExtensionParameters { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_RtcRtpParameters.rs000064400000000000000000000063430072674642500204130ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCRtpParameters)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcRtpParameters` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpParameters`*"] pub type RtcRtpParameters; } impl RtcRtpParameters { #[doc = "Construct a new `RtcRtpParameters`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpParameters`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `codecs` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpParameters`*"] pub fn codecs(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("codecs"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `encodings` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpParameters`*"] pub fn encodings(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("encodings"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `headerExtensions` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpParameters`*"] pub fn header_extensions(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("headerExtensions"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "RtcRtcpParameters")] #[doc = "Change the `rtcp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtcpParameters`, `RtcRtpParameters`*"] pub fn rtcp(&mut self, val: &RtcRtcpParameters) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("rtcp"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for RtcRtpParameters { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_RtcRtpReceiver.rs000064400000000000000000000047300072674642500200520ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCRtpReceiver , typescript_type = "RTCRtpReceiver")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcRtpReceiver` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpReceiver)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpReceiver`*"] pub type RtcRtpReceiver; #[cfg(feature = "MediaStreamTrack")] # [wasm_bindgen (structural , method , getter , js_class = "RTCRtpReceiver" , js_name = track)] #[doc = "Getter for the `track` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpReceiver/track)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `RtcRtpReceiver`*"] pub fn track(this: &RtcRtpReceiver) -> MediaStreamTrack; # [wasm_bindgen (method , structural , js_class = "RTCRtpReceiver" , js_name = getContributingSources)] #[doc = "The `getContributingSources()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpReceiver/getContributingSources)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpReceiver`*"] pub fn get_contributing_sources(this: &RtcRtpReceiver) -> ::js_sys::Array; # [wasm_bindgen (method , structural , js_class = "RTCRtpReceiver" , js_name = getStats)] #[doc = "The `getStats()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpReceiver/getStats)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpReceiver`*"] pub fn get_stats(this: &RtcRtpReceiver) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "RTCRtpReceiver" , js_name = getSynchronizationSources)] #[doc = "The `getSynchronizationSources()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpReceiver/getSynchronizationSources)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpReceiver`*"] pub fn get_synchronization_sources(this: &RtcRtpReceiver) -> ::js_sys::Array; } web-sys-0.3.55/src/features/gen_RtcRtpSender.rs000064400000000000000000000100270072674642500175220ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCRtpSender , typescript_type = "RTCRtpSender")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcRtpSender` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSender)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpSender`*"] pub type RtcRtpSender; #[cfg(feature = "MediaStreamTrack")] # [wasm_bindgen (structural , method , getter , js_class = "RTCRtpSender" , js_name = track)] #[doc = "Getter for the `track` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSender/track)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `RtcRtpSender`*"] pub fn track(this: &RtcRtpSender) -> Option; #[cfg(feature = "RtcdtmfSender")] # [wasm_bindgen (structural , method , getter , js_class = "RTCRtpSender" , js_name = dtmf)] #[doc = "Getter for the `dtmf` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSender/dtmf)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpSender`, `RtcdtmfSender`*"] pub fn dtmf(this: &RtcRtpSender) -> Option; #[cfg(feature = "RtcRtpParameters")] # [wasm_bindgen (method , structural , js_class = "RTCRtpSender" , js_name = getParameters)] #[doc = "The `getParameters()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSender/getParameters)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpParameters`, `RtcRtpSender`*"] pub fn get_parameters(this: &RtcRtpSender) -> RtcRtpParameters; # [wasm_bindgen (method , structural , js_class = "RTCRtpSender" , js_name = getStats)] #[doc = "The `getStats()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSender/getStats)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpSender`*"] pub fn get_stats(this: &RtcRtpSender) -> ::js_sys::Promise; #[cfg(feature = "MediaStreamTrack")] # [wasm_bindgen (method , structural , js_class = "RTCRtpSender" , js_name = replaceTrack)] #[doc = "The `replaceTrack()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSender/replaceTrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `RtcRtpSender`*"] pub fn replace_track( this: &RtcRtpSender, with_track: Option<&MediaStreamTrack>, ) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "RTCRtpSender" , js_name = setParameters)] #[doc = "The `setParameters()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSender/setParameters)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpSender`*"] pub fn set_parameters(this: &RtcRtpSender) -> ::js_sys::Promise; #[cfg(feature = "RtcRtpParameters")] # [wasm_bindgen (method , structural , js_class = "RTCRtpSender" , js_name = setParameters)] #[doc = "The `setParameters()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSender/setParameters)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpParameters`, `RtcRtpSender`*"] pub fn set_parameters_with_parameters( this: &RtcRtpSender, parameters: &RtcRtpParameters, ) -> ::js_sys::Promise; } web-sys-0.3.55/src/features/gen_RtcRtpSourceEntry.rs000064400000000000000000000077550072674642500206020ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCRtpSourceEntry)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcRtpSourceEntry` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpSourceEntry`*"] pub type RtcRtpSourceEntry; } impl RtcRtpSourceEntry { #[cfg(feature = "RtcRtpSourceEntryType")] #[doc = "Construct a new `RtcRtpSourceEntry`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpSourceEntry`, `RtcRtpSourceEntryType`*"] pub fn new(source: u32, timestamp: f64, source_type: RtcRtpSourceEntryType) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.source(source); ret.timestamp(timestamp); ret.source_type(source_type); ret } #[doc = "Change the `audioLevel` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpSourceEntry`*"] pub fn audio_level(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("audioLevel"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `source` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpSourceEntry`*"] pub fn source(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("source"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpSourceEntry`*"] pub fn timestamp(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("timestamp"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `voiceActivityFlag` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpSourceEntry`*"] pub fn voice_activity_flag(&mut self, val: Option) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("voiceActivityFlag"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "RtcRtpSourceEntryType")] #[doc = "Change the `sourceType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpSourceEntry`, `RtcRtpSourceEntryType`*"] pub fn source_type(&mut self, val: RtcRtpSourceEntryType) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("sourceType"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_RtcRtpSourceEntryType.rs000064400000000000000000000006020072674642500214240ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `RtcRtpSourceEntryType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpSourceEntryType`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum RtcRtpSourceEntryType { Contributing = "contributing", Synchronization = "synchronization", } web-sys-0.3.55/src/features/gen_RtcRtpSynchronizationSource.rs000064400000000000000000000064340072674642500226730ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCRtpSynchronizationSource)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcRtpSynchronizationSource` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpSynchronizationSource`*"] pub type RtcRtpSynchronizationSource; } impl RtcRtpSynchronizationSource { #[doc = "Construct a new `RtcRtpSynchronizationSource`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpSynchronizationSource`*"] pub fn new(source: u32, timestamp: f64) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.source(source); ret.timestamp(timestamp); ret } #[doc = "Change the `audioLevel` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpSynchronizationSource`*"] pub fn audio_level(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("audioLevel"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `source` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpSynchronizationSource`*"] pub fn source(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("source"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpSynchronizationSource`*"] pub fn timestamp(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("timestamp"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `voiceActivityFlag` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpSynchronizationSource`*"] pub fn voice_activity_flag(&mut self, val: Option) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("voiceActivityFlag"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_RtcRtpTransceiver.rs000064400000000000000000000121500072674642500205660ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCRtpTransceiver , typescript_type = "RTCRtpTransceiver")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcRtpTransceiver` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpTransceiver)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiver`*"] pub type RtcRtpTransceiver; # [wasm_bindgen (structural , method , getter , js_class = "RTCRtpTransceiver" , js_name = mid)] #[doc = "Getter for the `mid` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpTransceiver/mid)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiver`*"] pub fn mid(this: &RtcRtpTransceiver) -> Option; #[cfg(feature = "RtcRtpSender")] # [wasm_bindgen (structural , method , getter , js_class = "RTCRtpTransceiver" , js_name = sender)] #[doc = "Getter for the `sender` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpTransceiver/sender)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpSender`, `RtcRtpTransceiver`*"] pub fn sender(this: &RtcRtpTransceiver) -> RtcRtpSender; #[cfg(feature = "RtcRtpReceiver")] # [wasm_bindgen (structural , method , getter , js_class = "RTCRtpTransceiver" , js_name = receiver)] #[doc = "Getter for the `receiver` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpTransceiver/receiver)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpReceiver`, `RtcRtpTransceiver`*"] pub fn receiver(this: &RtcRtpTransceiver) -> RtcRtpReceiver; # [wasm_bindgen (structural , method , getter , js_class = "RTCRtpTransceiver" , js_name = stopped)] #[doc = "Getter for the `stopped` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpTransceiver/stopped)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiver`*"] pub fn stopped(this: &RtcRtpTransceiver) -> bool; #[cfg(feature = "RtcRtpTransceiverDirection")] # [wasm_bindgen (structural , method , getter , js_class = "RTCRtpTransceiver" , js_name = direction)] #[doc = "Getter for the `direction` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpTransceiver/direction)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiver`, `RtcRtpTransceiverDirection`*"] pub fn direction(this: &RtcRtpTransceiver) -> RtcRtpTransceiverDirection; #[cfg(feature = "RtcRtpTransceiverDirection")] # [wasm_bindgen (structural , method , setter , js_class = "RTCRtpTransceiver" , js_name = direction)] #[doc = "Setter for the `direction` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpTransceiver/direction)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiver`, `RtcRtpTransceiverDirection`*"] pub fn set_direction(this: &RtcRtpTransceiver, value: RtcRtpTransceiverDirection); #[cfg(feature = "RtcRtpTransceiverDirection")] # [wasm_bindgen (structural , method , getter , js_class = "RTCRtpTransceiver" , js_name = currentDirection)] #[doc = "Getter for the `currentDirection` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpTransceiver/currentDirection)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiver`, `RtcRtpTransceiverDirection`*"] pub fn current_direction(this: &RtcRtpTransceiver) -> Option; # [wasm_bindgen (method , structural , js_class = "RTCRtpTransceiver" , js_name = getRemoteTrackId)] #[doc = "The `getRemoteTrackId()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpTransceiver/getRemoteTrackId)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiver`*"] pub fn get_remote_track_id(this: &RtcRtpTransceiver) -> String; # [wasm_bindgen (method , structural , js_class = "RTCRtpTransceiver" , js_name = stop)] #[doc = "The `stop()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpTransceiver/stop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiver`*"] pub fn stop(this: &RtcRtpTransceiver); } web-sys-0.3.55/src/features/gen_RtcRtpTransceiverDirection.rs000064400000000000000000000006610072674642500224330ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `RtcRtpTransceiverDirection` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiverDirection`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum RtcRtpTransceiverDirection { Sendrecv = "sendrecv", Sendonly = "sendonly", Recvonly = "recvonly", Inactive = "inactive", } web-sys-0.3.55/src/features/gen_RtcRtpTransceiverInit.rs000064400000000000000000000042630072674642500214200ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCRtpTransceiverInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcRtpTransceiverInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiverInit`*"] pub type RtcRtpTransceiverInit; } impl RtcRtpTransceiverInit { #[doc = "Construct a new `RtcRtpTransceiverInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiverInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(feature = "RtcRtpTransceiverDirection")] #[doc = "Change the `direction` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiverDirection`, `RtcRtpTransceiverInit`*"] pub fn direction(&mut self, val: RtcRtpTransceiverDirection) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("direction"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `streams` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiverInit`*"] pub fn streams(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("streams"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for RtcRtpTransceiverInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_RtcRtxParameters.rs000064400000000000000000000025740072674642500204250ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCRtxParameters)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcRtxParameters` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtxParameters`*"] pub type RtcRtxParameters; } impl RtcRtxParameters { #[doc = "Construct a new `RtcRtxParameters`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtxParameters`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `ssrc` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtxParameters`*"] pub fn ssrc(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("ssrc"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for RtcRtxParameters { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_RtcSdpType.rs000064400000000000000000000005670072674642500172140ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `RtcSdpType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcSdpType`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum RtcSdpType { Offer = "offer", Pranswer = "pranswer", Answer = "answer", Rollback = "rollback", } web-sys-0.3.55/src/features/gen_RtcSessionDescription.rs000064400000000000000000000102540072674642500214450ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCSessionDescription , typescript_type = "RTCSessionDescription")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcSessionDescription` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCSessionDescription)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcSessionDescription`*"] pub type RtcSessionDescription; #[cfg(feature = "RtcSdpType")] # [wasm_bindgen (structural , method , getter , js_class = "RTCSessionDescription" , js_name = type)] #[doc = "Getter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCSessionDescription/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcSdpType`, `RtcSessionDescription`*"] pub fn type_(this: &RtcSessionDescription) -> RtcSdpType; #[cfg(feature = "RtcSdpType")] # [wasm_bindgen (structural , method , setter , js_class = "RTCSessionDescription" , js_name = type)] #[doc = "Setter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCSessionDescription/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcSdpType`, `RtcSessionDescription`*"] pub fn set_type(this: &RtcSessionDescription, value: RtcSdpType); # [wasm_bindgen (structural , method , getter , js_class = "RTCSessionDescription" , js_name = sdp)] #[doc = "Getter for the `sdp` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCSessionDescription/sdp)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcSessionDescription`*"] pub fn sdp(this: &RtcSessionDescription) -> String; # [wasm_bindgen (structural , method , setter , js_class = "RTCSessionDescription" , js_name = sdp)] #[doc = "Setter for the `sdp` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCSessionDescription/sdp)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcSessionDescription`*"] pub fn set_sdp(this: &RtcSessionDescription, value: &str); #[wasm_bindgen(catch, constructor, js_class = "RTCSessionDescription")] #[doc = "The `new RtcSessionDescription(..)` constructor, creating a new instance of `RtcSessionDescription`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCSessionDescription/RTCSessionDescription)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcSessionDescription`*"] pub fn new() -> Result; #[cfg(feature = "RtcSessionDescriptionInit")] #[wasm_bindgen(catch, constructor, js_class = "RTCSessionDescription")] #[doc = "The `new RtcSessionDescription(..)` constructor, creating a new instance of `RtcSessionDescription`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCSessionDescription/RTCSessionDescription)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcSessionDescription`, `RtcSessionDescriptionInit`*"] pub fn new_with_description_init_dict( description_init_dict: &RtcSessionDescriptionInit, ) -> Result; # [wasm_bindgen (method , structural , js_class = "RTCSessionDescription" , js_name = toJSON)] #[doc = "The `toJSON()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCSessionDescription/toJSON)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcSessionDescription`*"] pub fn to_json(this: &RtcSessionDescription) -> ::js_sys::Object; } web-sys-0.3.55/src/features/gen_RtcSessionDescriptionInit.rs000064400000000000000000000040270072674642500222720ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCSessionDescriptionInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcSessionDescriptionInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcSessionDescriptionInit`*"] pub type RtcSessionDescriptionInit; } impl RtcSessionDescriptionInit { #[cfg(feature = "RtcSdpType")] #[doc = "Construct a new `RtcSessionDescriptionInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcSdpType`, `RtcSessionDescriptionInit`*"] pub fn new(type_: RtcSdpType) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.type_(type_); ret } #[doc = "Change the `sdp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcSessionDescriptionInit`*"] pub fn sdp(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("sdp"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "RtcSdpType")] #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcSdpType`, `RtcSessionDescriptionInit`*"] pub fn type_(&mut self, val: RtcSdpType) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_RtcSignalingState.rs000064400000000000000000000010140072674642500205240ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `RtcSignalingState` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcSignalingState`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum RtcSignalingState { Stable = "stable", HaveLocalOffer = "have-local-offer", HaveRemoteOffer = "have-remote-offer", HaveLocalPranswer = "have-local-pranswer", HaveRemotePranswer = "have-remote-pranswer", Closed = "closed", } web-sys-0.3.55/src/features/gen_RtcStats.rs000064400000000000000000000047000072674642500167130ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCStats)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcStats` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStats`*"] pub type RtcStats; } impl RtcStats { #[doc = "Construct a new `RtcStats`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStats`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStats`*"] pub fn id(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("id"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStats`*"] pub fn timestamp(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("timestamp"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "RtcStatsType")] #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStats`, `RtcStatsType`*"] pub fn type_(&mut self, val: RtcStatsType) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for RtcStats { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_RtcStatsIceCandidatePairState.rs000064400000000000000000000007560072674642500227550ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `RtcStatsIceCandidatePairState` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsIceCandidatePairState`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum RtcStatsIceCandidatePairState { Frozen = "frozen", Waiting = "waiting", Inprogress = "inprogress", Failed = "failed", Succeeded = "succeeded", Cancelled = "cancelled", } web-sys-0.3.55/src/features/gen_RtcStatsIceCandidateType.rs000064400000000000000000000006710072674642500217760ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `RtcStatsIceCandidateType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsIceCandidateType`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum RtcStatsIceCandidateType { Host = "host", Serverreflexive = "serverreflexive", Peerreflexive = "peerreflexive", Relayed = "relayed", } web-sys-0.3.55/src/features/gen_RtcStatsReport.rs000064400000000000000000000010630072674642500201060ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCStatsReport , typescript_type = "RTCStatsReport")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcStatsReport` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCStatsReport)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReport`*"] pub type RtcStatsReport; } web-sys-0.3.55/src/features/gen_RtcStatsReportInternal.rs000064400000000000000000000334020072674642500216050ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCStatsReportInternal)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcStatsReportInternal` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] pub type RtcStatsReportInternal; } impl RtcStatsReportInternal { #[doc = "Construct a new `RtcStatsReportInternal`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `closed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] pub fn closed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("closed"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `codecStats` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] pub fn codec_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("codecStats"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `iceCandidatePairStats` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] pub fn ice_candidate_pair_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("iceCandidatePairStats"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `iceCandidateStats` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] pub fn ice_candidate_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("iceCandidateStats"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `iceComponentStats` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] pub fn ice_component_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("iceComponentStats"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `iceRestarts` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] pub fn ice_restarts(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("iceRestarts"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `iceRollbacks` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] pub fn ice_rollbacks(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("iceRollbacks"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `inboundRTPStreamStats` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] pub fn inbound_rtp_stream_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("inboundRTPStreamStats"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `localSdp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] pub fn local_sdp(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("localSdp"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `mediaStreamStats` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] pub fn media_stream_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("mediaStreamStats"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `mediaStreamTrackStats` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] pub fn media_stream_track_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("mediaStreamTrackStats"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `offerer` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] pub fn offerer(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("offerer"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `outboundRTPStreamStats` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] pub fn outbound_rtp_stream_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("outboundRTPStreamStats"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `pcid` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] pub fn pcid(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("pcid"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `rawLocalCandidates` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] pub fn raw_local_candidates(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("rawLocalCandidates"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `rawRemoteCandidates` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] pub fn raw_remote_candidates(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("rawRemoteCandidates"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `remoteSdp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] pub fn remote_sdp(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("remoteSdp"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `rtpContributingSourceStats` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] pub fn rtp_contributing_source_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("rtpContributingSourceStats"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] pub fn timestamp(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("timestamp"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `transportStats` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] pub fn transport_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("transportStats"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `trickledIceCandidateStats` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] pub fn trickled_ice_candidate_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("trickledIceCandidateStats"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for RtcStatsReportInternal { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_RtcStatsType.rs000064400000000000000000000010630072674642500175540ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `RtcStatsType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsType`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum RtcStatsType { InboundRtp = "inbound-rtp", OutboundRtp = "outbound-rtp", Csrc = "csrc", Session = "session", Track = "track", Transport = "transport", CandidatePair = "candidate-pair", LocalCandidate = "local-candidate", RemoteCandidate = "remote-candidate", } web-sys-0.3.55/src/features/gen_RtcTrackEvent.rs000064400000000000000000000061570072674642500176730ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = RTCTrackEvent , typescript_type = "RTCTrackEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcTrackEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCTrackEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcTrackEvent`*"] pub type RtcTrackEvent; #[cfg(feature = "RtcRtpReceiver")] # [wasm_bindgen (structural , method , getter , js_class = "RTCTrackEvent" , js_name = receiver)] #[doc = "Getter for the `receiver` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCTrackEvent/receiver)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpReceiver`, `RtcTrackEvent`*"] pub fn receiver(this: &RtcTrackEvent) -> RtcRtpReceiver; #[cfg(feature = "MediaStreamTrack")] # [wasm_bindgen (structural , method , getter , js_class = "RTCTrackEvent" , js_name = track)] #[doc = "Getter for the `track` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCTrackEvent/track)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `RtcTrackEvent`*"] pub fn track(this: &RtcTrackEvent) -> MediaStreamTrack; # [wasm_bindgen (structural , method , getter , js_class = "RTCTrackEvent" , js_name = streams)] #[doc = "Getter for the `streams` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCTrackEvent/streams)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcTrackEvent`*"] pub fn streams(this: &RtcTrackEvent) -> ::js_sys::Array; #[cfg(feature = "RtcRtpTransceiver")] # [wasm_bindgen (structural , method , getter , js_class = "RTCTrackEvent" , js_name = transceiver)] #[doc = "Getter for the `transceiver` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCTrackEvent/transceiver)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiver`, `RtcTrackEvent`*"] pub fn transceiver(this: &RtcTrackEvent) -> RtcRtpTransceiver; #[cfg(feature = "RtcTrackEventInit")] #[wasm_bindgen(catch, constructor, js_class = "RTCTrackEvent")] #[doc = "The `new RtcTrackEvent(..)` constructor, creating a new instance of `RtcTrackEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCTrackEvent/RTCTrackEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcTrackEvent`, `RtcTrackEventInit`*"] pub fn new(type_: &str, event_init_dict: &RtcTrackEventInit) -> Result; } web-sys-0.3.55/src/features/gen_RtcTrackEventInit.rs000064400000000000000000000126250072674642500205140ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCTrackEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcTrackEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcTrackEventInit`*"] pub type RtcTrackEventInit; } impl RtcTrackEventInit { #[cfg(all( feature = "MediaStreamTrack", feature = "RtcRtpReceiver", feature = "RtcRtpTransceiver", ))] #[doc = "Construct a new `RtcTrackEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `RtcRtpReceiver`, `RtcRtpTransceiver`, `RtcTrackEventInit`*"] pub fn new( receiver: &RtcRtpReceiver, track: &MediaStreamTrack, transceiver: &RtcRtpTransceiver, ) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.receiver(receiver); ret.track(track); ret.transceiver(transceiver); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcTrackEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcTrackEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcTrackEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "RtcRtpReceiver")] #[doc = "Change the `receiver` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpReceiver`, `RtcTrackEventInit`*"] pub fn receiver(&mut self, val: &RtcRtpReceiver) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("receiver"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `streams` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcTrackEventInit`*"] pub fn streams(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("streams"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "MediaStreamTrack")] #[doc = "Change the `track` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `RtcTrackEventInit`*"] pub fn track(&mut self, val: &MediaStreamTrack) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("track"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "RtcRtpTransceiver")] #[doc = "Change the `transceiver` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiver`, `RtcTrackEventInit`*"] pub fn transceiver(&mut self, val: &RtcRtpTransceiver) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("transceiver"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_RtcTransportStats.rs000064400000000000000000000073230072674642500206340ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCTransportStats)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcTransportStats` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcTransportStats`*"] pub type RtcTransportStats; } impl RtcTransportStats { #[doc = "Construct a new `RtcTransportStats`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcTransportStats`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcTransportStats`*"] pub fn id(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("id"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcTransportStats`*"] pub fn timestamp(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("timestamp"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "RtcStatsType")] #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsType`, `RtcTransportStats`*"] pub fn type_(&mut self, val: RtcStatsType) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `bytesReceived` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcTransportStats`*"] pub fn bytes_received(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bytesReceived"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `bytesSent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcTransportStats`*"] pub fn bytes_sent(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bytesSent"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for RtcTransportStats { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_RtcdtmfSender.rs000064400000000000000000000066270072674642500177220ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = RTCDTMFSender , typescript_type = "RTCDTMFSender")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcdtmfSender` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDTMFSender)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcdtmfSender`*"] pub type RtcdtmfSender; # [wasm_bindgen (structural , method , getter , js_class = "RTCDTMFSender" , js_name = ontonechange)] #[doc = "Getter for the `ontonechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDTMFSender/ontonechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcdtmfSender`*"] pub fn ontonechange(this: &RtcdtmfSender) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "RTCDTMFSender" , js_name = ontonechange)] #[doc = "Setter for the `ontonechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDTMFSender/ontonechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcdtmfSender`*"] pub fn set_ontonechange(this: &RtcdtmfSender, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "RTCDTMFSender" , js_name = toneBuffer)] #[doc = "Getter for the `toneBuffer` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDTMFSender/toneBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcdtmfSender`*"] pub fn tone_buffer(this: &RtcdtmfSender) -> String; # [wasm_bindgen (method , structural , js_class = "RTCDTMFSender" , js_name = insertDTMF)] #[doc = "The `insertDTMF()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDTMFSender/insertDTMF)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcdtmfSender`*"] pub fn insert_dtmf(this: &RtcdtmfSender, tones: &str); # [wasm_bindgen (method , structural , js_class = "RTCDTMFSender" , js_name = insertDTMF)] #[doc = "The `insertDTMF()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDTMFSender/insertDTMF)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcdtmfSender`*"] pub fn insert_dtmf_with_duration(this: &RtcdtmfSender, tones: &str, duration: u32); # [wasm_bindgen (method , structural , js_class = "RTCDTMFSender" , js_name = insertDTMF)] #[doc = "The `insertDTMF()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDTMFSender/insertDTMF)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcdtmfSender`*"] pub fn insert_dtmf_with_duration_and_inter_tone_gap( this: &RtcdtmfSender, tones: &str, duration: u32, inter_tone_gap: u32, ); } web-sys-0.3.55/src/features/gen_RtcdtmfToneChangeEvent.rs000064400000000000000000000044530072674642500215120ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = RTCDTMFToneChangeEvent , typescript_type = "RTCDTMFToneChangeEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcdtmfToneChangeEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDTMFToneChangeEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcdtmfToneChangeEvent`*"] pub type RtcdtmfToneChangeEvent; # [wasm_bindgen (structural , method , getter , js_class = "RTCDTMFToneChangeEvent" , js_name = tone)] #[doc = "Getter for the `tone` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDTMFToneChangeEvent/tone)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcdtmfToneChangeEvent`*"] pub fn tone(this: &RtcdtmfToneChangeEvent) -> String; #[wasm_bindgen(catch, constructor, js_class = "RTCDTMFToneChangeEvent")] #[doc = "The `new RtcdtmfToneChangeEvent(..)` constructor, creating a new instance of `RtcdtmfToneChangeEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDTMFToneChangeEvent/RTCDTMFToneChangeEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcdtmfToneChangeEvent`*"] pub fn new(type_: &str) -> Result; #[cfg(feature = "RtcdtmfToneChangeEventInit")] #[wasm_bindgen(catch, constructor, js_class = "RTCDTMFToneChangeEvent")] #[doc = "The `new RtcdtmfToneChangeEvent(..)` constructor, creating a new instance of `RtcdtmfToneChangeEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDTMFToneChangeEvent/RTCDTMFToneChangeEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcdtmfToneChangeEvent`, `RtcdtmfToneChangeEventInit`*"] pub fn new_with_event_init_dict( type_: &str, event_init_dict: &RtcdtmfToneChangeEventInit, ) -> Result; } web-sys-0.3.55/src/features/gen_RtcdtmfToneChangeEventInit.rs000064400000000000000000000063420072674642500223350ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCDTMFToneChangeEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcdtmfToneChangeEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcdtmfToneChangeEventInit`*"] pub type RtcdtmfToneChangeEventInit; } impl RtcdtmfToneChangeEventInit { #[doc = "Construct a new `RtcdtmfToneChangeEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcdtmfToneChangeEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcdtmfToneChangeEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcdtmfToneChangeEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcdtmfToneChangeEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `tone` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcdtmfToneChangeEventInit`*"] pub fn tone(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("tone"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for RtcdtmfToneChangeEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_RtcrtpContributingSourceStats.rs000064400000000000000000000076230072674642500232210ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCRTPContributingSourceStats)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcrtpContributingSourceStats` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpContributingSourceStats`*"] pub type RtcrtpContributingSourceStats; } impl RtcrtpContributingSourceStats { #[doc = "Construct a new `RtcrtpContributingSourceStats`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpContributingSourceStats`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpContributingSourceStats`*"] pub fn id(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("id"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpContributingSourceStats`*"] pub fn timestamp(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("timestamp"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "RtcStatsType")] #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsType`, `RtcrtpContributingSourceStats`*"] pub fn type_(&mut self, val: RtcStatsType) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `contributorSsrc` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpContributingSourceStats`*"] pub fn contributor_ssrc(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("contributorSsrc"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `inboundRtpStreamId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpContributingSourceStats`*"] pub fn inbound_rtp_stream_id(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("inboundRtpStreamId"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for RtcrtpContributingSourceStats { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_RtcrtpStreamStats.rs000064400000000000000000000252270072674642500206240ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCRTPStreamStats)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcrtpStreamStats` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] pub type RtcrtpStreamStats; } impl RtcrtpStreamStats { #[doc = "Construct a new `RtcrtpStreamStats`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] pub fn id(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("id"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] pub fn timestamp(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("timestamp"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "RtcStatsType")] #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsType`, `RtcrtpStreamStats`*"] pub fn type_(&mut self, val: RtcStatsType) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `bitrateMean` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] pub fn bitrate_mean(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bitrateMean"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `bitrateStdDev` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] pub fn bitrate_std_dev(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bitrateStdDev"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `codecId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] pub fn codec_id(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("codecId"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `firCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] pub fn fir_count(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("firCount"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `framerateMean` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] pub fn framerate_mean(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("framerateMean"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `framerateStdDev` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] pub fn framerate_std_dev(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("framerateStdDev"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `isRemote` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] pub fn is_remote(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("isRemote"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `mediaTrackId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] pub fn media_track_id(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("mediaTrackId"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `mediaType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] pub fn media_type(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("mediaType"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `nackCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] pub fn nack_count(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("nackCount"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `pliCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] pub fn pli_count(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("pliCount"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `remoteId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] pub fn remote_id(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("remoteId"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `ssrc` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] pub fn ssrc(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("ssrc"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `transportId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] pub fn transport_id(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("transportId"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for RtcrtpStreamStats { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_Screen.rs000064400000000000000000000164320072674642500163700ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = Screen , typescript_type = "Screen")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Screen` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Screen`*"] pub type Screen; # [wasm_bindgen (structural , catch , method , getter , js_class = "Screen" , js_name = availWidth)] #[doc = "Getter for the `availWidth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/availWidth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Screen`*"] pub fn avail_width(this: &Screen) -> Result; # [wasm_bindgen (structural , catch , method , getter , js_class = "Screen" , js_name = availHeight)] #[doc = "Getter for the `availHeight` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/availHeight)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Screen`*"] pub fn avail_height(this: &Screen) -> Result; # [wasm_bindgen (structural , catch , method , getter , js_class = "Screen" , js_name = width)] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Screen`*"] pub fn width(this: &Screen) -> Result; # [wasm_bindgen (structural , catch , method , getter , js_class = "Screen" , js_name = height)] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Screen`*"] pub fn height(this: &Screen) -> Result; # [wasm_bindgen (structural , catch , method , getter , js_class = "Screen" , js_name = colorDepth)] #[doc = "Getter for the `colorDepth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/colorDepth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Screen`*"] pub fn color_depth(this: &Screen) -> Result; # [wasm_bindgen (structural , catch , method , getter , js_class = "Screen" , js_name = pixelDepth)] #[doc = "Getter for the `pixelDepth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/pixelDepth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Screen`*"] pub fn pixel_depth(this: &Screen) -> Result; # [wasm_bindgen (structural , catch , method , getter , js_class = "Screen" , js_name = top)] #[doc = "Getter for the `top` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/top)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Screen`*"] pub fn top(this: &Screen) -> Result; # [wasm_bindgen (structural , catch , method , getter , js_class = "Screen" , js_name = left)] #[doc = "Getter for the `left` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/left)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Screen`*"] pub fn left(this: &Screen) -> Result; # [wasm_bindgen (structural , catch , method , getter , js_class = "Screen" , js_name = availTop)] #[doc = "Getter for the `availTop` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/availTop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Screen`*"] pub fn avail_top(this: &Screen) -> Result; # [wasm_bindgen (structural , catch , method , getter , js_class = "Screen" , js_name = availLeft)] #[doc = "Getter for the `availLeft` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/availLeft)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Screen`*"] pub fn avail_left(this: &Screen) -> Result; #[cfg(feature = "ScreenOrientation")] # [wasm_bindgen (structural , method , getter , js_class = "Screen" , js_name = orientation)] #[doc = "Getter for the `orientation` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/orientation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Screen`, `ScreenOrientation`*"] pub fn orientation(this: &Screen) -> ScreenOrientation; #[cfg(feature = "ScreenColorGamut")] # [wasm_bindgen (structural , method , getter , js_class = "Screen" , js_name = colorGamut)] #[doc = "Getter for the `colorGamut` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/colorGamut)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Screen`, `ScreenColorGamut`*"] pub fn color_gamut(this: &Screen) -> ScreenColorGamut; #[cfg(feature = "ScreenLuminance")] # [wasm_bindgen (structural , method , getter , js_class = "Screen" , js_name = luminance)] #[doc = "Getter for the `luminance` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/luminance)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Screen`, `ScreenLuminance`*"] pub fn luminance(this: &Screen) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "Screen" , js_name = onchange)] #[doc = "Getter for the `onchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/onchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Screen`*"] pub fn onchange(this: &Screen) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Screen" , js_name = onchange)] #[doc = "Setter for the `onchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/onchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Screen`*"] pub fn set_onchange(this: &Screen, value: Option<&::js_sys::Function>); } web-sys-0.3.55/src/features/gen_ScreenColorGamut.rs000064400000000000000000000005420072674642500203600ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `ScreenColorGamut` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScreenColorGamut`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum ScreenColorGamut { Srgb = "srgb", P3 = "p3", Rec2020 = "rec2020", } web-sys-0.3.55/src/features/gen_ScreenLuminance.rs000064400000000000000000000035760072674642500202310ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ScreenLuminance , typescript_type = "ScreenLuminance")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ScreenLuminance` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenLuminance)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScreenLuminance`*"] pub type ScreenLuminance; # [wasm_bindgen (structural , method , getter , js_class = "ScreenLuminance" , js_name = min)] #[doc = "Getter for the `min` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenLuminance/min)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScreenLuminance`*"] pub fn min(this: &ScreenLuminance) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "ScreenLuminance" , js_name = max)] #[doc = "Getter for the `max` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenLuminance/max)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScreenLuminance`*"] pub fn max(this: &ScreenLuminance) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "ScreenLuminance" , js_name = maxAverage)] #[doc = "Getter for the `maxAverage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenLuminance/maxAverage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScreenLuminance`*"] pub fn max_average(this: &ScreenLuminance) -> f64; } web-sys-0.3.55/src/features/gen_ScreenOrientation.rs000064400000000000000000000071160072674642500206030ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = ScreenOrientation , typescript_type = "ScreenOrientation")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ScreenOrientation` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenOrientation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScreenOrientation`*"] pub type ScreenOrientation; #[cfg(feature = "OrientationType")] # [wasm_bindgen (structural , catch , method , getter , js_class = "ScreenOrientation" , js_name = type)] #[doc = "Getter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenOrientation/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OrientationType`, `ScreenOrientation`*"] pub fn type_(this: &ScreenOrientation) -> Result; # [wasm_bindgen (structural , catch , method , getter , js_class = "ScreenOrientation" , js_name = angle)] #[doc = "Getter for the `angle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenOrientation/angle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScreenOrientation`*"] pub fn angle(this: &ScreenOrientation) -> Result; # [wasm_bindgen (structural , method , getter , js_class = "ScreenOrientation" , js_name = onchange)] #[doc = "Getter for the `onchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenOrientation/onchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScreenOrientation`*"] pub fn onchange(this: &ScreenOrientation) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "ScreenOrientation" , js_name = onchange)] #[doc = "Setter for the `onchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenOrientation/onchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScreenOrientation`*"] pub fn set_onchange(this: &ScreenOrientation, value: Option<&::js_sys::Function>); #[cfg(feature = "OrientationLockType")] # [wasm_bindgen (catch , method , structural , js_class = "ScreenOrientation" , js_name = lock)] #[doc = "The `lock()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenOrientation/lock)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OrientationLockType`, `ScreenOrientation`*"] pub fn lock( this: &ScreenOrientation, orientation: OrientationLockType, ) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "ScreenOrientation" , js_name = unlock)] #[doc = "The `unlock()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenOrientation/unlock)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScreenOrientation`*"] pub fn unlock(this: &ScreenOrientation) -> Result<(), JsValue>; } web-sys-0.3.55/src/features/gen_ScriptProcessorNode.rs000064400000000000000000000042040072674642500211150ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = ScriptProcessorNode , typescript_type = "ScriptProcessorNode")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ScriptProcessorNode` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScriptProcessorNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScriptProcessorNode`*"] pub type ScriptProcessorNode; # [wasm_bindgen (structural , method , getter , js_class = "ScriptProcessorNode" , js_name = onaudioprocess)] #[doc = "Getter for the `onaudioprocess` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScriptProcessorNode/onaudioprocess)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScriptProcessorNode`*"] pub fn onaudioprocess(this: &ScriptProcessorNode) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "ScriptProcessorNode" , js_name = onaudioprocess)] #[doc = "Setter for the `onaudioprocess` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScriptProcessorNode/onaudioprocess)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScriptProcessorNode`*"] pub fn set_onaudioprocess(this: &ScriptProcessorNode, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "ScriptProcessorNode" , js_name = bufferSize)] #[doc = "Getter for the `bufferSize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScriptProcessorNode/bufferSize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScriptProcessorNode`*"] pub fn buffer_size(this: &ScriptProcessorNode) -> i32; } web-sys-0.3.55/src/features/gen_ScrollAreaEvent.rs000064400000000000000000000203170072674642500201770ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = UiEvent , extends = Event , extends = :: js_sys :: Object , js_name = ScrollAreaEvent , typescript_type = "ScrollAreaEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ScrollAreaEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`*"] pub type ScrollAreaEvent; # [wasm_bindgen (structural , method , getter , js_class = "ScrollAreaEvent" , js_name = x)] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`*"] pub fn x(this: &ScrollAreaEvent) -> f32; # [wasm_bindgen (structural , method , getter , js_class = "ScrollAreaEvent" , js_name = y)] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`*"] pub fn y(this: &ScrollAreaEvent) -> f32; # [wasm_bindgen (structural , method , getter , js_class = "ScrollAreaEvent" , js_name = width)] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`*"] pub fn width(this: &ScrollAreaEvent) -> f32; # [wasm_bindgen (structural , method , getter , js_class = "ScrollAreaEvent" , js_name = height)] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`*"] pub fn height(this: &ScrollAreaEvent) -> f32; # [wasm_bindgen (method , structural , js_class = "ScrollAreaEvent" , js_name = initScrollAreaEvent)] #[doc = "The `initScrollAreaEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/initScrollAreaEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`*"] pub fn init_scroll_area_event(this: &ScrollAreaEvent, type_: &str); # [wasm_bindgen (method , structural , js_class = "ScrollAreaEvent" , js_name = initScrollAreaEvent)] #[doc = "The `initScrollAreaEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/initScrollAreaEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`*"] pub fn init_scroll_area_event_with_can_bubble( this: &ScrollAreaEvent, type_: &str, can_bubble: bool, ); # [wasm_bindgen (method , structural , js_class = "ScrollAreaEvent" , js_name = initScrollAreaEvent)] #[doc = "The `initScrollAreaEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/initScrollAreaEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`*"] pub fn init_scroll_area_event_with_can_bubble_and_cancelable( this: &ScrollAreaEvent, type_: &str, can_bubble: bool, cancelable: bool, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "ScrollAreaEvent" , js_name = initScrollAreaEvent)] #[doc = "The `initScrollAreaEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/initScrollAreaEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`, `Window`*"] pub fn init_scroll_area_event_with_can_bubble_and_cancelable_and_view( this: &ScrollAreaEvent, type_: &str, can_bubble: bool, cancelable: bool, view: Option<&Window>, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "ScrollAreaEvent" , js_name = initScrollAreaEvent)] #[doc = "The `initScrollAreaEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/initScrollAreaEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`, `Window`*"] pub fn init_scroll_area_event_with_can_bubble_and_cancelable_and_view_and_detail( this: &ScrollAreaEvent, type_: &str, can_bubble: bool, cancelable: bool, view: Option<&Window>, detail: i32, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "ScrollAreaEvent" , js_name = initScrollAreaEvent)] #[doc = "The `initScrollAreaEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/initScrollAreaEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`, `Window`*"] pub fn init_scroll_area_event_with_can_bubble_and_cancelable_and_view_and_detail_and_x( this: &ScrollAreaEvent, type_: &str, can_bubble: bool, cancelable: bool, view: Option<&Window>, detail: i32, x: f32, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "ScrollAreaEvent" , js_name = initScrollAreaEvent)] #[doc = "The `initScrollAreaEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/initScrollAreaEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`, `Window`*"] pub fn init_scroll_area_event_with_can_bubble_and_cancelable_and_view_and_detail_and_x_and_y( this: &ScrollAreaEvent, type_: &str, can_bubble: bool, cancelable: bool, view: Option<&Window>, detail: i32, x: f32, y: f32, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "ScrollAreaEvent" , js_name = initScrollAreaEvent)] #[doc = "The `initScrollAreaEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/initScrollAreaEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`, `Window`*"] pub fn init_scroll_area_event_with_can_bubble_and_cancelable_and_view_and_detail_and_x_and_y_and_width( this: &ScrollAreaEvent, type_: &str, can_bubble: bool, cancelable: bool, view: Option<&Window>, detail: i32, x: f32, y: f32, width: f32, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "ScrollAreaEvent" , js_name = initScrollAreaEvent)] #[doc = "The `initScrollAreaEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/initScrollAreaEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`, `Window`*"] pub fn init_scroll_area_event_with_can_bubble_and_cancelable_and_view_and_detail_and_x_and_y_and_width_and_height( this: &ScrollAreaEvent, type_: &str, can_bubble: bool, cancelable: bool, view: Option<&Window>, detail: i32, x: f32, y: f32, width: f32, height: f32, ); } web-sys-0.3.55/src/features/gen_ScrollBehavior.rs000064400000000000000000000005440072674642500200640ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `ScrollBehavior` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollBehavior`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum ScrollBehavior { Auto = "auto", Instant = "instant", Smooth = "smooth", } web-sys-0.3.55/src/features/gen_ScrollBoxObject.rs000064400000000000000000000120450072674642500202030ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = ScrollBoxObject , typescript_type = "ScrollBoxObject")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ScrollBoxObject` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollBoxObject)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollBoxObject`*"] pub type ScrollBoxObject; # [wasm_bindgen (structural , catch , method , getter , js_class = "ScrollBoxObject" , js_name = positionX)] #[doc = "Getter for the `positionX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollBoxObject/positionX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollBoxObject`*"] pub fn position_x(this: &ScrollBoxObject) -> Result; # [wasm_bindgen (structural , catch , method , getter , js_class = "ScrollBoxObject" , js_name = positionY)] #[doc = "Getter for the `positionY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollBoxObject/positionY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollBoxObject`*"] pub fn position_y(this: &ScrollBoxObject) -> Result; # [wasm_bindgen (structural , catch , method , getter , js_class = "ScrollBoxObject" , js_name = scrolledWidth)] #[doc = "Getter for the `scrolledWidth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollBoxObject/scrolledWidth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollBoxObject`*"] pub fn scrolled_width(this: &ScrollBoxObject) -> Result; # [wasm_bindgen (structural , catch , method , getter , js_class = "ScrollBoxObject" , js_name = scrolledHeight)] #[doc = "Getter for the `scrolledHeight` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollBoxObject/scrolledHeight)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollBoxObject`*"] pub fn scrolled_height(this: &ScrollBoxObject) -> Result; #[cfg(feature = "Element")] # [wasm_bindgen (catch , method , structural , js_class = "ScrollBoxObject" , js_name = ensureElementIsVisible)] #[doc = "The `ensureElementIsVisible()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollBoxObject/ensureElementIsVisible)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `ScrollBoxObject`*"] pub fn ensure_element_is_visible( this: &ScrollBoxObject, child: &Element, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "ScrollBoxObject" , js_name = scrollBy)] #[doc = "The `scrollBy()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollBoxObject/scrollBy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollBoxObject`*"] pub fn scroll_by(this: &ScrollBoxObject, dx: i32, dy: i32) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "ScrollBoxObject" , js_name = scrollByIndex)] #[doc = "The `scrollByIndex()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollBoxObject/scrollByIndex)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollBoxObject`*"] pub fn scroll_by_index(this: &ScrollBoxObject, dindexes: i32) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "ScrollBoxObject" , js_name = scrollTo)] #[doc = "The `scrollTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollBoxObject/scrollTo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollBoxObject`*"] pub fn scroll_to(this: &ScrollBoxObject, x: i32, y: i32) -> Result<(), JsValue>; #[cfg(feature = "Element")] # [wasm_bindgen (catch , method , structural , js_class = "ScrollBoxObject" , js_name = scrollToElement)] #[doc = "The `scrollToElement()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollBoxObject/scrollToElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `ScrollBoxObject`*"] pub fn scroll_to_element(this: &ScrollBoxObject, child: &Element) -> Result<(), JsValue>; } web-sys-0.3.55/src/features/gen_ScrollIntoViewOptions.rs000064400000000000000000000054350072674642500214510ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ScrollIntoViewOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ScrollIntoViewOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollIntoViewOptions`*"] pub type ScrollIntoViewOptions; } impl ScrollIntoViewOptions { #[doc = "Construct a new `ScrollIntoViewOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollIntoViewOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(feature = "ScrollBehavior")] #[doc = "Change the `behavior` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollBehavior`, `ScrollIntoViewOptions`*"] pub fn behavior(&mut self, val: ScrollBehavior) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("behavior"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "ScrollLogicalPosition")] #[doc = "Change the `block` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollIntoViewOptions`, `ScrollLogicalPosition`*"] pub fn block(&mut self, val: ScrollLogicalPosition) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("block"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "ScrollLogicalPosition")] #[doc = "Change the `inline` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollIntoViewOptions`, `ScrollLogicalPosition`*"] pub fn inline(&mut self, val: ScrollLogicalPosition) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("inline"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for ScrollIntoViewOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_ScrollLogicalPosition.rs000064400000000000000000000006140072674642500214220ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `ScrollLogicalPosition` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollLogicalPosition`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum ScrollLogicalPosition { Start = "start", Center = "center", End = "end", Nearest = "nearest", } web-sys-0.3.55/src/features/gen_ScrollOptions.rs000064400000000000000000000027400072674642500177600ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ScrollOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ScrollOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollOptions`*"] pub type ScrollOptions; } impl ScrollOptions { #[doc = "Construct a new `ScrollOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(feature = "ScrollBehavior")] #[doc = "Change the `behavior` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollBehavior`, `ScrollOptions`*"] pub fn behavior(&mut self, val: ScrollBehavior) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("behavior"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for ScrollOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_ScrollRestoration.rs000064400000000000000000000005240072674642500206340ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `ScrollRestoration` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollRestoration`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum ScrollRestoration { Auto = "auto", Manual = "manual", } web-sys-0.3.55/src/features/gen_ScrollSetting.rs000064400000000000000000000004740072674642500177440ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `ScrollSetting` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollSetting`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum ScrollSetting { None = "", Up = "up", } web-sys-0.3.55/src/features/gen_ScrollState.rs000064400000000000000000000005120072674642500174000ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `ScrollState` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollState`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum ScrollState { Started = "started", Stopped = "stopped", } web-sys-0.3.55/src/features/gen_ScrollToOptions.rs000064400000000000000000000050210072674642500202560ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ScrollToOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ScrollToOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollToOptions`*"] pub type ScrollToOptions; } impl ScrollToOptions { #[doc = "Construct a new `ScrollToOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollToOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(feature = "ScrollBehavior")] #[doc = "Change the `behavior` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollBehavior`, `ScrollToOptions`*"] pub fn behavior(&mut self, val: ScrollBehavior) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("behavior"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `left` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollToOptions`*"] pub fn left(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("left"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `top` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollToOptions`*"] pub fn top(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("top"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for ScrollToOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_ScrollViewChangeEventInit.rs000064400000000000000000000064230072674642500221750ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ScrollViewChangeEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ScrollViewChangeEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollViewChangeEventInit`*"] pub type ScrollViewChangeEventInit; } impl ScrollViewChangeEventInit { #[doc = "Construct a new `ScrollViewChangeEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollViewChangeEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollViewChangeEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollViewChangeEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollViewChangeEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "ScrollState")] #[doc = "Change the `state` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollState`, `ScrollViewChangeEventInit`*"] pub fn state(&mut self, val: ScrollState) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("state"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for ScrollViewChangeEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_SecurityPolicyViolationEvent.rs000064400000000000000000000204750072674642500230310ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = SecurityPolicyViolationEvent , typescript_type = "SecurityPolicyViolationEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SecurityPolicyViolationEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`*"] pub type SecurityPolicyViolationEvent; # [wasm_bindgen (structural , method , getter , js_class = "SecurityPolicyViolationEvent" , js_name = documentURI)] #[doc = "Getter for the `documentURI` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/documentURI)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`*"] pub fn document_uri(this: &SecurityPolicyViolationEvent) -> String; # [wasm_bindgen (structural , method , getter , js_class = "SecurityPolicyViolationEvent" , js_name = referrer)] #[doc = "Getter for the `referrer` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/referrer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`*"] pub fn referrer(this: &SecurityPolicyViolationEvent) -> String; # [wasm_bindgen (structural , method , getter , js_class = "SecurityPolicyViolationEvent" , js_name = blockedURI)] #[doc = "Getter for the `blockedURI` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/blockedURI)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`*"] pub fn blocked_uri(this: &SecurityPolicyViolationEvent) -> String; # [wasm_bindgen (structural , method , getter , js_class = "SecurityPolicyViolationEvent" , js_name = violatedDirective)] #[doc = "Getter for the `violatedDirective` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/violatedDirective)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`*"] pub fn violated_directive(this: &SecurityPolicyViolationEvent) -> String; # [wasm_bindgen (structural , method , getter , js_class = "SecurityPolicyViolationEvent" , js_name = effectiveDirective)] #[doc = "Getter for the `effectiveDirective` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/effectiveDirective)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`*"] pub fn effective_directive(this: &SecurityPolicyViolationEvent) -> String; # [wasm_bindgen (structural , method , getter , js_class = "SecurityPolicyViolationEvent" , js_name = originalPolicy)] #[doc = "Getter for the `originalPolicy` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/originalPolicy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`*"] pub fn original_policy(this: &SecurityPolicyViolationEvent) -> String; # [wasm_bindgen (structural , method , getter , js_class = "SecurityPolicyViolationEvent" , js_name = sourceFile)] #[doc = "Getter for the `sourceFile` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/sourceFile)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`*"] pub fn source_file(this: &SecurityPolicyViolationEvent) -> String; # [wasm_bindgen (structural , method , getter , js_class = "SecurityPolicyViolationEvent" , js_name = sample)] #[doc = "Getter for the `sample` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/sample)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`*"] pub fn sample(this: &SecurityPolicyViolationEvent) -> String; #[cfg(feature = "SecurityPolicyViolationEventDisposition")] # [wasm_bindgen (structural , method , getter , js_class = "SecurityPolicyViolationEvent" , js_name = disposition)] #[doc = "Getter for the `disposition` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/disposition)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`, `SecurityPolicyViolationEventDisposition`*"] pub fn disposition( this: &SecurityPolicyViolationEvent, ) -> SecurityPolicyViolationEventDisposition; # [wasm_bindgen (structural , method , getter , js_class = "SecurityPolicyViolationEvent" , js_name = statusCode)] #[doc = "Getter for the `statusCode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/statusCode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`*"] pub fn status_code(this: &SecurityPolicyViolationEvent) -> u16; # [wasm_bindgen (structural , method , getter , js_class = "SecurityPolicyViolationEvent" , js_name = lineNumber)] #[doc = "Getter for the `lineNumber` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/lineNumber)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`*"] pub fn line_number(this: &SecurityPolicyViolationEvent) -> i32; # [wasm_bindgen (structural , method , getter , js_class = "SecurityPolicyViolationEvent" , js_name = columnNumber)] #[doc = "Getter for the `columnNumber` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/columnNumber)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`*"] pub fn column_number(this: &SecurityPolicyViolationEvent) -> i32; #[wasm_bindgen(catch, constructor, js_class = "SecurityPolicyViolationEvent")] #[doc = "The `new SecurityPolicyViolationEvent(..)` constructor, creating a new instance of `SecurityPolicyViolationEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/SecurityPolicyViolationEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`*"] pub fn new(type_: &str) -> Result; #[cfg(feature = "SecurityPolicyViolationEventInit")] #[wasm_bindgen(catch, constructor, js_class = "SecurityPolicyViolationEvent")] #[doc = "The `new SecurityPolicyViolationEvent(..)` constructor, creating a new instance of `SecurityPolicyViolationEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/SecurityPolicyViolationEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`, `SecurityPolicyViolationEventInit`*"] pub fn new_with_event_init_dict( type_: &str, event_init_dict: &SecurityPolicyViolationEventInit, ) -> Result; } web-sys-0.3.55/src/features/gen_SecurityPolicyViolationEventDisposition.rs000064400000000000000000000006340072674642500252510ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `SecurityPolicyViolationEventDisposition` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventDisposition`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum SecurityPolicyViolationEventDisposition { Enforce = "enforce", Report = "report", } web-sys-0.3.55/src/features/gen_SecurityPolicyViolationEventInit.rs000064400000000000000000000241330072674642500236500ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SecurityPolicyViolationEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SecurityPolicyViolationEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] pub type SecurityPolicyViolationEventInit; } impl SecurityPolicyViolationEventInit { #[doc = "Construct a new `SecurityPolicyViolationEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `blockedURI` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] pub fn blocked_uri(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("blockedURI"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `columnNumber` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] pub fn column_number(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("columnNumber"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "SecurityPolicyViolationEventDisposition")] #[doc = "Change the `disposition` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventDisposition`, `SecurityPolicyViolationEventInit`*"] pub fn disposition(&mut self, val: SecurityPolicyViolationEventDisposition) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("disposition"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `documentURI` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] pub fn document_uri(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("documentURI"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `effectiveDirective` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] pub fn effective_directive(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("effectiveDirective"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `lineNumber` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] pub fn line_number(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("lineNumber"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `originalPolicy` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] pub fn original_policy(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("originalPolicy"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `referrer` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] pub fn referrer(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("referrer"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `sample` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] pub fn sample(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("sample"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `sourceFile` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] pub fn source_file(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("sourceFile"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `statusCode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] pub fn status_code(&mut self, val: u16) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("statusCode"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `violatedDirective` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] pub fn violated_directive(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("violatedDirective"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for SecurityPolicyViolationEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_Selection.rs000064400000000000000000000336440072674642500171020ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Selection , typescript_type = "Selection")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Selection` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Selection`*"] pub type Selection; #[cfg(feature = "Node")] # [wasm_bindgen (structural , method , getter , js_class = "Selection" , js_name = anchorNode)] #[doc = "Getter for the `anchorNode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/anchorNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `Selection`*"] pub fn anchor_node(this: &Selection) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "Selection" , js_name = anchorOffset)] #[doc = "Getter for the `anchorOffset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/anchorOffset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Selection`*"] pub fn anchor_offset(this: &Selection) -> u32; #[cfg(feature = "Node")] # [wasm_bindgen (structural , method , getter , js_class = "Selection" , js_name = focusNode)] #[doc = "Getter for the `focusNode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/focusNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `Selection`*"] pub fn focus_node(this: &Selection) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "Selection" , js_name = focusOffset)] #[doc = "Getter for the `focusOffset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/focusOffset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Selection`*"] pub fn focus_offset(this: &Selection) -> u32; # [wasm_bindgen (structural , method , getter , js_class = "Selection" , js_name = isCollapsed)] #[doc = "Getter for the `isCollapsed` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/isCollapsed)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Selection`*"] pub fn is_collapsed(this: &Selection) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "Selection" , js_name = rangeCount)] #[doc = "Getter for the `rangeCount` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/rangeCount)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Selection`*"] pub fn range_count(this: &Selection) -> u32; # [wasm_bindgen (structural , method , getter , js_class = "Selection" , js_name = type)] #[doc = "Getter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Selection`*"] pub fn type_(this: &Selection) -> String; # [wasm_bindgen (structural , catch , method , getter , js_class = "Selection" , js_name = caretBidiLevel)] #[doc = "Getter for the `caretBidiLevel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/caretBidiLevel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Selection`*"] pub fn caret_bidi_level(this: &Selection) -> Result, JsValue>; # [wasm_bindgen (structural , catch , method , setter , js_class = "Selection" , js_name = caretBidiLevel)] #[doc = "Setter for the `caretBidiLevel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/caretBidiLevel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Selection`*"] pub fn set_caret_bidi_level(this: &Selection, value: Option) -> Result<(), JsValue>; #[cfg(feature = "Range")] # [wasm_bindgen (catch , method , structural , js_class = "Selection" , js_name = addRange)] #[doc = "The `addRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/addRange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Range`, `Selection`*"] pub fn add_range(this: &Selection, range: &Range) -> Result<(), JsValue>; #[cfg(feature = "Node")] # [wasm_bindgen (catch , method , structural , js_class = "Selection" , js_name = collapse)] #[doc = "The `collapse()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/collapse)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `Selection`*"] pub fn collapse(this: &Selection, node: Option<&Node>) -> Result<(), JsValue>; #[cfg(feature = "Node")] # [wasm_bindgen (catch , method , structural , js_class = "Selection" , js_name = collapse)] #[doc = "The `collapse()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/collapse)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `Selection`*"] pub fn collapse_with_offset( this: &Selection, node: Option<&Node>, offset: u32, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Selection" , js_name = collapseToEnd)] #[doc = "The `collapseToEnd()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/collapseToEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Selection`*"] pub fn collapse_to_end(this: &Selection) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Selection" , js_name = collapseToStart)] #[doc = "The `collapseToStart()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/collapseToStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Selection`*"] pub fn collapse_to_start(this: &Selection) -> Result<(), JsValue>; #[cfg(feature = "Node")] # [wasm_bindgen (catch , method , structural , js_class = "Selection" , js_name = containsNode)] #[doc = "The `containsNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/containsNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `Selection`*"] pub fn contains_node(this: &Selection, node: &Node) -> Result; #[cfg(feature = "Node")] # [wasm_bindgen (catch , method , structural , js_class = "Selection" , js_name = containsNode)] #[doc = "The `containsNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/containsNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `Selection`*"] pub fn contains_node_with_allow_partial_containment( this: &Selection, node: &Node, allow_partial_containment: bool, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Selection" , js_name = deleteFromDocument)] #[doc = "The `deleteFromDocument()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/deleteFromDocument)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Selection`*"] pub fn delete_from_document(this: &Selection) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Selection" , js_name = empty)] #[doc = "The `empty()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/empty)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Selection`*"] pub fn empty(this: &Selection) -> Result<(), JsValue>; #[cfg(feature = "Node")] # [wasm_bindgen (catch , method , structural , js_class = "Selection" , js_name = extend)] #[doc = "The `extend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/extend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `Selection`*"] pub fn extend(this: &Selection, node: &Node) -> Result<(), JsValue>; #[cfg(feature = "Node")] # [wasm_bindgen (catch , method , structural , js_class = "Selection" , js_name = extend)] #[doc = "The `extend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/extend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `Selection`*"] pub fn extend_with_offset(this: &Selection, node: &Node, offset: u32) -> Result<(), JsValue>; #[cfg(feature = "Range")] # [wasm_bindgen (catch , method , structural , js_class = "Selection" , js_name = getRangeAt)] #[doc = "The `getRangeAt()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/getRangeAt)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Range`, `Selection`*"] pub fn get_range_at(this: &Selection, index: u32) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Selection" , js_name = modify)] #[doc = "The `modify()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/modify)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Selection`*"] pub fn modify( this: &Selection, alter: &str, direction: &str, granularity: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Selection" , js_name = removeAllRanges)] #[doc = "The `removeAllRanges()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/removeAllRanges)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Selection`*"] pub fn remove_all_ranges(this: &Selection) -> Result<(), JsValue>; #[cfg(feature = "Range")] # [wasm_bindgen (catch , method , structural , js_class = "Selection" , js_name = removeRange)] #[doc = "The `removeRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/removeRange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Range`, `Selection`*"] pub fn remove_range(this: &Selection, range: &Range) -> Result<(), JsValue>; #[cfg(feature = "Node")] # [wasm_bindgen (catch , method , structural , js_class = "Selection" , js_name = selectAllChildren)] #[doc = "The `selectAllChildren()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/selectAllChildren)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `Selection`*"] pub fn select_all_children(this: &Selection, node: &Node) -> Result<(), JsValue>; #[cfg(feature = "Node")] # [wasm_bindgen (catch , method , structural , js_class = "Selection" , js_name = setBaseAndExtent)] #[doc = "The `setBaseAndExtent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/setBaseAndExtent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `Selection`*"] pub fn set_base_and_extent( this: &Selection, anchor_node: &Node, anchor_offset: u32, focus_node: &Node, focus_offset: u32, ) -> Result<(), JsValue>; #[cfg(feature = "Node")] # [wasm_bindgen (catch , method , structural , js_class = "Selection" , js_name = setPosition)] #[doc = "The `setPosition()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/setPosition)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `Selection`*"] pub fn set_position(this: &Selection, node: Option<&Node>) -> Result<(), JsValue>; #[cfg(feature = "Node")] # [wasm_bindgen (catch , method , structural , js_class = "Selection" , js_name = setPosition)] #[doc = "The `setPosition()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/setPosition)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `Selection`*"] pub fn set_position_with_offset( this: &Selection, node: Option<&Node>, offset: u32, ) -> Result<(), JsValue>; } web-sys-0.3.55/src/features/gen_ServerSocketOptions.rs000064400000000000000000000030540072674642500211400ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ServerSocketOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ServerSocketOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServerSocketOptions`*"] pub type ServerSocketOptions; } impl ServerSocketOptions { #[doc = "Construct a new `ServerSocketOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServerSocketOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(feature = "TcpSocketBinaryType")] #[doc = "Change the `binaryType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServerSocketOptions`, `TcpSocketBinaryType`*"] pub fn binary_type(&mut self, val: TcpSocketBinaryType) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("binaryType"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for ServerSocketOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_ServiceWorker.rs000064400000000000000000000110010072674642500177260ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = ServiceWorker , typescript_type = "ServiceWorker")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ServiceWorker` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorker)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorker`*"] pub type ServiceWorker; # [wasm_bindgen (structural , method , getter , js_class = "ServiceWorker" , js_name = scriptURL)] #[doc = "Getter for the `scriptURL` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorker/scriptURL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorker`*"] pub fn script_url(this: &ServiceWorker) -> String; #[cfg(feature = "ServiceWorkerState")] # [wasm_bindgen (structural , method , getter , js_class = "ServiceWorker" , js_name = state)] #[doc = "Getter for the `state` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorker/state)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorker`, `ServiceWorkerState`*"] pub fn state(this: &ServiceWorker) -> ServiceWorkerState; # [wasm_bindgen (structural , method , getter , js_class = "ServiceWorker" , js_name = onstatechange)] #[doc = "Getter for the `onstatechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorker/onstatechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorker`*"] pub fn onstatechange(this: &ServiceWorker) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "ServiceWorker" , js_name = onstatechange)] #[doc = "Setter for the `onstatechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorker/onstatechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorker`*"] pub fn set_onstatechange(this: &ServiceWorker, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "ServiceWorker" , js_name = onerror)] #[doc = "Getter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorker/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorker`*"] pub fn onerror(this: &ServiceWorker) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "ServiceWorker" , js_name = onerror)] #[doc = "Setter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorker/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorker`*"] pub fn set_onerror(this: &ServiceWorker, value: Option<&::js_sys::Function>); # [wasm_bindgen (catch , method , structural , js_class = "ServiceWorker" , js_name = postMessage)] #[doc = "The `postMessage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorker/postMessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorker`*"] pub fn post_message( this: &ServiceWorker, message: &::wasm_bindgen::JsValue, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "ServiceWorker" , js_name = postMessage)] #[doc = "The `postMessage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorker/postMessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorker`*"] pub fn post_message_with_transferable( this: &ServiceWorker, message: &::wasm_bindgen::JsValue, transferable: &::wasm_bindgen::JsValue, ) -> Result<(), JsValue>; } web-sys-0.3.55/src/features/gen_ServiceWorkerContainer.rs000064400000000000000000000176700072674642500216130ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = ServiceWorkerContainer , typescript_type = "ServiceWorkerContainer")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ServiceWorkerContainer` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerContainer`*"] pub type ServiceWorkerContainer; #[cfg(feature = "ServiceWorker")] # [wasm_bindgen (structural , method , getter , js_class = "ServiceWorkerContainer" , js_name = controller)] #[doc = "Getter for the `controller` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/controller)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorker`, `ServiceWorkerContainer`*"] pub fn controller(this: &ServiceWorkerContainer) -> Option; # [wasm_bindgen (structural , catch , method , getter , js_class = "ServiceWorkerContainer" , js_name = ready)] #[doc = "Getter for the `ready` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/ready)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerContainer`*"] pub fn ready(this: &ServiceWorkerContainer) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (structural , method , getter , js_class = "ServiceWorkerContainer" , js_name = oncontrollerchange)] #[doc = "Getter for the `oncontrollerchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/oncontrollerchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerContainer`*"] pub fn oncontrollerchange(this: &ServiceWorkerContainer) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "ServiceWorkerContainer" , js_name = oncontrollerchange)] #[doc = "Setter for the `oncontrollerchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/oncontrollerchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerContainer`*"] pub fn set_oncontrollerchange( this: &ServiceWorkerContainer, value: Option<&::js_sys::Function>, ); # [wasm_bindgen (structural , method , getter , js_class = "ServiceWorkerContainer" , js_name = onerror)] #[doc = "Getter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerContainer`*"] pub fn onerror(this: &ServiceWorkerContainer) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "ServiceWorkerContainer" , js_name = onerror)] #[doc = "Setter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerContainer`*"] pub fn set_onerror(this: &ServiceWorkerContainer, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "ServiceWorkerContainer" , js_name = onmessage)] #[doc = "Getter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerContainer`*"] pub fn onmessage(this: &ServiceWorkerContainer) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "ServiceWorkerContainer" , js_name = onmessage)] #[doc = "Setter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerContainer`*"] pub fn set_onmessage(this: &ServiceWorkerContainer, value: Option<&::js_sys::Function>); # [wasm_bindgen (method , structural , js_class = "ServiceWorkerContainer" , js_name = getRegistration)] #[doc = "The `getRegistration()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/getRegistration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerContainer`*"] pub fn get_registration(this: &ServiceWorkerContainer) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "ServiceWorkerContainer" , js_name = getRegistration)] #[doc = "The `getRegistration()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/getRegistration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerContainer`*"] pub fn get_registration_with_document_url( this: &ServiceWorkerContainer, document_url: &str, ) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "ServiceWorkerContainer" , js_name = getRegistrations)] #[doc = "The `getRegistrations()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/getRegistrations)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerContainer`*"] pub fn get_registrations(this: &ServiceWorkerContainer) -> ::js_sys::Promise; # [wasm_bindgen (catch , method , structural , js_class = "ServiceWorkerContainer" , js_name = getScopeForUrl)] #[doc = "The `getScopeForUrl()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/getScopeForUrl)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerContainer`*"] pub fn get_scope_for_url(this: &ServiceWorkerContainer, url: &str) -> Result; # [wasm_bindgen (method , structural , js_class = "ServiceWorkerContainer" , js_name = register)] #[doc = "The `register()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/register)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerContainer`*"] pub fn register(this: &ServiceWorkerContainer, script_url: &str) -> ::js_sys::Promise; #[cfg(feature = "RegistrationOptions")] # [wasm_bindgen (method , structural , js_class = "ServiceWorkerContainer" , js_name = register)] #[doc = "The `register()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/register)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegistrationOptions`, `ServiceWorkerContainer`*"] pub fn register_with_options( this: &ServiceWorkerContainer, script_url: &str, options: &RegistrationOptions, ) -> ::js_sys::Promise; } web-sys-0.3.55/src/features/gen_ServiceWorkerGlobalScope.rs000064400000000000000000000255460072674642500220640ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = WorkerGlobalScope , extends = EventTarget , extends = :: js_sys :: Object , js_name = ServiceWorkerGlobalScope , typescript_type = "ServiceWorkerGlobalScope")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ServiceWorkerGlobalScope` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerGlobalScope`*"] pub type ServiceWorkerGlobalScope; #[cfg(feature = "Clients")] # [wasm_bindgen (structural , method , getter , js_class = "ServiceWorkerGlobalScope" , js_name = clients)] #[doc = "Getter for the `clients` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/clients)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Clients`, `ServiceWorkerGlobalScope`*"] pub fn clients(this: &ServiceWorkerGlobalScope) -> Clients; #[cfg(feature = "ServiceWorkerRegistration")] # [wasm_bindgen (structural , method , getter , js_class = "ServiceWorkerGlobalScope" , js_name = registration)] #[doc = "Getter for the `registration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/registration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerGlobalScope`, `ServiceWorkerRegistration`*"] pub fn registration(this: &ServiceWorkerGlobalScope) -> ServiceWorkerRegistration; # [wasm_bindgen (structural , method , getter , js_class = "ServiceWorkerGlobalScope" , js_name = oninstall)] #[doc = "Getter for the `oninstall` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/oninstall)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerGlobalScope`*"] pub fn oninstall(this: &ServiceWorkerGlobalScope) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "ServiceWorkerGlobalScope" , js_name = oninstall)] #[doc = "Setter for the `oninstall` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/oninstall)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerGlobalScope`*"] pub fn set_oninstall(this: &ServiceWorkerGlobalScope, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "ServiceWorkerGlobalScope" , js_name = onactivate)] #[doc = "Getter for the `onactivate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/onactivate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerGlobalScope`*"] pub fn onactivate(this: &ServiceWorkerGlobalScope) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "ServiceWorkerGlobalScope" , js_name = onactivate)] #[doc = "Setter for the `onactivate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/onactivate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerGlobalScope`*"] pub fn set_onactivate(this: &ServiceWorkerGlobalScope, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "ServiceWorkerGlobalScope" , js_name = onfetch)] #[doc = "Getter for the `onfetch` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/onfetch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerGlobalScope`*"] pub fn onfetch(this: &ServiceWorkerGlobalScope) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "ServiceWorkerGlobalScope" , js_name = onfetch)] #[doc = "Setter for the `onfetch` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/onfetch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerGlobalScope`*"] pub fn set_onfetch(this: &ServiceWorkerGlobalScope, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "ServiceWorkerGlobalScope" , js_name = onmessage)] #[doc = "Getter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerGlobalScope`*"] pub fn onmessage(this: &ServiceWorkerGlobalScope) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "ServiceWorkerGlobalScope" , js_name = onmessage)] #[doc = "Setter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerGlobalScope`*"] pub fn set_onmessage(this: &ServiceWorkerGlobalScope, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "ServiceWorkerGlobalScope" , js_name = onpush)] #[doc = "Getter for the `onpush` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/onpush)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerGlobalScope`*"] pub fn onpush(this: &ServiceWorkerGlobalScope) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "ServiceWorkerGlobalScope" , js_name = onpush)] #[doc = "Setter for the `onpush` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/onpush)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerGlobalScope`*"] pub fn set_onpush(this: &ServiceWorkerGlobalScope, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "ServiceWorkerGlobalScope" , js_name = onpushsubscriptionchange)] #[doc = "Getter for the `onpushsubscriptionchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/onpushsubscriptionchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerGlobalScope`*"] pub fn onpushsubscriptionchange(this: &ServiceWorkerGlobalScope) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "ServiceWorkerGlobalScope" , js_name = onpushsubscriptionchange)] #[doc = "Setter for the `onpushsubscriptionchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/onpushsubscriptionchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerGlobalScope`*"] pub fn set_onpushsubscriptionchange( this: &ServiceWorkerGlobalScope, value: Option<&::js_sys::Function>, ); # [wasm_bindgen (structural , method , getter , js_class = "ServiceWorkerGlobalScope" , js_name = onnotificationclick)] #[doc = "Getter for the `onnotificationclick` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/onnotificationclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerGlobalScope`*"] pub fn onnotificationclick(this: &ServiceWorkerGlobalScope) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "ServiceWorkerGlobalScope" , js_name = onnotificationclick)] #[doc = "Setter for the `onnotificationclick` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/onnotificationclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerGlobalScope`*"] pub fn set_onnotificationclick( this: &ServiceWorkerGlobalScope, value: Option<&::js_sys::Function>, ); # [wasm_bindgen (structural , method , getter , js_class = "ServiceWorkerGlobalScope" , js_name = onnotificationclose)] #[doc = "Getter for the `onnotificationclose` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/onnotificationclose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerGlobalScope`*"] pub fn onnotificationclose(this: &ServiceWorkerGlobalScope) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "ServiceWorkerGlobalScope" , js_name = onnotificationclose)] #[doc = "Setter for the `onnotificationclose` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/onnotificationclose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerGlobalScope`*"] pub fn set_onnotificationclose( this: &ServiceWorkerGlobalScope, value: Option<&::js_sys::Function>, ); # [wasm_bindgen (catch , method , structural , js_class = "ServiceWorkerGlobalScope" , js_name = skipWaiting)] #[doc = "The `skipWaiting()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/skipWaiting)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerGlobalScope`*"] pub fn skip_waiting(this: &ServiceWorkerGlobalScope) -> Result<::js_sys::Promise, JsValue>; } web-sys-0.3.55/src/features/gen_ServiceWorkerRegistration.rs000064400000000000000000000210520072674642500223300ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = ServiceWorkerRegistration , typescript_type = "ServiceWorkerRegistration")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ServiceWorkerRegistration` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerRegistration`*"] pub type ServiceWorkerRegistration; #[cfg(feature = "ServiceWorker")] # [wasm_bindgen (structural , method , getter , js_class = "ServiceWorkerRegistration" , js_name = installing)] #[doc = "Getter for the `installing` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/installing)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorker`, `ServiceWorkerRegistration`*"] pub fn installing(this: &ServiceWorkerRegistration) -> Option; #[cfg(feature = "ServiceWorker")] # [wasm_bindgen (structural , method , getter , js_class = "ServiceWorkerRegistration" , js_name = waiting)] #[doc = "Getter for the `waiting` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/waiting)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorker`, `ServiceWorkerRegistration`*"] pub fn waiting(this: &ServiceWorkerRegistration) -> Option; #[cfg(feature = "ServiceWorker")] # [wasm_bindgen (structural , method , getter , js_class = "ServiceWorkerRegistration" , js_name = active)] #[doc = "Getter for the `active` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/active)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorker`, `ServiceWorkerRegistration`*"] pub fn active(this: &ServiceWorkerRegistration) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "ServiceWorkerRegistration" , js_name = scope)] #[doc = "Getter for the `scope` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/scope)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerRegistration`*"] pub fn scope(this: &ServiceWorkerRegistration) -> String; #[cfg(feature = "ServiceWorkerUpdateViaCache")] # [wasm_bindgen (structural , catch , method , getter , js_class = "ServiceWorkerRegistration" , js_name = updateViaCache)] #[doc = "Getter for the `updateViaCache` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/updateViaCache)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerRegistration`, `ServiceWorkerUpdateViaCache`*"] pub fn update_via_cache( this: &ServiceWorkerRegistration, ) -> Result; # [wasm_bindgen (structural , method , getter , js_class = "ServiceWorkerRegistration" , js_name = onupdatefound)] #[doc = "Getter for the `onupdatefound` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/onupdatefound)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerRegistration`*"] pub fn onupdatefound(this: &ServiceWorkerRegistration) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "ServiceWorkerRegistration" , js_name = onupdatefound)] #[doc = "Setter for the `onupdatefound` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/onupdatefound)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerRegistration`*"] pub fn set_onupdatefound(this: &ServiceWorkerRegistration, value: Option<&::js_sys::Function>); #[cfg(feature = "PushManager")] # [wasm_bindgen (structural , catch , method , getter , js_class = "ServiceWorkerRegistration" , js_name = pushManager)] #[doc = "Getter for the `pushManager` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/pushManager)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushManager`, `ServiceWorkerRegistration`*"] pub fn push_manager(this: &ServiceWorkerRegistration) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "ServiceWorkerRegistration" , js_name = getNotifications)] #[doc = "The `getNotifications()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/getNotifications)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerRegistration`*"] pub fn get_notifications( this: &ServiceWorkerRegistration, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "GetNotificationOptions")] # [wasm_bindgen (catch , method , structural , js_class = "ServiceWorkerRegistration" , js_name = getNotifications)] #[doc = "The `getNotifications()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/getNotifications)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GetNotificationOptions`, `ServiceWorkerRegistration`*"] pub fn get_notifications_with_filter( this: &ServiceWorkerRegistration, filter: &GetNotificationOptions, ) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "ServiceWorkerRegistration" , js_name = showNotification)] #[doc = "The `showNotification()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/showNotification)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerRegistration`*"] pub fn show_notification( this: &ServiceWorkerRegistration, title: &str, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "NotificationOptions")] # [wasm_bindgen (catch , method , structural , js_class = "ServiceWorkerRegistration" , js_name = showNotification)] #[doc = "The `showNotification()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/showNotification)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`, `ServiceWorkerRegistration`*"] pub fn show_notification_with_options( this: &ServiceWorkerRegistration, title: &str, options: &NotificationOptions, ) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "ServiceWorkerRegistration" , js_name = unregister)] #[doc = "The `unregister()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/unregister)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerRegistration`*"] pub fn unregister(this: &ServiceWorkerRegistration) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "ServiceWorkerRegistration" , js_name = update)] #[doc = "The `update()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/update)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerRegistration`*"] pub fn update(this: &ServiceWorkerRegistration) -> Result<::js_sys::Promise, JsValue>; } web-sys-0.3.55/src/features/gen_ServiceWorkerState.rs000064400000000000000000000007310072674642500207370ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `ServiceWorkerState` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerState`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum ServiceWorkerState { Parsed = "parsed", Installing = "installing", Installed = "installed", Activating = "activating", Activated = "activated", Redundant = "redundant", } web-sys-0.3.55/src/features/gen_ServiceWorkerUpdateViaCache.rs000064400000000000000000000006050072674642500224650ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `ServiceWorkerUpdateViaCache` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerUpdateViaCache`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum ServiceWorkerUpdateViaCache { Imports = "imports", All = "all", None = "none", } web-sys-0.3.55/src/features/gen_ShadowRoot.rs000064400000000000000000000171540072674642500172440ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = DocumentFragment , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = ShadowRoot , typescript_type = "ShadowRoot")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ShadowRoot` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ShadowRoot`*"] pub type ShadowRoot; #[cfg(feature = "ShadowRootMode")] # [wasm_bindgen (structural , method , getter , js_class = "ShadowRoot" , js_name = mode)] #[doc = "Getter for the `mode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/mode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ShadowRoot`, `ShadowRootMode`*"] pub fn mode(this: &ShadowRoot) -> ShadowRootMode; #[cfg(feature = "Element")] # [wasm_bindgen (structural , method , getter , js_class = "ShadowRoot" , js_name = host)] #[doc = "Getter for the `host` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/host)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `ShadowRoot`*"] pub fn host(this: &ShadowRoot) -> Element; # [wasm_bindgen (structural , method , getter , js_class = "ShadowRoot" , js_name = innerHTML)] #[doc = "Getter for the `innerHTML` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/innerHTML)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ShadowRoot`*"] pub fn inner_html(this: &ShadowRoot) -> String; # [wasm_bindgen (structural , method , setter , js_class = "ShadowRoot" , js_name = innerHTML)] #[doc = "Setter for the `innerHTML` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/innerHTML)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ShadowRoot`*"] pub fn set_inner_html(this: &ShadowRoot, value: &str); #[cfg(feature = "Element")] # [wasm_bindgen (structural , method , getter , js_class = "ShadowRoot" , js_name = activeElement)] #[doc = "Getter for the `activeElement` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/activeElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `ShadowRoot`*"] pub fn active_element(this: &ShadowRoot) -> Option; #[cfg(feature = "StyleSheetList")] # [wasm_bindgen (structural , method , getter , js_class = "ShadowRoot" , js_name = styleSheets)] #[doc = "Getter for the `styleSheets` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/styleSheets)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ShadowRoot`, `StyleSheetList`*"] pub fn style_sheets(this: &ShadowRoot) -> StyleSheetList; #[cfg(feature = "Element")] # [wasm_bindgen (structural , method , getter , js_class = "ShadowRoot" , js_name = pointerLockElement)] #[doc = "Getter for the `pointerLockElement` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/pointerLockElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `ShadowRoot`*"] pub fn pointer_lock_element(this: &ShadowRoot) -> Option; #[cfg(feature = "Element")] # [wasm_bindgen (structural , method , getter , js_class = "ShadowRoot" , js_name = fullscreenElement)] #[doc = "Getter for the `fullscreenElement` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/fullscreenElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `ShadowRoot`*"] pub fn fullscreen_element(this: &ShadowRoot) -> Option; #[cfg(feature = "Element")] # [wasm_bindgen (method , structural , js_class = "ShadowRoot" , js_name = getElementById)] #[doc = "The `getElementById()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/getElementById)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `ShadowRoot`*"] pub fn get_element_by_id(this: &ShadowRoot, element_id: &str) -> Option; #[cfg(feature = "HtmlCollection")] # [wasm_bindgen (method , structural , js_class = "ShadowRoot" , js_name = getElementsByClassName)] #[doc = "The `getElementsByClassName()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/getElementsByClassName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`, `ShadowRoot`*"] pub fn get_elements_by_class_name(this: &ShadowRoot, class_names: &str) -> HtmlCollection; #[cfg(feature = "HtmlCollection")] # [wasm_bindgen (method , structural , js_class = "ShadowRoot" , js_name = getElementsByTagName)] #[doc = "The `getElementsByTagName()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/getElementsByTagName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`, `ShadowRoot`*"] pub fn get_elements_by_tag_name(this: &ShadowRoot, local_name: &str) -> HtmlCollection; #[cfg(feature = "HtmlCollection")] # [wasm_bindgen (method , structural , js_class = "ShadowRoot" , js_name = getElementsByTagNameNS)] #[doc = "The `getElementsByTagNameNS()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/getElementsByTagNameNS)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`, `ShadowRoot`*"] pub fn get_elements_by_tag_name_ns( this: &ShadowRoot, namespace: Option<&str>, local_name: &str, ) -> HtmlCollection; #[cfg(feature = "Element")] # [wasm_bindgen (method , structural , js_class = "ShadowRoot" , js_name = elementFromPoint)] #[doc = "The `elementFromPoint()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/elementFromPoint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `ShadowRoot`*"] pub fn element_from_point(this: &ShadowRoot, x: f32, y: f32) -> Option; # [wasm_bindgen (method , structural , js_class = "ShadowRoot" , js_name = elementsFromPoint)] #[doc = "The `elementsFromPoint()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/elementsFromPoint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ShadowRoot`*"] pub fn elements_from_point(this: &ShadowRoot, x: f32, y: f32) -> ::js_sys::Array; } web-sys-0.3.55/src/features/gen_ShadowRootInit.rs000064400000000000000000000026720072674642500200670ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ShadowRootInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ShadowRootInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ShadowRootInit`*"] pub type ShadowRootInit; } impl ShadowRootInit { #[cfg(feature = "ShadowRootMode")] #[doc = "Construct a new `ShadowRootInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ShadowRootInit`, `ShadowRootMode`*"] pub fn new(mode: ShadowRootMode) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.mode(mode); ret } #[cfg(feature = "ShadowRootMode")] #[doc = "Change the `mode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ShadowRootInit`, `ShadowRootMode`*"] pub fn mode(&mut self, val: ShadowRootMode) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("mode"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_ShadowRootMode.rs000064400000000000000000000005130072674642500200400ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `ShadowRootMode` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ShadowRootMode`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum ShadowRootMode { Open = "open", Closed = "closed", } web-sys-0.3.55/src/features/gen_SharedWorker.rs000064400000000000000000000067620072674642500175560ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = SharedWorker , typescript_type = "SharedWorker")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SharedWorker` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SharedWorker)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SharedWorker`*"] pub type SharedWorker; #[cfg(feature = "MessagePort")] # [wasm_bindgen (structural , method , getter , js_class = "SharedWorker" , js_name = port)] #[doc = "Getter for the `port` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SharedWorker/port)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessagePort`, `SharedWorker`*"] pub fn port(this: &SharedWorker) -> MessagePort; # [wasm_bindgen (structural , method , getter , js_class = "SharedWorker" , js_name = onerror)] #[doc = "Getter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SharedWorker/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SharedWorker`*"] pub fn onerror(this: &SharedWorker) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SharedWorker" , js_name = onerror)] #[doc = "Setter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SharedWorker/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SharedWorker`*"] pub fn set_onerror(this: &SharedWorker, value: Option<&::js_sys::Function>); #[wasm_bindgen(catch, constructor, js_class = "SharedWorker")] #[doc = "The `new SharedWorker(..)` constructor, creating a new instance of `SharedWorker`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SharedWorker/SharedWorker)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SharedWorker`*"] pub fn new(script_url: &str) -> Result; #[wasm_bindgen(catch, constructor, js_class = "SharedWorker")] #[doc = "The `new SharedWorker(..)` constructor, creating a new instance of `SharedWorker`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SharedWorker/SharedWorker)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SharedWorker`*"] pub fn new_with_str(script_url: &str, options: &str) -> Result; #[cfg(feature = "WorkerOptions")] #[wasm_bindgen(catch, constructor, js_class = "SharedWorker")] #[doc = "The `new SharedWorker(..)` constructor, creating a new instance of `SharedWorker`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SharedWorker/SharedWorker)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SharedWorker`, `WorkerOptions`*"] pub fn new_with_worker_options( script_url: &str, options: &WorkerOptions, ) -> Result; } web-sys-0.3.55/src/features/gen_SharedWorkerGlobalScope.rs000064400000000000000000000051170072674642500216620ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = WorkerGlobalScope , extends = EventTarget , extends = :: js_sys :: Object , js_name = SharedWorkerGlobalScope , typescript_type = "SharedWorkerGlobalScope")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SharedWorkerGlobalScope` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SharedWorkerGlobalScope)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SharedWorkerGlobalScope`*"] pub type SharedWorkerGlobalScope; # [wasm_bindgen (structural , method , getter , js_class = "SharedWorkerGlobalScope" , js_name = name)] #[doc = "Getter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SharedWorkerGlobalScope/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SharedWorkerGlobalScope`*"] pub fn name(this: &SharedWorkerGlobalScope) -> String; # [wasm_bindgen (structural , method , getter , js_class = "SharedWorkerGlobalScope" , js_name = onconnect)] #[doc = "Getter for the `onconnect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SharedWorkerGlobalScope/onconnect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SharedWorkerGlobalScope`*"] pub fn onconnect(this: &SharedWorkerGlobalScope) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SharedWorkerGlobalScope" , js_name = onconnect)] #[doc = "Setter for the `onconnect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SharedWorkerGlobalScope/onconnect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SharedWorkerGlobalScope`*"] pub fn set_onconnect(this: &SharedWorkerGlobalScope, value: Option<&::js_sys::Function>); # [wasm_bindgen (method , structural , js_class = "SharedWorkerGlobalScope" , js_name = close)] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SharedWorkerGlobalScope/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SharedWorkerGlobalScope`*"] pub fn close(this: &SharedWorkerGlobalScope); } web-sys-0.3.55/src/features/gen_SignResponse.rs000064400000000000000000000073670072674642500175770ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SignResponse)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SignResponse` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SignResponse`*"] pub type SignResponse; } impl SignResponse { #[doc = "Construct a new `SignResponse`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SignResponse`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `clientData` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SignResponse`*"] pub fn client_data(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("clientData"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `errorCode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SignResponse`*"] pub fn error_code(&mut self, val: Option) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("errorCode"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `errorMessage` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SignResponse`*"] pub fn error_message(&mut self, val: Option<&str>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("errorMessage"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `keyHandle` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SignResponse`*"] pub fn key_handle(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("keyHandle"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `signatureData` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SignResponse`*"] pub fn signature_data(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("signatureData"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for SignResponse { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_SocketElement.rs000064400000000000000000000077710072674642500177210ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SocketElement)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SocketElement` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SocketElement`*"] pub type SocketElement; } impl SocketElement { #[doc = "Construct a new `SocketElement`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SocketElement`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `active` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SocketElement`*"] pub fn active(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("active"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `host` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SocketElement`*"] pub fn host(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("host"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `port` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SocketElement`*"] pub fn port(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("port"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `received` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SocketElement`*"] pub fn received(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("received"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `sent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SocketElement`*"] pub fn sent(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("sent"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `tcp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SocketElement`*"] pub fn tcp(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("tcp"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for SocketElement { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_SocketOptions.rs000064400000000000000000000041410072674642500177470ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SocketOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SocketOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SocketOptions`*"] pub type SocketOptions; } impl SocketOptions { #[doc = "Construct a new `SocketOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SocketOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(feature = "TcpSocketBinaryType")] #[doc = "Change the `binaryType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SocketOptions`, `TcpSocketBinaryType`*"] pub fn binary_type(&mut self, val: TcpSocketBinaryType) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("binaryType"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `useSecureTransport` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SocketOptions`*"] pub fn use_secure_transport(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("useSecureTransport"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for SocketOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_SocketReadyState.rs000064400000000000000000000006420072674642500203630ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `SocketReadyState` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SocketReadyState`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum SocketReadyState { Opening = "opening", Open = "open", Closing = "closing", Closed = "closed", Halfclosed = "halfclosed", } web-sys-0.3.55/src/features/gen_SocketsDict.rs000064400000000000000000000047610072674642500173720ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SocketsDict)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SocketsDict` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SocketsDict`*"] pub type SocketsDict; } impl SocketsDict { #[doc = "Construct a new `SocketsDict`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SocketsDict`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `received` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SocketsDict`*"] pub fn received(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("received"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `sent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SocketsDict`*"] pub fn sent(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("sent"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `sockets` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SocketsDict`*"] pub fn sockets(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("sockets"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for SocketsDict { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_SourceBuffer.rs000064400000000000000000000360730072674642500175460ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = SourceBuffer , typescript_type = "SourceBuffer")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SourceBuffer` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] pub type SourceBuffer; #[cfg(feature = "SourceBufferAppendMode")] # [wasm_bindgen (structural , method , getter , js_class = "SourceBuffer" , js_name = mode)] #[doc = "Getter for the `mode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/mode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`, `SourceBufferAppendMode`*"] pub fn mode(this: &SourceBuffer) -> SourceBufferAppendMode; #[cfg(feature = "SourceBufferAppendMode")] # [wasm_bindgen (structural , method , setter , js_class = "SourceBuffer" , js_name = mode)] #[doc = "Setter for the `mode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/mode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`, `SourceBufferAppendMode`*"] pub fn set_mode(this: &SourceBuffer, value: SourceBufferAppendMode); # [wasm_bindgen (structural , method , getter , js_class = "SourceBuffer" , js_name = updating)] #[doc = "Getter for the `updating` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/updating)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] pub fn updating(this: &SourceBuffer) -> bool; #[cfg(feature = "TimeRanges")] # [wasm_bindgen (structural , catch , method , getter , js_class = "SourceBuffer" , js_name = buffered)] #[doc = "Getter for the `buffered` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/buffered)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`, `TimeRanges`*"] pub fn buffered(this: &SourceBuffer) -> Result; # [wasm_bindgen (structural , method , getter , js_class = "SourceBuffer" , js_name = timestampOffset)] #[doc = "Getter for the `timestampOffset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/timestampOffset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] pub fn timestamp_offset(this: &SourceBuffer) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "SourceBuffer" , js_name = timestampOffset)] #[doc = "Setter for the `timestampOffset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/timestampOffset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] pub fn set_timestamp_offset(this: &SourceBuffer, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "SourceBuffer" , js_name = appendWindowStart)] #[doc = "Getter for the `appendWindowStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendWindowStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] pub fn append_window_start(this: &SourceBuffer) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "SourceBuffer" , js_name = appendWindowStart)] #[doc = "Setter for the `appendWindowStart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendWindowStart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] pub fn set_append_window_start(this: &SourceBuffer, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "SourceBuffer" , js_name = appendWindowEnd)] #[doc = "Getter for the `appendWindowEnd` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendWindowEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] pub fn append_window_end(this: &SourceBuffer) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "SourceBuffer" , js_name = appendWindowEnd)] #[doc = "Setter for the `appendWindowEnd` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendWindowEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] pub fn set_append_window_end(this: &SourceBuffer, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "SourceBuffer" , js_name = onupdatestart)] #[doc = "Getter for the `onupdatestart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/onupdatestart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] pub fn onupdatestart(this: &SourceBuffer) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SourceBuffer" , js_name = onupdatestart)] #[doc = "Setter for the `onupdatestart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/onupdatestart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] pub fn set_onupdatestart(this: &SourceBuffer, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SourceBuffer" , js_name = onupdate)] #[doc = "Getter for the `onupdate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/onupdate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] pub fn onupdate(this: &SourceBuffer) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SourceBuffer" , js_name = onupdate)] #[doc = "Setter for the `onupdate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/onupdate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] pub fn set_onupdate(this: &SourceBuffer, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SourceBuffer" , js_name = onupdateend)] #[doc = "Getter for the `onupdateend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/onupdateend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] pub fn onupdateend(this: &SourceBuffer) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SourceBuffer" , js_name = onupdateend)] #[doc = "Setter for the `onupdateend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/onupdateend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] pub fn set_onupdateend(this: &SourceBuffer, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SourceBuffer" , js_name = onerror)] #[doc = "Getter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] pub fn onerror(this: &SourceBuffer) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SourceBuffer" , js_name = onerror)] #[doc = "Setter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] pub fn set_onerror(this: &SourceBuffer, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SourceBuffer" , js_name = onabort)] #[doc = "Getter for the `onabort` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/onabort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] pub fn onabort(this: &SourceBuffer) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SourceBuffer" , js_name = onabort)] #[doc = "Setter for the `onabort` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/onabort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] pub fn set_onabort(this: &SourceBuffer, value: Option<&::js_sys::Function>); # [wasm_bindgen (catch , method , structural , js_class = "SourceBuffer" , js_name = abort)] #[doc = "The `abort()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/abort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] pub fn abort(this: &SourceBuffer) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "SourceBuffer" , js_name = appendBuffer)] #[doc = "The `appendBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] pub fn append_buffer_with_array_buffer( this: &SourceBuffer, data: &::js_sys::ArrayBuffer, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "SourceBuffer" , js_name = appendBuffer)] #[doc = "The `appendBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] pub fn append_buffer_with_array_buffer_view( this: &SourceBuffer, data: &::js_sys::Object, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "SourceBuffer" , js_name = appendBuffer)] #[doc = "The `appendBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] pub fn append_buffer_with_u8_array(this: &SourceBuffer, data: &mut [u8]) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "SourceBuffer" , js_name = appendBufferAsync)] #[doc = "The `appendBufferAsync()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendBufferAsync)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] pub fn append_buffer_async_with_array_buffer( this: &SourceBuffer, data: &::js_sys::ArrayBuffer, ) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "SourceBuffer" , js_name = appendBufferAsync)] #[doc = "The `appendBufferAsync()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendBufferAsync)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] pub fn append_buffer_async_with_array_buffer_view( this: &SourceBuffer, data: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "SourceBuffer" , js_name = appendBufferAsync)] #[doc = "The `appendBufferAsync()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendBufferAsync)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] pub fn append_buffer_async_with_u8_array( this: &SourceBuffer, data: &mut [u8], ) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "SourceBuffer" , js_name = changeType)] #[doc = "The `changeType()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/changeType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] pub fn change_type(this: &SourceBuffer, type_: &str) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "SourceBuffer" , js_name = remove)] #[doc = "The `remove()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/remove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] pub fn remove(this: &SourceBuffer, start: f64, end: f64) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "SourceBuffer" , js_name = removeAsync)] #[doc = "The `removeAsync()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/removeAsync)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] pub fn remove_async( this: &SourceBuffer, start: f64, end: f64, ) -> Result<::js_sys::Promise, JsValue>; } web-sys-0.3.55/src/features/gen_SourceBufferAppendMode.rs000064400000000000000000000005570072674642500215010ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `SourceBufferAppendMode` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBufferAppendMode`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum SourceBufferAppendMode { Segments = "segments", Sequence = "sequence", } web-sys-0.3.55/src/features/gen_SourceBufferList.rs000064400000000000000000000070050072674642500203730ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = SourceBufferList , typescript_type = "SourceBufferList")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SourceBufferList` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBufferList)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBufferList`*"] pub type SourceBufferList; # [wasm_bindgen (structural , method , getter , js_class = "SourceBufferList" , js_name = length)] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBufferList/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBufferList`*"] pub fn length(this: &SourceBufferList) -> u32; # [wasm_bindgen (structural , method , getter , js_class = "SourceBufferList" , js_name = onaddsourcebuffer)] #[doc = "Getter for the `onaddsourcebuffer` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBufferList/onaddsourcebuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBufferList`*"] pub fn onaddsourcebuffer(this: &SourceBufferList) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SourceBufferList" , js_name = onaddsourcebuffer)] #[doc = "Setter for the `onaddsourcebuffer` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBufferList/onaddsourcebuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBufferList`*"] pub fn set_onaddsourcebuffer(this: &SourceBufferList, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SourceBufferList" , js_name = onremovesourcebuffer)] #[doc = "Getter for the `onremovesourcebuffer` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBufferList/onremovesourcebuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBufferList`*"] pub fn onremovesourcebuffer(this: &SourceBufferList) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SourceBufferList" , js_name = onremovesourcebuffer)] #[doc = "Setter for the `onremovesourcebuffer` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBufferList/onremovesourcebuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBufferList`*"] pub fn set_onremovesourcebuffer(this: &SourceBufferList, value: Option<&::js_sys::Function>); #[cfg(feature = "SourceBuffer")] #[wasm_bindgen(method, structural, js_class = "SourceBufferList", indexing_getter)] #[doc = "Indexing getter."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`, `SourceBufferList`*"] pub fn get(this: &SourceBufferList, index: u32) -> Option; } web-sys-0.3.55/src/features/gen_SpeechGrammar.rs000064400000000000000000000055310072674642500176650ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SpeechGrammar , typescript_type = "SpeechGrammar")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SpeechGrammar` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammar)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechGrammar`*"] pub type SpeechGrammar; # [wasm_bindgen (structural , catch , method , getter , js_class = "SpeechGrammar" , js_name = src)] #[doc = "Getter for the `src` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammar/src)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechGrammar`*"] pub fn src(this: &SpeechGrammar) -> Result; # [wasm_bindgen (structural , catch , method , setter , js_class = "SpeechGrammar" , js_name = src)] #[doc = "Setter for the `src` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammar/src)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechGrammar`*"] pub fn set_src(this: &SpeechGrammar, value: &str) -> Result<(), JsValue>; # [wasm_bindgen (structural , catch , method , getter , js_class = "SpeechGrammar" , js_name = weight)] #[doc = "Getter for the `weight` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammar/weight)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechGrammar`*"] pub fn weight(this: &SpeechGrammar) -> Result; # [wasm_bindgen (structural , catch , method , setter , js_class = "SpeechGrammar" , js_name = weight)] #[doc = "Setter for the `weight` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammar/weight)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechGrammar`*"] pub fn set_weight(this: &SpeechGrammar, value: f32) -> Result<(), JsValue>; #[wasm_bindgen(catch, constructor, js_class = "SpeechGrammar")] #[doc = "The `new SpeechGrammar(..)` constructor, creating a new instance of `SpeechGrammar`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammar/SpeechGrammar)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechGrammar`*"] pub fn new() -> Result; } web-sys-0.3.55/src/features/gen_SpeechGrammarList.rs000064400000000000000000000107510072674642500205210ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SpeechGrammarList , typescript_type = "SpeechGrammarList")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SpeechGrammarList` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammarList)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechGrammarList`*"] pub type SpeechGrammarList; # [wasm_bindgen (structural , method , getter , js_class = "SpeechGrammarList" , js_name = length)] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammarList/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechGrammarList`*"] pub fn length(this: &SpeechGrammarList) -> u32; #[wasm_bindgen(catch, constructor, js_class = "SpeechGrammarList")] #[doc = "The `new SpeechGrammarList(..)` constructor, creating a new instance of `SpeechGrammarList`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammarList/SpeechGrammarList)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechGrammarList`*"] pub fn new() -> Result; # [wasm_bindgen (catch , method , structural , js_class = "SpeechGrammarList" , js_name = addFromString)] #[doc = "The `addFromString()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammarList/addFromString)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechGrammarList`*"] pub fn add_from_string(this: &SpeechGrammarList, string: &str) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "SpeechGrammarList" , js_name = addFromString)] #[doc = "The `addFromString()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammarList/addFromString)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechGrammarList`*"] pub fn add_from_string_with_weight( this: &SpeechGrammarList, string: &str, weight: f32, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "SpeechGrammarList" , js_name = addFromURI)] #[doc = "The `addFromURI()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammarList/addFromURI)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechGrammarList`*"] pub fn add_from_uri(this: &SpeechGrammarList, src: &str) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "SpeechGrammarList" , js_name = addFromURI)] #[doc = "The `addFromURI()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammarList/addFromURI)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechGrammarList`*"] pub fn add_from_uri_with_weight( this: &SpeechGrammarList, src: &str, weight: f32, ) -> Result<(), JsValue>; #[cfg(feature = "SpeechGrammar")] # [wasm_bindgen (catch , method , structural , js_class = "SpeechGrammarList" , js_name = item)] #[doc = "The `item()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammarList/item)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechGrammar`, `SpeechGrammarList`*"] pub fn item(this: &SpeechGrammarList, index: u32) -> Result; #[cfg(feature = "SpeechGrammar")] #[wasm_bindgen( catch, method, structural, js_class = "SpeechGrammarList", indexing_getter )] #[doc = "Indexing getter."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechGrammar`, `SpeechGrammarList`*"] pub fn get(this: &SpeechGrammarList, index: u32) -> Result; } web-sys-0.3.55/src/features/gen_SpeechRecognition.rs000064400000000000000000000470550072674642500205660ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = SpeechRecognition , typescript_type = "SpeechRecognition")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SpeechRecognition` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub type SpeechRecognition; #[cfg(feature = "SpeechGrammarList")] # [wasm_bindgen (structural , method , getter , js_class = "SpeechRecognition" , js_name = grammars)] #[doc = "Getter for the `grammars` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/grammars)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechGrammarList`, `SpeechRecognition`*"] pub fn grammars(this: &SpeechRecognition) -> SpeechGrammarList; #[cfg(feature = "SpeechGrammarList")] # [wasm_bindgen (structural , method , setter , js_class = "SpeechRecognition" , js_name = grammars)] #[doc = "Setter for the `grammars` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/grammars)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechGrammarList`, `SpeechRecognition`*"] pub fn set_grammars(this: &SpeechRecognition, value: &SpeechGrammarList); # [wasm_bindgen (structural , method , getter , js_class = "SpeechRecognition" , js_name = lang)] #[doc = "Getter for the `lang` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/lang)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn lang(this: &SpeechRecognition) -> String; # [wasm_bindgen (structural , method , setter , js_class = "SpeechRecognition" , js_name = lang)] #[doc = "Setter for the `lang` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/lang)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn set_lang(this: &SpeechRecognition, value: &str); # [wasm_bindgen (structural , catch , method , getter , js_class = "SpeechRecognition" , js_name = continuous)] #[doc = "Getter for the `continuous` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/continuous)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn continuous(this: &SpeechRecognition) -> Result; # [wasm_bindgen (structural , catch , method , setter , js_class = "SpeechRecognition" , js_name = continuous)] #[doc = "Setter for the `continuous` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/continuous)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn set_continuous(this: &SpeechRecognition, value: bool) -> Result<(), JsValue>; # [wasm_bindgen (structural , method , getter , js_class = "SpeechRecognition" , js_name = interimResults)] #[doc = "Getter for the `interimResults` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/interimResults)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn interim_results(this: &SpeechRecognition) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "SpeechRecognition" , js_name = interimResults)] #[doc = "Setter for the `interimResults` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/interimResults)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn set_interim_results(this: &SpeechRecognition, value: bool); # [wasm_bindgen (structural , method , getter , js_class = "SpeechRecognition" , js_name = maxAlternatives)] #[doc = "Getter for the `maxAlternatives` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/maxAlternatives)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn max_alternatives(this: &SpeechRecognition) -> u32; # [wasm_bindgen (structural , method , setter , js_class = "SpeechRecognition" , js_name = maxAlternatives)] #[doc = "Setter for the `maxAlternatives` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/maxAlternatives)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn set_max_alternatives(this: &SpeechRecognition, value: u32); # [wasm_bindgen (structural , catch , method , getter , js_class = "SpeechRecognition" , js_name = serviceURI)] #[doc = "Getter for the `serviceURI` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/serviceURI)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn service_uri(this: &SpeechRecognition) -> Result; # [wasm_bindgen (structural , catch , method , setter , js_class = "SpeechRecognition" , js_name = serviceURI)] #[doc = "Setter for the `serviceURI` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/serviceURI)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn set_service_uri(this: &SpeechRecognition, value: &str) -> Result<(), JsValue>; # [wasm_bindgen (structural , method , getter , js_class = "SpeechRecognition" , js_name = onaudiostart)] #[doc = "Getter for the `onaudiostart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onaudiostart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn onaudiostart(this: &SpeechRecognition) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SpeechRecognition" , js_name = onaudiostart)] #[doc = "Setter for the `onaudiostart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onaudiostart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn set_onaudiostart(this: &SpeechRecognition, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SpeechRecognition" , js_name = onsoundstart)] #[doc = "Getter for the `onsoundstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onsoundstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn onsoundstart(this: &SpeechRecognition) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SpeechRecognition" , js_name = onsoundstart)] #[doc = "Setter for the `onsoundstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onsoundstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn set_onsoundstart(this: &SpeechRecognition, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SpeechRecognition" , js_name = onspeechstart)] #[doc = "Getter for the `onspeechstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onspeechstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn onspeechstart(this: &SpeechRecognition) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SpeechRecognition" , js_name = onspeechstart)] #[doc = "Setter for the `onspeechstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onspeechstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn set_onspeechstart(this: &SpeechRecognition, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SpeechRecognition" , js_name = onspeechend)] #[doc = "Getter for the `onspeechend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onspeechend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn onspeechend(this: &SpeechRecognition) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SpeechRecognition" , js_name = onspeechend)] #[doc = "Setter for the `onspeechend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onspeechend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn set_onspeechend(this: &SpeechRecognition, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SpeechRecognition" , js_name = onsoundend)] #[doc = "Getter for the `onsoundend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onsoundend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn onsoundend(this: &SpeechRecognition) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SpeechRecognition" , js_name = onsoundend)] #[doc = "Setter for the `onsoundend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onsoundend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn set_onsoundend(this: &SpeechRecognition, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SpeechRecognition" , js_name = onaudioend)] #[doc = "Getter for the `onaudioend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onaudioend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn onaudioend(this: &SpeechRecognition) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SpeechRecognition" , js_name = onaudioend)] #[doc = "Setter for the `onaudioend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onaudioend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn set_onaudioend(this: &SpeechRecognition, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SpeechRecognition" , js_name = onresult)] #[doc = "Getter for the `onresult` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onresult)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn onresult(this: &SpeechRecognition) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SpeechRecognition" , js_name = onresult)] #[doc = "Setter for the `onresult` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onresult)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn set_onresult(this: &SpeechRecognition, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SpeechRecognition" , js_name = onnomatch)] #[doc = "Getter for the `onnomatch` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onnomatch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn onnomatch(this: &SpeechRecognition) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SpeechRecognition" , js_name = onnomatch)] #[doc = "Setter for the `onnomatch` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onnomatch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn set_onnomatch(this: &SpeechRecognition, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SpeechRecognition" , js_name = onerror)] #[doc = "Getter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn onerror(this: &SpeechRecognition) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SpeechRecognition" , js_name = onerror)] #[doc = "Setter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn set_onerror(this: &SpeechRecognition, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SpeechRecognition" , js_name = onstart)] #[doc = "Getter for the `onstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn onstart(this: &SpeechRecognition) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SpeechRecognition" , js_name = onstart)] #[doc = "Setter for the `onstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn set_onstart(this: &SpeechRecognition, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SpeechRecognition" , js_name = onend)] #[doc = "Getter for the `onend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn onend(this: &SpeechRecognition) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SpeechRecognition" , js_name = onend)] #[doc = "Setter for the `onend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn set_onend(this: &SpeechRecognition, value: Option<&::js_sys::Function>); #[wasm_bindgen(catch, constructor, js_class = "SpeechRecognition")] #[doc = "The `new SpeechRecognition(..)` constructor, creating a new instance of `SpeechRecognition`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/SpeechRecognition)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn new() -> Result; # [wasm_bindgen (method , structural , js_class = "SpeechRecognition" , js_name = abort)] #[doc = "The `abort()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/abort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn abort(this: &SpeechRecognition); # [wasm_bindgen (catch , method , structural , js_class = "SpeechRecognition" , js_name = start)] #[doc = "The `start()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/start)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn start(this: &SpeechRecognition) -> Result<(), JsValue>; #[cfg(feature = "MediaStream")] # [wasm_bindgen (catch , method , structural , js_class = "SpeechRecognition" , js_name = start)] #[doc = "The `start()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/start)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`, `SpeechRecognition`*"] pub fn start_with_stream(this: &SpeechRecognition, stream: &MediaStream) -> Result<(), JsValue>; # [wasm_bindgen (method , structural , js_class = "SpeechRecognition" , js_name = stop)] #[doc = "The `stop()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/stop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] pub fn stop(this: &SpeechRecognition); } web-sys-0.3.55/src/features/gen_SpeechRecognitionAlternative.rs000064400000000000000000000032320072674642500227520ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SpeechRecognitionAlternative , typescript_type = "SpeechRecognitionAlternative")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SpeechRecognitionAlternative` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionAlternative)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionAlternative`*"] pub type SpeechRecognitionAlternative; # [wasm_bindgen (structural , method , getter , js_class = "SpeechRecognitionAlternative" , js_name = transcript)] #[doc = "Getter for the `transcript` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionAlternative/transcript)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionAlternative`*"] pub fn transcript(this: &SpeechRecognitionAlternative) -> String; # [wasm_bindgen (structural , method , getter , js_class = "SpeechRecognitionAlternative" , js_name = confidence)] #[doc = "Getter for the `confidence` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionAlternative/confidence)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionAlternative`*"] pub fn confidence(this: &SpeechRecognitionAlternative) -> f32; } web-sys-0.3.55/src/features/gen_SpeechRecognitionError.rs000064400000000000000000000056030072674642500215710ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = SpeechRecognitionError , typescript_type = "SpeechRecognitionError")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SpeechRecognitionError` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionError)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionError`*"] pub type SpeechRecognitionError; #[cfg(feature = "SpeechRecognitionErrorCode")] # [wasm_bindgen (structural , method , getter , js_class = "SpeechRecognitionError" , js_name = error)] #[doc = "Getter for the `error` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionError/error)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionError`, `SpeechRecognitionErrorCode`*"] pub fn error(this: &SpeechRecognitionError) -> SpeechRecognitionErrorCode; # [wasm_bindgen (structural , method , getter , js_class = "SpeechRecognitionError" , js_name = message)] #[doc = "Getter for the `message` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionError/message)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionError`*"] pub fn message(this: &SpeechRecognitionError) -> Option; #[wasm_bindgen(catch, constructor, js_class = "SpeechRecognitionError")] #[doc = "The `new SpeechRecognitionError(..)` constructor, creating a new instance of `SpeechRecognitionError`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionError/SpeechRecognitionError)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionError`*"] pub fn new(type_: &str) -> Result; #[cfg(feature = "SpeechRecognitionErrorInit")] #[wasm_bindgen(catch, constructor, js_class = "SpeechRecognitionError")] #[doc = "The `new SpeechRecognitionError(..)` constructor, creating a new instance of `SpeechRecognitionError`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionError/SpeechRecognitionError)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionError`, `SpeechRecognitionErrorInit`*"] pub fn new_with_event_init_dict( type_: &str, event_init_dict: &SpeechRecognitionErrorInit, ) -> Result; } web-sys-0.3.55/src/features/gen_SpeechRecognitionErrorCode.rs000064400000000000000000000011330072674642500223560ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `SpeechRecognitionErrorCode` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionErrorCode`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum SpeechRecognitionErrorCode { NoSpeech = "no-speech", Aborted = "aborted", AudioCapture = "audio-capture", Network = "network", NotAllowed = "not-allowed", ServiceNotAllowed = "service-not-allowed", BadGrammar = "bad-grammar", LanguageNotSupported = "language-not-supported", } web-sys-0.3.55/src/features/gen_SpeechRecognitionErrorInit.rs000064400000000000000000000076410072674642500224210ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SpeechRecognitionErrorInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SpeechRecognitionErrorInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionErrorInit`*"] pub type SpeechRecognitionErrorInit; } impl SpeechRecognitionErrorInit { #[doc = "Construct a new `SpeechRecognitionErrorInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionErrorInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionErrorInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionErrorInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionErrorInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "SpeechRecognitionErrorCode")] #[doc = "Change the `error` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionErrorCode`, `SpeechRecognitionErrorInit`*"] pub fn error(&mut self, val: SpeechRecognitionErrorCode) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("error"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `message` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionErrorInit`*"] pub fn message(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("message"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for SpeechRecognitionErrorInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_SpeechRecognitionEvent.rs000064400000000000000000000077020072674642500215630ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = SpeechRecognitionEvent , typescript_type = "SpeechRecognitionEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SpeechRecognitionEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionEvent`*"] pub type SpeechRecognitionEvent; # [wasm_bindgen (structural , method , getter , js_class = "SpeechRecognitionEvent" , js_name = resultIndex)] #[doc = "Getter for the `resultIndex` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionEvent/resultIndex)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionEvent`*"] pub fn result_index(this: &SpeechRecognitionEvent) -> u32; #[cfg(feature = "SpeechRecognitionResultList")] # [wasm_bindgen (structural , method , getter , js_class = "SpeechRecognitionEvent" , js_name = results)] #[doc = "Getter for the `results` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionEvent/results)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionEvent`, `SpeechRecognitionResultList`*"] pub fn results(this: &SpeechRecognitionEvent) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "SpeechRecognitionEvent" , js_name = interpretation)] #[doc = "Getter for the `interpretation` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionEvent/interpretation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionEvent`*"] pub fn interpretation(this: &SpeechRecognitionEvent) -> ::wasm_bindgen::JsValue; #[cfg(feature = "Document")] # [wasm_bindgen (structural , method , getter , js_class = "SpeechRecognitionEvent" , js_name = emma)] #[doc = "Getter for the `emma` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionEvent/emma)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `SpeechRecognitionEvent`*"] pub fn emma(this: &SpeechRecognitionEvent) -> Option; #[wasm_bindgen(catch, constructor, js_class = "SpeechRecognitionEvent")] #[doc = "The `new SpeechRecognitionEvent(..)` constructor, creating a new instance of `SpeechRecognitionEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionEvent/SpeechRecognitionEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionEvent`*"] pub fn new(type_: &str) -> Result; #[cfg(feature = "SpeechRecognitionEventInit")] #[wasm_bindgen(catch, constructor, js_class = "SpeechRecognitionEvent")] #[doc = "The `new SpeechRecognitionEvent(..)` constructor, creating a new instance of `SpeechRecognitionEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionEvent/SpeechRecognitionEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionEvent`, `SpeechRecognitionEventInit`*"] pub fn new_with_event_init_dict( type_: &str, event_init_dict: &SpeechRecognitionEventInit, ) -> Result; } web-sys-0.3.55/src/features/gen_SpeechRecognitionEventInit.rs000064400000000000000000000123030072674642500224000ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SpeechRecognitionEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SpeechRecognitionEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionEventInit`*"] pub type SpeechRecognitionEventInit; } impl SpeechRecognitionEventInit { #[doc = "Construct a new `SpeechRecognitionEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "Document")] #[doc = "Change the `emma` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `SpeechRecognitionEventInit`*"] pub fn emma(&mut self, val: Option<&Document>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("emma"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `interpretation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionEventInit`*"] pub fn interpretation(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("interpretation"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `resultIndex` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionEventInit`*"] pub fn result_index(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("resultIndex"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "SpeechRecognitionResultList")] #[doc = "Change the `results` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionEventInit`, `SpeechRecognitionResultList`*"] pub fn results(&mut self, val: Option<&SpeechRecognitionResultList>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("results"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for SpeechRecognitionEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_SpeechRecognitionResult.rs000064400000000000000000000051460072674642500217600ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SpeechRecognitionResult , typescript_type = "SpeechRecognitionResult")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SpeechRecognitionResult` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionResult)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionResult`*"] pub type SpeechRecognitionResult; # [wasm_bindgen (structural , method , getter , js_class = "SpeechRecognitionResult" , js_name = length)] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionResult/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionResult`*"] pub fn length(this: &SpeechRecognitionResult) -> u32; # [wasm_bindgen (structural , method , getter , js_class = "SpeechRecognitionResult" , js_name = isFinal)] #[doc = "Getter for the `isFinal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionResult/isFinal)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionResult`*"] pub fn is_final(this: &SpeechRecognitionResult) -> bool; #[cfg(feature = "SpeechRecognitionAlternative")] # [wasm_bindgen (method , structural , js_class = "SpeechRecognitionResult" , js_name = item)] #[doc = "The `item()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionResult/item)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionAlternative`, `SpeechRecognitionResult`*"] pub fn item(this: &SpeechRecognitionResult, index: u32) -> SpeechRecognitionAlternative; #[cfg(feature = "SpeechRecognitionAlternative")] #[wasm_bindgen( method, structural, js_class = "SpeechRecognitionResult", indexing_getter )] #[doc = "Indexing getter."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionAlternative`, `SpeechRecognitionResult`*"] pub fn get(this: &SpeechRecognitionResult, index: u32) -> Option; } web-sys-0.3.55/src/features/gen_SpeechRecognitionResultList.rs000064400000000000000000000042420072674642500226100ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SpeechRecognitionResultList , typescript_type = "SpeechRecognitionResultList")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SpeechRecognitionResultList` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionResultList)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionResultList`*"] pub type SpeechRecognitionResultList; # [wasm_bindgen (structural , method , getter , js_class = "SpeechRecognitionResultList" , js_name = length)] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionResultList/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionResultList`*"] pub fn length(this: &SpeechRecognitionResultList) -> u32; #[cfg(feature = "SpeechRecognitionResult")] # [wasm_bindgen (method , structural , js_class = "SpeechRecognitionResultList" , js_name = item)] #[doc = "The `item()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionResultList/item)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionResult`, `SpeechRecognitionResultList`*"] pub fn item(this: &SpeechRecognitionResultList, index: u32) -> SpeechRecognitionResult; #[cfg(feature = "SpeechRecognitionResult")] #[wasm_bindgen( method, structural, js_class = "SpeechRecognitionResultList", indexing_getter )] #[doc = "Indexing getter."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionResult`, `SpeechRecognitionResultList`*"] pub fn get(this: &SpeechRecognitionResultList, index: u32) -> Option; } web-sys-0.3.55/src/features/gen_SpeechSynthesis.rs000064400000000000000000000121200072674642500202600ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = SpeechSynthesis , typescript_type = "SpeechSynthesis")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SpeechSynthesis` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesis`*"] pub type SpeechSynthesis; # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesis" , js_name = pending)] #[doc = "Getter for the `pending` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis/pending)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesis`*"] pub fn pending(this: &SpeechSynthesis) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesis" , js_name = speaking)] #[doc = "Getter for the `speaking` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis/speaking)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesis`*"] pub fn speaking(this: &SpeechSynthesis) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesis" , js_name = paused)] #[doc = "Getter for the `paused` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis/paused)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesis`*"] pub fn paused(this: &SpeechSynthesis) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesis" , js_name = onvoiceschanged)] #[doc = "Getter for the `onvoiceschanged` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis/onvoiceschanged)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesis`*"] pub fn onvoiceschanged(this: &SpeechSynthesis) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SpeechSynthesis" , js_name = onvoiceschanged)] #[doc = "Setter for the `onvoiceschanged` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis/onvoiceschanged)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesis`*"] pub fn set_onvoiceschanged(this: &SpeechSynthesis, value: Option<&::js_sys::Function>); # [wasm_bindgen (method , structural , js_class = "SpeechSynthesis" , js_name = cancel)] #[doc = "The `cancel()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis/cancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesis`*"] pub fn cancel(this: &SpeechSynthesis); # [wasm_bindgen (method , structural , js_class = "SpeechSynthesis" , js_name = getVoices)] #[doc = "The `getVoices()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis/getVoices)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesis`*"] pub fn get_voices(this: &SpeechSynthesis) -> ::js_sys::Array; # [wasm_bindgen (method , structural , js_class = "SpeechSynthesis" , js_name = pause)] #[doc = "The `pause()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis/pause)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesis`*"] pub fn pause(this: &SpeechSynthesis); # [wasm_bindgen (method , structural , js_class = "SpeechSynthesis" , js_name = resume)] #[doc = "The `resume()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis/resume)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesis`*"] pub fn resume(this: &SpeechSynthesis); #[cfg(feature = "SpeechSynthesisUtterance")] # [wasm_bindgen (method , structural , js_class = "SpeechSynthesis" , js_name = speak)] #[doc = "The `speak()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis/speak)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesis`, `SpeechSynthesisUtterance`*"] pub fn speak(this: &SpeechSynthesis, utterance: &SpeechSynthesisUtterance); } web-sys-0.3.55/src/features/gen_SpeechSynthesisErrorCode.rs000064400000000000000000000013410072674642500220700ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `SpeechSynthesisErrorCode` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisErrorCode`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum SpeechSynthesisErrorCode { Canceled = "canceled", Interrupted = "interrupted", AudioBusy = "audio-busy", AudioHardware = "audio-hardware", Network = "network", SynthesisUnavailable = "synthesis-unavailable", SynthesisFailed = "synthesis-failed", LanguageUnavailable = "language-unavailable", VoiceUnavailable = "voice-unavailable", TextTooLong = "text-too-long", InvalidArgument = "invalid-argument", } web-sys-0.3.55/src/features/gen_SpeechSynthesisErrorEvent.rs000064400000000000000000000036760072674642500223140ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SpeechSynthesisEvent , extends = Event , extends = :: js_sys :: Object , js_name = SpeechSynthesisErrorEvent , typescript_type = "SpeechSynthesisErrorEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SpeechSynthesisErrorEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisErrorEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisErrorEvent`*"] pub type SpeechSynthesisErrorEvent; #[cfg(feature = "SpeechSynthesisErrorCode")] # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisErrorEvent" , js_name = error)] #[doc = "Getter for the `error` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisErrorEvent/error)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisErrorCode`, `SpeechSynthesisErrorEvent`*"] pub fn error(this: &SpeechSynthesisErrorEvent) -> SpeechSynthesisErrorCode; #[cfg(feature = "SpeechSynthesisErrorEventInit")] #[wasm_bindgen(catch, constructor, js_class = "SpeechSynthesisErrorEvent")] #[doc = "The `new SpeechSynthesisErrorEvent(..)` constructor, creating a new instance of `SpeechSynthesisErrorEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisErrorEvent/SpeechSynthesisErrorEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisErrorEvent`, `SpeechSynthesisErrorEventInit`*"] pub fn new( type_: &str, event_init_dict: &SpeechSynthesisErrorEventInit, ) -> Result; } web-sys-0.3.55/src/features/gen_SpeechSynthesisErrorEventInit.rs000064400000000000000000000150710072674642500231300ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SpeechSynthesisErrorEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SpeechSynthesisErrorEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisErrorEventInit`*"] pub type SpeechSynthesisErrorEventInit; } impl SpeechSynthesisErrorEventInit { #[cfg(all( feature = "SpeechSynthesisErrorCode", feature = "SpeechSynthesisUtterance", ))] #[doc = "Construct a new `SpeechSynthesisErrorEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisErrorCode`, `SpeechSynthesisErrorEventInit`, `SpeechSynthesisUtterance`*"] pub fn new(utterance: &SpeechSynthesisUtterance, error: SpeechSynthesisErrorCode) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.utterance(utterance); ret.error(error); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisErrorEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisErrorEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisErrorEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `charIndex` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisErrorEventInit`*"] pub fn char_index(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("charIndex"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `charLength` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisErrorEventInit`*"] pub fn char_length(&mut self, val: Option) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("charLength"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `elapsedTime` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisErrorEventInit`*"] pub fn elapsed_time(&mut self, val: f32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("elapsedTime"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisErrorEventInit`*"] pub fn name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "SpeechSynthesisUtterance")] #[doc = "Change the `utterance` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisErrorEventInit`, `SpeechSynthesisUtterance`*"] pub fn utterance(&mut self, val: &SpeechSynthesisUtterance) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("utterance"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "SpeechSynthesisErrorCode")] #[doc = "Change the `error` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisErrorCode`, `SpeechSynthesisErrorEventInit`*"] pub fn error(&mut self, val: SpeechSynthesisErrorCode) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("error"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_SpeechSynthesisEvent.rs000064400000000000000000000073470072674642500213010ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = SpeechSynthesisEvent , typescript_type = "SpeechSynthesisEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SpeechSynthesisEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEvent`*"] pub type SpeechSynthesisEvent; #[cfg(feature = "SpeechSynthesisUtterance")] # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisEvent" , js_name = utterance)] #[doc = "Getter for the `utterance` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisEvent/utterance)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEvent`, `SpeechSynthesisUtterance`*"] pub fn utterance(this: &SpeechSynthesisEvent) -> SpeechSynthesisUtterance; # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisEvent" , js_name = charIndex)] #[doc = "Getter for the `charIndex` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisEvent/charIndex)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEvent`*"] pub fn char_index(this: &SpeechSynthesisEvent) -> u32; # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisEvent" , js_name = charLength)] #[doc = "Getter for the `charLength` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisEvent/charLength)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEvent`*"] pub fn char_length(this: &SpeechSynthesisEvent) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisEvent" , js_name = elapsedTime)] #[doc = "Getter for the `elapsedTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisEvent/elapsedTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEvent`*"] pub fn elapsed_time(this: &SpeechSynthesisEvent) -> f32; # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisEvent" , js_name = name)] #[doc = "Getter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisEvent/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEvent`*"] pub fn name(this: &SpeechSynthesisEvent) -> Option; #[cfg(feature = "SpeechSynthesisEventInit")] #[wasm_bindgen(catch, constructor, js_class = "SpeechSynthesisEvent")] #[doc = "The `new SpeechSynthesisEvent(..)` constructor, creating a new instance of `SpeechSynthesisEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisEvent/SpeechSynthesisEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEvent`, `SpeechSynthesisEventInit`*"] pub fn new( type_: &str, event_init_dict: &SpeechSynthesisEventInit, ) -> Result; } web-sys-0.3.55/src/features/gen_SpeechSynthesisEventInit.rs000064400000000000000000000133210072674642500221120ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SpeechSynthesisEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SpeechSynthesisEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEventInit`*"] pub type SpeechSynthesisEventInit; } impl SpeechSynthesisEventInit { #[cfg(feature = "SpeechSynthesisUtterance")] #[doc = "Construct a new `SpeechSynthesisEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEventInit`, `SpeechSynthesisUtterance`*"] pub fn new(utterance: &SpeechSynthesisUtterance) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.utterance(utterance); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `charIndex` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEventInit`*"] pub fn char_index(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("charIndex"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `charLength` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEventInit`*"] pub fn char_length(&mut self, val: Option) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("charLength"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `elapsedTime` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEventInit`*"] pub fn elapsed_time(&mut self, val: f32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("elapsedTime"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEventInit`*"] pub fn name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "SpeechSynthesisUtterance")] #[doc = "Change the `utterance` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEventInit`, `SpeechSynthesisUtterance`*"] pub fn utterance(&mut self, val: &SpeechSynthesisUtterance) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("utterance"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_SpeechSynthesisUtterance.rs000064400000000000000000000353440072674642500221500ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = SpeechSynthesisUtterance , typescript_type = "SpeechSynthesisUtterance")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SpeechSynthesisUtterance` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] pub type SpeechSynthesisUtterance; # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisUtterance" , js_name = text)] #[doc = "Getter for the `text` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/text)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] pub fn text(this: &SpeechSynthesisUtterance) -> String; # [wasm_bindgen (structural , method , setter , js_class = "SpeechSynthesisUtterance" , js_name = text)] #[doc = "Setter for the `text` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/text)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] pub fn set_text(this: &SpeechSynthesisUtterance, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisUtterance" , js_name = lang)] #[doc = "Getter for the `lang` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/lang)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] pub fn lang(this: &SpeechSynthesisUtterance) -> String; # [wasm_bindgen (structural , method , setter , js_class = "SpeechSynthesisUtterance" , js_name = lang)] #[doc = "Setter for the `lang` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/lang)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] pub fn set_lang(this: &SpeechSynthesisUtterance, value: &str); #[cfg(feature = "SpeechSynthesisVoice")] # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisUtterance" , js_name = voice)] #[doc = "Getter for the `voice` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/voice)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`, `SpeechSynthesisVoice`*"] pub fn voice(this: &SpeechSynthesisUtterance) -> Option; #[cfg(feature = "SpeechSynthesisVoice")] # [wasm_bindgen (structural , method , setter , js_class = "SpeechSynthesisUtterance" , js_name = voice)] #[doc = "Setter for the `voice` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/voice)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`, `SpeechSynthesisVoice`*"] pub fn set_voice(this: &SpeechSynthesisUtterance, value: Option<&SpeechSynthesisVoice>); # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisUtterance" , js_name = volume)] #[doc = "Getter for the `volume` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/volume)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] pub fn volume(this: &SpeechSynthesisUtterance) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SpeechSynthesisUtterance" , js_name = volume)] #[doc = "Setter for the `volume` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/volume)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] pub fn set_volume(this: &SpeechSynthesisUtterance, value: f32); # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisUtterance" , js_name = rate)] #[doc = "Getter for the `rate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/rate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] pub fn rate(this: &SpeechSynthesisUtterance) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SpeechSynthesisUtterance" , js_name = rate)] #[doc = "Setter for the `rate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/rate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] pub fn set_rate(this: &SpeechSynthesisUtterance, value: f32); # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisUtterance" , js_name = pitch)] #[doc = "Getter for the `pitch` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/pitch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] pub fn pitch(this: &SpeechSynthesisUtterance) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SpeechSynthesisUtterance" , js_name = pitch)] #[doc = "Setter for the `pitch` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/pitch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] pub fn set_pitch(this: &SpeechSynthesisUtterance, value: f32); # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisUtterance" , js_name = onstart)] #[doc = "Getter for the `onstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/onstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] pub fn onstart(this: &SpeechSynthesisUtterance) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SpeechSynthesisUtterance" , js_name = onstart)] #[doc = "Setter for the `onstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/onstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] pub fn set_onstart(this: &SpeechSynthesisUtterance, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisUtterance" , js_name = onend)] #[doc = "Getter for the `onend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/onend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] pub fn onend(this: &SpeechSynthesisUtterance) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SpeechSynthesisUtterance" , js_name = onend)] #[doc = "Setter for the `onend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/onend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] pub fn set_onend(this: &SpeechSynthesisUtterance, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisUtterance" , js_name = onerror)] #[doc = "Getter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] pub fn onerror(this: &SpeechSynthesisUtterance) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SpeechSynthesisUtterance" , js_name = onerror)] #[doc = "Setter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] pub fn set_onerror(this: &SpeechSynthesisUtterance, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisUtterance" , js_name = onpause)] #[doc = "Getter for the `onpause` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/onpause)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] pub fn onpause(this: &SpeechSynthesisUtterance) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SpeechSynthesisUtterance" , js_name = onpause)] #[doc = "Setter for the `onpause` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/onpause)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] pub fn set_onpause(this: &SpeechSynthesisUtterance, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisUtterance" , js_name = onresume)] #[doc = "Getter for the `onresume` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/onresume)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] pub fn onresume(this: &SpeechSynthesisUtterance) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SpeechSynthesisUtterance" , js_name = onresume)] #[doc = "Setter for the `onresume` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/onresume)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] pub fn set_onresume(this: &SpeechSynthesisUtterance, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisUtterance" , js_name = onmark)] #[doc = "Getter for the `onmark` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/onmark)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] pub fn onmark(this: &SpeechSynthesisUtterance) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SpeechSynthesisUtterance" , js_name = onmark)] #[doc = "Setter for the `onmark` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/onmark)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] pub fn set_onmark(this: &SpeechSynthesisUtterance, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisUtterance" , js_name = onboundary)] #[doc = "Getter for the `onboundary` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/onboundary)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] pub fn onboundary(this: &SpeechSynthesisUtterance) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SpeechSynthesisUtterance" , js_name = onboundary)] #[doc = "Setter for the `onboundary` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/onboundary)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] pub fn set_onboundary(this: &SpeechSynthesisUtterance, value: Option<&::js_sys::Function>); #[wasm_bindgen(catch, constructor, js_class = "SpeechSynthesisUtterance")] #[doc = "The `new SpeechSynthesisUtterance(..)` constructor, creating a new instance of `SpeechSynthesisUtterance`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/SpeechSynthesisUtterance)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] pub fn new() -> Result; #[wasm_bindgen(catch, constructor, js_class = "SpeechSynthesisUtterance")] #[doc = "The `new SpeechSynthesisUtterance(..)` constructor, creating a new instance of `SpeechSynthesisUtterance`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/SpeechSynthesisUtterance)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] pub fn new_with_text(text: &str) -> Result; } web-sys-0.3.55/src/features/gen_SpeechSynthesisVoice.rs000064400000000000000000000056600072674642500212610ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SpeechSynthesisVoice , typescript_type = "SpeechSynthesisVoice")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SpeechSynthesisVoice` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisVoice)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisVoice`*"] pub type SpeechSynthesisVoice; # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisVoice" , js_name = voiceURI)] #[doc = "Getter for the `voiceURI` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisVoice/voiceURI)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisVoice`*"] pub fn voice_uri(this: &SpeechSynthesisVoice) -> String; # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisVoice" , js_name = name)] #[doc = "Getter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisVoice/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisVoice`*"] pub fn name(this: &SpeechSynthesisVoice) -> String; # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisVoice" , js_name = lang)] #[doc = "Getter for the `lang` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisVoice/lang)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisVoice`*"] pub fn lang(this: &SpeechSynthesisVoice) -> String; # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisVoice" , js_name = localService)] #[doc = "Getter for the `localService` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisVoice/localService)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisVoice`*"] pub fn local_service(this: &SpeechSynthesisVoice) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisVoice" , js_name = default)] #[doc = "Getter for the `default` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisVoice/default)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisVoice`*"] pub fn default(this: &SpeechSynthesisVoice) -> bool; } web-sys-0.3.55/src/features/gen_StereoPannerNode.rs000064400000000000000000000045260072674642500203650ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = StereoPannerNode , typescript_type = "StereoPannerNode")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `StereoPannerNode` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StereoPannerNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StereoPannerNode`*"] pub type StereoPannerNode; #[cfg(feature = "AudioParam")] # [wasm_bindgen (structural , method , getter , js_class = "StereoPannerNode" , js_name = pan)] #[doc = "Getter for the `pan` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StereoPannerNode/pan)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `StereoPannerNode`*"] pub fn pan(this: &StereoPannerNode) -> AudioParam; #[cfg(feature = "BaseAudioContext")] #[wasm_bindgen(catch, constructor, js_class = "StereoPannerNode")] #[doc = "The `new StereoPannerNode(..)` constructor, creating a new instance of `StereoPannerNode`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StereoPannerNode/StereoPannerNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `StereoPannerNode`*"] pub fn new(context: &BaseAudioContext) -> Result; #[cfg(all(feature = "BaseAudioContext", feature = "StereoPannerOptions",))] #[wasm_bindgen(catch, constructor, js_class = "StereoPannerNode")] #[doc = "The `new StereoPannerNode(..)` constructor, creating a new instance of `StereoPannerNode`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StereoPannerNode/StereoPannerNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `StereoPannerNode`, `StereoPannerOptions`*"] pub fn new_with_options( context: &BaseAudioContext, options: &StereoPannerOptions, ) -> Result; } web-sys-0.3.55/src/features/gen_StereoPannerOptions.rs000064400000000000000000000065660072674642500211410ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = StereoPannerOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `StereoPannerOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StereoPannerOptions`*"] pub type StereoPannerOptions; } impl StereoPannerOptions { #[doc = "Construct a new `StereoPannerOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StereoPannerOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StereoPannerOptions`*"] pub fn channel_count(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("channelCount"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "ChannelCountMode")] #[doc = "Change the `channelCountMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelCountMode`, `StereoPannerOptions`*"] pub fn channel_count_mode(&mut self, val: ChannelCountMode) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("channelCountMode"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "ChannelInterpretation")] #[doc = "Change the `channelInterpretation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelInterpretation`, `StereoPannerOptions`*"] pub fn channel_interpretation(&mut self, val: ChannelInterpretation) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("channelInterpretation"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `pan` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StereoPannerOptions`*"] pub fn pan(&mut self, val: f32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("pan"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for StereoPannerOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_Storage.rs000064400000000000000000000100260072674642500165460ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Storage , typescript_type = "Storage")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Storage` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Storage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Storage`*"] pub type Storage; # [wasm_bindgen (structural , catch , method , getter , js_class = "Storage" , js_name = length)] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Storage/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Storage`*"] pub fn length(this: &Storage) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Storage" , js_name = clear)] #[doc = "The `clear()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Storage/clear)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Storage`*"] pub fn clear(this: &Storage) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Storage" , js_name = getItem)] #[doc = "The `getItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Storage/getItem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Storage`*"] pub fn get_item(this: &Storage, key: &str) -> Result, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Storage" , js_name = key)] #[doc = "The `key()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Storage/key)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Storage`*"] pub fn key(this: &Storage, index: u32) -> Result, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Storage" , js_name = removeItem)] #[doc = "The `removeItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Storage/removeItem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Storage`*"] pub fn remove_item(this: &Storage, key: &str) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Storage" , js_name = setItem)] #[doc = "The `setItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Storage/setItem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Storage`*"] pub fn set_item(this: &Storage, key: &str, value: &str) -> Result<(), JsValue>; #[wasm_bindgen(catch, method, structural, js_class = "Storage", indexing_getter)] #[doc = "Indexing getter."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Storage`*"] pub fn get(this: &Storage, key: &str) -> Result, JsValue>; #[wasm_bindgen(catch, method, structural, js_class = "Storage", indexing_setter)] #[doc = "Indexing setter."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Storage`*"] pub fn set(this: &Storage, key: &str, value: &str) -> Result<(), JsValue>; #[wasm_bindgen(catch, method, structural, js_class = "Storage", indexing_deleter)] #[doc = "Indexing deleter."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Storage`*"] pub fn delete(this: &Storage, key: &str) -> Result<(), JsValue>; } web-sys-0.3.55/src/features/gen_StorageEstimate.rs000064400000000000000000000036120072674642500202450ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = StorageEstimate)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `StorageEstimate` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEstimate`*"] pub type StorageEstimate; } impl StorageEstimate { #[doc = "Construct a new `StorageEstimate`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEstimate`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `quota` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEstimate`*"] pub fn quota(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("quota"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `usage` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEstimate`*"] pub fn usage(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("usage"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for StorageEstimate { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_StorageEvent.rs000064400000000000000000000213640072674642500175570ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = StorageEvent , typescript_type = "StorageEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `StorageEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEvent`*"] pub type StorageEvent; # [wasm_bindgen (structural , method , getter , js_class = "StorageEvent" , js_name = key)] #[doc = "Getter for the `key` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/key)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEvent`*"] pub fn key(this: &StorageEvent) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "StorageEvent" , js_name = oldValue)] #[doc = "Getter for the `oldValue` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/oldValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEvent`*"] pub fn old_value(this: &StorageEvent) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "StorageEvent" , js_name = newValue)] #[doc = "Getter for the `newValue` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/newValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEvent`*"] pub fn new_value(this: &StorageEvent) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "StorageEvent" , js_name = url)] #[doc = "Getter for the `url` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/url)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEvent`*"] pub fn url(this: &StorageEvent) -> Option; #[cfg(feature = "Storage")] # [wasm_bindgen (structural , method , getter , js_class = "StorageEvent" , js_name = storageArea)] #[doc = "Getter for the `storageArea` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/storageArea)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Storage`, `StorageEvent`*"] pub fn storage_area(this: &StorageEvent) -> Option; #[wasm_bindgen(catch, constructor, js_class = "StorageEvent")] #[doc = "The `new StorageEvent(..)` constructor, creating a new instance of `StorageEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/StorageEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEvent`*"] pub fn new(type_: &str) -> Result; #[cfg(feature = "StorageEventInit")] #[wasm_bindgen(catch, constructor, js_class = "StorageEvent")] #[doc = "The `new StorageEvent(..)` constructor, creating a new instance of `StorageEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/StorageEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEvent`, `StorageEventInit`*"] pub fn new_with_event_init_dict( type_: &str, event_init_dict: &StorageEventInit, ) -> Result; # [wasm_bindgen (method , structural , js_class = "StorageEvent" , js_name = initStorageEvent)] #[doc = "The `initStorageEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/initStorageEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEvent`*"] pub fn init_storage_event(this: &StorageEvent, type_: &str); # [wasm_bindgen (method , structural , js_class = "StorageEvent" , js_name = initStorageEvent)] #[doc = "The `initStorageEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/initStorageEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEvent`*"] pub fn init_storage_event_with_can_bubble(this: &StorageEvent, type_: &str, can_bubble: bool); # [wasm_bindgen (method , structural , js_class = "StorageEvent" , js_name = initStorageEvent)] #[doc = "The `initStorageEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/initStorageEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEvent`*"] pub fn init_storage_event_with_can_bubble_and_cancelable( this: &StorageEvent, type_: &str, can_bubble: bool, cancelable: bool, ); # [wasm_bindgen (method , structural , js_class = "StorageEvent" , js_name = initStorageEvent)] #[doc = "The `initStorageEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/initStorageEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEvent`*"] pub fn init_storage_event_with_can_bubble_and_cancelable_and_key( this: &StorageEvent, type_: &str, can_bubble: bool, cancelable: bool, key: Option<&str>, ); # [wasm_bindgen (method , structural , js_class = "StorageEvent" , js_name = initStorageEvent)] #[doc = "The `initStorageEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/initStorageEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEvent`*"] pub fn init_storage_event_with_can_bubble_and_cancelable_and_key_and_old_value( this: &StorageEvent, type_: &str, can_bubble: bool, cancelable: bool, key: Option<&str>, old_value: Option<&str>, ); # [wasm_bindgen (method , structural , js_class = "StorageEvent" , js_name = initStorageEvent)] #[doc = "The `initStorageEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/initStorageEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEvent`*"] pub fn init_storage_event_with_can_bubble_and_cancelable_and_key_and_old_value_and_new_value( this: &StorageEvent, type_: &str, can_bubble: bool, cancelable: bool, key: Option<&str>, old_value: Option<&str>, new_value: Option<&str>, ); # [wasm_bindgen (method , structural , js_class = "StorageEvent" , js_name = initStorageEvent)] #[doc = "The `initStorageEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/initStorageEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEvent`*"] pub fn init_storage_event_with_can_bubble_and_cancelable_and_key_and_old_value_and_new_value_and_url( this: &StorageEvent, type_: &str, can_bubble: bool, cancelable: bool, key: Option<&str>, old_value: Option<&str>, new_value: Option<&str>, url: Option<&str>, ); #[cfg(feature = "Storage")] # [wasm_bindgen (method , structural , js_class = "StorageEvent" , js_name = initStorageEvent)] #[doc = "The `initStorageEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/initStorageEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Storage`, `StorageEvent`*"] pub fn init_storage_event_with_can_bubble_and_cancelable_and_key_and_old_value_and_new_value_and_url_and_storage_area( this: &StorageEvent, type_: &str, can_bubble: bool, cancelable: bool, key: Option<&str>, old_value: Option<&str>, new_value: Option<&str>, url: Option<&str>, storage_area: Option<&Storage>, ); } web-sys-0.3.55/src/features/gen_StorageEventInit.rs000064400000000000000000000126740072674642500204070ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = StorageEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `StorageEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEventInit`*"] pub type StorageEventInit; } impl StorageEventInit { #[doc = "Construct a new `StorageEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `key` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEventInit`*"] pub fn key(&mut self, val: Option<&str>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("key"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `newValue` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEventInit`*"] pub fn new_value(&mut self, val: Option<&str>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("newValue"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `oldValue` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEventInit`*"] pub fn old_value(&mut self, val: Option<&str>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("oldValue"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "Storage")] #[doc = "Change the `storageArea` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Storage`, `StorageEventInit`*"] pub fn storage_area(&mut self, val: Option<&Storage>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("storageArea"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `url` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEventInit`*"] pub fn url(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("url"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for StorageEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_StorageManager.rs000064400000000000000000000036400072674642500200450ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = StorageManager , typescript_type = "StorageManager")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `StorageManager` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageManager)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageManager`*"] pub type StorageManager; # [wasm_bindgen (catch , method , structural , js_class = "StorageManager" , js_name = estimate)] #[doc = "The `estimate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageManager/estimate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageManager`*"] pub fn estimate(this: &StorageManager) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "StorageManager" , js_name = persist)] #[doc = "The `persist()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageManager/persist)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageManager`*"] pub fn persist(this: &StorageManager) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "StorageManager" , js_name = persisted)] #[doc = "The `persisted()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageManager/persisted)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageManager`*"] pub fn persisted(this: &StorageManager) -> Result<::js_sys::Promise, JsValue>; } web-sys-0.3.55/src/features/gen_StorageType.rs000064400000000000000000000005550072674642500174160ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `StorageType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageType`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum StorageType { Persistent = "persistent", Temporary = "temporary", Default = "default", } web-sys-0.3.55/src/features/gen_StreamPipeOptions.rs000064400000000000000000000063520072674642500205760ustar 00000000000000#![allow(unused_imports)] 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; } 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 } #[doc = "Change the `preventAbort` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StreamPipeOptions`*"] pub fn prevent_abort(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("preventAbort"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `preventCancel` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StreamPipeOptions`*"] pub fn prevent_cancel(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("preventCancel"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `preventClose` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StreamPipeOptions`*"] pub fn prevent_close(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("preventClose"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "AbortSignal")] #[doc = "Change the `signal` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AbortSignal`, `StreamPipeOptions`*"] pub fn signal(&mut self, val: &AbortSignal) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("signal"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for StreamPipeOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_StyleRuleChangeEventInit.rs000064400000000000000000000076460072674642500220440ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = StyleRuleChangeEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `StyleRuleChangeEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleRuleChangeEventInit`*"] pub type StyleRuleChangeEventInit; } impl StyleRuleChangeEventInit { #[doc = "Construct a new `StyleRuleChangeEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleRuleChangeEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleRuleChangeEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleRuleChangeEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleRuleChangeEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "CssRule")] #[doc = "Change the `rule` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssRule`, `StyleRuleChangeEventInit`*"] pub fn rule(&mut self, val: Option<&CssRule>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("rule"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "CssStyleSheet")] #[doc = "Change the `stylesheet` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssStyleSheet`, `StyleRuleChangeEventInit`*"] pub fn stylesheet(&mut self, val: Option<&CssStyleSheet>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("stylesheet"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for StyleRuleChangeEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_StyleSheet.rs000064400000000000000000000101720072674642500172350ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = StyleSheet , typescript_type = "StyleSheet")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `StyleSheet` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StyleSheet)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleSheet`*"] pub type StyleSheet; # [wasm_bindgen (structural , method , getter , js_class = "StyleSheet" , js_name = type)] #[doc = "Getter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StyleSheet/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleSheet`*"] pub fn type_(this: &StyleSheet) -> String; # [wasm_bindgen (structural , catch , method , getter , js_class = "StyleSheet" , js_name = href)] #[doc = "Getter for the `href` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StyleSheet/href)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleSheet`*"] pub fn href(this: &StyleSheet) -> Result, JsValue>; #[cfg(feature = "Node")] # [wasm_bindgen (structural , method , getter , js_class = "StyleSheet" , js_name = ownerNode)] #[doc = "Getter for the `ownerNode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StyleSheet/ownerNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `StyleSheet`*"] pub fn owner_node(this: &StyleSheet) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "StyleSheet" , js_name = parentStyleSheet)] #[doc = "Getter for the `parentStyleSheet` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StyleSheet/parentStyleSheet)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleSheet`*"] pub fn parent_style_sheet(this: &StyleSheet) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "StyleSheet" , js_name = title)] #[doc = "Getter for the `title` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StyleSheet/title)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleSheet`*"] pub fn title(this: &StyleSheet) -> Option; #[cfg(feature = "MediaList")] # [wasm_bindgen (structural , method , getter , js_class = "StyleSheet" , js_name = media)] #[doc = "Getter for the `media` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StyleSheet/media)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaList`, `StyleSheet`*"] pub fn media(this: &StyleSheet) -> MediaList; # [wasm_bindgen (structural , method , getter , js_class = "StyleSheet" , js_name = disabled)] #[doc = "Getter for the `disabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StyleSheet/disabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleSheet`*"] pub fn disabled(this: &StyleSheet) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "StyleSheet" , js_name = disabled)] #[doc = "Setter for the `disabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StyleSheet/disabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleSheet`*"] pub fn set_disabled(this: &StyleSheet, value: bool); } web-sys-0.3.55/src/features/gen_StyleSheetApplicableStateChangeEventInit.rs000064400000000000000000000102000072674642500251370ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = StyleSheetApplicableStateChangeEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `StyleSheetApplicableStateChangeEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleSheetApplicableStateChangeEventInit`*"] pub type StyleSheetApplicableStateChangeEventInit; } impl StyleSheetApplicableStateChangeEventInit { #[doc = "Construct a new `StyleSheetApplicableStateChangeEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleSheetApplicableStateChangeEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleSheetApplicableStateChangeEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleSheetApplicableStateChangeEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleSheetApplicableStateChangeEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `applicable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleSheetApplicableStateChangeEventInit`*"] pub fn applicable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("applicable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "CssStyleSheet")] #[doc = "Change the `stylesheet` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssStyleSheet`, `StyleSheetApplicableStateChangeEventInit`*"] pub fn stylesheet(&mut self, val: Option<&CssStyleSheet>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("stylesheet"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for StyleSheetApplicableStateChangeEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_StyleSheetChangeEventInit.rs000064400000000000000000000077070072674642500222030ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = StyleSheetChangeEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `StyleSheetChangeEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleSheetChangeEventInit`*"] pub type StyleSheetChangeEventInit; } impl StyleSheetChangeEventInit { #[doc = "Construct a new `StyleSheetChangeEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleSheetChangeEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleSheetChangeEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleSheetChangeEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleSheetChangeEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `documentSheet` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleSheetChangeEventInit`*"] pub fn document_sheet(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("documentSheet"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "CssStyleSheet")] #[doc = "Change the `stylesheet` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssStyleSheet`, `StyleSheetChangeEventInit`*"] pub fn stylesheet(&mut self, val: Option<&CssStyleSheet>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("stylesheet"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for StyleSheetChangeEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_StyleSheetList.rs000064400000000000000000000035310072674642500200720ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = StyleSheetList , typescript_type = "StyleSheetList")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `StyleSheetList` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StyleSheetList)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleSheetList`*"] pub type StyleSheetList; # [wasm_bindgen (structural , method , getter , js_class = "StyleSheetList" , js_name = length)] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StyleSheetList/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleSheetList`*"] pub fn length(this: &StyleSheetList) -> u32; #[cfg(feature = "StyleSheet")] # [wasm_bindgen (method , structural , js_class = "StyleSheetList" , js_name = item)] #[doc = "The `item()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StyleSheetList/item)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleSheet`, `StyleSheetList`*"] pub fn item(this: &StyleSheetList, index: u32) -> Option; #[cfg(feature = "StyleSheet")] #[wasm_bindgen(method, structural, js_class = "StyleSheetList", indexing_getter)] #[doc = "Indexing getter."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleSheet`, `StyleSheetList`*"] pub fn get(this: &StyleSheetList, index: u32) -> Option; } web-sys-0.3.55/src/features/gen_SubtleCrypto.rs000064400000000000000000000734000072674642500176060ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SubtleCrypto , typescript_type = "SubtleCrypto")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SubtleCrypto` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SubtleCrypto`*"] pub type SubtleCrypto; #[cfg(feature = "CryptoKey")] # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = decrypt)] #[doc = "The `decrypt()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/decrypt)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] pub fn decrypt_with_object_and_buffer_source( this: &SubtleCrypto, algorithm: &::js_sys::Object, key: &CryptoKey, data: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = decrypt)] #[doc = "The `decrypt()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/decrypt)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] pub fn decrypt_with_str_and_buffer_source( this: &SubtleCrypto, algorithm: &str, key: &CryptoKey, data: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = decrypt)] #[doc = "The `decrypt()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/decrypt)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] pub fn decrypt_with_object_and_u8_array( this: &SubtleCrypto, algorithm: &::js_sys::Object, key: &CryptoKey, data: &mut [u8], ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = decrypt)] #[doc = "The `decrypt()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/decrypt)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] pub fn decrypt_with_str_and_u8_array( this: &SubtleCrypto, algorithm: &str, key: &CryptoKey, data: &mut [u8], ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = deriveBits)] #[doc = "The `deriveBits()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/deriveBits)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] pub fn derive_bits_with_object( this: &SubtleCrypto, algorithm: &::js_sys::Object, base_key: &CryptoKey, length: u32, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = deriveBits)] #[doc = "The `deriveBits()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/deriveBits)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] pub fn derive_bits_with_str( this: &SubtleCrypto, algorithm: &str, base_key: &CryptoKey, length: u32, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = deriveKey)] #[doc = "The `deriveKey()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/deriveKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] pub fn derive_key_with_object_and_object( this: &SubtleCrypto, algorithm: &::js_sys::Object, base_key: &CryptoKey, derived_key_type: &::js_sys::Object, extractable: bool, key_usages: &::wasm_bindgen::JsValue, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = deriveKey)] #[doc = "The `deriveKey()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/deriveKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] pub fn derive_key_with_str_and_object( this: &SubtleCrypto, algorithm: &str, base_key: &CryptoKey, derived_key_type: &::js_sys::Object, extractable: bool, key_usages: &::wasm_bindgen::JsValue, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = deriveKey)] #[doc = "The `deriveKey()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/deriveKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] pub fn derive_key_with_object_and_str( this: &SubtleCrypto, algorithm: &::js_sys::Object, base_key: &CryptoKey, derived_key_type: &str, extractable: bool, key_usages: &::wasm_bindgen::JsValue, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = deriveKey)] #[doc = "The `deriveKey()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/deriveKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] pub fn derive_key_with_str_and_str( this: &SubtleCrypto, algorithm: &str, base_key: &CryptoKey, derived_key_type: &str, extractable: bool, key_usages: &::wasm_bindgen::JsValue, ) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = digest)] #[doc = "The `digest()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/digest)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SubtleCrypto`*"] pub fn digest_with_object_and_buffer_source( this: &SubtleCrypto, algorithm: &::js_sys::Object, data: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = digest)] #[doc = "The `digest()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/digest)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SubtleCrypto`*"] pub fn digest_with_str_and_buffer_source( this: &SubtleCrypto, algorithm: &str, data: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = digest)] #[doc = "The `digest()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/digest)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SubtleCrypto`*"] pub fn digest_with_object_and_u8_array( this: &SubtleCrypto, algorithm: &::js_sys::Object, data: &mut [u8], ) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = digest)] #[doc = "The `digest()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/digest)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SubtleCrypto`*"] pub fn digest_with_str_and_u8_array( this: &SubtleCrypto, algorithm: &str, data: &mut [u8], ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = encrypt)] #[doc = "The `encrypt()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/encrypt)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] pub fn encrypt_with_object_and_buffer_source( this: &SubtleCrypto, algorithm: &::js_sys::Object, key: &CryptoKey, data: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = encrypt)] #[doc = "The `encrypt()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/encrypt)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] pub fn encrypt_with_str_and_buffer_source( this: &SubtleCrypto, algorithm: &str, key: &CryptoKey, data: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = encrypt)] #[doc = "The `encrypt()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/encrypt)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] pub fn encrypt_with_object_and_u8_array( this: &SubtleCrypto, algorithm: &::js_sys::Object, key: &CryptoKey, data: &mut [u8], ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = encrypt)] #[doc = "The `encrypt()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/encrypt)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] pub fn encrypt_with_str_and_u8_array( this: &SubtleCrypto, algorithm: &str, key: &CryptoKey, data: &mut [u8], ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = exportKey)] #[doc = "The `exportKey()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/exportKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] pub fn export_key( this: &SubtleCrypto, format: &str, key: &CryptoKey, ) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = generateKey)] #[doc = "The `generateKey()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/generateKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SubtleCrypto`*"] pub fn generate_key_with_object( this: &SubtleCrypto, algorithm: &::js_sys::Object, extractable: bool, key_usages: &::wasm_bindgen::JsValue, ) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = generateKey)] #[doc = "The `generateKey()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/generateKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SubtleCrypto`*"] pub fn generate_key_with_str( this: &SubtleCrypto, algorithm: &str, extractable: bool, key_usages: &::wasm_bindgen::JsValue, ) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = importKey)] #[doc = "The `importKey()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SubtleCrypto`*"] pub fn import_key_with_object( this: &SubtleCrypto, format: &str, key_data: &::js_sys::Object, algorithm: &::js_sys::Object, extractable: bool, key_usages: &::wasm_bindgen::JsValue, ) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = importKey)] #[doc = "The `importKey()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SubtleCrypto`*"] pub fn import_key_with_str( this: &SubtleCrypto, format: &str, key_data: &::js_sys::Object, algorithm: &str, extractable: bool, key_usages: &::wasm_bindgen::JsValue, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = sign)] #[doc = "The `sign()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/sign)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] pub fn sign_with_object_and_buffer_source( this: &SubtleCrypto, algorithm: &::js_sys::Object, key: &CryptoKey, data: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = sign)] #[doc = "The `sign()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/sign)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] pub fn sign_with_str_and_buffer_source( this: &SubtleCrypto, algorithm: &str, key: &CryptoKey, data: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = sign)] #[doc = "The `sign()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/sign)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] pub fn sign_with_object_and_u8_array( this: &SubtleCrypto, algorithm: &::js_sys::Object, key: &CryptoKey, data: &mut [u8], ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = sign)] #[doc = "The `sign()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/sign)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] pub fn sign_with_str_and_u8_array( this: &SubtleCrypto, algorithm: &str, key: &CryptoKey, data: &mut [u8], ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = unwrapKey)] #[doc = "The `unwrapKey()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/unwrapKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] pub fn unwrap_key_with_buffer_source_and_object_and_object( this: &SubtleCrypto, format: &str, wrapped_key: &::js_sys::Object, unwrapping_key: &CryptoKey, unwrap_algorithm: &::js_sys::Object, unwrapped_key_algorithm: &::js_sys::Object, extractable: bool, key_usages: &::wasm_bindgen::JsValue, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = unwrapKey)] #[doc = "The `unwrapKey()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/unwrapKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] pub fn unwrap_key_with_u8_array_and_object_and_object( this: &SubtleCrypto, format: &str, wrapped_key: &mut [u8], unwrapping_key: &CryptoKey, unwrap_algorithm: &::js_sys::Object, unwrapped_key_algorithm: &::js_sys::Object, extractable: bool, key_usages: &::wasm_bindgen::JsValue, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = unwrapKey)] #[doc = "The `unwrapKey()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/unwrapKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] pub fn unwrap_key_with_buffer_source_and_str_and_object( this: &SubtleCrypto, format: &str, wrapped_key: &::js_sys::Object, unwrapping_key: &CryptoKey, unwrap_algorithm: &str, unwrapped_key_algorithm: &::js_sys::Object, extractable: bool, key_usages: &::wasm_bindgen::JsValue, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = unwrapKey)] #[doc = "The `unwrapKey()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/unwrapKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] pub fn unwrap_key_with_u8_array_and_str_and_object( this: &SubtleCrypto, format: &str, wrapped_key: &mut [u8], unwrapping_key: &CryptoKey, unwrap_algorithm: &str, unwrapped_key_algorithm: &::js_sys::Object, extractable: bool, key_usages: &::wasm_bindgen::JsValue, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = unwrapKey)] #[doc = "The `unwrapKey()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/unwrapKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] pub fn unwrap_key_with_buffer_source_and_object_and_str( this: &SubtleCrypto, format: &str, wrapped_key: &::js_sys::Object, unwrapping_key: &CryptoKey, unwrap_algorithm: &::js_sys::Object, unwrapped_key_algorithm: &str, extractable: bool, key_usages: &::wasm_bindgen::JsValue, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = unwrapKey)] #[doc = "The `unwrapKey()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/unwrapKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] pub fn unwrap_key_with_u8_array_and_object_and_str( this: &SubtleCrypto, format: &str, wrapped_key: &mut [u8], unwrapping_key: &CryptoKey, unwrap_algorithm: &::js_sys::Object, unwrapped_key_algorithm: &str, extractable: bool, key_usages: &::wasm_bindgen::JsValue, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = unwrapKey)] #[doc = "The `unwrapKey()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/unwrapKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] pub fn unwrap_key_with_buffer_source_and_str_and_str( this: &SubtleCrypto, format: &str, wrapped_key: &::js_sys::Object, unwrapping_key: &CryptoKey, unwrap_algorithm: &str, unwrapped_key_algorithm: &str, extractable: bool, key_usages: &::wasm_bindgen::JsValue, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = unwrapKey)] #[doc = "The `unwrapKey()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/unwrapKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] pub fn unwrap_key_with_u8_array_and_str_and_str( this: &SubtleCrypto, format: &str, wrapped_key: &mut [u8], unwrapping_key: &CryptoKey, unwrap_algorithm: &str, unwrapped_key_algorithm: &str, extractable: bool, key_usages: &::wasm_bindgen::JsValue, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = verify)] #[doc = "The `verify()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/verify)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] pub fn verify_with_object_and_buffer_source_and_buffer_source( this: &SubtleCrypto, algorithm: &::js_sys::Object, key: &CryptoKey, signature: &::js_sys::Object, data: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = verify)] #[doc = "The `verify()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/verify)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] pub fn verify_with_str_and_buffer_source_and_buffer_source( this: &SubtleCrypto, algorithm: &str, key: &CryptoKey, signature: &::js_sys::Object, data: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = verify)] #[doc = "The `verify()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/verify)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] pub fn verify_with_object_and_u8_array_and_buffer_source( this: &SubtleCrypto, algorithm: &::js_sys::Object, key: &CryptoKey, signature: &mut [u8], data: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = verify)] #[doc = "The `verify()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/verify)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] pub fn verify_with_str_and_u8_array_and_buffer_source( this: &SubtleCrypto, algorithm: &str, key: &CryptoKey, signature: &mut [u8], data: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = verify)] #[doc = "The `verify()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/verify)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] pub fn verify_with_object_and_buffer_source_and_u8_array( this: &SubtleCrypto, algorithm: &::js_sys::Object, key: &CryptoKey, signature: &::js_sys::Object, data: &mut [u8], ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = verify)] #[doc = "The `verify()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/verify)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] pub fn verify_with_str_and_buffer_source_and_u8_array( this: &SubtleCrypto, algorithm: &str, key: &CryptoKey, signature: &::js_sys::Object, data: &mut [u8], ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = verify)] #[doc = "The `verify()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/verify)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] pub fn verify_with_object_and_u8_array_and_u8_array( this: &SubtleCrypto, algorithm: &::js_sys::Object, key: &CryptoKey, signature: &mut [u8], data: &mut [u8], ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = verify)] #[doc = "The `verify()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/verify)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] pub fn verify_with_str_and_u8_array_and_u8_array( this: &SubtleCrypto, algorithm: &str, key: &CryptoKey, signature: &mut [u8], data: &mut [u8], ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = wrapKey)] #[doc = "The `wrapKey()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/wrapKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] pub fn wrap_key_with_object( this: &SubtleCrypto, format: &str, key: &CryptoKey, wrapping_key: &CryptoKey, wrap_algorithm: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CryptoKey")] # [wasm_bindgen (catch , method , structural , js_class = "SubtleCrypto" , js_name = wrapKey)] #[doc = "The `wrapKey()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/wrapKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] pub fn wrap_key_with_str( this: &SubtleCrypto, format: &str, key: &CryptoKey, wrapping_key: &CryptoKey, wrap_algorithm: &str, ) -> Result<::js_sys::Promise, JsValue>; } web-sys-0.3.55/src/features/gen_SupportedType.rs000064400000000000000000000007220072674642500177730ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `SupportedType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SupportedType`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum SupportedType { TextHtml = "text/html", TextXml = "text/xml", ApplicationXml = "application/xml", ApplicationXhtmlXml = "application/xhtml+xml", ImageSvgXml = "image/svg+xml", } web-sys-0.3.55/src/features/gen_SvgAngle.rs000064400000000000000000000134100072674642500166500ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGAngle , typescript_type = "SVGAngle")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgAngle` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAngle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"] pub type SvgAngle; # [wasm_bindgen (structural , method , getter , js_class = "SVGAngle" , js_name = unitType)] #[doc = "Getter for the `unitType` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAngle/unitType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"] pub fn unit_type(this: &SvgAngle) -> u16; # [wasm_bindgen (structural , method , getter , js_class = "SVGAngle" , js_name = value)] #[doc = "Getter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAngle/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"] pub fn value(this: &SvgAngle) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGAngle" , js_name = value)] #[doc = "Setter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAngle/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"] pub fn set_value(this: &SvgAngle, value: f32); # [wasm_bindgen (structural , method , getter , js_class = "SVGAngle" , js_name = valueInSpecifiedUnits)] #[doc = "Getter for the `valueInSpecifiedUnits` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAngle/valueInSpecifiedUnits)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"] pub fn value_in_specified_units(this: &SvgAngle) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGAngle" , js_name = valueInSpecifiedUnits)] #[doc = "Setter for the `valueInSpecifiedUnits` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAngle/valueInSpecifiedUnits)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"] pub fn set_value_in_specified_units(this: &SvgAngle, value: f32); # [wasm_bindgen (structural , method , getter , js_class = "SVGAngle" , js_name = valueAsString)] #[doc = "Getter for the `valueAsString` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAngle/valueAsString)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"] pub fn value_as_string(this: &SvgAngle) -> String; # [wasm_bindgen (structural , method , setter , js_class = "SVGAngle" , js_name = valueAsString)] #[doc = "Setter for the `valueAsString` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAngle/valueAsString)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"] pub fn set_value_as_string(this: &SvgAngle, value: &str); # [wasm_bindgen (catch , method , structural , js_class = "SVGAngle" , js_name = convertToSpecifiedUnits)] #[doc = "The `convertToSpecifiedUnits()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAngle/convertToSpecifiedUnits)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"] pub fn convert_to_specified_units(this: &SvgAngle, unit_type: u16) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "SVGAngle" , js_name = newValueSpecifiedUnits)] #[doc = "The `newValueSpecifiedUnits()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAngle/newValueSpecifiedUnits)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"] pub fn new_value_specified_units( this: &SvgAngle, unit_type: u16, value_in_specified_units: f32, ) -> Result<(), JsValue>; } impl SvgAngle { #[doc = "The `SVGAngle.SVG_ANGLETYPE_UNKNOWN` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"] pub const SVG_ANGLETYPE_UNKNOWN: u16 = 0i64 as u16; #[doc = "The `SVGAngle.SVG_ANGLETYPE_UNSPECIFIED` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"] pub const SVG_ANGLETYPE_UNSPECIFIED: u16 = 1u64 as u16; #[doc = "The `SVGAngle.SVG_ANGLETYPE_DEG` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"] pub const SVG_ANGLETYPE_DEG: u16 = 2u64 as u16; #[doc = "The `SVGAngle.SVG_ANGLETYPE_RAD` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"] pub const SVG_ANGLETYPE_RAD: u16 = 3u64 as u16; #[doc = "The `SVGAngle.SVG_ANGLETYPE_GRAD` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"] pub const SVG_ANGLETYPE_GRAD: u16 = 4u64 as u16; } web-sys-0.3.55/src/features/gen_SvgAnimateElement.rs000064400000000000000000000012710072674642500205140ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgAnimationElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGAnimateElement , typescript_type = "SVGAnimateElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgAnimateElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimateElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimateElement`*"] pub type SvgAnimateElement; } web-sys-0.3.55/src/features/gen_SvgAnimateMotionElement.rs000064400000000000000000000013350072674642500217030ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgAnimationElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGAnimateMotionElement , typescript_type = "SVGAnimateMotionElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgAnimateMotionElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimateMotionElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimateMotionElement`*"] pub type SvgAnimateMotionElement; } web-sys-0.3.55/src/features/gen_SvgAnimateTransformElement.rs000064400000000000000000000013570072674642500224150ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgAnimationElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGAnimateTransformElement , typescript_type = "SVGAnimateTransformElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgAnimateTransformElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimateTransformElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimateTransformElement`*"] pub type SvgAnimateTransformElement; } web-sys-0.3.55/src/features/gen_SvgAnimatedAngle.rs000064400000000000000000000030750072674642500203210ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGAnimatedAngle , typescript_type = "SVGAnimatedAngle")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgAnimatedAngle` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedAngle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedAngle`*"] pub type SvgAnimatedAngle; #[cfg(feature = "SvgAngle")] # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimatedAngle" , js_name = baseVal)] #[doc = "Getter for the `baseVal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedAngle/baseVal)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAngle`, `SvgAnimatedAngle`*"] pub fn base_val(this: &SvgAnimatedAngle) -> SvgAngle; #[cfg(feature = "SvgAngle")] # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimatedAngle" , js_name = animVal)] #[doc = "Getter for the `animVal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedAngle/animVal)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAngle`, `SvgAnimatedAngle`*"] pub fn anim_val(this: &SvgAnimatedAngle) -> SvgAngle; } web-sys-0.3.55/src/features/gen_SvgAnimatedBoolean.rs000064400000000000000000000037260072674642500206550ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGAnimatedBoolean , typescript_type = "SVGAnimatedBoolean")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgAnimatedBoolean` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedBoolean)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedBoolean`*"] pub type SvgAnimatedBoolean; # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimatedBoolean" , js_name = baseVal)] #[doc = "Getter for the `baseVal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedBoolean/baseVal)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedBoolean`*"] pub fn base_val(this: &SvgAnimatedBoolean) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "SVGAnimatedBoolean" , js_name = baseVal)] #[doc = "Setter for the `baseVal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedBoolean/baseVal)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedBoolean`*"] pub fn set_base_val(this: &SvgAnimatedBoolean, value: bool); # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimatedBoolean" , js_name = animVal)] #[doc = "Getter for the `animVal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedBoolean/animVal)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedBoolean`*"] pub fn anim_val(this: &SvgAnimatedBoolean) -> bool; } web-sys-0.3.55/src/features/gen_SvgAnimatedEnumeration.rs000064400000000000000000000040330072674642500215540ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGAnimatedEnumeration , typescript_type = "SVGAnimatedEnumeration")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgAnimatedEnumeration` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedEnumeration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`*"] pub type SvgAnimatedEnumeration; # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimatedEnumeration" , js_name = baseVal)] #[doc = "Getter for the `baseVal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedEnumeration/baseVal)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`*"] pub fn base_val(this: &SvgAnimatedEnumeration) -> u16; # [wasm_bindgen (structural , method , setter , js_class = "SVGAnimatedEnumeration" , js_name = baseVal)] #[doc = "Setter for the `baseVal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedEnumeration/baseVal)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`*"] pub fn set_base_val(this: &SvgAnimatedEnumeration, value: u16); # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimatedEnumeration" , js_name = animVal)] #[doc = "Getter for the `animVal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedEnumeration/animVal)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`*"] pub fn anim_val(this: &SvgAnimatedEnumeration) -> u16; } web-sys-0.3.55/src/features/gen_SvgAnimatedInteger.rs000064400000000000000000000037230072674642500206700ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGAnimatedInteger , typescript_type = "SVGAnimatedInteger")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgAnimatedInteger` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedInteger)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedInteger`*"] pub type SvgAnimatedInteger; # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimatedInteger" , js_name = baseVal)] #[doc = "Getter for the `baseVal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedInteger/baseVal)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedInteger`*"] pub fn base_val(this: &SvgAnimatedInteger) -> i32; # [wasm_bindgen (structural , method , setter , js_class = "SVGAnimatedInteger" , js_name = baseVal)] #[doc = "Setter for the `baseVal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedInteger/baseVal)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedInteger`*"] pub fn set_base_val(this: &SvgAnimatedInteger, value: i32); # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimatedInteger" , js_name = animVal)] #[doc = "Getter for the `animVal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedInteger/animVal)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedInteger`*"] pub fn anim_val(this: &SvgAnimatedInteger) -> i32; } web-sys-0.3.55/src/features/gen_SvgAnimatedLength.rs000064400000000000000000000031210072674642500205040ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGAnimatedLength , typescript_type = "SVGAnimatedLength")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgAnimatedLength` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedLength)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`*"] pub type SvgAnimatedLength; #[cfg(feature = "SvgLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimatedLength" , js_name = baseVal)] #[doc = "Getter for the `baseVal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedLength/baseVal)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgLength`*"] pub fn base_val(this: &SvgAnimatedLength) -> SvgLength; #[cfg(feature = "SvgLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimatedLength" , js_name = animVal)] #[doc = "Getter for the `animVal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedLength/animVal)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgLength`*"] pub fn anim_val(this: &SvgAnimatedLength) -> SvgLength; } web-sys-0.3.55/src/features/gen_SvgAnimatedLengthList.rs000064400000000000000000000032410072674642500213430ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGAnimatedLengthList , typescript_type = "SVGAnimatedLengthList")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgAnimatedLengthList` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedLengthList)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLengthList`*"] pub type SvgAnimatedLengthList; #[cfg(feature = "SvgLengthList")] # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimatedLengthList" , js_name = baseVal)] #[doc = "Getter for the `baseVal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedLengthList/baseVal)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLengthList`, `SvgLengthList`*"] pub fn base_val(this: &SvgAnimatedLengthList) -> SvgLengthList; #[cfg(feature = "SvgLengthList")] # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimatedLengthList" , js_name = animVal)] #[doc = "Getter for the `animVal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedLengthList/animVal)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLengthList`, `SvgLengthList`*"] pub fn anim_val(this: &SvgAnimatedLengthList) -> SvgLengthList; } web-sys-0.3.55/src/features/gen_SvgAnimatedNumber.rs000064400000000000000000000037010072674642500205170ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGAnimatedNumber , typescript_type = "SVGAnimatedNumber")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgAnimatedNumber` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedNumber)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`*"] pub type SvgAnimatedNumber; # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimatedNumber" , js_name = baseVal)] #[doc = "Getter for the `baseVal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedNumber/baseVal)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`*"] pub fn base_val(this: &SvgAnimatedNumber) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGAnimatedNumber" , js_name = baseVal)] #[doc = "Setter for the `baseVal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedNumber/baseVal)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`*"] pub fn set_base_val(this: &SvgAnimatedNumber, value: f32); # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimatedNumber" , js_name = animVal)] #[doc = "Getter for the `animVal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedNumber/animVal)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`*"] pub fn anim_val(this: &SvgAnimatedNumber) -> f32; } web-sys-0.3.55/src/features/gen_SvgAnimatedNumberList.rs000064400000000000000000000032410072674642500213520ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGAnimatedNumberList , typescript_type = "SVGAnimatedNumberList")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgAnimatedNumberList` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedNumberList)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumberList`*"] pub type SvgAnimatedNumberList; #[cfg(feature = "SvgNumberList")] # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimatedNumberList" , js_name = baseVal)] #[doc = "Getter for the `baseVal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedNumberList/baseVal)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumberList`, `SvgNumberList`*"] pub fn base_val(this: &SvgAnimatedNumberList) -> SvgNumberList; #[cfg(feature = "SvgNumberList")] # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimatedNumberList" , js_name = animVal)] #[doc = "Getter for the `animVal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedNumberList/animVal)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumberList`, `SvgNumberList`*"] pub fn anim_val(this: &SvgAnimatedNumberList) -> SvgNumberList; } web-sys-0.3.55/src/features/gen_SvgAnimatedPreserveAspectRatio.rs000064400000000000000000000035250072674642500232250ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGAnimatedPreserveAspectRatio , typescript_type = "SVGAnimatedPreserveAspectRatio")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgAnimatedPreserveAspectRatio` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedPreserveAspectRatio)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedPreserveAspectRatio`*"] pub type SvgAnimatedPreserveAspectRatio; #[cfg(feature = "SvgPreserveAspectRatio")] # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimatedPreserveAspectRatio" , js_name = baseVal)] #[doc = "Getter for the `baseVal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedPreserveAspectRatio/baseVal)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedPreserveAspectRatio`, `SvgPreserveAspectRatio`*"] pub fn base_val(this: &SvgAnimatedPreserveAspectRatio) -> SvgPreserveAspectRatio; #[cfg(feature = "SvgPreserveAspectRatio")] # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimatedPreserveAspectRatio" , js_name = animVal)] #[doc = "Getter for the `animVal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedPreserveAspectRatio/animVal)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedPreserveAspectRatio`, `SvgPreserveAspectRatio`*"] pub fn anim_val(this: &SvgAnimatedPreserveAspectRatio) -> SvgPreserveAspectRatio; } web-sys-0.3.55/src/features/gen_SvgAnimatedRect.rs000064400000000000000000000030710072674642500201640ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGAnimatedRect , typescript_type = "SVGAnimatedRect")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgAnimatedRect` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedRect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedRect`*"] pub type SvgAnimatedRect; #[cfg(feature = "SvgRect")] # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimatedRect" , js_name = baseVal)] #[doc = "Getter for the `baseVal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedRect/baseVal)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedRect`, `SvgRect`*"] pub fn base_val(this: &SvgAnimatedRect) -> Option; #[cfg(feature = "SvgRect")] # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimatedRect" , js_name = animVal)] #[doc = "Getter for the `animVal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedRect/animVal)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedRect`, `SvgRect`*"] pub fn anim_val(this: &SvgAnimatedRect) -> Option; } web-sys-0.3.55/src/features/gen_SvgAnimatedString.rs000064400000000000000000000037100072674642500205350ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGAnimatedString , typescript_type = "SVGAnimatedString")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgAnimatedString` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedString)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`*"] pub type SvgAnimatedString; # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimatedString" , js_name = baseVal)] #[doc = "Getter for the `baseVal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedString/baseVal)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`*"] pub fn base_val(this: &SvgAnimatedString) -> String; # [wasm_bindgen (structural , method , setter , js_class = "SVGAnimatedString" , js_name = baseVal)] #[doc = "Setter for the `baseVal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedString/baseVal)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`*"] pub fn set_base_val(this: &SvgAnimatedString, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimatedString" , js_name = animVal)] #[doc = "Getter for the `animVal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedString/animVal)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`*"] pub fn anim_val(this: &SvgAnimatedString) -> String; } web-sys-0.3.55/src/features/gen_SvgAnimatedTransformList.rs000064400000000000000000000033350072674642500221010ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGAnimatedTransformList , typescript_type = "SVGAnimatedTransformList")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgAnimatedTransformList` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedTransformList)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedTransformList`*"] pub type SvgAnimatedTransformList; #[cfg(feature = "SvgTransformList")] # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimatedTransformList" , js_name = baseVal)] #[doc = "Getter for the `baseVal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedTransformList/baseVal)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedTransformList`, `SvgTransformList`*"] pub fn base_val(this: &SvgAnimatedTransformList) -> SvgTransformList; #[cfg(feature = "SvgTransformList")] # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimatedTransformList" , js_name = animVal)] #[doc = "Getter for the `animVal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedTransformList/animVal)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedTransformList`, `SvgTransformList`*"] pub fn anim_val(this: &SvgAnimatedTransformList) -> SvgTransformList; } web-sys-0.3.55/src/features/gen_SvgAnimationElement.rs000064400000000000000000000152460072674642500210640ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGAnimationElement , typescript_type = "SVGAnimationElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgAnimationElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`*"] pub type SvgAnimationElement; # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimationElement" , js_name = targetElement)] #[doc = "Getter for the `targetElement` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/targetElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`*"] pub fn target_element(this: &SvgAnimationElement) -> Option; #[cfg(feature = "SvgStringList")] # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimationElement" , js_name = requiredFeatures)] #[doc = "Getter for the `requiredFeatures` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/requiredFeatures)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`, `SvgStringList`*"] pub fn required_features(this: &SvgAnimationElement) -> SvgStringList; #[cfg(feature = "SvgStringList")] # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimationElement" , js_name = requiredExtensions)] #[doc = "Getter for the `requiredExtensions` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/requiredExtensions)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`, `SvgStringList`*"] pub fn required_extensions(this: &SvgAnimationElement) -> SvgStringList; #[cfg(feature = "SvgStringList")] # [wasm_bindgen (structural , method , getter , js_class = "SVGAnimationElement" , js_name = systemLanguage)] #[doc = "Getter for the `systemLanguage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/systemLanguage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`, `SvgStringList`*"] pub fn system_language(this: &SvgAnimationElement) -> SvgStringList; # [wasm_bindgen (catch , method , structural , js_class = "SVGAnimationElement" , js_name = beginElement)] #[doc = "The `beginElement()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/beginElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`*"] pub fn begin_element(this: &SvgAnimationElement) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "SVGAnimationElement" , js_name = beginElementAt)] #[doc = "The `beginElementAt()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/beginElementAt)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`*"] pub fn begin_element_at(this: &SvgAnimationElement, offset: f32) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "SVGAnimationElement" , js_name = endElement)] #[doc = "The `endElement()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/endElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`*"] pub fn end_element(this: &SvgAnimationElement) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "SVGAnimationElement" , js_name = endElementAt)] #[doc = "The `endElementAt()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/endElementAt)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`*"] pub fn end_element_at(this: &SvgAnimationElement, offset: f32) -> Result<(), JsValue>; # [wasm_bindgen (method , structural , js_class = "SVGAnimationElement" , js_name = getCurrentTime)] #[doc = "The `getCurrentTime()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/getCurrentTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`*"] pub fn get_current_time(this: &SvgAnimationElement) -> f32; # [wasm_bindgen (catch , method , structural , js_class = "SVGAnimationElement" , js_name = getSimpleDuration)] #[doc = "The `getSimpleDuration()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/getSimpleDuration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`*"] pub fn get_simple_duration(this: &SvgAnimationElement) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "SVGAnimationElement" , js_name = getStartTime)] #[doc = "The `getStartTime()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/getStartTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`*"] pub fn get_start_time(this: &SvgAnimationElement) -> Result; # [wasm_bindgen (method , structural , js_class = "SVGAnimationElement" , js_name = hasExtension)] #[doc = "The `hasExtension()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/hasExtension)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`*"] pub fn has_extension(this: &SvgAnimationElement, extension: &str) -> bool; } web-sys-0.3.55/src/features/gen_SvgBoundingBoxOptions.rs000064400000000000000000000061640072674642500214240ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGBoundingBoxOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgBoundingBoxOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgBoundingBoxOptions`*"] pub type SvgBoundingBoxOptions; } impl SvgBoundingBoxOptions { #[doc = "Construct a new `SvgBoundingBoxOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgBoundingBoxOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `clipped` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgBoundingBoxOptions`*"] pub fn clipped(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("clipped"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `fill` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgBoundingBoxOptions`*"] pub fn fill(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("fill"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `markers` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgBoundingBoxOptions`*"] pub fn markers(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("markers"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `stroke` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgBoundingBoxOptions`*"] pub fn stroke(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("stroke"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for SvgBoundingBoxOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_SvgCircleElement.rs000064400000000000000000000043340072674642500203420ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgGeometryElement , extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGCircleElement , typescript_type = "SVGCircleElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgCircleElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGCircleElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgCircleElement`*"] pub type SvgCircleElement; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGCircleElement" , js_name = cx)] #[doc = "Getter for the `cx` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGCircleElement/cx)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgCircleElement`*"] pub fn cx(this: &SvgCircleElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGCircleElement" , js_name = cy)] #[doc = "Getter for the `cy` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGCircleElement/cy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgCircleElement`*"] pub fn cy(this: &SvgCircleElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGCircleElement" , js_name = r)] #[doc = "Getter for the `r` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGCircleElement/r)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgCircleElement`*"] pub fn r(this: &SvgCircleElement) -> SvgAnimatedLength; } web-sys-0.3.55/src/features/gen_SvgClipPathElement.rs000064400000000000000000000034470072674642500206510ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGClipPathElement , typescript_type = "SVGClipPathElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgClipPathElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGClipPathElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgClipPathElement`*"] pub type SvgClipPathElement; #[cfg(feature = "SvgAnimatedEnumeration")] # [wasm_bindgen (structural , method , getter , js_class = "SVGClipPathElement" , js_name = clipPathUnits)] #[doc = "Getter for the `clipPathUnits` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGClipPathElement/clipPathUnits)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgClipPathElement`*"] pub fn clip_path_units(this: &SvgClipPathElement) -> SvgAnimatedEnumeration; #[cfg(feature = "SvgAnimatedTransformList")] # [wasm_bindgen (structural , method , getter , js_class = "SVGClipPathElement" , js_name = transform)] #[doc = "Getter for the `transform` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGClipPathElement/transform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedTransformList`, `SvgClipPathElement`*"] pub fn transform(this: &SvgClipPathElement) -> SvgAnimatedTransformList; } web-sys-0.3.55/src/features/gen_SvgComponentTransferFunctionElement.rs000064400000000000000000000155120072674642500243160ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGComponentTransferFunctionElement , typescript_type = "SVGComponentTransferFunctionElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgComponentTransferFunctionElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGComponentTransferFunctionElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgComponentTransferFunctionElement`*"] pub type SvgComponentTransferFunctionElement; #[cfg(feature = "SvgAnimatedEnumeration")] # [wasm_bindgen (structural , method , getter , js_class = "SVGComponentTransferFunctionElement" , js_name = type)] #[doc = "Getter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGComponentTransferFunctionElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgComponentTransferFunctionElement`*"] pub fn type_(this: &SvgComponentTransferFunctionElement) -> SvgAnimatedEnumeration; #[cfg(feature = "SvgAnimatedNumberList")] # [wasm_bindgen (structural , method , getter , js_class = "SVGComponentTransferFunctionElement" , js_name = tableValues)] #[doc = "Getter for the `tableValues` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGComponentTransferFunctionElement/tableValues)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumberList`, `SvgComponentTransferFunctionElement`*"] pub fn table_values(this: &SvgComponentTransferFunctionElement) -> SvgAnimatedNumberList; #[cfg(feature = "SvgAnimatedNumber")] # [wasm_bindgen (structural , method , getter , js_class = "SVGComponentTransferFunctionElement" , js_name = slope)] #[doc = "Getter for the `slope` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGComponentTransferFunctionElement/slope)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgComponentTransferFunctionElement`*"] pub fn slope(this: &SvgComponentTransferFunctionElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] # [wasm_bindgen (structural , method , getter , js_class = "SVGComponentTransferFunctionElement" , js_name = intercept)] #[doc = "Getter for the `intercept` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGComponentTransferFunctionElement/intercept)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgComponentTransferFunctionElement`*"] pub fn intercept(this: &SvgComponentTransferFunctionElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] # [wasm_bindgen (structural , method , getter , js_class = "SVGComponentTransferFunctionElement" , js_name = amplitude)] #[doc = "Getter for the `amplitude` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGComponentTransferFunctionElement/amplitude)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgComponentTransferFunctionElement`*"] pub fn amplitude(this: &SvgComponentTransferFunctionElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] # [wasm_bindgen (structural , method , getter , js_class = "SVGComponentTransferFunctionElement" , js_name = exponent)] #[doc = "Getter for the `exponent` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGComponentTransferFunctionElement/exponent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgComponentTransferFunctionElement`*"] pub fn exponent(this: &SvgComponentTransferFunctionElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] # [wasm_bindgen (structural , method , getter , js_class = "SVGComponentTransferFunctionElement" , js_name = offset)] #[doc = "Getter for the `offset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGComponentTransferFunctionElement/offset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgComponentTransferFunctionElement`*"] pub fn offset(this: &SvgComponentTransferFunctionElement) -> SvgAnimatedNumber; } impl SvgComponentTransferFunctionElement { #[doc = "The `SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgComponentTransferFunctionElement`*"] pub const SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: u16 = 0i64 as u16; #[doc = "The `SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgComponentTransferFunctionElement`*"] pub const SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: u16 = 1u64 as u16; #[doc = "The `SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TYPE_TABLE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgComponentTransferFunctionElement`*"] pub const SVG_FECOMPONENTTRANSFER_TYPE_TABLE: u16 = 2u64 as u16; #[doc = "The `SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgComponentTransferFunctionElement`*"] pub const SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: u16 = 3u64 as u16; #[doc = "The `SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TYPE_LINEAR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgComponentTransferFunctionElement`*"] pub const SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: u16 = 4u64 as u16; #[doc = "The `SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TYPE_GAMMA` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgComponentTransferFunctionElement`*"] pub const SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: u16 = 5u64 as u16; } web-sys-0.3.55/src/features/gen_SvgDefsElement.rs000064400000000000000000000012460072674642500200210ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGDefsElement , typescript_type = "SVGDefsElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgDefsElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGDefsElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgDefsElement`*"] pub type SvgDefsElement; } web-sys-0.3.55/src/features/gen_SvgDescElement.rs000064400000000000000000000012070072674642500200130ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGDescElement , typescript_type = "SVGDescElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgDescElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGDescElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgDescElement`*"] pub type SvgDescElement; } web-sys-0.3.55/src/features/gen_SvgElement.rs000064400000000000000000002640720072674642500172270ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGElement , typescript_type = "SVGElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub type SvgElement; # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = id)] #[doc = "Getter for the `id` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/id)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn id(this: &SvgElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = id)] #[doc = "Setter for the `id` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/id)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_id(this: &SvgElement, value: &str); #[cfg(feature = "SvgAnimatedString")] # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = className)] #[doc = "Getter for the `className` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/className)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgElement`*"] pub fn class_name(this: &SvgElement) -> SvgAnimatedString; #[cfg(feature = "DomStringMap")] # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = dataset)] #[doc = "Getter for the `dataset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/dataset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomStringMap`, `SvgElement`*"] pub fn dataset(this: &SvgElement) -> DomStringMap; #[cfg(feature = "CssStyleDeclaration")] # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = style)] #[doc = "Getter for the `style` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/style)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssStyleDeclaration`, `SvgElement`*"] pub fn style(this: &SvgElement) -> CssStyleDeclaration; #[cfg(feature = "SvgsvgElement")] # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = ownerSVGElement)] #[doc = "Getter for the `ownerSVGElement` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ownerSVGElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`, `SvgsvgElement`*"] pub fn owner_svg_element(this: &SvgElement) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = viewportElement)] #[doc = "Getter for the `viewportElement` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/viewportElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn viewport_element(this: &SvgElement) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = tabIndex)] #[doc = "Getter for the `tabIndex` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/tabIndex)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn tab_index(this: &SvgElement) -> i32; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = tabIndex)] #[doc = "Setter for the `tabIndex` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/tabIndex)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_tab_index(this: &SvgElement, value: i32); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = oncopy)] #[doc = "Getter for the `oncopy` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/oncopy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn oncopy(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = oncopy)] #[doc = "Setter for the `oncopy` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/oncopy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_oncopy(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = oncut)] #[doc = "Getter for the `oncut` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/oncut)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn oncut(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = oncut)] #[doc = "Setter for the `oncut` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/oncut)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_oncut(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onpaste)] #[doc = "Getter for the `onpaste` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpaste)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onpaste(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onpaste)] #[doc = "Setter for the `onpaste` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpaste)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onpaste(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onabort)] #[doc = "Getter for the `onabort` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onabort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onabort(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onabort)] #[doc = "Setter for the `onabort` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onabort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onabort(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onblur)] #[doc = "Getter for the `onblur` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onblur)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onblur(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onblur)] #[doc = "Setter for the `onblur` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onblur)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onblur(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onfocus)] #[doc = "Getter for the `onfocus` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onfocus)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onfocus(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onfocus)] #[doc = "Setter for the `onfocus` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onfocus)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onfocus(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onauxclick)] #[doc = "Getter for the `onauxclick` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onauxclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onauxclick(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onauxclick)] #[doc = "Setter for the `onauxclick` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onauxclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onauxclick(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = oncanplay)] #[doc = "Getter for the `oncanplay` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/oncanplay)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn oncanplay(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = oncanplay)] #[doc = "Setter for the `oncanplay` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/oncanplay)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_oncanplay(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = oncanplaythrough)] #[doc = "Getter for the `oncanplaythrough` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/oncanplaythrough)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn oncanplaythrough(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = oncanplaythrough)] #[doc = "Setter for the `oncanplaythrough` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/oncanplaythrough)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_oncanplaythrough(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onchange)] #[doc = "Getter for the `onchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onchange(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onchange)] #[doc = "Setter for the `onchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onchange(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onclick)] #[doc = "Getter for the `onclick` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onclick(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onclick)] #[doc = "Setter for the `onclick` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onclick(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onclose)] #[doc = "Getter for the `onclose` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onclose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onclose(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onclose)] #[doc = "Setter for the `onclose` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onclose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onclose(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = oncontextmenu)] #[doc = "Getter for the `oncontextmenu` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/oncontextmenu)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn oncontextmenu(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = oncontextmenu)] #[doc = "Setter for the `oncontextmenu` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/oncontextmenu)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_oncontextmenu(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = ondblclick)] #[doc = "Getter for the `ondblclick` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondblclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn ondblclick(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = ondblclick)] #[doc = "Setter for the `ondblclick` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondblclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_ondblclick(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = ondrag)] #[doc = "Getter for the `ondrag` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondrag)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn ondrag(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = ondrag)] #[doc = "Setter for the `ondrag` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondrag)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_ondrag(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = ondragend)] #[doc = "Getter for the `ondragend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondragend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn ondragend(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = ondragend)] #[doc = "Setter for the `ondragend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondragend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_ondragend(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = ondragenter)] #[doc = "Getter for the `ondragenter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondragenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn ondragenter(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = ondragenter)] #[doc = "Setter for the `ondragenter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondragenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_ondragenter(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = ondragexit)] #[doc = "Getter for the `ondragexit` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondragexit)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn ondragexit(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = ondragexit)] #[doc = "Setter for the `ondragexit` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondragexit)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_ondragexit(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = ondragleave)] #[doc = "Getter for the `ondragleave` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondragleave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn ondragleave(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = ondragleave)] #[doc = "Setter for the `ondragleave` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondragleave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_ondragleave(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = ondragover)] #[doc = "Getter for the `ondragover` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondragover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn ondragover(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = ondragover)] #[doc = "Setter for the `ondragover` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondragover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_ondragover(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = ondragstart)] #[doc = "Getter for the `ondragstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondragstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn ondragstart(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = ondragstart)] #[doc = "Setter for the `ondragstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondragstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_ondragstart(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = ondrop)] #[doc = "Getter for the `ondrop` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondrop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn ondrop(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = ondrop)] #[doc = "Setter for the `ondrop` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondrop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_ondrop(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = ondurationchange)] #[doc = "Getter for the `ondurationchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondurationchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn ondurationchange(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = ondurationchange)] #[doc = "Setter for the `ondurationchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondurationchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_ondurationchange(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onemptied)] #[doc = "Getter for the `onemptied` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onemptied)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onemptied(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onemptied)] #[doc = "Setter for the `onemptied` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onemptied)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onemptied(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onended)] #[doc = "Getter for the `onended` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onended)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onended(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onended)] #[doc = "Setter for the `onended` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onended)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onended(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = oninput)] #[doc = "Getter for the `oninput` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/oninput)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn oninput(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = oninput)] #[doc = "Setter for the `oninput` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/oninput)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_oninput(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = oninvalid)] #[doc = "Getter for the `oninvalid` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/oninvalid)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn oninvalid(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = oninvalid)] #[doc = "Setter for the `oninvalid` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/oninvalid)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_oninvalid(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onkeydown)] #[doc = "Getter for the `onkeydown` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onkeydown)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onkeydown(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onkeydown)] #[doc = "Setter for the `onkeydown` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onkeydown)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onkeydown(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onkeypress)] #[doc = "Getter for the `onkeypress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onkeypress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onkeypress(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onkeypress)] #[doc = "Setter for the `onkeypress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onkeypress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onkeypress(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onkeyup)] #[doc = "Getter for the `onkeyup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onkeyup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onkeyup(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onkeyup)] #[doc = "Setter for the `onkeyup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onkeyup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onkeyup(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onload)] #[doc = "Getter for the `onload` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onload(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onload)] #[doc = "Setter for the `onload` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onload(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onloadeddata)] #[doc = "Getter for the `onloadeddata` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onloadeddata)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onloadeddata(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onloadeddata)] #[doc = "Setter for the `onloadeddata` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onloadeddata)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onloadeddata(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onloadedmetadata)] #[doc = "Getter for the `onloadedmetadata` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onloadedmetadata)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onloadedmetadata(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onloadedmetadata)] #[doc = "Setter for the `onloadedmetadata` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onloadedmetadata)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onloadedmetadata(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onloadend)] #[doc = "Getter for the `onloadend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onloadend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onloadend(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onloadend)] #[doc = "Setter for the `onloadend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onloadend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onloadend(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onloadstart)] #[doc = "Getter for the `onloadstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onloadstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onloadstart(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onloadstart)] #[doc = "Setter for the `onloadstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onloadstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onloadstart(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onmousedown)] #[doc = "Getter for the `onmousedown` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onmousedown)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onmousedown(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onmousedown)] #[doc = "Setter for the `onmousedown` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onmousedown)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onmousedown(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onmouseenter)] #[doc = "Getter for the `onmouseenter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onmouseenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onmouseenter(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onmouseenter)] #[doc = "Setter for the `onmouseenter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onmouseenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onmouseenter(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onmouseleave)] #[doc = "Getter for the `onmouseleave` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onmouseleave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onmouseleave(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onmouseleave)] #[doc = "Setter for the `onmouseleave` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onmouseleave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onmouseleave(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onmousemove)] #[doc = "Getter for the `onmousemove` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onmousemove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onmousemove(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onmousemove)] #[doc = "Setter for the `onmousemove` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onmousemove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onmousemove(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onmouseout)] #[doc = "Getter for the `onmouseout` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onmouseout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onmouseout(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onmouseout)] #[doc = "Setter for the `onmouseout` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onmouseout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onmouseout(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onmouseover)] #[doc = "Getter for the `onmouseover` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onmouseover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onmouseover(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onmouseover)] #[doc = "Setter for the `onmouseover` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onmouseover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onmouseover(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onmouseup)] #[doc = "Getter for the `onmouseup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onmouseup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onmouseup(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onmouseup)] #[doc = "Setter for the `onmouseup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onmouseup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onmouseup(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onwheel)] #[doc = "Getter for the `onwheel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onwheel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onwheel(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onwheel)] #[doc = "Setter for the `onwheel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onwheel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onwheel(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onpause)] #[doc = "Getter for the `onpause` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpause)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onpause(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onpause)] #[doc = "Setter for the `onpause` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpause)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onpause(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onplay)] #[doc = "Getter for the `onplay` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onplay)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onplay(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onplay)] #[doc = "Setter for the `onplay` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onplay)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onplay(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onplaying)] #[doc = "Getter for the `onplaying` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onplaying)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onplaying(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onplaying)] #[doc = "Setter for the `onplaying` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onplaying)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onplaying(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onprogress)] #[doc = "Getter for the `onprogress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onprogress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onprogress(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onprogress)] #[doc = "Setter for the `onprogress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onprogress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onprogress(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onratechange)] #[doc = "Getter for the `onratechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onratechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onratechange(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onratechange)] #[doc = "Setter for the `onratechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onratechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onratechange(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onreset)] #[doc = "Getter for the `onreset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onreset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onreset(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onreset)] #[doc = "Setter for the `onreset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onreset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onreset(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onresize)] #[doc = "Getter for the `onresize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onresize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onresize(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onresize)] #[doc = "Setter for the `onresize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onresize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onresize(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onscroll)] #[doc = "Getter for the `onscroll` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onscroll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onscroll(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onscroll)] #[doc = "Setter for the `onscroll` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onscroll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onscroll(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onseeked)] #[doc = "Getter for the `onseeked` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onseeked)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onseeked(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onseeked)] #[doc = "Setter for the `onseeked` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onseeked)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onseeked(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onseeking)] #[doc = "Getter for the `onseeking` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onseeking)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onseeking(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onseeking)] #[doc = "Setter for the `onseeking` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onseeking)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onseeking(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onselect)] #[doc = "Getter for the `onselect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onselect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onselect(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onselect)] #[doc = "Setter for the `onselect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onselect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onselect(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onshow)] #[doc = "Getter for the `onshow` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onshow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onshow(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onshow)] #[doc = "Setter for the `onshow` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onshow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onshow(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onstalled)] #[doc = "Getter for the `onstalled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onstalled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onstalled(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onstalled)] #[doc = "Setter for the `onstalled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onstalled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onstalled(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onsubmit)] #[doc = "Getter for the `onsubmit` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onsubmit)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onsubmit(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onsubmit)] #[doc = "Setter for the `onsubmit` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onsubmit)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onsubmit(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onsuspend)] #[doc = "Getter for the `onsuspend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onsuspend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onsuspend(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onsuspend)] #[doc = "Setter for the `onsuspend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onsuspend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onsuspend(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = ontimeupdate)] #[doc = "Getter for the `ontimeupdate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontimeupdate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn ontimeupdate(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = ontimeupdate)] #[doc = "Setter for the `ontimeupdate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontimeupdate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_ontimeupdate(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onvolumechange)] #[doc = "Getter for the `onvolumechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onvolumechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onvolumechange(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onvolumechange)] #[doc = "Setter for the `onvolumechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onvolumechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onvolumechange(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onwaiting)] #[doc = "Getter for the `onwaiting` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onwaiting)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onwaiting(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onwaiting)] #[doc = "Setter for the `onwaiting` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onwaiting)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onwaiting(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onselectstart)] #[doc = "Getter for the `onselectstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onselectstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onselectstart(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onselectstart)] #[doc = "Setter for the `onselectstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onselectstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onselectstart(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = ontoggle)] #[doc = "Getter for the `ontoggle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontoggle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn ontoggle(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = ontoggle)] #[doc = "Setter for the `ontoggle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontoggle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_ontoggle(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onpointercancel)] #[doc = "Getter for the `onpointercancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpointercancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onpointercancel(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onpointercancel)] #[doc = "Setter for the `onpointercancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpointercancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onpointercancel(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onpointerdown)] #[doc = "Getter for the `onpointerdown` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpointerdown)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onpointerdown(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onpointerdown)] #[doc = "Setter for the `onpointerdown` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpointerdown)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onpointerdown(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onpointerup)] #[doc = "Getter for the `onpointerup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpointerup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onpointerup(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onpointerup)] #[doc = "Setter for the `onpointerup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpointerup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onpointerup(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onpointermove)] #[doc = "Getter for the `onpointermove` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpointermove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onpointermove(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onpointermove)] #[doc = "Setter for the `onpointermove` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpointermove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onpointermove(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onpointerout)] #[doc = "Getter for the `onpointerout` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpointerout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onpointerout(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onpointerout)] #[doc = "Setter for the `onpointerout` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpointerout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onpointerout(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onpointerover)] #[doc = "Getter for the `onpointerover` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpointerover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onpointerover(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onpointerover)] #[doc = "Setter for the `onpointerover` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpointerover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onpointerover(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onpointerenter)] #[doc = "Getter for the `onpointerenter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpointerenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onpointerenter(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onpointerenter)] #[doc = "Setter for the `onpointerenter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpointerenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onpointerenter(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onpointerleave)] #[doc = "Getter for the `onpointerleave` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpointerleave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onpointerleave(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onpointerleave)] #[doc = "Setter for the `onpointerleave` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpointerleave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onpointerleave(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = ongotpointercapture)] #[doc = "Getter for the `ongotpointercapture` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ongotpointercapture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn ongotpointercapture(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = ongotpointercapture)] #[doc = "Setter for the `ongotpointercapture` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ongotpointercapture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_ongotpointercapture(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onlostpointercapture)] #[doc = "Getter for the `onlostpointercapture` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onlostpointercapture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onlostpointercapture(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onlostpointercapture)] #[doc = "Setter for the `onlostpointercapture` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onlostpointercapture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onlostpointercapture(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onanimationcancel)] #[doc = "Getter for the `onanimationcancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onanimationcancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onanimationcancel(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onanimationcancel)] #[doc = "Setter for the `onanimationcancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onanimationcancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onanimationcancel(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onanimationend)] #[doc = "Getter for the `onanimationend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onanimationend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onanimationend(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onanimationend)] #[doc = "Setter for the `onanimationend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onanimationend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onanimationend(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onanimationiteration)] #[doc = "Getter for the `onanimationiteration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onanimationiteration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onanimationiteration(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onanimationiteration)] #[doc = "Setter for the `onanimationiteration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onanimationiteration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onanimationiteration(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onanimationstart)] #[doc = "Getter for the `onanimationstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onanimationstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onanimationstart(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onanimationstart)] #[doc = "Setter for the `onanimationstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onanimationstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onanimationstart(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = ontransitioncancel)] #[doc = "Getter for the `ontransitioncancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontransitioncancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn ontransitioncancel(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = ontransitioncancel)] #[doc = "Setter for the `ontransitioncancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontransitioncancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_ontransitioncancel(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = ontransitionend)] #[doc = "Getter for the `ontransitionend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontransitionend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn ontransitionend(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = ontransitionend)] #[doc = "Setter for the `ontransitionend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontransitionend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_ontransitionend(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = ontransitionrun)] #[doc = "Getter for the `ontransitionrun` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontransitionrun)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn ontransitionrun(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = ontransitionrun)] #[doc = "Setter for the `ontransitionrun` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontransitionrun)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_ontransitionrun(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = ontransitionstart)] #[doc = "Getter for the `ontransitionstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontransitionstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn ontransitionstart(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = ontransitionstart)] #[doc = "Setter for the `ontransitionstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontransitionstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_ontransitionstart(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onwebkitanimationend)] #[doc = "Getter for the `onwebkitanimationend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onwebkitanimationend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onwebkitanimationend(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onwebkitanimationend)] #[doc = "Setter for the `onwebkitanimationend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onwebkitanimationend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onwebkitanimationend(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onwebkitanimationiteration)] #[doc = "Getter for the `onwebkitanimationiteration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onwebkitanimationiteration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onwebkitanimationiteration(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onwebkitanimationiteration)] #[doc = "Setter for the `onwebkitanimationiteration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onwebkitanimationiteration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onwebkitanimationiteration(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onwebkitanimationstart)] #[doc = "Getter for the `onwebkitanimationstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onwebkitanimationstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onwebkitanimationstart(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onwebkitanimationstart)] #[doc = "Setter for the `onwebkitanimationstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onwebkitanimationstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onwebkitanimationstart(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onwebkittransitionend)] #[doc = "Getter for the `onwebkittransitionend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onwebkittransitionend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onwebkittransitionend(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onwebkittransitionend)] #[doc = "Setter for the `onwebkittransitionend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onwebkittransitionend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onwebkittransitionend(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = onerror)] #[doc = "Getter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onerror(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onerror)] #[doc = "Setter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onerror(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = ontouchstart)] #[doc = "Getter for the `ontouchstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontouchstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn ontouchstart(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = ontouchstart)] #[doc = "Setter for the `ontouchstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontouchstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_ontouchstart(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = ontouchend)] #[doc = "Getter for the `ontouchend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontouchend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn ontouchend(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = ontouchend)] #[doc = "Setter for the `ontouchend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontouchend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_ontouchend(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = ontouchmove)] #[doc = "Getter for the `ontouchmove` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontouchmove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn ontouchmove(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = ontouchmove)] #[doc = "Setter for the `ontouchmove` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontouchmove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_ontouchmove(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = ontouchcancel)] #[doc = "Getter for the `ontouchcancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontouchcancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn ontouchcancel(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = ontouchcancel)] #[doc = "Setter for the `ontouchcancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontouchcancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_ontouchcancel(this: &SvgElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (catch , method , structural , js_class = "SVGElement" , js_name = blur)] #[doc = "The `blur()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/blur)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn blur(this: &SvgElement) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "SVGElement" , js_name = focus)] #[doc = "The `focus()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/focus)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn focus(this: &SvgElement) -> Result<(), JsValue>; } web-sys-0.3.55/src/features/gen_SvgEllipseElement.rs000064400000000000000000000053730072674642500205420ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgGeometryElement , extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGEllipseElement , typescript_type = "SVGEllipseElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgEllipseElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGEllipseElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgEllipseElement`*"] pub type SvgEllipseElement; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGEllipseElement" , js_name = cx)] #[doc = "Getter for the `cx` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGEllipseElement/cx)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgEllipseElement`*"] pub fn cx(this: &SvgEllipseElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGEllipseElement" , js_name = cy)] #[doc = "Getter for the `cy` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGEllipseElement/cy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgEllipseElement`*"] pub fn cy(this: &SvgEllipseElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGEllipseElement" , js_name = rx)] #[doc = "Getter for the `rx` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGEllipseElement/rx)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgEllipseElement`*"] pub fn rx(this: &SvgEllipseElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGEllipseElement" , js_name = ry)] #[doc = "Getter for the `ry` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGEllipseElement/ry)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgEllipseElement`*"] pub fn ry(this: &SvgEllipseElement) -> SvgAnimatedLength; } web-sys-0.3.55/src/features/gen_SvgFilterElement.rs000064400000000000000000000105060072674642500203640ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFilterElement , typescript_type = "SVGFilterElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgFilterElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFilterElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgFilterElement`*"] pub type SvgFilterElement; #[cfg(feature = "SvgAnimatedEnumeration")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFilterElement" , js_name = filterUnits)] #[doc = "Getter for the `filterUnits` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFilterElement/filterUnits)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgFilterElement`*"] pub fn filter_units(this: &SvgFilterElement) -> SvgAnimatedEnumeration; #[cfg(feature = "SvgAnimatedEnumeration")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFilterElement" , js_name = primitiveUnits)] #[doc = "Getter for the `primitiveUnits` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFilterElement/primitiveUnits)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgFilterElement`*"] pub fn primitive_units(this: &SvgFilterElement) -> SvgAnimatedEnumeration; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFilterElement" , js_name = x)] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFilterElement/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgFilterElement`*"] pub fn x(this: &SvgFilterElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFilterElement" , js_name = y)] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFilterElement/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgFilterElement`*"] pub fn y(this: &SvgFilterElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFilterElement" , js_name = width)] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFilterElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgFilterElement`*"] pub fn width(this: &SvgFilterElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFilterElement" , js_name = height)] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFilterElement/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgFilterElement`*"] pub fn height(this: &SvgFilterElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedString")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFilterElement" , js_name = href)] #[doc = "Getter for the `href` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFilterElement/href)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgFilterElement`*"] pub fn href(this: &SvgFilterElement) -> SvgAnimatedString; } web-sys-0.3.55/src/features/gen_SvgForeignObjectElement.rs000064400000000000000000000055640072674642500216670ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGForeignObjectElement , typescript_type = "SVGForeignObjectElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgForeignObjectElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGForeignObjectElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgForeignObjectElement`*"] pub type SvgForeignObjectElement; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGForeignObjectElement" , js_name = x)] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGForeignObjectElement/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgForeignObjectElement`*"] pub fn x(this: &SvgForeignObjectElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGForeignObjectElement" , js_name = y)] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGForeignObjectElement/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgForeignObjectElement`*"] pub fn y(this: &SvgForeignObjectElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGForeignObjectElement" , js_name = width)] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGForeignObjectElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgForeignObjectElement`*"] pub fn width(this: &SvgForeignObjectElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGForeignObjectElement" , js_name = height)] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGForeignObjectElement/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgForeignObjectElement`*"] pub fn height(this: &SvgForeignObjectElement) -> SvgAnimatedLength; } web-sys-0.3.55/src/features/gen_SvgGeometryElement.rs000064400000000000000000000044120072674642500207310ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGGeometryElement , typescript_type = "SVGGeometryElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgGeometryElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGeometryElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgGeometryElement`*"] pub type SvgGeometryElement; #[cfg(feature = "SvgAnimatedNumber")] # [wasm_bindgen (structural , method , getter , js_class = "SVGGeometryElement" , js_name = pathLength)] #[doc = "Getter for the `pathLength` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGeometryElement/pathLength)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgGeometryElement`*"] pub fn path_length(this: &SvgGeometryElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgPoint")] # [wasm_bindgen (catch , method , structural , js_class = "SVGGeometryElement" , js_name = getPointAtLength)] #[doc = "The `getPointAtLength()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGeometryElement/getPointAtLength)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgGeometryElement`, `SvgPoint`*"] pub fn get_point_at_length( this: &SvgGeometryElement, distance: f32, ) -> Result; # [wasm_bindgen (method , structural , js_class = "SVGGeometryElement" , js_name = getTotalLength)] #[doc = "The `getTotalLength()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGeometryElement/getTotalLength)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgGeometryElement`*"] pub fn get_total_length(this: &SvgGeometryElement) -> f32; } web-sys-0.3.55/src/features/gen_SvgGradientElement.rs000064400000000000000000000076270072674642500207060ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGGradientElement , typescript_type = "SVGGradientElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgGradientElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGradientElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgGradientElement`*"] pub type SvgGradientElement; #[cfg(feature = "SvgAnimatedEnumeration")] # [wasm_bindgen (structural , method , getter , js_class = "SVGGradientElement" , js_name = gradientUnits)] #[doc = "Getter for the `gradientUnits` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGradientElement/gradientUnits)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgGradientElement`*"] pub fn gradient_units(this: &SvgGradientElement) -> SvgAnimatedEnumeration; #[cfg(feature = "SvgAnimatedTransformList")] # [wasm_bindgen (structural , method , getter , js_class = "SVGGradientElement" , js_name = gradientTransform)] #[doc = "Getter for the `gradientTransform` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGradientElement/gradientTransform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedTransformList`, `SvgGradientElement`*"] pub fn gradient_transform(this: &SvgGradientElement) -> SvgAnimatedTransformList; #[cfg(feature = "SvgAnimatedEnumeration")] # [wasm_bindgen (structural , method , getter , js_class = "SVGGradientElement" , js_name = spreadMethod)] #[doc = "Getter for the `spreadMethod` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGradientElement/spreadMethod)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgGradientElement`*"] pub fn spread_method(this: &SvgGradientElement) -> SvgAnimatedEnumeration; #[cfg(feature = "SvgAnimatedString")] # [wasm_bindgen (structural , method , getter , js_class = "SVGGradientElement" , js_name = href)] #[doc = "Getter for the `href` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGradientElement/href)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgGradientElement`*"] pub fn href(this: &SvgGradientElement) -> SvgAnimatedString; } impl SvgGradientElement { #[doc = "The `SVGGradientElement.SVG_SPREADMETHOD_UNKNOWN` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgGradientElement`*"] pub const SVG_SPREADMETHOD_UNKNOWN: u16 = 0i64 as u16; #[doc = "The `SVGGradientElement.SVG_SPREADMETHOD_PAD` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgGradientElement`*"] pub const SVG_SPREADMETHOD_PAD: u16 = 1u64 as u16; #[doc = "The `SVGGradientElement.SVG_SPREADMETHOD_REFLECT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgGradientElement`*"] pub const SVG_SPREADMETHOD_REFLECT: u16 = 2u64 as u16; #[doc = "The `SVGGradientElement.SVG_SPREADMETHOD_REPEAT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgGradientElement`*"] pub const SVG_SPREADMETHOD_REPEAT: u16 = 3u64 as u16; } web-sys-0.3.55/src/features/gen_SvgGraphicsElement.rs000064400000000000000000000162320072674642500207010ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGGraphicsElement , typescript_type = "SVGGraphicsElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgGraphicsElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgGraphicsElement`*"] pub type SvgGraphicsElement; #[cfg(feature = "SvgAnimatedTransformList")] # [wasm_bindgen (structural , method , getter , js_class = "SVGGraphicsElement" , js_name = transform)] #[doc = "Getter for the `transform` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/transform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedTransformList`, `SvgGraphicsElement`*"] pub fn transform(this: &SvgGraphicsElement) -> SvgAnimatedTransformList; # [wasm_bindgen (structural , method , getter , js_class = "SVGGraphicsElement" , js_name = nearestViewportElement)] #[doc = "Getter for the `nearestViewportElement` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/nearestViewportElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgGraphicsElement`*"] pub fn nearest_viewport_element(this: &SvgGraphicsElement) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "SVGGraphicsElement" , js_name = farthestViewportElement)] #[doc = "Getter for the `farthestViewportElement` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/farthestViewportElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgGraphicsElement`*"] pub fn farthest_viewport_element(this: &SvgGraphicsElement) -> Option; #[cfg(feature = "SvgStringList")] # [wasm_bindgen (structural , method , getter , js_class = "SVGGraphicsElement" , js_name = requiredFeatures)] #[doc = "Getter for the `requiredFeatures` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/requiredFeatures)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgGraphicsElement`, `SvgStringList`*"] pub fn required_features(this: &SvgGraphicsElement) -> SvgStringList; #[cfg(feature = "SvgStringList")] # [wasm_bindgen (structural , method , getter , js_class = "SVGGraphicsElement" , js_name = requiredExtensions)] #[doc = "Getter for the `requiredExtensions` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/requiredExtensions)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgGraphicsElement`, `SvgStringList`*"] pub fn required_extensions(this: &SvgGraphicsElement) -> SvgStringList; #[cfg(feature = "SvgStringList")] # [wasm_bindgen (structural , method , getter , js_class = "SVGGraphicsElement" , js_name = systemLanguage)] #[doc = "Getter for the `systemLanguage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/systemLanguage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgGraphicsElement`, `SvgStringList`*"] pub fn system_language(this: &SvgGraphicsElement) -> SvgStringList; #[cfg(feature = "SvgRect")] # [wasm_bindgen (catch , method , structural , js_class = "SVGGraphicsElement" , js_name = getBBox)] #[doc = "The `getBBox()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/getBBox)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgGraphicsElement`, `SvgRect`*"] pub fn get_b_box(this: &SvgGraphicsElement) -> Result; #[cfg(all(feature = "SvgBoundingBoxOptions", feature = "SvgRect",))] # [wasm_bindgen (catch , method , structural , js_class = "SVGGraphicsElement" , js_name = getBBox)] #[doc = "The `getBBox()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/getBBox)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgBoundingBoxOptions`, `SvgGraphicsElement`, `SvgRect`*"] pub fn get_b_box_with_a_options( this: &SvgGraphicsElement, a_options: &SvgBoundingBoxOptions, ) -> Result; #[cfg(feature = "SvgMatrix")] # [wasm_bindgen (method , structural , js_class = "SVGGraphicsElement" , js_name = getCTM)] #[doc = "The `getCTM()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/getCTM)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgGraphicsElement`, `SvgMatrix`*"] pub fn get_ctm(this: &SvgGraphicsElement) -> Option; #[cfg(feature = "SvgMatrix")] # [wasm_bindgen (method , structural , js_class = "SVGGraphicsElement" , js_name = getScreenCTM)] #[doc = "The `getScreenCTM()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/getScreenCTM)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgGraphicsElement`, `SvgMatrix`*"] pub fn get_screen_ctm(this: &SvgGraphicsElement) -> Option; #[cfg(feature = "SvgMatrix")] # [wasm_bindgen (catch , method , structural , js_class = "SVGGraphicsElement" , js_name = getTransformToElement)] #[doc = "The `getTransformToElement()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/getTransformToElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgGraphicsElement`, `SvgMatrix`*"] pub fn get_transform_to_element( this: &SvgGraphicsElement, element: &SvgGraphicsElement, ) -> Result; # [wasm_bindgen (method , structural , js_class = "SVGGraphicsElement" , js_name = hasExtension)] #[doc = "The `hasExtension()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/hasExtension)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgGraphicsElement`*"] pub fn has_extension(this: &SvgGraphicsElement, extension: &str) -> bool; } web-sys-0.3.55/src/features/gen_SvgImageElement.rs000064400000000000000000000074730072674642500201720ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGImageElement , typescript_type = "SVGImageElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgImageElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGImageElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgImageElement`*"] pub type SvgImageElement; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGImageElement" , js_name = x)] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGImageElement/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgImageElement`*"] pub fn x(this: &SvgImageElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGImageElement" , js_name = y)] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGImageElement/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgImageElement`*"] pub fn y(this: &SvgImageElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGImageElement" , js_name = width)] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGImageElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgImageElement`*"] pub fn width(this: &SvgImageElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGImageElement" , js_name = height)] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGImageElement/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgImageElement`*"] pub fn height(this: &SvgImageElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedPreserveAspectRatio")] # [wasm_bindgen (structural , method , getter , js_class = "SVGImageElement" , js_name = preserveAspectRatio)] #[doc = "Getter for the `preserveAspectRatio` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGImageElement/preserveAspectRatio)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedPreserveAspectRatio`, `SvgImageElement`*"] pub fn preserve_aspect_ratio(this: &SvgImageElement) -> SvgAnimatedPreserveAspectRatio; #[cfg(feature = "SvgAnimatedString")] # [wasm_bindgen (structural , method , getter , js_class = "SVGImageElement" , js_name = href)] #[doc = "Getter for the `href` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGImageElement/href)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgImageElement`*"] pub fn href(this: &SvgImageElement) -> SvgAnimatedString; } web-sys-0.3.55/src/features/gen_SvgLength.rs000064400000000000000000000162300072674642500170460ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGLength , typescript_type = "SVGLength")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgLength` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLength)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgLength`*"] pub type SvgLength; # [wasm_bindgen (structural , method , getter , js_class = "SVGLength" , js_name = unitType)] #[doc = "Getter for the `unitType` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLength/unitType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgLength`*"] pub fn unit_type(this: &SvgLength) -> u16; # [wasm_bindgen (structural , catch , method , getter , js_class = "SVGLength" , js_name = value)] #[doc = "Getter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLength/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgLength`*"] pub fn value(this: &SvgLength) -> Result; # [wasm_bindgen (structural , catch , method , setter , js_class = "SVGLength" , js_name = value)] #[doc = "Setter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLength/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgLength`*"] pub fn set_value(this: &SvgLength, value: f32) -> Result<(), JsValue>; # [wasm_bindgen (structural , method , getter , js_class = "SVGLength" , js_name = valueInSpecifiedUnits)] #[doc = "Getter for the `valueInSpecifiedUnits` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLength/valueInSpecifiedUnits)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgLength`*"] pub fn value_in_specified_units(this: &SvgLength) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGLength" , js_name = valueInSpecifiedUnits)] #[doc = "Setter for the `valueInSpecifiedUnits` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLength/valueInSpecifiedUnits)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgLength`*"] pub fn set_value_in_specified_units(this: &SvgLength, value: f32); # [wasm_bindgen (structural , method , getter , js_class = "SVGLength" , js_name = valueAsString)] #[doc = "Getter for the `valueAsString` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLength/valueAsString)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgLength`*"] pub fn value_as_string(this: &SvgLength) -> String; # [wasm_bindgen (structural , method , setter , js_class = "SVGLength" , js_name = valueAsString)] #[doc = "Setter for the `valueAsString` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLength/valueAsString)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgLength`*"] pub fn set_value_as_string(this: &SvgLength, value: &str); # [wasm_bindgen (catch , method , structural , js_class = "SVGLength" , js_name = convertToSpecifiedUnits)] #[doc = "The `convertToSpecifiedUnits()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLength/convertToSpecifiedUnits)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgLength`*"] pub fn convert_to_specified_units(this: &SvgLength, unit_type: u16) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "SVGLength" , js_name = newValueSpecifiedUnits)] #[doc = "The `newValueSpecifiedUnits()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLength/newValueSpecifiedUnits)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgLength`*"] pub fn new_value_specified_units( this: &SvgLength, unit_type: u16, value_in_specified_units: f32, ) -> Result<(), JsValue>; } impl SvgLength { #[doc = "The `SVGLength.SVG_LENGTHTYPE_UNKNOWN` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgLength`*"] pub const SVG_LENGTHTYPE_UNKNOWN: u16 = 0i64 as u16; #[doc = "The `SVGLength.SVG_LENGTHTYPE_NUMBER` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgLength`*"] pub const SVG_LENGTHTYPE_NUMBER: u16 = 1u64 as u16; #[doc = "The `SVGLength.SVG_LENGTHTYPE_PERCENTAGE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgLength`*"] pub const SVG_LENGTHTYPE_PERCENTAGE: u16 = 2u64 as u16; #[doc = "The `SVGLength.SVG_LENGTHTYPE_EMS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgLength`*"] pub const SVG_LENGTHTYPE_EMS: u16 = 3u64 as u16; #[doc = "The `SVGLength.SVG_LENGTHTYPE_EXS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgLength`*"] pub const SVG_LENGTHTYPE_EXS: u16 = 4u64 as u16; #[doc = "The `SVGLength.SVG_LENGTHTYPE_PX` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgLength`*"] pub const SVG_LENGTHTYPE_PX: u16 = 5u64 as u16; #[doc = "The `SVGLength.SVG_LENGTHTYPE_CM` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgLength`*"] pub const SVG_LENGTHTYPE_CM: u16 = 6u64 as u16; #[doc = "The `SVGLength.SVG_LENGTHTYPE_MM` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgLength`*"] pub const SVG_LENGTHTYPE_MM: u16 = 7u64 as u16; #[doc = "The `SVGLength.SVG_LENGTHTYPE_IN` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgLength`*"] pub const SVG_LENGTHTYPE_IN: u16 = 8u64 as u16; #[doc = "The `SVGLength.SVG_LENGTHTYPE_PT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgLength`*"] pub const SVG_LENGTHTYPE_PT: u16 = 9u64 as u16; #[doc = "The `SVGLength.SVG_LENGTHTYPE_PC` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgLength`*"] pub const SVG_LENGTHTYPE_PC: u16 = 10u64 as u16; } web-sys-0.3.55/src/features/gen_SvgLengthList.rs000064400000000000000000000117730072674642500177110ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGLengthList , typescript_type = "SVGLengthList")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgLengthList` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLengthList)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgLengthList`*"] pub type SvgLengthList; # [wasm_bindgen (structural , method , getter , js_class = "SVGLengthList" , js_name = numberOfItems)] #[doc = "Getter for the `numberOfItems` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLengthList/numberOfItems)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgLengthList`*"] pub fn number_of_items(this: &SvgLengthList) -> u32; #[cfg(feature = "SvgLength")] # [wasm_bindgen (catch , method , structural , js_class = "SVGLengthList" , js_name = appendItem)] #[doc = "The `appendItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLengthList/appendItem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgLength`, `SvgLengthList`*"] pub fn append_item(this: &SvgLengthList, new_item: &SvgLength) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "SVGLengthList" , js_name = clear)] #[doc = "The `clear()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLengthList/clear)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgLengthList`*"] pub fn clear(this: &SvgLengthList) -> Result<(), JsValue>; #[cfg(feature = "SvgLength")] # [wasm_bindgen (catch , method , structural , js_class = "SVGLengthList" , js_name = getItem)] #[doc = "The `getItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLengthList/getItem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgLength`, `SvgLengthList`*"] pub fn get_item(this: &SvgLengthList, index: u32) -> Result; #[cfg(feature = "SvgLength")] # [wasm_bindgen (catch , method , structural , js_class = "SVGLengthList" , js_name = initialize)] #[doc = "The `initialize()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLengthList/initialize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgLength`, `SvgLengthList`*"] pub fn initialize(this: &SvgLengthList, new_item: &SvgLength) -> Result; #[cfg(feature = "SvgLength")] # [wasm_bindgen (catch , method , structural , js_class = "SVGLengthList" , js_name = insertItemBefore)] #[doc = "The `insertItemBefore()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLengthList/insertItemBefore)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgLength`, `SvgLengthList`*"] pub fn insert_item_before( this: &SvgLengthList, new_item: &SvgLength, index: u32, ) -> Result; #[cfg(feature = "SvgLength")] # [wasm_bindgen (catch , method , structural , js_class = "SVGLengthList" , js_name = removeItem)] #[doc = "The `removeItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLengthList/removeItem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgLength`, `SvgLengthList`*"] pub fn remove_item(this: &SvgLengthList, index: u32) -> Result; #[cfg(feature = "SvgLength")] # [wasm_bindgen (catch , method , structural , js_class = "SVGLengthList" , js_name = replaceItem)] #[doc = "The `replaceItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLengthList/replaceItem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgLength`, `SvgLengthList`*"] pub fn replace_item( this: &SvgLengthList, new_item: &SvgLength, index: u32, ) -> Result; #[cfg(feature = "SvgLength")] #[wasm_bindgen(catch, method, structural, js_class = "SVGLengthList", indexing_getter)] #[doc = "Indexing getter."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgLength`, `SvgLengthList`*"] pub fn get(this: &SvgLengthList, index: u32) -> Result; } web-sys-0.3.55/src/features/gen_SvgLineElement.rs000064400000000000000000000052710072674642500200310ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgGeometryElement , extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGLineElement , typescript_type = "SVGLineElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgLineElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLineElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgLineElement`*"] pub type SvgLineElement; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGLineElement" , js_name = x1)] #[doc = "Getter for the `x1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLineElement/x1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgLineElement`*"] pub fn x1(this: &SvgLineElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGLineElement" , js_name = y1)] #[doc = "Getter for the `y1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLineElement/y1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgLineElement`*"] pub fn y1(this: &SvgLineElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGLineElement" , js_name = x2)] #[doc = "Getter for the `x2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLineElement/x2)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgLineElement`*"] pub fn x2(this: &SvgLineElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGLineElement" , js_name = y2)] #[doc = "Getter for the `y2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLineElement/y2)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgLineElement`*"] pub fn y2(this: &SvgLineElement) -> SvgAnimatedLength; } web-sys-0.3.55/src/features/gen_SvgLinearGradientElement.rs000064400000000000000000000055660072674642500220410ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgGradientElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGLinearGradientElement , typescript_type = "SVGLinearGradientElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgLinearGradientElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLinearGradientElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgLinearGradientElement`*"] pub type SvgLinearGradientElement; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGLinearGradientElement" , js_name = x1)] #[doc = "Getter for the `x1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLinearGradientElement/x1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgLinearGradientElement`*"] pub fn x1(this: &SvgLinearGradientElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGLinearGradientElement" , js_name = y1)] #[doc = "Getter for the `y1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLinearGradientElement/y1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgLinearGradientElement`*"] pub fn y1(this: &SvgLinearGradientElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGLinearGradientElement" , js_name = x2)] #[doc = "Getter for the `x2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLinearGradientElement/x2)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgLinearGradientElement`*"] pub fn x2(this: &SvgLinearGradientElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGLinearGradientElement" , js_name = y2)] #[doc = "Getter for the `y2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLinearGradientElement/y2)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgLinearGradientElement`*"] pub fn y2(this: &SvgLinearGradientElement) -> SvgAnimatedLength; } web-sys-0.3.55/src/features/gen_SvgMarkerElement.rs000064400000000000000000000177700072674642500203720ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGMarkerElement , typescript_type = "SVGMarkerElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgMarkerElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMarkerElement`*"] pub type SvgMarkerElement; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGMarkerElement" , js_name = refX)] #[doc = "Getter for the `refX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement/refX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgMarkerElement`*"] pub fn ref_x(this: &SvgMarkerElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGMarkerElement" , js_name = refY)] #[doc = "Getter for the `refY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement/refY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgMarkerElement`*"] pub fn ref_y(this: &SvgMarkerElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedEnumeration")] # [wasm_bindgen (structural , method , getter , js_class = "SVGMarkerElement" , js_name = markerUnits)] #[doc = "Getter for the `markerUnits` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement/markerUnits)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgMarkerElement`*"] pub fn marker_units(this: &SvgMarkerElement) -> SvgAnimatedEnumeration; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGMarkerElement" , js_name = markerWidth)] #[doc = "Getter for the `markerWidth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement/markerWidth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgMarkerElement`*"] pub fn marker_width(this: &SvgMarkerElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGMarkerElement" , js_name = markerHeight)] #[doc = "Getter for the `markerHeight` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement/markerHeight)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgMarkerElement`*"] pub fn marker_height(this: &SvgMarkerElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedEnumeration")] # [wasm_bindgen (structural , method , getter , js_class = "SVGMarkerElement" , js_name = orientType)] #[doc = "Getter for the `orientType` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement/orientType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgMarkerElement`*"] pub fn orient_type(this: &SvgMarkerElement) -> SvgAnimatedEnumeration; #[cfg(feature = "SvgAnimatedAngle")] # [wasm_bindgen (structural , method , getter , js_class = "SVGMarkerElement" , js_name = orientAngle)] #[doc = "Getter for the `orientAngle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement/orientAngle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedAngle`, `SvgMarkerElement`*"] pub fn orient_angle(this: &SvgMarkerElement) -> SvgAnimatedAngle; #[cfg(feature = "SvgAnimatedRect")] # [wasm_bindgen (structural , method , getter , js_class = "SVGMarkerElement" , js_name = viewBox)] #[doc = "Getter for the `viewBox` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement/viewBox)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedRect`, `SvgMarkerElement`*"] pub fn view_box(this: &SvgMarkerElement) -> SvgAnimatedRect; #[cfg(feature = "SvgAnimatedPreserveAspectRatio")] # [wasm_bindgen (structural , method , getter , js_class = "SVGMarkerElement" , js_name = preserveAspectRatio)] #[doc = "Getter for the `preserveAspectRatio` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement/preserveAspectRatio)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedPreserveAspectRatio`, `SvgMarkerElement`*"] pub fn preserve_aspect_ratio(this: &SvgMarkerElement) -> SvgAnimatedPreserveAspectRatio; #[cfg(feature = "SvgAngle")] # [wasm_bindgen (catch , method , structural , js_class = "SVGMarkerElement" , js_name = setOrientToAngle)] #[doc = "The `setOrientToAngle()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement/setOrientToAngle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAngle`, `SvgMarkerElement`*"] pub fn set_orient_to_angle(this: &SvgMarkerElement, angle: &SvgAngle) -> Result<(), JsValue>; # [wasm_bindgen (method , structural , js_class = "SVGMarkerElement" , js_name = setOrientToAuto)] #[doc = "The `setOrientToAuto()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement/setOrientToAuto)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMarkerElement`*"] pub fn set_orient_to_auto(this: &SvgMarkerElement); } impl SvgMarkerElement { #[doc = "The `SVGMarkerElement.SVG_MARKERUNITS_UNKNOWN` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMarkerElement`*"] pub const SVG_MARKERUNITS_UNKNOWN: u16 = 0i64 as u16; #[doc = "The `SVGMarkerElement.SVG_MARKERUNITS_USERSPACEONUSE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMarkerElement`*"] pub const SVG_MARKERUNITS_USERSPACEONUSE: u16 = 1u64 as u16; #[doc = "The `SVGMarkerElement.SVG_MARKERUNITS_STROKEWIDTH` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMarkerElement`*"] pub const SVG_MARKERUNITS_STROKEWIDTH: u16 = 2u64 as u16; #[doc = "The `SVGMarkerElement.SVG_MARKER_ORIENT_UNKNOWN` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMarkerElement`*"] pub const SVG_MARKER_ORIENT_UNKNOWN: u16 = 0i64 as u16; #[doc = "The `SVGMarkerElement.SVG_MARKER_ORIENT_AUTO` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMarkerElement`*"] pub const SVG_MARKER_ORIENT_AUTO: u16 = 1u64 as u16; #[doc = "The `SVGMarkerElement.SVG_MARKER_ORIENT_ANGLE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMarkerElement`*"] pub const SVG_MARKER_ORIENT_ANGLE: u16 = 2u64 as u16; } web-sys-0.3.55/src/features/gen_SvgMaskElement.rs000064400000000000000000000103500072674642500200270ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGMaskElement , typescript_type = "SVGMaskElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgMaskElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMaskElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMaskElement`*"] pub type SvgMaskElement; #[cfg(feature = "SvgAnimatedEnumeration")] # [wasm_bindgen (structural , method , getter , js_class = "SVGMaskElement" , js_name = maskUnits)] #[doc = "Getter for the `maskUnits` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMaskElement/maskUnits)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgMaskElement`*"] pub fn mask_units(this: &SvgMaskElement) -> SvgAnimatedEnumeration; #[cfg(feature = "SvgAnimatedEnumeration")] # [wasm_bindgen (structural , method , getter , js_class = "SVGMaskElement" , js_name = maskContentUnits)] #[doc = "Getter for the `maskContentUnits` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMaskElement/maskContentUnits)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgMaskElement`*"] pub fn mask_content_units(this: &SvgMaskElement) -> SvgAnimatedEnumeration; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGMaskElement" , js_name = x)] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMaskElement/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgMaskElement`*"] pub fn x(this: &SvgMaskElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGMaskElement" , js_name = y)] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMaskElement/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgMaskElement`*"] pub fn y(this: &SvgMaskElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGMaskElement" , js_name = width)] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMaskElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgMaskElement`*"] pub fn width(this: &SvgMaskElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGMaskElement" , js_name = height)] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMaskElement/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgMaskElement`*"] pub fn height(this: &SvgMaskElement) -> SvgAnimatedLength; } impl SvgMaskElement { #[doc = "The `SVGMaskElement.SVG_MASKTYPE_LUMINANCE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMaskElement`*"] pub const SVG_MASKTYPE_LUMINANCE: u16 = 0i64 as u16; #[doc = "The `SVGMaskElement.SVG_MASKTYPE_ALPHA` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMaskElement`*"] pub const SVG_MASKTYPE_ALPHA: u16 = 1u64 as u16; } web-sys-0.3.55/src/features/gen_SvgMatrix.rs000064400000000000000000000240500072674642500170700ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGMatrix , typescript_type = "SVGMatrix")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgMatrix` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] pub type SvgMatrix; # [wasm_bindgen (structural , method , getter , js_class = "SVGMatrix" , js_name = a)] #[doc = "Getter for the `a` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/a)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] pub fn a(this: &SvgMatrix) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGMatrix" , js_name = a)] #[doc = "Setter for the `a` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/a)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] pub fn set_a(this: &SvgMatrix, value: f32); # [wasm_bindgen (structural , method , getter , js_class = "SVGMatrix" , js_name = b)] #[doc = "Getter for the `b` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/b)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] pub fn b(this: &SvgMatrix) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGMatrix" , js_name = b)] #[doc = "Setter for the `b` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/b)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] pub fn set_b(this: &SvgMatrix, value: f32); # [wasm_bindgen (structural , method , getter , js_class = "SVGMatrix" , js_name = c)] #[doc = "Getter for the `c` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/c)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] pub fn c(this: &SvgMatrix) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGMatrix" , js_name = c)] #[doc = "Setter for the `c` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/c)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] pub fn set_c(this: &SvgMatrix, value: f32); # [wasm_bindgen (structural , method , getter , js_class = "SVGMatrix" , js_name = d)] #[doc = "Getter for the `d` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/d)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] pub fn d(this: &SvgMatrix) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGMatrix" , js_name = d)] #[doc = "Setter for the `d` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/d)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] pub fn set_d(this: &SvgMatrix, value: f32); # [wasm_bindgen (structural , method , getter , js_class = "SVGMatrix" , js_name = e)] #[doc = "Getter for the `e` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/e)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] pub fn e(this: &SvgMatrix) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGMatrix" , js_name = e)] #[doc = "Setter for the `e` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/e)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] pub fn set_e(this: &SvgMatrix, value: f32); # [wasm_bindgen (structural , method , getter , js_class = "SVGMatrix" , js_name = f)] #[doc = "Getter for the `f` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/f)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] pub fn f(this: &SvgMatrix) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGMatrix" , js_name = f)] #[doc = "Setter for the `f` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/f)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] pub fn set_f(this: &SvgMatrix, value: f32); # [wasm_bindgen (method , structural , js_class = "SVGMatrix" , js_name = flipX)] #[doc = "The `flipX()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/flipX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] pub fn flip_x(this: &SvgMatrix) -> SvgMatrix; # [wasm_bindgen (method , structural , js_class = "SVGMatrix" , js_name = flipY)] #[doc = "The `flipY()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/flipY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] pub fn flip_y(this: &SvgMatrix) -> SvgMatrix; # [wasm_bindgen (catch , method , structural , js_class = "SVGMatrix" , js_name = inverse)] #[doc = "The `inverse()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/inverse)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] pub fn inverse(this: &SvgMatrix) -> Result; # [wasm_bindgen (method , structural , js_class = "SVGMatrix" , js_name = multiply)] #[doc = "The `multiply()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/multiply)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] pub fn multiply(this: &SvgMatrix, second_matrix: &SvgMatrix) -> SvgMatrix; # [wasm_bindgen (method , structural , js_class = "SVGMatrix" , js_name = rotate)] #[doc = "The `rotate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/rotate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] pub fn rotate(this: &SvgMatrix, angle: f32) -> SvgMatrix; # [wasm_bindgen (catch , method , structural , js_class = "SVGMatrix" , js_name = rotateFromVector)] #[doc = "The `rotateFromVector()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/rotateFromVector)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] pub fn rotate_from_vector(this: &SvgMatrix, x: f32, y: f32) -> Result; # [wasm_bindgen (method , structural , js_class = "SVGMatrix" , js_name = scale)] #[doc = "The `scale()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/scale)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] pub fn scale(this: &SvgMatrix, scale_factor: f32) -> SvgMatrix; # [wasm_bindgen (method , structural , js_class = "SVGMatrix" , js_name = scaleNonUniform)] #[doc = "The `scaleNonUniform()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/scaleNonUniform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] pub fn scale_non_uniform( this: &SvgMatrix, scale_factor_x: f32, scale_factor_y: f32, ) -> SvgMatrix; # [wasm_bindgen (catch , method , structural , js_class = "SVGMatrix" , js_name = skewX)] #[doc = "The `skewX()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/skewX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] pub fn skew_x(this: &SvgMatrix, angle: f32) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "SVGMatrix" , js_name = skewY)] #[doc = "The `skewY()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/skewY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] pub fn skew_y(this: &SvgMatrix, angle: f32) -> Result; # [wasm_bindgen (method , structural , js_class = "SVGMatrix" , js_name = translate)] #[doc = "The `translate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/translate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] pub fn translate(this: &SvgMatrix, x: f32, y: f32) -> SvgMatrix; } web-sys-0.3.55/src/features/gen_SvgMetadataElement.rs000064400000000000000000000012370072674642500206600ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGMetadataElement , typescript_type = "SVGMetadataElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgMetadataElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMetadataElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMetadataElement`*"] pub type SvgMetadataElement; } web-sys-0.3.55/src/features/gen_SvgNumber.rs000064400000000000000000000025560072674642500170630ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGNumber , typescript_type = "SVGNumber")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgNumber` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGNumber)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgNumber`*"] pub type SvgNumber; # [wasm_bindgen (structural , method , getter , js_class = "SVGNumber" , js_name = value)] #[doc = "Getter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGNumber/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgNumber`*"] pub fn value(this: &SvgNumber) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGNumber" , js_name = value)] #[doc = "Setter for the `value` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGNumber/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgNumber`*"] pub fn set_value(this: &SvgNumber, value: f32); } web-sys-0.3.55/src/features/gen_SvgNumberList.rs000064400000000000000000000117730072674642500177200ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGNumberList , typescript_type = "SVGNumberList")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgNumberList` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGNumberList)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgNumberList`*"] pub type SvgNumberList; # [wasm_bindgen (structural , method , getter , js_class = "SVGNumberList" , js_name = numberOfItems)] #[doc = "Getter for the `numberOfItems` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGNumberList/numberOfItems)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgNumberList`*"] pub fn number_of_items(this: &SvgNumberList) -> u32; #[cfg(feature = "SvgNumber")] # [wasm_bindgen (catch , method , structural , js_class = "SVGNumberList" , js_name = appendItem)] #[doc = "The `appendItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGNumberList/appendItem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgNumber`, `SvgNumberList`*"] pub fn append_item(this: &SvgNumberList, new_item: &SvgNumber) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "SVGNumberList" , js_name = clear)] #[doc = "The `clear()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGNumberList/clear)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgNumberList`*"] pub fn clear(this: &SvgNumberList) -> Result<(), JsValue>; #[cfg(feature = "SvgNumber")] # [wasm_bindgen (catch , method , structural , js_class = "SVGNumberList" , js_name = getItem)] #[doc = "The `getItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGNumberList/getItem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgNumber`, `SvgNumberList`*"] pub fn get_item(this: &SvgNumberList, index: u32) -> Result; #[cfg(feature = "SvgNumber")] # [wasm_bindgen (catch , method , structural , js_class = "SVGNumberList" , js_name = initialize)] #[doc = "The `initialize()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGNumberList/initialize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgNumber`, `SvgNumberList`*"] pub fn initialize(this: &SvgNumberList, new_item: &SvgNumber) -> Result; #[cfg(feature = "SvgNumber")] # [wasm_bindgen (catch , method , structural , js_class = "SVGNumberList" , js_name = insertItemBefore)] #[doc = "The `insertItemBefore()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGNumberList/insertItemBefore)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgNumber`, `SvgNumberList`*"] pub fn insert_item_before( this: &SvgNumberList, new_item: &SvgNumber, index: u32, ) -> Result; #[cfg(feature = "SvgNumber")] # [wasm_bindgen (catch , method , structural , js_class = "SVGNumberList" , js_name = removeItem)] #[doc = "The `removeItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGNumberList/removeItem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgNumber`, `SvgNumberList`*"] pub fn remove_item(this: &SvgNumberList, index: u32) -> Result; #[cfg(feature = "SvgNumber")] # [wasm_bindgen (catch , method , structural , js_class = "SVGNumberList" , js_name = replaceItem)] #[doc = "The `replaceItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGNumberList/replaceItem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgNumber`, `SvgNumberList`*"] pub fn replace_item( this: &SvgNumberList, new_item: &SvgNumber, index: u32, ) -> Result; #[cfg(feature = "SvgNumber")] #[wasm_bindgen(catch, method, structural, js_class = "SVGNumberList", indexing_getter)] #[doc = "Indexing getter."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgNumber`, `SvgNumberList`*"] pub fn get(this: &SvgNumberList, index: u32) -> Result; } web-sys-0.3.55/src/features/gen_SvgPathElement.rs000064400000000000000000000043750072674642500200420ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgGeometryElement , extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGPathElement , typescript_type = "SVGPathElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgPathElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathElement`*"] pub type SvgPathElement; #[cfg(feature = "SvgPathSegList")] # [wasm_bindgen (structural , method , getter , js_class = "SVGPathElement" , js_name = pathSegList)] #[doc = "Getter for the `pathSegList` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement/pathSegList)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathElement`, `SvgPathSegList`*"] pub fn path_seg_list(this: &SvgPathElement) -> SvgPathSegList; #[cfg(feature = "SvgPathSegList")] # [wasm_bindgen (structural , method , getter , js_class = "SVGPathElement" , js_name = animatedPathSegList)] #[doc = "Getter for the `animatedPathSegList` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement/animatedPathSegList)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathElement`, `SvgPathSegList`*"] pub fn animated_path_seg_list(this: &SvgPathElement) -> SvgPathSegList; # [wasm_bindgen (method , structural , js_class = "SVGPathElement" , js_name = getPathSegAtLength)] #[doc = "The `getPathSegAtLength()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement/getPathSegAtLength)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathElement`*"] pub fn get_path_seg_at_length(this: &SvgPathElement, distance: f32) -> u32; } web-sys-0.3.55/src/features/gen_SvgPathSeg.rs000064400000000000000000000141150072674642500171600ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = SVGPathSeg , typescript_type = "SVGPathSeg")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgPathSeg` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSeg)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"] pub type SvgPathSeg; # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSeg" , js_name = pathSegType)] #[doc = "Getter for the `pathSegType` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSeg/pathSegType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"] pub fn path_seg_type(this: &SvgPathSeg) -> u16; # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSeg" , js_name = pathSegTypeAsLetter)] #[doc = "Getter for the `pathSegTypeAsLetter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSeg/pathSegTypeAsLetter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"] pub fn path_seg_type_as_letter(this: &SvgPathSeg) -> String; } impl SvgPathSeg { #[doc = "The `SVGPathSeg.PATHSEG_UNKNOWN` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"] pub const PATHSEG_UNKNOWN: u16 = 0i64 as u16; #[doc = "The `SVGPathSeg.PATHSEG_CLOSEPATH` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"] pub const PATHSEG_CLOSEPATH: u16 = 1u64 as u16; #[doc = "The `SVGPathSeg.PATHSEG_MOVETO_ABS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"] pub const PATHSEG_MOVETO_ABS: u16 = 2u64 as u16; #[doc = "The `SVGPathSeg.PATHSEG_MOVETO_REL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"] pub const PATHSEG_MOVETO_REL: u16 = 3u64 as u16; #[doc = "The `SVGPathSeg.PATHSEG_LINETO_ABS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"] pub const PATHSEG_LINETO_ABS: u16 = 4u64 as u16; #[doc = "The `SVGPathSeg.PATHSEG_LINETO_REL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"] pub const PATHSEG_LINETO_REL: u16 = 5u64 as u16; #[doc = "The `SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"] pub const PATHSEG_CURVETO_CUBIC_ABS: u16 = 6u64 as u16; #[doc = "The `SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"] pub const PATHSEG_CURVETO_CUBIC_REL: u16 = 7u64 as u16; #[doc = "The `SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"] pub const PATHSEG_CURVETO_QUADRATIC_ABS: u16 = 8u64 as u16; #[doc = "The `SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"] pub const PATHSEG_CURVETO_QUADRATIC_REL: u16 = 9u64 as u16; #[doc = "The `SVGPathSeg.PATHSEG_ARC_ABS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"] pub const PATHSEG_ARC_ABS: u16 = 10u64 as u16; #[doc = "The `SVGPathSeg.PATHSEG_ARC_REL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"] pub const PATHSEG_ARC_REL: u16 = 11u64 as u16; #[doc = "The `SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"] pub const PATHSEG_LINETO_HORIZONTAL_ABS: u16 = 12u64 as u16; #[doc = "The `SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"] pub const PATHSEG_LINETO_HORIZONTAL_REL: u16 = 13u64 as u16; #[doc = "The `SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"] pub const PATHSEG_LINETO_VERTICAL_ABS: u16 = 14u64 as u16; #[doc = "The `SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"] pub const PATHSEG_LINETO_VERTICAL_REL: u16 = 15u64 as u16; #[doc = "The `SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"] pub const PATHSEG_CURVETO_CUBIC_SMOOTH_ABS: u16 = 16u64 as u16; #[doc = "The `SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"] pub const PATHSEG_CURVETO_CUBIC_SMOOTH_REL: u16 = 17u64 as u16; #[doc = "The `SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"] pub const PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS: u16 = 18u64 as u16; #[doc = "The `SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"] pub const PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL: u16 = 19u64 as u16; } web-sys-0.3.55/src/features/gen_SvgPathSegArcAbs.rs000064400000000000000000000155320072674642500202400ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegArcAbs , typescript_type = "SVGPathSegArcAbs")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgPathSegArcAbs` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcAbs)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcAbs`*"] pub type SvgPathSegArcAbs; # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegArcAbs" , js_name = x)] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcAbs/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcAbs`*"] pub fn x(this: &SvgPathSegArcAbs) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegArcAbs" , js_name = x)] #[doc = "Setter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcAbs/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcAbs`*"] pub fn set_x(this: &SvgPathSegArcAbs, value: f32); # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegArcAbs" , js_name = y)] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcAbs/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcAbs`*"] pub fn y(this: &SvgPathSegArcAbs) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegArcAbs" , js_name = y)] #[doc = "Setter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcAbs/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcAbs`*"] pub fn set_y(this: &SvgPathSegArcAbs, value: f32); # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegArcAbs" , js_name = r1)] #[doc = "Getter for the `r1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcAbs/r1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcAbs`*"] pub fn r1(this: &SvgPathSegArcAbs) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegArcAbs" , js_name = r1)] #[doc = "Setter for the `r1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcAbs/r1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcAbs`*"] pub fn set_r1(this: &SvgPathSegArcAbs, value: f32); # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegArcAbs" , js_name = r2)] #[doc = "Getter for the `r2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcAbs/r2)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcAbs`*"] pub fn r2(this: &SvgPathSegArcAbs) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegArcAbs" , js_name = r2)] #[doc = "Setter for the `r2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcAbs/r2)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcAbs`*"] pub fn set_r2(this: &SvgPathSegArcAbs, value: f32); # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegArcAbs" , js_name = angle)] #[doc = "Getter for the `angle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcAbs/angle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcAbs`*"] pub fn angle(this: &SvgPathSegArcAbs) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegArcAbs" , js_name = angle)] #[doc = "Setter for the `angle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcAbs/angle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcAbs`*"] pub fn set_angle(this: &SvgPathSegArcAbs, value: f32); # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegArcAbs" , js_name = largeArcFlag)] #[doc = "Getter for the `largeArcFlag` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcAbs/largeArcFlag)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcAbs`*"] pub fn large_arc_flag(this: &SvgPathSegArcAbs) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegArcAbs" , js_name = largeArcFlag)] #[doc = "Setter for the `largeArcFlag` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcAbs/largeArcFlag)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcAbs`*"] pub fn set_large_arc_flag(this: &SvgPathSegArcAbs, value: bool); # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegArcAbs" , js_name = sweepFlag)] #[doc = "Getter for the `sweepFlag` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcAbs/sweepFlag)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcAbs`*"] pub fn sweep_flag(this: &SvgPathSegArcAbs) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegArcAbs" , js_name = sweepFlag)] #[doc = "Setter for the `sweepFlag` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcAbs/sweepFlag)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcAbs`*"] pub fn set_sweep_flag(this: &SvgPathSegArcAbs, value: bool); } web-sys-0.3.55/src/features/gen_SvgPathSegArcRel.rs000064400000000000000000000155320072674642500202550ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegArcRel , typescript_type = "SVGPathSegArcRel")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgPathSegArcRel` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcRel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcRel`*"] pub type SvgPathSegArcRel; # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegArcRel" , js_name = x)] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcRel/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcRel`*"] pub fn x(this: &SvgPathSegArcRel) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegArcRel" , js_name = x)] #[doc = "Setter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcRel/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcRel`*"] pub fn set_x(this: &SvgPathSegArcRel, value: f32); # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegArcRel" , js_name = y)] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcRel/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcRel`*"] pub fn y(this: &SvgPathSegArcRel) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegArcRel" , js_name = y)] #[doc = "Setter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcRel/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcRel`*"] pub fn set_y(this: &SvgPathSegArcRel, value: f32); # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegArcRel" , js_name = r1)] #[doc = "Getter for the `r1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcRel/r1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcRel`*"] pub fn r1(this: &SvgPathSegArcRel) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegArcRel" , js_name = r1)] #[doc = "Setter for the `r1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcRel/r1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcRel`*"] pub fn set_r1(this: &SvgPathSegArcRel, value: f32); # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegArcRel" , js_name = r2)] #[doc = "Getter for the `r2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcRel/r2)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcRel`*"] pub fn r2(this: &SvgPathSegArcRel) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegArcRel" , js_name = r2)] #[doc = "Setter for the `r2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcRel/r2)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcRel`*"] pub fn set_r2(this: &SvgPathSegArcRel, value: f32); # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegArcRel" , js_name = angle)] #[doc = "Getter for the `angle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcRel/angle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcRel`*"] pub fn angle(this: &SvgPathSegArcRel) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegArcRel" , js_name = angle)] #[doc = "Setter for the `angle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcRel/angle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcRel`*"] pub fn set_angle(this: &SvgPathSegArcRel, value: f32); # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegArcRel" , js_name = largeArcFlag)] #[doc = "Getter for the `largeArcFlag` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcRel/largeArcFlag)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcRel`*"] pub fn large_arc_flag(this: &SvgPathSegArcRel) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegArcRel" , js_name = largeArcFlag)] #[doc = "Setter for the `largeArcFlag` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcRel/largeArcFlag)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcRel`*"] pub fn set_large_arc_flag(this: &SvgPathSegArcRel, value: bool); # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegArcRel" , js_name = sweepFlag)] #[doc = "Getter for the `sweepFlag` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcRel/sweepFlag)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcRel`*"] pub fn sweep_flag(this: &SvgPathSegArcRel) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegArcRel" , js_name = sweepFlag)] #[doc = "Setter for the `sweepFlag` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcRel/sweepFlag)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcRel`*"] pub fn set_sweep_flag(this: &SvgPathSegArcRel, value: bool); } web-sys-0.3.55/src/features/gen_SvgPathSegClosePath.rs000064400000000000000000000012030072674642500207550ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegClosePath , typescript_type = "SVGPathSegClosePath")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgPathSegClosePath` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegClosePath)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegClosePath`*"] pub type SvgPathSegClosePath; } web-sys-0.3.55/src/features/gen_SvgPathSegCurvetoCubicAbs.rs000064400000000000000000000144350072674642500221310ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegCurvetoCubicAbs , typescript_type = "SVGPathSegCurvetoCubicAbs")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgPathSegCurvetoCubicAbs` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicAbs)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicAbs`*"] pub type SvgPathSegCurvetoCubicAbs; # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoCubicAbs" , js_name = x)] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicAbs/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicAbs`*"] pub fn x(this: &SvgPathSegCurvetoCubicAbs) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoCubicAbs" , js_name = x)] #[doc = "Setter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicAbs/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicAbs`*"] pub fn set_x(this: &SvgPathSegCurvetoCubicAbs, value: f32); # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoCubicAbs" , js_name = y)] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicAbs/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicAbs`*"] pub fn y(this: &SvgPathSegCurvetoCubicAbs) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoCubicAbs" , js_name = y)] #[doc = "Setter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicAbs/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicAbs`*"] pub fn set_y(this: &SvgPathSegCurvetoCubicAbs, value: f32); # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoCubicAbs" , js_name = x1)] #[doc = "Getter for the `x1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicAbs/x1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicAbs`*"] pub fn x1(this: &SvgPathSegCurvetoCubicAbs) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoCubicAbs" , js_name = x1)] #[doc = "Setter for the `x1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicAbs/x1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicAbs`*"] pub fn set_x1(this: &SvgPathSegCurvetoCubicAbs, value: f32); # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoCubicAbs" , js_name = y1)] #[doc = "Getter for the `y1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicAbs/y1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicAbs`*"] pub fn y1(this: &SvgPathSegCurvetoCubicAbs) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoCubicAbs" , js_name = y1)] #[doc = "Setter for the `y1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicAbs/y1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicAbs`*"] pub fn set_y1(this: &SvgPathSegCurvetoCubicAbs, value: f32); # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoCubicAbs" , js_name = x2)] #[doc = "Getter for the `x2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicAbs/x2)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicAbs`*"] pub fn x2(this: &SvgPathSegCurvetoCubicAbs) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoCubicAbs" , js_name = x2)] #[doc = "Setter for the `x2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicAbs/x2)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicAbs`*"] pub fn set_x2(this: &SvgPathSegCurvetoCubicAbs, value: f32); # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoCubicAbs" , js_name = y2)] #[doc = "Getter for the `y2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicAbs/y2)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicAbs`*"] pub fn y2(this: &SvgPathSegCurvetoCubicAbs) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoCubicAbs" , js_name = y2)] #[doc = "Setter for the `y2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicAbs/y2)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicAbs`*"] pub fn set_y2(this: &SvgPathSegCurvetoCubicAbs, value: f32); } web-sys-0.3.55/src/features/gen_SvgPathSegCurvetoCubicRel.rs000064400000000000000000000144350072674642500221460ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegCurvetoCubicRel , typescript_type = "SVGPathSegCurvetoCubicRel")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgPathSegCurvetoCubicRel` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicRel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicRel`*"] pub type SvgPathSegCurvetoCubicRel; # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoCubicRel" , js_name = x)] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicRel/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicRel`*"] pub fn x(this: &SvgPathSegCurvetoCubicRel) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoCubicRel" , js_name = x)] #[doc = "Setter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicRel/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicRel`*"] pub fn set_x(this: &SvgPathSegCurvetoCubicRel, value: f32); # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoCubicRel" , js_name = y)] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicRel/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicRel`*"] pub fn y(this: &SvgPathSegCurvetoCubicRel) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoCubicRel" , js_name = y)] #[doc = "Setter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicRel/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicRel`*"] pub fn set_y(this: &SvgPathSegCurvetoCubicRel, value: f32); # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoCubicRel" , js_name = x1)] #[doc = "Getter for the `x1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicRel/x1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicRel`*"] pub fn x1(this: &SvgPathSegCurvetoCubicRel) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoCubicRel" , js_name = x1)] #[doc = "Setter for the `x1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicRel/x1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicRel`*"] pub fn set_x1(this: &SvgPathSegCurvetoCubicRel, value: f32); # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoCubicRel" , js_name = y1)] #[doc = "Getter for the `y1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicRel/y1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicRel`*"] pub fn y1(this: &SvgPathSegCurvetoCubicRel) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoCubicRel" , js_name = y1)] #[doc = "Setter for the `y1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicRel/y1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicRel`*"] pub fn set_y1(this: &SvgPathSegCurvetoCubicRel, value: f32); # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoCubicRel" , js_name = x2)] #[doc = "Getter for the `x2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicRel/x2)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicRel`*"] pub fn x2(this: &SvgPathSegCurvetoCubicRel) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoCubicRel" , js_name = x2)] #[doc = "Setter for the `x2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicRel/x2)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicRel`*"] pub fn set_x2(this: &SvgPathSegCurvetoCubicRel, value: f32); # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoCubicRel" , js_name = y2)] #[doc = "Getter for the `y2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicRel/y2)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicRel`*"] pub fn y2(this: &SvgPathSegCurvetoCubicRel) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoCubicRel" , js_name = y2)] #[doc = "Setter for the `y2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicRel/y2)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicRel`*"] pub fn set_y2(this: &SvgPathSegCurvetoCubicRel, value: f32); } web-sys-0.3.55/src/features/gen_SvgPathSegCurvetoCubicSmoothAbs.rs000064400000000000000000000111770072674642500233230ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegCurvetoCubicSmoothAbs , typescript_type = "SVGPathSegCurvetoCubicSmoothAbs")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgPathSegCurvetoCubicSmoothAbs` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicSmoothAbs)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicSmoothAbs`*"] pub type SvgPathSegCurvetoCubicSmoothAbs; # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoCubicSmoothAbs" , js_name = x)] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicSmoothAbs/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicSmoothAbs`*"] pub fn x(this: &SvgPathSegCurvetoCubicSmoothAbs) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoCubicSmoothAbs" , js_name = x)] #[doc = "Setter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicSmoothAbs/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicSmoothAbs`*"] pub fn set_x(this: &SvgPathSegCurvetoCubicSmoothAbs, value: f32); # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoCubicSmoothAbs" , js_name = y)] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicSmoothAbs/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicSmoothAbs`*"] pub fn y(this: &SvgPathSegCurvetoCubicSmoothAbs) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoCubicSmoothAbs" , js_name = y)] #[doc = "Setter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicSmoothAbs/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicSmoothAbs`*"] pub fn set_y(this: &SvgPathSegCurvetoCubicSmoothAbs, value: f32); # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoCubicSmoothAbs" , js_name = x2)] #[doc = "Getter for the `x2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicSmoothAbs/x2)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicSmoothAbs`*"] pub fn x2(this: &SvgPathSegCurvetoCubicSmoothAbs) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoCubicSmoothAbs" , js_name = x2)] #[doc = "Setter for the `x2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicSmoothAbs/x2)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicSmoothAbs`*"] pub fn set_x2(this: &SvgPathSegCurvetoCubicSmoothAbs, value: f32); # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoCubicSmoothAbs" , js_name = y2)] #[doc = "Getter for the `y2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicSmoothAbs/y2)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicSmoothAbs`*"] pub fn y2(this: &SvgPathSegCurvetoCubicSmoothAbs) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoCubicSmoothAbs" , js_name = y2)] #[doc = "Setter for the `y2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicSmoothAbs/y2)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicSmoothAbs`*"] pub fn set_y2(this: &SvgPathSegCurvetoCubicSmoothAbs, value: f32); } web-sys-0.3.55/src/features/gen_SvgPathSegCurvetoCubicSmoothRel.rs000064400000000000000000000111770072674642500233400ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegCurvetoCubicSmoothRel , typescript_type = "SVGPathSegCurvetoCubicSmoothRel")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgPathSegCurvetoCubicSmoothRel` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicSmoothRel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicSmoothRel`*"] pub type SvgPathSegCurvetoCubicSmoothRel; # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoCubicSmoothRel" , js_name = x)] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicSmoothRel/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicSmoothRel`*"] pub fn x(this: &SvgPathSegCurvetoCubicSmoothRel) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoCubicSmoothRel" , js_name = x)] #[doc = "Setter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicSmoothRel/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicSmoothRel`*"] pub fn set_x(this: &SvgPathSegCurvetoCubicSmoothRel, value: f32); # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoCubicSmoothRel" , js_name = y)] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicSmoothRel/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicSmoothRel`*"] pub fn y(this: &SvgPathSegCurvetoCubicSmoothRel) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoCubicSmoothRel" , js_name = y)] #[doc = "Setter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicSmoothRel/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicSmoothRel`*"] pub fn set_y(this: &SvgPathSegCurvetoCubicSmoothRel, value: f32); # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoCubicSmoothRel" , js_name = x2)] #[doc = "Getter for the `x2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicSmoothRel/x2)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicSmoothRel`*"] pub fn x2(this: &SvgPathSegCurvetoCubicSmoothRel) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoCubicSmoothRel" , js_name = x2)] #[doc = "Setter for the `x2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicSmoothRel/x2)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicSmoothRel`*"] pub fn set_x2(this: &SvgPathSegCurvetoCubicSmoothRel, value: f32); # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoCubicSmoothRel" , js_name = y2)] #[doc = "Getter for the `y2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicSmoothRel/y2)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicSmoothRel`*"] pub fn y2(this: &SvgPathSegCurvetoCubicSmoothRel) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoCubicSmoothRel" , js_name = y2)] #[doc = "Setter for the `y2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicSmoothRel/y2)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicSmoothRel`*"] pub fn set_y2(this: &SvgPathSegCurvetoCubicSmoothRel, value: f32); } web-sys-0.3.55/src/features/gen_SvgPathSegCurvetoQuadraticAbs.rs000064400000000000000000000110630072674642500230130ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegCurvetoQuadraticAbs , typescript_type = "SVGPathSegCurvetoQuadraticAbs")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgPathSegCurvetoQuadraticAbs` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticAbs)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticAbs`*"] pub type SvgPathSegCurvetoQuadraticAbs; # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoQuadraticAbs" , js_name = x)] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticAbs/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticAbs`*"] pub fn x(this: &SvgPathSegCurvetoQuadraticAbs) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoQuadraticAbs" , js_name = x)] #[doc = "Setter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticAbs/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticAbs`*"] pub fn set_x(this: &SvgPathSegCurvetoQuadraticAbs, value: f32); # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoQuadraticAbs" , js_name = y)] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticAbs/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticAbs`*"] pub fn y(this: &SvgPathSegCurvetoQuadraticAbs) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoQuadraticAbs" , js_name = y)] #[doc = "Setter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticAbs/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticAbs`*"] pub fn set_y(this: &SvgPathSegCurvetoQuadraticAbs, value: f32); # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoQuadraticAbs" , js_name = x1)] #[doc = "Getter for the `x1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticAbs/x1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticAbs`*"] pub fn x1(this: &SvgPathSegCurvetoQuadraticAbs) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoQuadraticAbs" , js_name = x1)] #[doc = "Setter for the `x1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticAbs/x1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticAbs`*"] pub fn set_x1(this: &SvgPathSegCurvetoQuadraticAbs, value: f32); # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoQuadraticAbs" , js_name = y1)] #[doc = "Getter for the `y1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticAbs/y1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticAbs`*"] pub fn y1(this: &SvgPathSegCurvetoQuadraticAbs) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoQuadraticAbs" , js_name = y1)] #[doc = "Setter for the `y1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticAbs/y1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticAbs`*"] pub fn set_y1(this: &SvgPathSegCurvetoQuadraticAbs, value: f32); } web-sys-0.3.55/src/features/gen_SvgPathSegCurvetoQuadraticRel.rs000064400000000000000000000110630072674642500230300ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegCurvetoQuadraticRel , typescript_type = "SVGPathSegCurvetoQuadraticRel")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgPathSegCurvetoQuadraticRel` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticRel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticRel`*"] pub type SvgPathSegCurvetoQuadraticRel; # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoQuadraticRel" , js_name = x)] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticRel/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticRel`*"] pub fn x(this: &SvgPathSegCurvetoQuadraticRel) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoQuadraticRel" , js_name = x)] #[doc = "Setter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticRel/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticRel`*"] pub fn set_x(this: &SvgPathSegCurvetoQuadraticRel, value: f32); # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoQuadraticRel" , js_name = y)] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticRel/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticRel`*"] pub fn y(this: &SvgPathSegCurvetoQuadraticRel) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoQuadraticRel" , js_name = y)] #[doc = "Setter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticRel/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticRel`*"] pub fn set_y(this: &SvgPathSegCurvetoQuadraticRel, value: f32); # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoQuadraticRel" , js_name = x1)] #[doc = "Getter for the `x1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticRel/x1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticRel`*"] pub fn x1(this: &SvgPathSegCurvetoQuadraticRel) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoQuadraticRel" , js_name = x1)] #[doc = "Setter for the `x1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticRel/x1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticRel`*"] pub fn set_x1(this: &SvgPathSegCurvetoQuadraticRel, value: f32); # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoQuadraticRel" , js_name = y1)] #[doc = "Getter for the `y1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticRel/y1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticRel`*"] pub fn y1(this: &SvgPathSegCurvetoQuadraticRel) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoQuadraticRel" , js_name = y1)] #[doc = "Setter for the `y1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticRel/y1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticRel`*"] pub fn set_y1(this: &SvgPathSegCurvetoQuadraticRel, value: f32); } web-sys-0.3.55/src/features/gen_SvgPathSegCurvetoQuadraticSmoothAbs.rs000064400000000000000000000053650072674642500242150ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegCurvetoQuadraticSmoothAbs , typescript_type = "SVGPathSegCurvetoQuadraticSmoothAbs")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgPathSegCurvetoQuadraticSmoothAbs` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticSmoothAbs)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticSmoothAbs`*"] pub type SvgPathSegCurvetoQuadraticSmoothAbs; # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoQuadraticSmoothAbs" , js_name = x)] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticSmoothAbs/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticSmoothAbs`*"] pub fn x(this: &SvgPathSegCurvetoQuadraticSmoothAbs) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoQuadraticSmoothAbs" , js_name = x)] #[doc = "Setter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticSmoothAbs/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticSmoothAbs`*"] pub fn set_x(this: &SvgPathSegCurvetoQuadraticSmoothAbs, value: f32); # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoQuadraticSmoothAbs" , js_name = y)] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticSmoothAbs/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticSmoothAbs`*"] pub fn y(this: &SvgPathSegCurvetoQuadraticSmoothAbs) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoQuadraticSmoothAbs" , js_name = y)] #[doc = "Setter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticSmoothAbs/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticSmoothAbs`*"] pub fn set_y(this: &SvgPathSegCurvetoQuadraticSmoothAbs, value: f32); } web-sys-0.3.55/src/features/gen_SvgPathSegCurvetoQuadraticSmoothRel.rs000064400000000000000000000053650072674642500242320ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegCurvetoQuadraticSmoothRel , typescript_type = "SVGPathSegCurvetoQuadraticSmoothRel")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgPathSegCurvetoQuadraticSmoothRel` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticSmoothRel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticSmoothRel`*"] pub type SvgPathSegCurvetoQuadraticSmoothRel; # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoQuadraticSmoothRel" , js_name = x)] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticSmoothRel/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticSmoothRel`*"] pub fn x(this: &SvgPathSegCurvetoQuadraticSmoothRel) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoQuadraticSmoothRel" , js_name = x)] #[doc = "Setter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticSmoothRel/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticSmoothRel`*"] pub fn set_x(this: &SvgPathSegCurvetoQuadraticSmoothRel, value: f32); # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegCurvetoQuadraticSmoothRel" , js_name = y)] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticSmoothRel/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticSmoothRel`*"] pub fn y(this: &SvgPathSegCurvetoQuadraticSmoothRel) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegCurvetoQuadraticSmoothRel" , js_name = y)] #[doc = "Setter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticSmoothRel/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticSmoothRel`*"] pub fn set_y(this: &SvgPathSegCurvetoQuadraticSmoothRel, value: f32); } web-sys-0.3.55/src/features/gen_SvgPathSegLinetoAbs.rs000064400000000000000000000046250072674642500207660ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegLinetoAbs , typescript_type = "SVGPathSegLinetoAbs")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgPathSegLinetoAbs` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoAbs)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoAbs`*"] pub type SvgPathSegLinetoAbs; # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegLinetoAbs" , js_name = x)] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoAbs/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoAbs`*"] pub fn x(this: &SvgPathSegLinetoAbs) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegLinetoAbs" , js_name = x)] #[doc = "Setter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoAbs/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoAbs`*"] pub fn set_x(this: &SvgPathSegLinetoAbs, value: f32); # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegLinetoAbs" , js_name = y)] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoAbs/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoAbs`*"] pub fn y(this: &SvgPathSegLinetoAbs) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegLinetoAbs" , js_name = y)] #[doc = "Setter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoAbs/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoAbs`*"] pub fn set_y(this: &SvgPathSegLinetoAbs, value: f32); } web-sys-0.3.55/src/features/gen_SvgPathSegLinetoHorizontalAbs.rs000064400000000000000000000032300072674642500230270ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegLinetoHorizontalAbs , typescript_type = "SVGPathSegLinetoHorizontalAbs")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgPathSegLinetoHorizontalAbs` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoHorizontalAbs)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoHorizontalAbs`*"] pub type SvgPathSegLinetoHorizontalAbs; # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegLinetoHorizontalAbs" , js_name = x)] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoHorizontalAbs/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoHorizontalAbs`*"] pub fn x(this: &SvgPathSegLinetoHorizontalAbs) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegLinetoHorizontalAbs" , js_name = x)] #[doc = "Setter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoHorizontalAbs/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoHorizontalAbs`*"] pub fn set_x(this: &SvgPathSegLinetoHorizontalAbs, value: f32); } web-sys-0.3.55/src/features/gen_SvgPathSegLinetoHorizontalRel.rs000064400000000000000000000032300072674642500230440ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegLinetoHorizontalRel , typescript_type = "SVGPathSegLinetoHorizontalRel")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgPathSegLinetoHorizontalRel` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoHorizontalRel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoHorizontalRel`*"] pub type SvgPathSegLinetoHorizontalRel; # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegLinetoHorizontalRel" , js_name = x)] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoHorizontalRel/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoHorizontalRel`*"] pub fn x(this: &SvgPathSegLinetoHorizontalRel) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegLinetoHorizontalRel" , js_name = x)] #[doc = "Setter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoHorizontalRel/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoHorizontalRel`*"] pub fn set_x(this: &SvgPathSegLinetoHorizontalRel, value: f32); } web-sys-0.3.55/src/features/gen_SvgPathSegLinetoRel.rs000064400000000000000000000046250072674642500210030ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegLinetoRel , typescript_type = "SVGPathSegLinetoRel")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgPathSegLinetoRel` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoRel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoRel`*"] pub type SvgPathSegLinetoRel; # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegLinetoRel" , js_name = x)] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoRel/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoRel`*"] pub fn x(this: &SvgPathSegLinetoRel) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegLinetoRel" , js_name = x)] #[doc = "Setter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoRel/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoRel`*"] pub fn set_x(this: &SvgPathSegLinetoRel, value: f32); # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegLinetoRel" , js_name = y)] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoRel/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoRel`*"] pub fn y(this: &SvgPathSegLinetoRel) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegLinetoRel" , js_name = y)] #[doc = "Setter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoRel/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoRel`*"] pub fn set_y(this: &SvgPathSegLinetoRel, value: f32); } web-sys-0.3.55/src/features/gen_SvgPathSegLinetoVerticalAbs.rs000064400000000000000000000031740072674642500224560ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegLinetoVerticalAbs , typescript_type = "SVGPathSegLinetoVerticalAbs")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgPathSegLinetoVerticalAbs` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoVerticalAbs)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoVerticalAbs`*"] pub type SvgPathSegLinetoVerticalAbs; # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegLinetoVerticalAbs" , js_name = y)] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoVerticalAbs/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoVerticalAbs`*"] pub fn y(this: &SvgPathSegLinetoVerticalAbs) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegLinetoVerticalAbs" , js_name = y)] #[doc = "Setter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoVerticalAbs/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoVerticalAbs`*"] pub fn set_y(this: &SvgPathSegLinetoVerticalAbs, value: f32); } web-sys-0.3.55/src/features/gen_SvgPathSegLinetoVerticalRel.rs000064400000000000000000000031740072674642500224730ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegLinetoVerticalRel , typescript_type = "SVGPathSegLinetoVerticalRel")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgPathSegLinetoVerticalRel` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoVerticalRel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoVerticalRel`*"] pub type SvgPathSegLinetoVerticalRel; # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegLinetoVerticalRel" , js_name = y)] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoVerticalRel/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoVerticalRel`*"] pub fn y(this: &SvgPathSegLinetoVerticalRel) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegLinetoVerticalRel" , js_name = y)] #[doc = "Setter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoVerticalRel/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoVerticalRel`*"] pub fn set_y(this: &SvgPathSegLinetoVerticalRel, value: f32); } web-sys-0.3.55/src/features/gen_SvgPathSegList.rs000064400000000000000000000037230072674642500200170ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGPathSegList , typescript_type = "SVGPathSegList")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgPathSegList` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegList)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegList`*"] pub type SvgPathSegList; # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegList" , js_name = numberOfItems)] #[doc = "Getter for the `numberOfItems` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegList/numberOfItems)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegList`*"] pub fn number_of_items(this: &SvgPathSegList) -> u32; #[cfg(feature = "SvgPathSeg")] # [wasm_bindgen (catch , method , structural , js_class = "SVGPathSegList" , js_name = getItem)] #[doc = "The `getItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegList/getItem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`, `SvgPathSegList`*"] pub fn get_item(this: &SvgPathSegList, index: u32) -> Result; #[cfg(feature = "SvgPathSeg")] #[wasm_bindgen( catch, method, structural, js_class = "SVGPathSegList", indexing_getter )] #[doc = "Indexing getter."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`, `SvgPathSegList`*"] pub fn get(this: &SvgPathSegList, index: u32) -> Result; } web-sys-0.3.55/src/features/gen_SvgPathSegMovetoAbs.rs000064400000000000000000000046250072674642500210050ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegMovetoAbs , typescript_type = "SVGPathSegMovetoAbs")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgPathSegMovetoAbs` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegMovetoAbs)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegMovetoAbs`*"] pub type SvgPathSegMovetoAbs; # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegMovetoAbs" , js_name = x)] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegMovetoAbs/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegMovetoAbs`*"] pub fn x(this: &SvgPathSegMovetoAbs) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegMovetoAbs" , js_name = x)] #[doc = "Setter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegMovetoAbs/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegMovetoAbs`*"] pub fn set_x(this: &SvgPathSegMovetoAbs, value: f32); # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegMovetoAbs" , js_name = y)] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegMovetoAbs/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegMovetoAbs`*"] pub fn y(this: &SvgPathSegMovetoAbs) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegMovetoAbs" , js_name = y)] #[doc = "Setter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegMovetoAbs/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegMovetoAbs`*"] pub fn set_y(this: &SvgPathSegMovetoAbs, value: f32); } web-sys-0.3.55/src/features/gen_SvgPathSegMovetoRel.rs000064400000000000000000000046250072674642500210220ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegMovetoRel , typescript_type = "SVGPathSegMovetoRel")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgPathSegMovetoRel` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegMovetoRel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegMovetoRel`*"] pub type SvgPathSegMovetoRel; # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegMovetoRel" , js_name = x)] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegMovetoRel/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegMovetoRel`*"] pub fn x(this: &SvgPathSegMovetoRel) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegMovetoRel" , js_name = x)] #[doc = "Setter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegMovetoRel/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegMovetoRel`*"] pub fn set_x(this: &SvgPathSegMovetoRel, value: f32); # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegMovetoRel" , js_name = y)] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegMovetoRel/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegMovetoRel`*"] pub fn y(this: &SvgPathSegMovetoRel) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGPathSegMovetoRel" , js_name = y)] #[doc = "Setter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegMovetoRel/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSegMovetoRel`*"] pub fn set_y(this: &SvgPathSegMovetoRel, value: f32); } web-sys-0.3.55/src/features/gen_SvgPatternElement.rs000064400000000000000000000141460072674642500205600ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGPatternElement , typescript_type = "SVGPatternElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgPatternElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPatternElement`*"] pub type SvgPatternElement; #[cfg(feature = "SvgAnimatedEnumeration")] # [wasm_bindgen (structural , method , getter , js_class = "SVGPatternElement" , js_name = patternUnits)] #[doc = "Getter for the `patternUnits` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement/patternUnits)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgPatternElement`*"] pub fn pattern_units(this: &SvgPatternElement) -> SvgAnimatedEnumeration; #[cfg(feature = "SvgAnimatedEnumeration")] # [wasm_bindgen (structural , method , getter , js_class = "SVGPatternElement" , js_name = patternContentUnits)] #[doc = "Getter for the `patternContentUnits` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement/patternContentUnits)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgPatternElement`*"] pub fn pattern_content_units(this: &SvgPatternElement) -> SvgAnimatedEnumeration; #[cfg(feature = "SvgAnimatedTransformList")] # [wasm_bindgen (structural , method , getter , js_class = "SVGPatternElement" , js_name = patternTransform)] #[doc = "Getter for the `patternTransform` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement/patternTransform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedTransformList`, `SvgPatternElement`*"] pub fn pattern_transform(this: &SvgPatternElement) -> SvgAnimatedTransformList; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGPatternElement" , js_name = x)] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgPatternElement`*"] pub fn x(this: &SvgPatternElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGPatternElement" , js_name = y)] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgPatternElement`*"] pub fn y(this: &SvgPatternElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGPatternElement" , js_name = width)] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgPatternElement`*"] pub fn width(this: &SvgPatternElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGPatternElement" , js_name = height)] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgPatternElement`*"] pub fn height(this: &SvgPatternElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedRect")] # [wasm_bindgen (structural , method , getter , js_class = "SVGPatternElement" , js_name = viewBox)] #[doc = "Getter for the `viewBox` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement/viewBox)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedRect`, `SvgPatternElement`*"] pub fn view_box(this: &SvgPatternElement) -> SvgAnimatedRect; #[cfg(feature = "SvgAnimatedPreserveAspectRatio")] # [wasm_bindgen (structural , method , getter , js_class = "SVGPatternElement" , js_name = preserveAspectRatio)] #[doc = "Getter for the `preserveAspectRatio` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement/preserveAspectRatio)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedPreserveAspectRatio`, `SvgPatternElement`*"] pub fn preserve_aspect_ratio(this: &SvgPatternElement) -> SvgAnimatedPreserveAspectRatio; #[cfg(feature = "SvgAnimatedString")] # [wasm_bindgen (structural , method , getter , js_class = "SVGPatternElement" , js_name = href)] #[doc = "Getter for the `href` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement/href)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgPatternElement`*"] pub fn href(this: &SvgPatternElement) -> SvgAnimatedString; } web-sys-0.3.55/src/features/gen_SvgPoint.rs000064400000000000000000000051460072674642500167220ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGPoint , typescript_type = "SVGPoint")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgPoint` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPoint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPoint`*"] pub type SvgPoint; # [wasm_bindgen (structural , method , getter , js_class = "SVGPoint" , js_name = x)] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPoint/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPoint`*"] pub fn x(this: &SvgPoint) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGPoint" , js_name = x)] #[doc = "Setter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPoint/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPoint`*"] pub fn set_x(this: &SvgPoint, value: f32); # [wasm_bindgen (structural , method , getter , js_class = "SVGPoint" , js_name = y)] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPoint/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPoint`*"] pub fn y(this: &SvgPoint) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGPoint" , js_name = y)] #[doc = "Setter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPoint/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPoint`*"] pub fn set_y(this: &SvgPoint, value: f32); #[cfg(feature = "SvgMatrix")] # [wasm_bindgen (method , structural , js_class = "SVGPoint" , js_name = matrixTransform)] #[doc = "The `matrixTransform()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPoint/matrixTransform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`, `SvgPoint`*"] pub fn matrix_transform(this: &SvgPoint, matrix: &SvgMatrix) -> SvgPoint; } web-sys-0.3.55/src/features/gen_SvgPointList.rs000064400000000000000000000116710072674642500175560ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGPointList , typescript_type = "SVGPointList")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgPointList` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPointList)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPointList`*"] pub type SvgPointList; # [wasm_bindgen (structural , method , getter , js_class = "SVGPointList" , js_name = numberOfItems)] #[doc = "Getter for the `numberOfItems` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPointList/numberOfItems)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPointList`*"] pub fn number_of_items(this: &SvgPointList) -> u32; #[cfg(feature = "SvgPoint")] # [wasm_bindgen (catch , method , structural , js_class = "SVGPointList" , js_name = appendItem)] #[doc = "The `appendItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPointList/appendItem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPoint`, `SvgPointList`*"] pub fn append_item(this: &SvgPointList, new_item: &SvgPoint) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "SVGPointList" , js_name = clear)] #[doc = "The `clear()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPointList/clear)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPointList`*"] pub fn clear(this: &SvgPointList) -> Result<(), JsValue>; #[cfg(feature = "SvgPoint")] # [wasm_bindgen (catch , method , structural , js_class = "SVGPointList" , js_name = getItem)] #[doc = "The `getItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPointList/getItem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPoint`, `SvgPointList`*"] pub fn get_item(this: &SvgPointList, index: u32) -> Result; #[cfg(feature = "SvgPoint")] # [wasm_bindgen (catch , method , structural , js_class = "SVGPointList" , js_name = initialize)] #[doc = "The `initialize()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPointList/initialize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPoint`, `SvgPointList`*"] pub fn initialize(this: &SvgPointList, new_item: &SvgPoint) -> Result; #[cfg(feature = "SvgPoint")] # [wasm_bindgen (catch , method , structural , js_class = "SVGPointList" , js_name = insertItemBefore)] #[doc = "The `insertItemBefore()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPointList/insertItemBefore)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPoint`, `SvgPointList`*"] pub fn insert_item_before( this: &SvgPointList, new_item: &SvgPoint, index: u32, ) -> Result; #[cfg(feature = "SvgPoint")] # [wasm_bindgen (catch , method , structural , js_class = "SVGPointList" , js_name = removeItem)] #[doc = "The `removeItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPointList/removeItem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPoint`, `SvgPointList`*"] pub fn remove_item(this: &SvgPointList, index: u32) -> Result; #[cfg(feature = "SvgPoint")] # [wasm_bindgen (catch , method , structural , js_class = "SVGPointList" , js_name = replaceItem)] #[doc = "The `replaceItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPointList/replaceItem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPoint`, `SvgPointList`*"] pub fn replace_item( this: &SvgPointList, new_item: &SvgPoint, index: u32, ) -> Result; #[cfg(feature = "SvgPoint")] #[wasm_bindgen(catch, method, structural, js_class = "SVGPointList", indexing_getter)] #[doc = "Indexing getter."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPoint`, `SvgPointList`*"] pub fn get(this: &SvgPointList, index: u32) -> Result; } web-sys-0.3.55/src/features/gen_SvgPolygonElement.rs000064400000000000000000000034140072674642500205660ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgGeometryElement , extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGPolygonElement , typescript_type = "SVGPolygonElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgPolygonElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPolygonElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPolygonElement`*"] pub type SvgPolygonElement; #[cfg(feature = "SvgPointList")] # [wasm_bindgen (structural , method , getter , js_class = "SVGPolygonElement" , js_name = points)] #[doc = "Getter for the `points` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPolygonElement/points)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPointList`, `SvgPolygonElement`*"] pub fn points(this: &SvgPolygonElement) -> SvgPointList; #[cfg(feature = "SvgPointList")] # [wasm_bindgen (structural , method , getter , js_class = "SVGPolygonElement" , js_name = animatedPoints)] #[doc = "Getter for the `animatedPoints` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPolygonElement/animatedPoints)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPointList`, `SvgPolygonElement`*"] pub fn animated_points(this: &SvgPolygonElement) -> SvgPointList; } web-sys-0.3.55/src/features/gen_SvgPolylineElement.rs000064400000000000000000000034320072674642500207320ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgGeometryElement , extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGPolylineElement , typescript_type = "SVGPolylineElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgPolylineElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPolylineElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPolylineElement`*"] pub type SvgPolylineElement; #[cfg(feature = "SvgPointList")] # [wasm_bindgen (structural , method , getter , js_class = "SVGPolylineElement" , js_name = points)] #[doc = "Getter for the `points` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPolylineElement/points)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPointList`, `SvgPolylineElement`*"] pub fn points(this: &SvgPolylineElement) -> SvgPointList; #[cfg(feature = "SvgPointList")] # [wasm_bindgen (structural , method , getter , js_class = "SVGPolylineElement" , js_name = animatedPoints)] #[doc = "Getter for the `animatedPoints` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPolylineElement/animatedPoints)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPointList`, `SvgPolylineElement`*"] pub fn animated_points(this: &SvgPolylineElement) -> SvgPointList; } web-sys-0.3.55/src/features/gen_SvgPreserveAspectRatio.rs000064400000000000000000000143360072674642500215640ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGPreserveAspectRatio , typescript_type = "SVGPreserveAspectRatio")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgPreserveAspectRatio` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPreserveAspectRatio)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"] pub type SvgPreserveAspectRatio; # [wasm_bindgen (structural , method , getter , js_class = "SVGPreserveAspectRatio" , js_name = align)] #[doc = "Getter for the `align` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPreserveAspectRatio/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"] pub fn align(this: &SvgPreserveAspectRatio) -> u16; # [wasm_bindgen (structural , method , setter , js_class = "SVGPreserveAspectRatio" , js_name = align)] #[doc = "Setter for the `align` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPreserveAspectRatio/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"] pub fn set_align(this: &SvgPreserveAspectRatio, value: u16); # [wasm_bindgen (structural , method , getter , js_class = "SVGPreserveAspectRatio" , js_name = meetOrSlice)] #[doc = "Getter for the `meetOrSlice` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPreserveAspectRatio/meetOrSlice)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"] pub fn meet_or_slice(this: &SvgPreserveAspectRatio) -> u16; # [wasm_bindgen (structural , method , setter , js_class = "SVGPreserveAspectRatio" , js_name = meetOrSlice)] #[doc = "Setter for the `meetOrSlice` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPreserveAspectRatio/meetOrSlice)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"] pub fn set_meet_or_slice(this: &SvgPreserveAspectRatio, value: u16); } impl SvgPreserveAspectRatio { #[doc = "The `SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_UNKNOWN` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"] pub const SVG_PRESERVEASPECTRATIO_UNKNOWN: u16 = 0i64 as u16; #[doc = "The `SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_NONE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"] pub const SVG_PRESERVEASPECTRATIO_NONE: u16 = 1u64 as u16; #[doc = "The `SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMINYMIN` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"] pub const SVG_PRESERVEASPECTRATIO_XMINYMIN: u16 = 2u64 as u16; #[doc = "The `SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMIDYMIN` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"] pub const SVG_PRESERVEASPECTRATIO_XMIDYMIN: u16 = 3u64 as u16; #[doc = "The `SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMAXYMIN` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"] pub const SVG_PRESERVEASPECTRATIO_XMAXYMIN: u16 = 4u64 as u16; #[doc = "The `SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMINYMID` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"] pub const SVG_PRESERVEASPECTRATIO_XMINYMID: u16 = 5u64 as u16; #[doc = "The `SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMIDYMID` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"] pub const SVG_PRESERVEASPECTRATIO_XMIDYMID: u16 = 6u64 as u16; #[doc = "The `SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMAXYMID` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"] pub const SVG_PRESERVEASPECTRATIO_XMAXYMID: u16 = 7u64 as u16; #[doc = "The `SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMINYMAX` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"] pub const SVG_PRESERVEASPECTRATIO_XMINYMAX: u16 = 8u64 as u16; #[doc = "The `SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMIDYMAX` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"] pub const SVG_PRESERVEASPECTRATIO_XMIDYMAX: u16 = 9u64 as u16; #[doc = "The `SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMAXYMAX` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"] pub const SVG_PRESERVEASPECTRATIO_XMAXYMAX: u16 = 10u64 as u16; #[doc = "The `SVGPreserveAspectRatio.SVG_MEETORSLICE_UNKNOWN` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"] pub const SVG_MEETORSLICE_UNKNOWN: u16 = 0i64 as u16; #[doc = "The `SVGPreserveAspectRatio.SVG_MEETORSLICE_MEET` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"] pub const SVG_MEETORSLICE_MEET: u16 = 1u64 as u16; #[doc = "The `SVGPreserveAspectRatio.SVG_MEETORSLICE_SLICE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"] pub const SVG_MEETORSLICE_SLICE: u16 = 2u64 as u16; } web-sys-0.3.55/src/features/gen_SvgRadialGradientElement.rs000064400000000000000000000076740072674642500220250ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgGradientElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGRadialGradientElement , typescript_type = "SVGRadialGradientElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgRadialGradientElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRadialGradientElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgRadialGradientElement`*"] pub type SvgRadialGradientElement; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGRadialGradientElement" , js_name = cx)] #[doc = "Getter for the `cx` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRadialGradientElement/cx)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgRadialGradientElement`*"] pub fn cx(this: &SvgRadialGradientElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGRadialGradientElement" , js_name = cy)] #[doc = "Getter for the `cy` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRadialGradientElement/cy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgRadialGradientElement`*"] pub fn cy(this: &SvgRadialGradientElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGRadialGradientElement" , js_name = r)] #[doc = "Getter for the `r` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRadialGradientElement/r)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgRadialGradientElement`*"] pub fn r(this: &SvgRadialGradientElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGRadialGradientElement" , js_name = fx)] #[doc = "Getter for the `fx` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRadialGradientElement/fx)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgRadialGradientElement`*"] pub fn fx(this: &SvgRadialGradientElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGRadialGradientElement" , js_name = fy)] #[doc = "Getter for the `fy` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRadialGradientElement/fy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgRadialGradientElement`*"] pub fn fy(this: &SvgRadialGradientElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGRadialGradientElement" , js_name = fr)] #[doc = "Getter for the `fr` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRadialGradientElement/fr)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgRadialGradientElement`*"] pub fn fr(this: &SvgRadialGradientElement) -> SvgAnimatedLength; } web-sys-0.3.55/src/features/gen_SvgRect.rs000064400000000000000000000073650072674642500165330ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGRect , typescript_type = "SVGRect")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgRect` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgRect`*"] pub type SvgRect; # [wasm_bindgen (structural , method , getter , js_class = "SVGRect" , js_name = x)] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRect/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgRect`*"] pub fn x(this: &SvgRect) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGRect" , js_name = x)] #[doc = "Setter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRect/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgRect`*"] pub fn set_x(this: &SvgRect, value: f32); # [wasm_bindgen (structural , method , getter , js_class = "SVGRect" , js_name = y)] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRect/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgRect`*"] pub fn y(this: &SvgRect) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGRect" , js_name = y)] #[doc = "Setter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRect/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgRect`*"] pub fn set_y(this: &SvgRect, value: f32); # [wasm_bindgen (structural , method , getter , js_class = "SVGRect" , js_name = width)] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRect/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgRect`*"] pub fn width(this: &SvgRect) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGRect" , js_name = width)] #[doc = "Setter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRect/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgRect`*"] pub fn set_width(this: &SvgRect, value: f32); # [wasm_bindgen (structural , method , getter , js_class = "SVGRect" , js_name = height)] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRect/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgRect`*"] pub fn height(this: &SvgRect) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGRect" , js_name = height)] #[doc = "Setter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRect/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgRect`*"] pub fn set_height(this: &SvgRect, value: f32); } web-sys-0.3.55/src/features/gen_SvgRectElement.rs000064400000000000000000000073070072674642500200410ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgGeometryElement , extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGRectElement , typescript_type = "SVGRectElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgRectElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRectElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgRectElement`*"] pub type SvgRectElement; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGRectElement" , js_name = x)] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRectElement/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgRectElement`*"] pub fn x(this: &SvgRectElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGRectElement" , js_name = y)] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRectElement/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgRectElement`*"] pub fn y(this: &SvgRectElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGRectElement" , js_name = width)] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRectElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgRectElement`*"] pub fn width(this: &SvgRectElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGRectElement" , js_name = height)] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRectElement/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgRectElement`*"] pub fn height(this: &SvgRectElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGRectElement" , js_name = rx)] #[doc = "Getter for the `rx` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRectElement/rx)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgRectElement`*"] pub fn rx(this: &SvgRectElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGRectElement" , js_name = ry)] #[doc = "Getter for the `ry` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRectElement/ry)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgRectElement`*"] pub fn ry(this: &SvgRectElement) -> SvgAnimatedLength; } web-sys-0.3.55/src/features/gen_SvgScriptElement.rs000064400000000000000000000060050072674642500204020ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGScriptElement , typescript_type = "SVGScriptElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgScriptElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGScriptElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgScriptElement`*"] pub type SvgScriptElement; # [wasm_bindgen (structural , method , getter , js_class = "SVGScriptElement" , js_name = type)] #[doc = "Getter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGScriptElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgScriptElement`*"] pub fn type_(this: &SvgScriptElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "SVGScriptElement" , js_name = type)] #[doc = "Setter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGScriptElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgScriptElement`*"] pub fn set_type(this: &SvgScriptElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "SVGScriptElement" , js_name = crossOrigin)] #[doc = "Getter for the `crossOrigin` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGScriptElement/crossOrigin)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgScriptElement`*"] pub fn cross_origin(this: &SvgScriptElement) -> Option; # [wasm_bindgen (structural , method , setter , js_class = "SVGScriptElement" , js_name = crossOrigin)] #[doc = "Setter for the `crossOrigin` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGScriptElement/crossOrigin)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgScriptElement`*"] pub fn set_cross_origin(this: &SvgScriptElement, value: Option<&str>); #[cfg(feature = "SvgAnimatedString")] # [wasm_bindgen (structural , method , getter , js_class = "SVGScriptElement" , js_name = href)] #[doc = "Getter for the `href` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGScriptElement/href)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgScriptElement`*"] pub fn href(this: &SvgScriptElement) -> SvgAnimatedString; } web-sys-0.3.55/src/features/gen_SvgSetElement.rs000064400000000000000000000012410072674642500176660ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgAnimationElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGSetElement , typescript_type = "SVGSetElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgSetElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSetElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgSetElement`*"] pub type SvgSetElement; } web-sys-0.3.55/src/features/gen_SvgStopElement.rs000064400000000000000000000022240072674642500200620ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGStopElement , typescript_type = "SVGStopElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgStopElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStopElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgStopElement`*"] pub type SvgStopElement; #[cfg(feature = "SvgAnimatedNumber")] # [wasm_bindgen (structural , method , getter , js_class = "SVGStopElement" , js_name = offset)] #[doc = "Getter for the `offset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStopElement/offset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgStopElement`*"] pub fn offset(this: &SvgStopElement) -> SvgAnimatedNumber; } web-sys-0.3.55/src/features/gen_SvgStringList.rs000064400000000000000000000120220072674642500177220ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGStringList , typescript_type = "SVGStringList")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgStringList` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStringList)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgStringList`*"] pub type SvgStringList; # [wasm_bindgen (structural , method , getter , js_class = "SVGStringList" , js_name = length)] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStringList/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgStringList`*"] pub fn length(this: &SvgStringList) -> u32; # [wasm_bindgen (structural , method , getter , js_class = "SVGStringList" , js_name = numberOfItems)] #[doc = "Getter for the `numberOfItems` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStringList/numberOfItems)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgStringList`*"] pub fn number_of_items(this: &SvgStringList) -> u32; # [wasm_bindgen (catch , method , structural , js_class = "SVGStringList" , js_name = appendItem)] #[doc = "The `appendItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStringList/appendItem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgStringList`*"] pub fn append_item(this: &SvgStringList, new_item: &str) -> Result; # [wasm_bindgen (method , structural , js_class = "SVGStringList" , js_name = clear)] #[doc = "The `clear()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStringList/clear)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgStringList`*"] pub fn clear(this: &SvgStringList); # [wasm_bindgen (catch , method , structural , js_class = "SVGStringList" , js_name = getItem)] #[doc = "The `getItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStringList/getItem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgStringList`*"] pub fn get_item(this: &SvgStringList, index: u32) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "SVGStringList" , js_name = initialize)] #[doc = "The `initialize()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStringList/initialize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgStringList`*"] pub fn initialize(this: &SvgStringList, new_item: &str) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "SVGStringList" , js_name = insertItemBefore)] #[doc = "The `insertItemBefore()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStringList/insertItemBefore)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgStringList`*"] pub fn insert_item_before( this: &SvgStringList, new_item: &str, index: u32, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "SVGStringList" , js_name = removeItem)] #[doc = "The `removeItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStringList/removeItem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgStringList`*"] pub fn remove_item(this: &SvgStringList, index: u32) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "SVGStringList" , js_name = replaceItem)] #[doc = "The `replaceItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStringList/replaceItem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgStringList`*"] pub fn replace_item( this: &SvgStringList, new_item: &str, index: u32, ) -> Result; #[wasm_bindgen(method, structural, js_class = "SVGStringList", indexing_getter)] #[doc = "Indexing getter."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgStringList`*"] pub fn get(this: &SvgStringList, index: u32) -> Option; } web-sys-0.3.55/src/features/gen_SvgStyleElement.rs000064400000000000000000000113220072674642500202340ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGStyleElement , typescript_type = "SVGStyleElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgStyleElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStyleElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgStyleElement`*"] pub type SvgStyleElement; # [wasm_bindgen (structural , method , getter , js_class = "SVGStyleElement" , js_name = xmlspace)] #[doc = "Getter for the `xmlspace` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStyleElement/xmlspace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgStyleElement`*"] pub fn xmlspace(this: &SvgStyleElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "SVGStyleElement" , js_name = xmlspace)] #[doc = "Setter for the `xmlspace` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStyleElement/xmlspace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgStyleElement`*"] pub fn set_xmlspace(this: &SvgStyleElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "SVGStyleElement" , js_name = type)] #[doc = "Getter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStyleElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgStyleElement`*"] pub fn type_(this: &SvgStyleElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "SVGStyleElement" , js_name = type)] #[doc = "Setter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStyleElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgStyleElement`*"] pub fn set_type(this: &SvgStyleElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "SVGStyleElement" , js_name = media)] #[doc = "Getter for the `media` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStyleElement/media)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgStyleElement`*"] pub fn media(this: &SvgStyleElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "SVGStyleElement" , js_name = media)] #[doc = "Setter for the `media` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStyleElement/media)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgStyleElement`*"] pub fn set_media(this: &SvgStyleElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "SVGStyleElement" , js_name = title)] #[doc = "Getter for the `title` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStyleElement/title)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgStyleElement`*"] pub fn title(this: &SvgStyleElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "SVGStyleElement" , js_name = title)] #[doc = "Setter for the `title` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStyleElement/title)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgStyleElement`*"] pub fn set_title(this: &SvgStyleElement, value: &str); #[cfg(feature = "StyleSheet")] # [wasm_bindgen (structural , method , getter , js_class = "SVGStyleElement" , js_name = sheet)] #[doc = "Getter for the `sheet` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStyleElement/sheet)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleSheet`, `SvgStyleElement`*"] pub fn sheet(this: &SvgStyleElement) -> Option; } web-sys-0.3.55/src/features/gen_SvgSwitchElement.rs000064400000000000000000000012620072674642500203770ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGSwitchElement , typescript_type = "SVGSwitchElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgSwitchElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSwitchElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgSwitchElement`*"] pub type SvgSwitchElement; } web-sys-0.3.55/src/features/gen_SvgSymbolElement.rs000064400000000000000000000076020072674642500204070ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGSymbolElement , typescript_type = "SVGSymbolElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgSymbolElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSymbolElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgSymbolElement`*"] pub type SvgSymbolElement; #[cfg(feature = "SvgAnimatedRect")] # [wasm_bindgen (structural , method , getter , js_class = "SVGSymbolElement" , js_name = viewBox)] #[doc = "Getter for the `viewBox` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSymbolElement/viewBox)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedRect`, `SvgSymbolElement`*"] pub fn view_box(this: &SvgSymbolElement) -> SvgAnimatedRect; #[cfg(feature = "SvgAnimatedPreserveAspectRatio")] # [wasm_bindgen (structural , method , getter , js_class = "SVGSymbolElement" , js_name = preserveAspectRatio)] #[doc = "Getter for the `preserveAspectRatio` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSymbolElement/preserveAspectRatio)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedPreserveAspectRatio`, `SvgSymbolElement`*"] pub fn preserve_aspect_ratio(this: &SvgSymbolElement) -> SvgAnimatedPreserveAspectRatio; #[cfg(feature = "SvgStringList")] # [wasm_bindgen (structural , method , getter , js_class = "SVGSymbolElement" , js_name = requiredFeatures)] #[doc = "Getter for the `requiredFeatures` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSymbolElement/requiredFeatures)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgStringList`, `SvgSymbolElement`*"] pub fn required_features(this: &SvgSymbolElement) -> SvgStringList; #[cfg(feature = "SvgStringList")] # [wasm_bindgen (structural , method , getter , js_class = "SVGSymbolElement" , js_name = requiredExtensions)] #[doc = "Getter for the `requiredExtensions` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSymbolElement/requiredExtensions)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgStringList`, `SvgSymbolElement`*"] pub fn required_extensions(this: &SvgSymbolElement) -> SvgStringList; #[cfg(feature = "SvgStringList")] # [wasm_bindgen (structural , method , getter , js_class = "SVGSymbolElement" , js_name = systemLanguage)] #[doc = "Getter for the `systemLanguage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSymbolElement/systemLanguage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgStringList`, `SvgSymbolElement`*"] pub fn system_language(this: &SvgSymbolElement) -> SvgStringList; # [wasm_bindgen (method , structural , js_class = "SVGSymbolElement" , js_name = hasExtension)] #[doc = "The `hasExtension()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSymbolElement/hasExtension)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgSymbolElement`*"] pub fn has_extension(this: &SvgSymbolElement, extension: &str) -> bool; } web-sys-0.3.55/src/features/gen_SvgTextContentElement.rs000064400000000000000000000171020072674642500214150ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGTextContentElement , typescript_type = "SVGTextContentElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgTextContentElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextContentElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgTextContentElement`*"] pub type SvgTextContentElement; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGTextContentElement" , js_name = textLength)] #[doc = "Getter for the `textLength` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextContentElement/textLength)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgTextContentElement`*"] pub fn text_length(this: &SvgTextContentElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedEnumeration")] # [wasm_bindgen (structural , method , getter , js_class = "SVGTextContentElement" , js_name = lengthAdjust)] #[doc = "Getter for the `lengthAdjust` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextContentElement/lengthAdjust)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgTextContentElement`*"] pub fn length_adjust(this: &SvgTextContentElement) -> SvgAnimatedEnumeration; #[cfg(feature = "SvgPoint")] # [wasm_bindgen (method , structural , js_class = "SVGTextContentElement" , js_name = getCharNumAtPosition)] #[doc = "The `getCharNumAtPosition()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextContentElement/getCharNumAtPosition)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPoint`, `SvgTextContentElement`*"] pub fn get_char_num_at_position(this: &SvgTextContentElement, point: &SvgPoint) -> i32; # [wasm_bindgen (method , structural , js_class = "SVGTextContentElement" , js_name = getComputedTextLength)] #[doc = "The `getComputedTextLength()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextContentElement/getComputedTextLength)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgTextContentElement`*"] pub fn get_computed_text_length(this: &SvgTextContentElement) -> f32; #[cfg(feature = "SvgPoint")] # [wasm_bindgen (catch , method , structural , js_class = "SVGTextContentElement" , js_name = getEndPositionOfChar)] #[doc = "The `getEndPositionOfChar()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextContentElement/getEndPositionOfChar)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPoint`, `SvgTextContentElement`*"] pub fn get_end_position_of_char( this: &SvgTextContentElement, charnum: u32, ) -> Result; #[cfg(feature = "SvgRect")] # [wasm_bindgen (catch , method , structural , js_class = "SVGTextContentElement" , js_name = getExtentOfChar)] #[doc = "The `getExtentOfChar()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextContentElement/getExtentOfChar)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgRect`, `SvgTextContentElement`*"] pub fn get_extent_of_char( this: &SvgTextContentElement, charnum: u32, ) -> Result; # [wasm_bindgen (method , structural , js_class = "SVGTextContentElement" , js_name = getNumberOfChars)] #[doc = "The `getNumberOfChars()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextContentElement/getNumberOfChars)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgTextContentElement`*"] pub fn get_number_of_chars(this: &SvgTextContentElement) -> i32; # [wasm_bindgen (catch , method , structural , js_class = "SVGTextContentElement" , js_name = getRotationOfChar)] #[doc = "The `getRotationOfChar()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextContentElement/getRotationOfChar)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgTextContentElement`*"] pub fn get_rotation_of_char(this: &SvgTextContentElement, charnum: u32) -> Result; #[cfg(feature = "SvgPoint")] # [wasm_bindgen (catch , method , structural , js_class = "SVGTextContentElement" , js_name = getStartPositionOfChar)] #[doc = "The `getStartPositionOfChar()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextContentElement/getStartPositionOfChar)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPoint`, `SvgTextContentElement`*"] pub fn get_start_position_of_char( this: &SvgTextContentElement, charnum: u32, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "SVGTextContentElement" , js_name = getSubStringLength)] #[doc = "The `getSubStringLength()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextContentElement/getSubStringLength)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgTextContentElement`*"] pub fn get_sub_string_length( this: &SvgTextContentElement, charnum: u32, nchars: u32, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "SVGTextContentElement" , js_name = selectSubString)] #[doc = "The `selectSubString()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextContentElement/selectSubString)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgTextContentElement`*"] pub fn select_sub_string( this: &SvgTextContentElement, charnum: u32, nchars: u32, ) -> Result<(), JsValue>; } impl SvgTextContentElement { #[doc = "The `SVGTextContentElement.LENGTHADJUST_UNKNOWN` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgTextContentElement`*"] pub const LENGTHADJUST_UNKNOWN: u16 = 0i64 as u16; #[doc = "The `SVGTextContentElement.LENGTHADJUST_SPACING` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgTextContentElement`*"] pub const LENGTHADJUST_SPACING: u16 = 1u64 as u16; #[doc = "The `SVGTextContentElement.LENGTHADJUST_SPACINGANDGLYPHS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgTextContentElement`*"] pub const LENGTHADJUST_SPACINGANDGLYPHS: u16 = 2u64 as u16; } web-sys-0.3.55/src/features/gen_SvgTextElement.rs000064400000000000000000000013560072674642500200660ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgTextPositioningElement , extends = SvgTextContentElement , extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGTextElement , typescript_type = "SVGTextElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgTextElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgTextElement`*"] pub type SvgTextElement; } web-sys-0.3.55/src/features/gen_SvgTextPathElement.rs000064400000000000000000000106210072674642500206760ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgTextContentElement , extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGTextPathElement , typescript_type = "SVGTextPathElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgTextPathElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextPathElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgTextPathElement`*"] pub type SvgTextPathElement; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGTextPathElement" , js_name = startOffset)] #[doc = "Getter for the `startOffset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextPathElement/startOffset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgTextPathElement`*"] pub fn start_offset(this: &SvgTextPathElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedEnumeration")] # [wasm_bindgen (structural , method , getter , js_class = "SVGTextPathElement" , js_name = method)] #[doc = "Getter for the `method` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextPathElement/method)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgTextPathElement`*"] pub fn method(this: &SvgTextPathElement) -> SvgAnimatedEnumeration; #[cfg(feature = "SvgAnimatedEnumeration")] # [wasm_bindgen (structural , method , getter , js_class = "SVGTextPathElement" , js_name = spacing)] #[doc = "Getter for the `spacing` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextPathElement/spacing)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgTextPathElement`*"] pub fn spacing(this: &SvgTextPathElement) -> SvgAnimatedEnumeration; #[cfg(feature = "SvgAnimatedString")] # [wasm_bindgen (structural , method , getter , js_class = "SVGTextPathElement" , js_name = href)] #[doc = "Getter for the `href` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextPathElement/href)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgTextPathElement`*"] pub fn href(this: &SvgTextPathElement) -> SvgAnimatedString; } impl SvgTextPathElement { #[doc = "The `SVGTextPathElement.TEXTPATH_METHODTYPE_UNKNOWN` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgTextPathElement`*"] pub const TEXTPATH_METHODTYPE_UNKNOWN: u16 = 0i64 as u16; #[doc = "The `SVGTextPathElement.TEXTPATH_METHODTYPE_ALIGN` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgTextPathElement`*"] pub const TEXTPATH_METHODTYPE_ALIGN: u16 = 1u64 as u16; #[doc = "The `SVGTextPathElement.TEXTPATH_METHODTYPE_STRETCH` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgTextPathElement`*"] pub const TEXTPATH_METHODTYPE_STRETCH: u16 = 2u64 as u16; #[doc = "The `SVGTextPathElement.TEXTPATH_SPACINGTYPE_UNKNOWN` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgTextPathElement`*"] pub const TEXTPATH_SPACINGTYPE_UNKNOWN: u16 = 0i64 as u16; #[doc = "The `SVGTextPathElement.TEXTPATH_SPACINGTYPE_AUTO` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgTextPathElement`*"] pub const TEXTPATH_SPACINGTYPE_AUTO: u16 = 1u64 as u16; #[doc = "The `SVGTextPathElement.TEXTPATH_SPACINGTYPE_EXACT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgTextPathElement`*"] pub const TEXTPATH_SPACINGTYPE_EXACT: u16 = 2u64 as u16; } web-sys-0.3.55/src/features/gen_SvgTextPositioningElement.rs000064400000000000000000000070330072674642500223070ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgTextContentElement , extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGTextPositioningElement , typescript_type = "SVGTextPositioningElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgTextPositioningElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextPositioningElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgTextPositioningElement`*"] pub type SvgTextPositioningElement; #[cfg(feature = "SvgAnimatedLengthList")] # [wasm_bindgen (structural , method , getter , js_class = "SVGTextPositioningElement" , js_name = x)] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextPositioningElement/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLengthList`, `SvgTextPositioningElement`*"] pub fn x(this: &SvgTextPositioningElement) -> SvgAnimatedLengthList; #[cfg(feature = "SvgAnimatedLengthList")] # [wasm_bindgen (structural , method , getter , js_class = "SVGTextPositioningElement" , js_name = y)] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextPositioningElement/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLengthList`, `SvgTextPositioningElement`*"] pub fn y(this: &SvgTextPositioningElement) -> SvgAnimatedLengthList; #[cfg(feature = "SvgAnimatedLengthList")] # [wasm_bindgen (structural , method , getter , js_class = "SVGTextPositioningElement" , js_name = dx)] #[doc = "Getter for the `dx` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextPositioningElement/dx)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLengthList`, `SvgTextPositioningElement`*"] pub fn dx(this: &SvgTextPositioningElement) -> SvgAnimatedLengthList; #[cfg(feature = "SvgAnimatedLengthList")] # [wasm_bindgen (structural , method , getter , js_class = "SVGTextPositioningElement" , js_name = dy)] #[doc = "Getter for the `dy` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextPositioningElement/dy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLengthList`, `SvgTextPositioningElement`*"] pub fn dy(this: &SvgTextPositioningElement) -> SvgAnimatedLengthList; #[cfg(feature = "SvgAnimatedNumberList")] # [wasm_bindgen (structural , method , getter , js_class = "SVGTextPositioningElement" , js_name = rotate)] #[doc = "Getter for the `rotate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextPositioningElement/rotate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumberList`, `SvgTextPositioningElement`*"] pub fn rotate(this: &SvgTextPositioningElement) -> SvgAnimatedNumberList; } web-sys-0.3.55/src/features/gen_SvgTitleElement.rs000064400000000000000000000012150072674642500202150ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGTitleElement , typescript_type = "SVGTitleElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgTitleElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTitleElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgTitleElement`*"] pub type SvgTitleElement; } web-sys-0.3.55/src/features/gen_SvgTransform.rs000064400000000000000000000143410072674642500176010ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGTransform , typescript_type = "SVGTransform")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgTransform` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgTransform`*"] pub type SvgTransform; # [wasm_bindgen (structural , method , getter , js_class = "SVGTransform" , js_name = type)] #[doc = "Getter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransform/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgTransform`*"] pub fn type_(this: &SvgTransform) -> u16; #[cfg(feature = "SvgMatrix")] # [wasm_bindgen (structural , method , getter , js_class = "SVGTransform" , js_name = matrix)] #[doc = "Getter for the `matrix` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransform/matrix)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`, `SvgTransform`*"] pub fn matrix(this: &SvgTransform) -> SvgMatrix; # [wasm_bindgen (structural , method , getter , js_class = "SVGTransform" , js_name = angle)] #[doc = "Getter for the `angle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransform/angle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgTransform`*"] pub fn angle(this: &SvgTransform) -> f32; #[cfg(feature = "SvgMatrix")] # [wasm_bindgen (catch , method , structural , js_class = "SVGTransform" , js_name = setMatrix)] #[doc = "The `setMatrix()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransform/setMatrix)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`, `SvgTransform`*"] pub fn set_matrix(this: &SvgTransform, matrix: &SvgMatrix) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "SVGTransform" , js_name = setRotate)] #[doc = "The `setRotate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransform/setRotate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgTransform`*"] pub fn set_rotate(this: &SvgTransform, angle: f32, cx: f32, cy: f32) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "SVGTransform" , js_name = setScale)] #[doc = "The `setScale()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransform/setScale)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgTransform`*"] pub fn set_scale(this: &SvgTransform, sx: f32, sy: f32) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "SVGTransform" , js_name = setSkewX)] #[doc = "The `setSkewX()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransform/setSkewX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgTransform`*"] pub fn set_skew_x(this: &SvgTransform, angle: f32) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "SVGTransform" , js_name = setSkewY)] #[doc = "The `setSkewY()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransform/setSkewY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgTransform`*"] pub fn set_skew_y(this: &SvgTransform, angle: f32) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "SVGTransform" , js_name = setTranslate)] #[doc = "The `setTranslate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransform/setTranslate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgTransform`*"] pub fn set_translate(this: &SvgTransform, tx: f32, ty: f32) -> Result<(), JsValue>; } impl SvgTransform { #[doc = "The `SVGTransform.SVG_TRANSFORM_UNKNOWN` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgTransform`*"] pub const SVG_TRANSFORM_UNKNOWN: u16 = 0i64 as u16; #[doc = "The `SVGTransform.SVG_TRANSFORM_MATRIX` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgTransform`*"] pub const SVG_TRANSFORM_MATRIX: u16 = 1u64 as u16; #[doc = "The `SVGTransform.SVG_TRANSFORM_TRANSLATE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgTransform`*"] pub const SVG_TRANSFORM_TRANSLATE: u16 = 2u64 as u16; #[doc = "The `SVGTransform.SVG_TRANSFORM_SCALE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgTransform`*"] pub const SVG_TRANSFORM_SCALE: u16 = 3u64 as u16; #[doc = "The `SVGTransform.SVG_TRANSFORM_ROTATE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgTransform`*"] pub const SVG_TRANSFORM_ROTATE: u16 = 4u64 as u16; #[doc = "The `SVGTransform.SVG_TRANSFORM_SKEWX` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgTransform`*"] pub const SVG_TRANSFORM_SKEWX: u16 = 5u64 as u16; #[doc = "The `SVGTransform.SVG_TRANSFORM_SKEWY` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgTransform`*"] pub const SVG_TRANSFORM_SKEWY: u16 = 6u64 as u16; } web-sys-0.3.55/src/features/gen_SvgTransformList.rs000064400000000000000000000147170072674642500204440ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGTransformList , typescript_type = "SVGTransformList")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgTransformList` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransformList)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgTransformList`*"] pub type SvgTransformList; # [wasm_bindgen (structural , method , getter , js_class = "SVGTransformList" , js_name = numberOfItems)] #[doc = "Getter for the `numberOfItems` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransformList/numberOfItems)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgTransformList`*"] pub fn number_of_items(this: &SvgTransformList) -> u32; #[cfg(feature = "SvgTransform")] # [wasm_bindgen (catch , method , structural , js_class = "SVGTransformList" , js_name = appendItem)] #[doc = "The `appendItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransformList/appendItem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgTransform`, `SvgTransformList`*"] pub fn append_item( this: &SvgTransformList, new_item: &SvgTransform, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "SVGTransformList" , js_name = clear)] #[doc = "The `clear()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransformList/clear)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgTransformList`*"] pub fn clear(this: &SvgTransformList) -> Result<(), JsValue>; #[cfg(feature = "SvgTransform")] # [wasm_bindgen (catch , method , structural , js_class = "SVGTransformList" , js_name = consolidate)] #[doc = "The `consolidate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransformList/consolidate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgTransform`, `SvgTransformList`*"] pub fn consolidate(this: &SvgTransformList) -> Result, JsValue>; #[cfg(all(feature = "SvgMatrix", feature = "SvgTransform",))] # [wasm_bindgen (method , structural , js_class = "SVGTransformList" , js_name = createSVGTransformFromMatrix)] #[doc = "The `createSVGTransformFromMatrix()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransformList/createSVGTransformFromMatrix)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`, `SvgTransform`, `SvgTransformList`*"] pub fn create_svg_transform_from_matrix( this: &SvgTransformList, matrix: &SvgMatrix, ) -> SvgTransform; #[cfg(feature = "SvgTransform")] # [wasm_bindgen (catch , method , structural , js_class = "SVGTransformList" , js_name = getItem)] #[doc = "The `getItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransformList/getItem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgTransform`, `SvgTransformList`*"] pub fn get_item(this: &SvgTransformList, index: u32) -> Result; #[cfg(feature = "SvgTransform")] # [wasm_bindgen (catch , method , structural , js_class = "SVGTransformList" , js_name = initialize)] #[doc = "The `initialize()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransformList/initialize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgTransform`, `SvgTransformList`*"] pub fn initialize( this: &SvgTransformList, new_item: &SvgTransform, ) -> Result; #[cfg(feature = "SvgTransform")] # [wasm_bindgen (catch , method , structural , js_class = "SVGTransformList" , js_name = insertItemBefore)] #[doc = "The `insertItemBefore()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransformList/insertItemBefore)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgTransform`, `SvgTransformList`*"] pub fn insert_item_before( this: &SvgTransformList, new_item: &SvgTransform, index: u32, ) -> Result; #[cfg(feature = "SvgTransform")] # [wasm_bindgen (catch , method , structural , js_class = "SVGTransformList" , js_name = removeItem)] #[doc = "The `removeItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransformList/removeItem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgTransform`, `SvgTransformList`*"] pub fn remove_item(this: &SvgTransformList, index: u32) -> Result; #[cfg(feature = "SvgTransform")] # [wasm_bindgen (catch , method , structural , js_class = "SVGTransformList" , js_name = replaceItem)] #[doc = "The `replaceItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransformList/replaceItem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgTransform`, `SvgTransformList`*"] pub fn replace_item( this: &SvgTransformList, new_item: &SvgTransform, index: u32, ) -> Result; #[cfg(feature = "SvgTransform")] #[wasm_bindgen( catch, method, structural, js_class = "SVGTransformList", indexing_getter )] #[doc = "Indexing getter."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgTransform`, `SvgTransformList`*"] pub fn get(this: &SvgTransformList, index: u32) -> Result; } web-sys-0.3.55/src/features/gen_SvgUnitTypes.rs000064400000000000000000000024240072674642500175710ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGUnitTypes , typescript_type = "SVGUnitTypes")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgUnitTypes` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGUnitTypes)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgUnitTypes`*"] pub type SvgUnitTypes; } impl SvgUnitTypes { #[doc = "The `SVGUnitTypes.SVG_UNIT_TYPE_UNKNOWN` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgUnitTypes`*"] pub const SVG_UNIT_TYPE_UNKNOWN: u16 = 0i64 as u16; #[doc = "The `SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgUnitTypes`*"] pub const SVG_UNIT_TYPE_USERSPACEONUSE: u16 = 1u64 as u16; #[doc = "The `SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgUnitTypes`*"] pub const SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: u16 = 2u64 as u16; } web-sys-0.3.55/src/features/gen_SvgUseElement.rs000064400000000000000000000062310072674642500176730ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGUseElement , typescript_type = "SVGUseElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgUseElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGUseElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgUseElement`*"] pub type SvgUseElement; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGUseElement" , js_name = x)] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGUseElement/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgUseElement`*"] pub fn x(this: &SvgUseElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGUseElement" , js_name = y)] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGUseElement/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgUseElement`*"] pub fn y(this: &SvgUseElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGUseElement" , js_name = width)] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGUseElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgUseElement`*"] pub fn width(this: &SvgUseElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGUseElement" , js_name = height)] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGUseElement/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgUseElement`*"] pub fn height(this: &SvgUseElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedString")] # [wasm_bindgen (structural , method , getter , js_class = "SVGUseElement" , js_name = href)] #[doc = "Getter for the `href` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGUseElement/href)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgUseElement`*"] pub fn href(this: &SvgUseElement) -> SvgAnimatedString; } web-sys-0.3.55/src/features/gen_SvgViewElement.rs000064400000000000000000000066110072674642500200530ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGViewElement , typescript_type = "SVGViewElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgViewElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGViewElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgViewElement`*"] pub type SvgViewElement; #[cfg(feature = "SvgAnimatedRect")] # [wasm_bindgen (structural , method , getter , js_class = "SVGViewElement" , js_name = viewBox)] #[doc = "Getter for the `viewBox` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGViewElement/viewBox)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedRect`, `SvgViewElement`*"] pub fn view_box(this: &SvgViewElement) -> SvgAnimatedRect; #[cfg(feature = "SvgAnimatedPreserveAspectRatio")] # [wasm_bindgen (structural , method , getter , js_class = "SVGViewElement" , js_name = preserveAspectRatio)] #[doc = "Getter for the `preserveAspectRatio` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGViewElement/preserveAspectRatio)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedPreserveAspectRatio`, `SvgViewElement`*"] pub fn preserve_aspect_ratio(this: &SvgViewElement) -> SvgAnimatedPreserveAspectRatio; # [wasm_bindgen (structural , method , getter , js_class = "SVGViewElement" , js_name = zoomAndPan)] #[doc = "Getter for the `zoomAndPan` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGViewElement/zoomAndPan)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgViewElement`*"] pub fn zoom_and_pan(this: &SvgViewElement) -> u16; # [wasm_bindgen (structural , method , setter , js_class = "SVGViewElement" , js_name = zoomAndPan)] #[doc = "Setter for the `zoomAndPan` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGViewElement/zoomAndPan)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgViewElement`*"] pub fn set_zoom_and_pan(this: &SvgViewElement, value: u16); } impl SvgViewElement { #[doc = "The `SVGViewElement.SVG_ZOOMANDPAN_UNKNOWN` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgViewElement`*"] pub const SVG_ZOOMANDPAN_UNKNOWN: u16 = 0i64 as u16; #[doc = "The `SVGViewElement.SVG_ZOOMANDPAN_DISABLE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgViewElement`*"] pub const SVG_ZOOMANDPAN_DISABLE: u16 = 1u64 as u16; #[doc = "The `SVGViewElement.SVG_ZOOMANDPAN_MAGNIFY` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgViewElement`*"] pub const SVG_ZOOMANDPAN_MAGNIFY: u16 = 2u64 as u16; } web-sys-0.3.55/src/features/gen_SvgZoomAndPan.rs000064400000000000000000000042520072674642500176340ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGZoomAndPan , typescript_type = "SVGZoomAndPan")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgZoomAndPan` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGZoomAndPan)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgZoomAndPan`*"] pub type SvgZoomAndPan; # [wasm_bindgen (structural , method , getter , js_class = "SVGZoomAndPan" , js_name = zoomAndPan)] #[doc = "Getter for the `zoomAndPan` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGZoomAndPan/zoomAndPan)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgZoomAndPan`*"] pub fn zoom_and_pan(this: &SvgZoomAndPan) -> u16; # [wasm_bindgen (structural , method , setter , js_class = "SVGZoomAndPan" , js_name = zoomAndPan)] #[doc = "Setter for the `zoomAndPan` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGZoomAndPan/zoomAndPan)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgZoomAndPan`*"] pub fn set_zoom_and_pan(this: &SvgZoomAndPan, value: u16); } impl SvgZoomAndPan { #[doc = "The `SVGZoomAndPan.SVG_ZOOMANDPAN_UNKNOWN` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgZoomAndPan`*"] pub const SVG_ZOOMANDPAN_UNKNOWN: u16 = 0i64 as u16; #[doc = "The `SVGZoomAndPan.SVG_ZOOMANDPAN_DISABLE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgZoomAndPan`*"] pub const SVG_ZOOMANDPAN_DISABLE: u16 = 1u64 as u16; #[doc = "The `SVGZoomAndPan.SVG_ZOOMANDPAN_MAGNIFY` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgZoomAndPan`*"] pub const SVG_ZOOMANDPAN_MAGNIFY: u16 = 2u64 as u16; } web-sys-0.3.55/src/features/gen_SvgaElement.rs000064400000000000000000000204130072674642500173550ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGAElement , typescript_type = "SVGAElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgaElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgaElement`*"] pub type SvgaElement; #[cfg(feature = "SvgAnimatedString")] # [wasm_bindgen (structural , method , getter , js_class = "SVGAElement" , js_name = target)] #[doc = "Getter for the `target` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/target)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgaElement`*"] pub fn target(this: &SvgaElement) -> SvgAnimatedString; # [wasm_bindgen (structural , method , getter , js_class = "SVGAElement" , js_name = download)] #[doc = "Getter for the `download` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/download)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgaElement`*"] pub fn download(this: &SvgaElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "SVGAElement" , js_name = download)] #[doc = "Setter for the `download` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/download)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgaElement`*"] pub fn set_download(this: &SvgaElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "SVGAElement" , js_name = ping)] #[doc = "Getter for the `ping` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/ping)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgaElement`*"] pub fn ping(this: &SvgaElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "SVGAElement" , js_name = ping)] #[doc = "Setter for the `ping` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/ping)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgaElement`*"] pub fn set_ping(this: &SvgaElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "SVGAElement" , js_name = rel)] #[doc = "Getter for the `rel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/rel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgaElement`*"] pub fn rel(this: &SvgaElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "SVGAElement" , js_name = rel)] #[doc = "Setter for the `rel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/rel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgaElement`*"] pub fn set_rel(this: &SvgaElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "SVGAElement" , js_name = referrerPolicy)] #[doc = "Getter for the `referrerPolicy` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/referrerPolicy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgaElement`*"] pub fn referrer_policy(this: &SvgaElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "SVGAElement" , js_name = referrerPolicy)] #[doc = "Setter for the `referrerPolicy` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/referrerPolicy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgaElement`*"] pub fn set_referrer_policy(this: &SvgaElement, value: &str); #[cfg(feature = "DomTokenList")] # [wasm_bindgen (structural , method , getter , js_class = "SVGAElement" , js_name = relList)] #[doc = "Getter for the `relList` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/relList)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`, `SvgaElement`*"] pub fn rel_list(this: &SvgaElement) -> DomTokenList; # [wasm_bindgen (structural , method , getter , js_class = "SVGAElement" , js_name = hreflang)] #[doc = "Getter for the `hreflang` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/hreflang)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgaElement`*"] pub fn hreflang(this: &SvgaElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "SVGAElement" , js_name = hreflang)] #[doc = "Setter for the `hreflang` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/hreflang)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgaElement`*"] pub fn set_hreflang(this: &SvgaElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "SVGAElement" , js_name = type)] #[doc = "Getter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgaElement`*"] pub fn type_(this: &SvgaElement) -> String; # [wasm_bindgen (structural , method , setter , js_class = "SVGAElement" , js_name = type)] #[doc = "Setter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgaElement`*"] pub fn set_type(this: &SvgaElement, value: &str); # [wasm_bindgen (structural , catch , method , getter , js_class = "SVGAElement" , js_name = text)] #[doc = "Getter for the `text` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/text)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgaElement`*"] pub fn text(this: &SvgaElement) -> Result; # [wasm_bindgen (structural , catch , method , setter , js_class = "SVGAElement" , js_name = text)] #[doc = "Setter for the `text` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/text)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgaElement`*"] pub fn set_text(this: &SvgaElement, value: &str) -> Result<(), JsValue>; #[cfg(feature = "SvgAnimatedString")] # [wasm_bindgen (structural , method , getter , js_class = "SVGAElement" , js_name = href)] #[doc = "Getter for the `href` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/href)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgaElement`*"] pub fn href(this: &SvgaElement) -> SvgAnimatedString; } web-sys-0.3.55/src/features/gen_SvgfeBlendElement.rs000064400000000000000000000217150072674642500205020ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEBlendElement , typescript_type = "SVGFEBlendElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgfeBlendElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEBlendElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeBlendElement`*"] pub type SvgfeBlendElement; #[cfg(feature = "SvgAnimatedString")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEBlendElement" , js_name = in1)] #[doc = "Getter for the `in1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEBlendElement/in1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeBlendElement`*"] pub fn in1(this: &SvgfeBlendElement) -> SvgAnimatedString; #[cfg(feature = "SvgAnimatedString")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEBlendElement" , js_name = in2)] #[doc = "Getter for the `in2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEBlendElement/in2)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeBlendElement`*"] pub fn in2(this: &SvgfeBlendElement) -> SvgAnimatedString; #[cfg(feature = "SvgAnimatedEnumeration")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEBlendElement" , js_name = mode)] #[doc = "Getter for the `mode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEBlendElement/mode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgfeBlendElement`*"] pub fn mode(this: &SvgfeBlendElement) -> SvgAnimatedEnumeration; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEBlendElement" , js_name = x)] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEBlendElement/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeBlendElement`*"] pub fn x(this: &SvgfeBlendElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEBlendElement" , js_name = y)] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEBlendElement/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeBlendElement`*"] pub fn y(this: &SvgfeBlendElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEBlendElement" , js_name = width)] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEBlendElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeBlendElement`*"] pub fn width(this: &SvgfeBlendElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEBlendElement" , js_name = height)] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEBlendElement/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeBlendElement`*"] pub fn height(this: &SvgfeBlendElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedString")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEBlendElement" , js_name = result)] #[doc = "Getter for the `result` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEBlendElement/result)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeBlendElement`*"] pub fn result(this: &SvgfeBlendElement) -> SvgAnimatedString; } impl SvgfeBlendElement { #[doc = "The `SVGFEBlendElement.SVG_FEBLEND_MODE_UNKNOWN` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeBlendElement`*"] pub const SVG_FEBLEND_MODE_UNKNOWN: u16 = 0i64 as u16; #[doc = "The `SVGFEBlendElement.SVG_FEBLEND_MODE_NORMAL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeBlendElement`*"] pub const SVG_FEBLEND_MODE_NORMAL: u16 = 1u64 as u16; #[doc = "The `SVGFEBlendElement.SVG_FEBLEND_MODE_MULTIPLY` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeBlendElement`*"] pub const SVG_FEBLEND_MODE_MULTIPLY: u16 = 2u64 as u16; #[doc = "The `SVGFEBlendElement.SVG_FEBLEND_MODE_SCREEN` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeBlendElement`*"] pub const SVG_FEBLEND_MODE_SCREEN: u16 = 3u64 as u16; #[doc = "The `SVGFEBlendElement.SVG_FEBLEND_MODE_DARKEN` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeBlendElement`*"] pub const SVG_FEBLEND_MODE_DARKEN: u16 = 4u64 as u16; #[doc = "The `SVGFEBlendElement.SVG_FEBLEND_MODE_LIGHTEN` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeBlendElement`*"] pub const SVG_FEBLEND_MODE_LIGHTEN: u16 = 5u64 as u16; #[doc = "The `SVGFEBlendElement.SVG_FEBLEND_MODE_OVERLAY` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeBlendElement`*"] pub const SVG_FEBLEND_MODE_OVERLAY: u16 = 6u64 as u16; #[doc = "The `SVGFEBlendElement.SVG_FEBLEND_MODE_COLOR_DODGE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeBlendElement`*"] pub const SVG_FEBLEND_MODE_COLOR_DODGE: u16 = 7u64 as u16; #[doc = "The `SVGFEBlendElement.SVG_FEBLEND_MODE_COLOR_BURN` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeBlendElement`*"] pub const SVG_FEBLEND_MODE_COLOR_BURN: u16 = 8u64 as u16; #[doc = "The `SVGFEBlendElement.SVG_FEBLEND_MODE_HARD_LIGHT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeBlendElement`*"] pub const SVG_FEBLEND_MODE_HARD_LIGHT: u16 = 9u64 as u16; #[doc = "The `SVGFEBlendElement.SVG_FEBLEND_MODE_SOFT_LIGHT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeBlendElement`*"] pub const SVG_FEBLEND_MODE_SOFT_LIGHT: u16 = 10u64 as u16; #[doc = "The `SVGFEBlendElement.SVG_FEBLEND_MODE_DIFFERENCE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeBlendElement`*"] pub const SVG_FEBLEND_MODE_DIFFERENCE: u16 = 11u64 as u16; #[doc = "The `SVGFEBlendElement.SVG_FEBLEND_MODE_EXCLUSION` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeBlendElement`*"] pub const SVG_FEBLEND_MODE_EXCLUSION: u16 = 12u64 as u16; #[doc = "The `SVGFEBlendElement.SVG_FEBLEND_MODE_HUE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeBlendElement`*"] pub const SVG_FEBLEND_MODE_HUE: u16 = 13u64 as u16; #[doc = "The `SVGFEBlendElement.SVG_FEBLEND_MODE_SATURATION` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeBlendElement`*"] pub const SVG_FEBLEND_MODE_SATURATION: u16 = 14u64 as u16; #[doc = "The `SVGFEBlendElement.SVG_FEBLEND_MODE_COLOR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeBlendElement`*"] pub const SVG_FEBLEND_MODE_COLOR: u16 = 15u64 as u16; #[doc = "The `SVGFEBlendElement.SVG_FEBLEND_MODE_LUMINOSITY` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeBlendElement`*"] pub const SVG_FEBLEND_MODE_LUMINOSITY: u16 = 16u64 as u16; } web-sys-0.3.55/src/features/gen_SvgfeColorMatrixElement.rs000064400000000000000000000146430072674642500217230ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEColorMatrixElement , typescript_type = "SVGFEColorMatrixElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgfeColorMatrixElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEColorMatrixElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeColorMatrixElement`*"] pub type SvgfeColorMatrixElement; #[cfg(feature = "SvgAnimatedString")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEColorMatrixElement" , js_name = in1)] #[doc = "Getter for the `in1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEColorMatrixElement/in1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeColorMatrixElement`*"] pub fn in1(this: &SvgfeColorMatrixElement) -> SvgAnimatedString; #[cfg(feature = "SvgAnimatedEnumeration")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEColorMatrixElement" , js_name = type)] #[doc = "Getter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEColorMatrixElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgfeColorMatrixElement`*"] pub fn type_(this: &SvgfeColorMatrixElement) -> SvgAnimatedEnumeration; #[cfg(feature = "SvgAnimatedNumberList")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEColorMatrixElement" , js_name = values)] #[doc = "Getter for the `values` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEColorMatrixElement/values)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumberList`, `SvgfeColorMatrixElement`*"] pub fn values(this: &SvgfeColorMatrixElement) -> SvgAnimatedNumberList; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEColorMatrixElement" , js_name = x)] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEColorMatrixElement/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeColorMatrixElement`*"] pub fn x(this: &SvgfeColorMatrixElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEColorMatrixElement" , js_name = y)] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEColorMatrixElement/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeColorMatrixElement`*"] pub fn y(this: &SvgfeColorMatrixElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEColorMatrixElement" , js_name = width)] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEColorMatrixElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeColorMatrixElement`*"] pub fn width(this: &SvgfeColorMatrixElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEColorMatrixElement" , js_name = height)] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEColorMatrixElement/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeColorMatrixElement`*"] pub fn height(this: &SvgfeColorMatrixElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedString")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEColorMatrixElement" , js_name = result)] #[doc = "Getter for the `result` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEColorMatrixElement/result)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeColorMatrixElement`*"] pub fn result(this: &SvgfeColorMatrixElement) -> SvgAnimatedString; } impl SvgfeColorMatrixElement { #[doc = "The `SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_UNKNOWN` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeColorMatrixElement`*"] pub const SVG_FECOLORMATRIX_TYPE_UNKNOWN: u16 = 0i64 as u16; #[doc = "The `SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_MATRIX` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeColorMatrixElement`*"] pub const SVG_FECOLORMATRIX_TYPE_MATRIX: u16 = 1u64 as u16; #[doc = "The `SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_SATURATE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeColorMatrixElement`*"] pub const SVG_FECOLORMATRIX_TYPE_SATURATE: u16 = 2u64 as u16; #[doc = "The `SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_HUEROTATE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeColorMatrixElement`*"] pub const SVG_FECOLORMATRIX_TYPE_HUEROTATE: u16 = 3u64 as u16; #[doc = "The `SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeColorMatrixElement`*"] pub const SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: u16 = 4u64 as u16; } web-sys-0.3.55/src/features/gen_SvgfeComponentTransferElement.rs000064400000000000000000000101370072674642500231210ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEComponentTransferElement , typescript_type = "SVGFEComponentTransferElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgfeComponentTransferElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEComponentTransferElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeComponentTransferElement`*"] pub type SvgfeComponentTransferElement; #[cfg(feature = "SvgAnimatedString")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEComponentTransferElement" , js_name = in1)] #[doc = "Getter for the `in1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEComponentTransferElement/in1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeComponentTransferElement`*"] pub fn in1(this: &SvgfeComponentTransferElement) -> SvgAnimatedString; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEComponentTransferElement" , js_name = x)] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEComponentTransferElement/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeComponentTransferElement`*"] pub fn x(this: &SvgfeComponentTransferElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEComponentTransferElement" , js_name = y)] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEComponentTransferElement/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeComponentTransferElement`*"] pub fn y(this: &SvgfeComponentTransferElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEComponentTransferElement" , js_name = width)] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEComponentTransferElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeComponentTransferElement`*"] pub fn width(this: &SvgfeComponentTransferElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEComponentTransferElement" , js_name = height)] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEComponentTransferElement/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeComponentTransferElement`*"] pub fn height(this: &SvgfeComponentTransferElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedString")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEComponentTransferElement" , js_name = result)] #[doc = "Getter for the `result` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEComponentTransferElement/result)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeComponentTransferElement`*"] pub fn result(this: &SvgfeComponentTransferElement) -> SvgAnimatedString; } web-sys-0.3.55/src/features/gen_SvgfeCompositeElement.rs000064400000000000000000000216300072674642500214140ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFECompositeElement , typescript_type = "SVGFECompositeElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgfeCompositeElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFECompositeElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeCompositeElement`*"] pub type SvgfeCompositeElement; #[cfg(feature = "SvgAnimatedString")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFECompositeElement" , js_name = in1)] #[doc = "Getter for the `in1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFECompositeElement/in1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeCompositeElement`*"] pub fn in1(this: &SvgfeCompositeElement) -> SvgAnimatedString; #[cfg(feature = "SvgAnimatedString")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFECompositeElement" , js_name = in2)] #[doc = "Getter for the `in2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFECompositeElement/in2)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeCompositeElement`*"] pub fn in2(this: &SvgfeCompositeElement) -> SvgAnimatedString; #[cfg(feature = "SvgAnimatedEnumeration")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFECompositeElement" , js_name = operator)] #[doc = "Getter for the `operator` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFECompositeElement/operator)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgfeCompositeElement`*"] pub fn operator(this: &SvgfeCompositeElement) -> SvgAnimatedEnumeration; #[cfg(feature = "SvgAnimatedNumber")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFECompositeElement" , js_name = k1)] #[doc = "Getter for the `k1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFECompositeElement/k1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeCompositeElement`*"] pub fn k1(this: &SvgfeCompositeElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFECompositeElement" , js_name = k2)] #[doc = "Getter for the `k2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFECompositeElement/k2)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeCompositeElement`*"] pub fn k2(this: &SvgfeCompositeElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFECompositeElement" , js_name = k3)] #[doc = "Getter for the `k3` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFECompositeElement/k3)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeCompositeElement`*"] pub fn k3(this: &SvgfeCompositeElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFECompositeElement" , js_name = k4)] #[doc = "Getter for the `k4` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFECompositeElement/k4)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeCompositeElement`*"] pub fn k4(this: &SvgfeCompositeElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFECompositeElement" , js_name = x)] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFECompositeElement/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeCompositeElement`*"] pub fn x(this: &SvgfeCompositeElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFECompositeElement" , js_name = y)] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFECompositeElement/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeCompositeElement`*"] pub fn y(this: &SvgfeCompositeElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFECompositeElement" , js_name = width)] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFECompositeElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeCompositeElement`*"] pub fn width(this: &SvgfeCompositeElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFECompositeElement" , js_name = height)] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFECompositeElement/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeCompositeElement`*"] pub fn height(this: &SvgfeCompositeElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedString")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFECompositeElement" , js_name = result)] #[doc = "Getter for the `result` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFECompositeElement/result)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeCompositeElement`*"] pub fn result(this: &SvgfeCompositeElement) -> SvgAnimatedString; } impl SvgfeCompositeElement { #[doc = "The `SVGFECompositeElement.SVG_FECOMPOSITE_OPERATOR_UNKNOWN` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeCompositeElement`*"] pub const SVG_FECOMPOSITE_OPERATOR_UNKNOWN: u16 = 0i64 as u16; #[doc = "The `SVGFECompositeElement.SVG_FECOMPOSITE_OPERATOR_OVER` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeCompositeElement`*"] pub const SVG_FECOMPOSITE_OPERATOR_OVER: u16 = 1u64 as u16; #[doc = "The `SVGFECompositeElement.SVG_FECOMPOSITE_OPERATOR_IN` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeCompositeElement`*"] pub const SVG_FECOMPOSITE_OPERATOR_IN: u16 = 2u64 as u16; #[doc = "The `SVGFECompositeElement.SVG_FECOMPOSITE_OPERATOR_OUT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeCompositeElement`*"] pub const SVG_FECOMPOSITE_OPERATOR_OUT: u16 = 3u64 as u16; #[doc = "The `SVGFECompositeElement.SVG_FECOMPOSITE_OPERATOR_ATOP` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeCompositeElement`*"] pub const SVG_FECOMPOSITE_OPERATOR_ATOP: u16 = 4u64 as u16; #[doc = "The `SVGFECompositeElement.SVG_FECOMPOSITE_OPERATOR_XOR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeCompositeElement`*"] pub const SVG_FECOMPOSITE_OPERATOR_XOR: u16 = 5u64 as u16; #[doc = "The `SVGFECompositeElement.SVG_FECOMPOSITE_OPERATOR_ARITHMETIC` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeCompositeElement`*"] pub const SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: u16 = 6u64 as u16; } web-sys-0.3.55/src/features/gen_SvgfeConvolveMatrixElement.rs000064400000000000000000000266230072674642500224410ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEConvolveMatrixElement , typescript_type = "SVGFEConvolveMatrixElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgfeConvolveMatrixElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeConvolveMatrixElement`*"] pub type SvgfeConvolveMatrixElement; #[cfg(feature = "SvgAnimatedString")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEConvolveMatrixElement" , js_name = in1)] #[doc = "Getter for the `in1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement/in1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeConvolveMatrixElement`*"] pub fn in1(this: &SvgfeConvolveMatrixElement) -> SvgAnimatedString; #[cfg(feature = "SvgAnimatedInteger")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEConvolveMatrixElement" , js_name = orderX)] #[doc = "Getter for the `orderX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement/orderX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedInteger`, `SvgfeConvolveMatrixElement`*"] pub fn order_x(this: &SvgfeConvolveMatrixElement) -> SvgAnimatedInteger; #[cfg(feature = "SvgAnimatedInteger")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEConvolveMatrixElement" , js_name = orderY)] #[doc = "Getter for the `orderY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement/orderY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedInteger`, `SvgfeConvolveMatrixElement`*"] pub fn order_y(this: &SvgfeConvolveMatrixElement) -> SvgAnimatedInteger; #[cfg(feature = "SvgAnimatedNumberList")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEConvolveMatrixElement" , js_name = kernelMatrix)] #[doc = "Getter for the `kernelMatrix` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement/kernelMatrix)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumberList`, `SvgfeConvolveMatrixElement`*"] pub fn kernel_matrix(this: &SvgfeConvolveMatrixElement) -> SvgAnimatedNumberList; #[cfg(feature = "SvgAnimatedNumber")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEConvolveMatrixElement" , js_name = divisor)] #[doc = "Getter for the `divisor` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement/divisor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeConvolveMatrixElement`*"] pub fn divisor(this: &SvgfeConvolveMatrixElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEConvolveMatrixElement" , js_name = bias)] #[doc = "Getter for the `bias` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement/bias)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeConvolveMatrixElement`*"] pub fn bias(this: &SvgfeConvolveMatrixElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedInteger")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEConvolveMatrixElement" , js_name = targetX)] #[doc = "Getter for the `targetX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement/targetX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedInteger`, `SvgfeConvolveMatrixElement`*"] pub fn target_x(this: &SvgfeConvolveMatrixElement) -> SvgAnimatedInteger; #[cfg(feature = "SvgAnimatedInteger")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEConvolveMatrixElement" , js_name = targetY)] #[doc = "Getter for the `targetY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement/targetY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedInteger`, `SvgfeConvolveMatrixElement`*"] pub fn target_y(this: &SvgfeConvolveMatrixElement) -> SvgAnimatedInteger; #[cfg(feature = "SvgAnimatedEnumeration")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEConvolveMatrixElement" , js_name = edgeMode)] #[doc = "Getter for the `edgeMode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement/edgeMode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgfeConvolveMatrixElement`*"] pub fn edge_mode(this: &SvgfeConvolveMatrixElement) -> SvgAnimatedEnumeration; #[cfg(feature = "SvgAnimatedNumber")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEConvolveMatrixElement" , js_name = kernelUnitLengthX)] #[doc = "Getter for the `kernelUnitLengthX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement/kernelUnitLengthX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeConvolveMatrixElement`*"] pub fn kernel_unit_length_x(this: &SvgfeConvolveMatrixElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEConvolveMatrixElement" , js_name = kernelUnitLengthY)] #[doc = "Getter for the `kernelUnitLengthY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement/kernelUnitLengthY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeConvolveMatrixElement`*"] pub fn kernel_unit_length_y(this: &SvgfeConvolveMatrixElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedBoolean")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEConvolveMatrixElement" , js_name = preserveAlpha)] #[doc = "Getter for the `preserveAlpha` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement/preserveAlpha)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedBoolean`, `SvgfeConvolveMatrixElement`*"] pub fn preserve_alpha(this: &SvgfeConvolveMatrixElement) -> SvgAnimatedBoolean; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEConvolveMatrixElement" , js_name = x)] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeConvolveMatrixElement`*"] pub fn x(this: &SvgfeConvolveMatrixElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEConvolveMatrixElement" , js_name = y)] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeConvolveMatrixElement`*"] pub fn y(this: &SvgfeConvolveMatrixElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEConvolveMatrixElement" , js_name = width)] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeConvolveMatrixElement`*"] pub fn width(this: &SvgfeConvolveMatrixElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEConvolveMatrixElement" , js_name = height)] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeConvolveMatrixElement`*"] pub fn height(this: &SvgfeConvolveMatrixElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedString")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEConvolveMatrixElement" , js_name = result)] #[doc = "Getter for the `result` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement/result)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeConvolveMatrixElement`*"] pub fn result(this: &SvgfeConvolveMatrixElement) -> SvgAnimatedString; } impl SvgfeConvolveMatrixElement { #[doc = "The `SVGFEConvolveMatrixElement.SVG_EDGEMODE_UNKNOWN` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeConvolveMatrixElement`*"] pub const SVG_EDGEMODE_UNKNOWN: u16 = 0i64 as u16; #[doc = "The `SVGFEConvolveMatrixElement.SVG_EDGEMODE_DUPLICATE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeConvolveMatrixElement`*"] pub const SVG_EDGEMODE_DUPLICATE: u16 = 1u64 as u16; #[doc = "The `SVGFEConvolveMatrixElement.SVG_EDGEMODE_WRAP` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeConvolveMatrixElement`*"] pub const SVG_EDGEMODE_WRAP: u16 = 2u64 as u16; #[doc = "The `SVGFEConvolveMatrixElement.SVG_EDGEMODE_NONE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeConvolveMatrixElement`*"] pub const SVG_EDGEMODE_NONE: u16 = 3u64 as u16; } web-sys-0.3.55/src/features/gen_SvgfeDiffuseLightingElement.rs000064400000000000000000000147030072674642500225300ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEDiffuseLightingElement , typescript_type = "SVGFEDiffuseLightingElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgfeDiffuseLightingElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDiffuseLightingElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeDiffuseLightingElement`*"] pub type SvgfeDiffuseLightingElement; #[cfg(feature = "SvgAnimatedString")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDiffuseLightingElement" , js_name = in1)] #[doc = "Getter for the `in1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDiffuseLightingElement/in1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeDiffuseLightingElement`*"] pub fn in1(this: &SvgfeDiffuseLightingElement) -> SvgAnimatedString; #[cfg(feature = "SvgAnimatedNumber")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDiffuseLightingElement" , js_name = surfaceScale)] #[doc = "Getter for the `surfaceScale` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDiffuseLightingElement/surfaceScale)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeDiffuseLightingElement`*"] pub fn surface_scale(this: &SvgfeDiffuseLightingElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDiffuseLightingElement" , js_name = diffuseConstant)] #[doc = "Getter for the `diffuseConstant` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDiffuseLightingElement/diffuseConstant)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeDiffuseLightingElement`*"] pub fn diffuse_constant(this: &SvgfeDiffuseLightingElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDiffuseLightingElement" , js_name = kernelUnitLengthX)] #[doc = "Getter for the `kernelUnitLengthX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDiffuseLightingElement/kernelUnitLengthX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeDiffuseLightingElement`*"] pub fn kernel_unit_length_x(this: &SvgfeDiffuseLightingElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDiffuseLightingElement" , js_name = kernelUnitLengthY)] #[doc = "Getter for the `kernelUnitLengthY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDiffuseLightingElement/kernelUnitLengthY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeDiffuseLightingElement`*"] pub fn kernel_unit_length_y(this: &SvgfeDiffuseLightingElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDiffuseLightingElement" , js_name = x)] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDiffuseLightingElement/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeDiffuseLightingElement`*"] pub fn x(this: &SvgfeDiffuseLightingElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDiffuseLightingElement" , js_name = y)] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDiffuseLightingElement/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeDiffuseLightingElement`*"] pub fn y(this: &SvgfeDiffuseLightingElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDiffuseLightingElement" , js_name = width)] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDiffuseLightingElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeDiffuseLightingElement`*"] pub fn width(this: &SvgfeDiffuseLightingElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDiffuseLightingElement" , js_name = height)] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDiffuseLightingElement/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeDiffuseLightingElement`*"] pub fn height(this: &SvgfeDiffuseLightingElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedString")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDiffuseLightingElement" , js_name = result)] #[doc = "Getter for the `result` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDiffuseLightingElement/result)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeDiffuseLightingElement`*"] pub fn result(this: &SvgfeDiffuseLightingElement) -> SvgAnimatedString; } web-sys-0.3.55/src/features/gen_SvgfeDisplacementMapElement.rs000064400000000000000000000172030072674642500225210ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEDisplacementMapElement , typescript_type = "SVGFEDisplacementMapElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgfeDisplacementMapElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDisplacementMapElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeDisplacementMapElement`*"] pub type SvgfeDisplacementMapElement; #[cfg(feature = "SvgAnimatedString")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDisplacementMapElement" , js_name = in1)] #[doc = "Getter for the `in1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDisplacementMapElement/in1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeDisplacementMapElement`*"] pub fn in1(this: &SvgfeDisplacementMapElement) -> SvgAnimatedString; #[cfg(feature = "SvgAnimatedString")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDisplacementMapElement" , js_name = in2)] #[doc = "Getter for the `in2` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDisplacementMapElement/in2)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeDisplacementMapElement`*"] pub fn in2(this: &SvgfeDisplacementMapElement) -> SvgAnimatedString; #[cfg(feature = "SvgAnimatedNumber")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDisplacementMapElement" , js_name = scale)] #[doc = "Getter for the `scale` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDisplacementMapElement/scale)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeDisplacementMapElement`*"] pub fn scale(this: &SvgfeDisplacementMapElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedEnumeration")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDisplacementMapElement" , js_name = xChannelSelector)] #[doc = "Getter for the `xChannelSelector` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDisplacementMapElement/xChannelSelector)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgfeDisplacementMapElement`*"] pub fn x_channel_selector(this: &SvgfeDisplacementMapElement) -> SvgAnimatedEnumeration; #[cfg(feature = "SvgAnimatedEnumeration")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDisplacementMapElement" , js_name = yChannelSelector)] #[doc = "Getter for the `yChannelSelector` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDisplacementMapElement/yChannelSelector)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgfeDisplacementMapElement`*"] pub fn y_channel_selector(this: &SvgfeDisplacementMapElement) -> SvgAnimatedEnumeration; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDisplacementMapElement" , js_name = x)] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDisplacementMapElement/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeDisplacementMapElement`*"] pub fn x(this: &SvgfeDisplacementMapElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDisplacementMapElement" , js_name = y)] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDisplacementMapElement/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeDisplacementMapElement`*"] pub fn y(this: &SvgfeDisplacementMapElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDisplacementMapElement" , js_name = width)] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDisplacementMapElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeDisplacementMapElement`*"] pub fn width(this: &SvgfeDisplacementMapElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDisplacementMapElement" , js_name = height)] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDisplacementMapElement/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeDisplacementMapElement`*"] pub fn height(this: &SvgfeDisplacementMapElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedString")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDisplacementMapElement" , js_name = result)] #[doc = "Getter for the `result` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDisplacementMapElement/result)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeDisplacementMapElement`*"] pub fn result(this: &SvgfeDisplacementMapElement) -> SvgAnimatedString; } impl SvgfeDisplacementMapElement { #[doc = "The `SVGFEDisplacementMapElement.SVG_CHANNEL_UNKNOWN` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeDisplacementMapElement`*"] pub const SVG_CHANNEL_UNKNOWN: u16 = 0i64 as u16; #[doc = "The `SVGFEDisplacementMapElement.SVG_CHANNEL_R` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeDisplacementMapElement`*"] pub const SVG_CHANNEL_R: u16 = 1u64 as u16; #[doc = "The `SVGFEDisplacementMapElement.SVG_CHANNEL_G` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeDisplacementMapElement`*"] pub const SVG_CHANNEL_G: u16 = 2u64 as u16; #[doc = "The `SVGFEDisplacementMapElement.SVG_CHANNEL_B` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeDisplacementMapElement`*"] pub const SVG_CHANNEL_B: u16 = 3u64 as u16; #[doc = "The `SVGFEDisplacementMapElement.SVG_CHANNEL_A` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeDisplacementMapElement`*"] pub const SVG_CHANNEL_A: u16 = 4u64 as u16; } web-sys-0.3.55/src/features/gen_SvgfeDistantLightElement.rs000064400000000000000000000034750072674642500220570ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEDistantLightElement , typescript_type = "SVGFEDistantLightElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgfeDistantLightElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDistantLightElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeDistantLightElement`*"] pub type SvgfeDistantLightElement; #[cfg(feature = "SvgAnimatedNumber")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDistantLightElement" , js_name = azimuth)] #[doc = "Getter for the `azimuth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDistantLightElement/azimuth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeDistantLightElement`*"] pub fn azimuth(this: &SvgfeDistantLightElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDistantLightElement" , js_name = elevation)] #[doc = "Getter for the `elevation` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDistantLightElement/elevation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeDistantLightElement`*"] pub fn elevation(this: &SvgfeDistantLightElement) -> SvgAnimatedNumber; } web-sys-0.3.55/src/features/gen_SvgfeDropShadowElement.rs000064400000000000000000000152070072674642500215270ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEDropShadowElement , typescript_type = "SVGFEDropShadowElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgfeDropShadowElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDropShadowElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeDropShadowElement`*"] pub type SvgfeDropShadowElement; #[cfg(feature = "SvgAnimatedString")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDropShadowElement" , js_name = in1)] #[doc = "Getter for the `in1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDropShadowElement/in1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeDropShadowElement`*"] pub fn in1(this: &SvgfeDropShadowElement) -> SvgAnimatedString; #[cfg(feature = "SvgAnimatedNumber")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDropShadowElement" , js_name = dx)] #[doc = "Getter for the `dx` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDropShadowElement/dx)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeDropShadowElement`*"] pub fn dx(this: &SvgfeDropShadowElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDropShadowElement" , js_name = dy)] #[doc = "Getter for the `dy` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDropShadowElement/dy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeDropShadowElement`*"] pub fn dy(this: &SvgfeDropShadowElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDropShadowElement" , js_name = stdDeviationX)] #[doc = "Getter for the `stdDeviationX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDropShadowElement/stdDeviationX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeDropShadowElement`*"] pub fn std_deviation_x(this: &SvgfeDropShadowElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDropShadowElement" , js_name = stdDeviationY)] #[doc = "Getter for the `stdDeviationY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDropShadowElement/stdDeviationY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeDropShadowElement`*"] pub fn std_deviation_y(this: &SvgfeDropShadowElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDropShadowElement" , js_name = x)] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDropShadowElement/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeDropShadowElement`*"] pub fn x(this: &SvgfeDropShadowElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDropShadowElement" , js_name = y)] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDropShadowElement/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeDropShadowElement`*"] pub fn y(this: &SvgfeDropShadowElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDropShadowElement" , js_name = width)] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDropShadowElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeDropShadowElement`*"] pub fn width(this: &SvgfeDropShadowElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDropShadowElement" , js_name = height)] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDropShadowElement/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeDropShadowElement`*"] pub fn height(this: &SvgfeDropShadowElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedString")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEDropShadowElement" , js_name = result)] #[doc = "Getter for the `result` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDropShadowElement/result)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeDropShadowElement`*"] pub fn result(this: &SvgfeDropShadowElement) -> SvgAnimatedString; # [wasm_bindgen (method , structural , js_class = "SVGFEDropShadowElement" , js_name = setStdDeviation)] #[doc = "The `setStdDeviation()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDropShadowElement/setStdDeviation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeDropShadowElement`*"] pub fn set_std_deviation( this: &SvgfeDropShadowElement, std_deviation_x: f32, std_deviation_y: f32, ); } web-sys-0.3.55/src/features/gen_SvgfeFloodElement.rs000064400000000000000000000063520072674642500205210ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEFloodElement , typescript_type = "SVGFEFloodElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgfeFloodElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEFloodElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeFloodElement`*"] pub type SvgfeFloodElement; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEFloodElement" , js_name = x)] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEFloodElement/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeFloodElement`*"] pub fn x(this: &SvgfeFloodElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEFloodElement" , js_name = y)] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEFloodElement/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeFloodElement`*"] pub fn y(this: &SvgfeFloodElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEFloodElement" , js_name = width)] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEFloodElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeFloodElement`*"] pub fn width(this: &SvgfeFloodElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEFloodElement" , js_name = height)] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEFloodElement/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeFloodElement`*"] pub fn height(this: &SvgfeFloodElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedString")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEFloodElement" , js_name = result)] #[doc = "Getter for the `result` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEFloodElement/result)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeFloodElement`*"] pub fn result(this: &SvgfeFloodElement) -> SvgAnimatedString; } web-sys-0.3.55/src/features/gen_SvgfeFuncAElement.rs000064400000000000000000000013110072674642500204400ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgComponentTransferFunctionElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEFuncAElement , typescript_type = "SVGFEFuncAElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgfeFuncAElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEFuncAElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeFuncAElement`*"] pub type SvgfeFuncAElement; } web-sys-0.3.55/src/features/gen_SvgfeFuncBElement.rs000064400000000000000000000013110072674642500204410ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgComponentTransferFunctionElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEFuncBElement , typescript_type = "SVGFEFuncBElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgfeFuncBElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEFuncBElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeFuncBElement`*"] pub type SvgfeFuncBElement; } web-sys-0.3.55/src/features/gen_SvgfeFuncGElement.rs000064400000000000000000000013110072674642500204460ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgComponentTransferFunctionElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEFuncGElement , typescript_type = "SVGFEFuncGElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgfeFuncGElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEFuncGElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeFuncGElement`*"] pub type SvgfeFuncGElement; } web-sys-0.3.55/src/features/gen_SvgfeFuncRElement.rs000064400000000000000000000013110072674642500204610ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgComponentTransferFunctionElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEFuncRElement , typescript_type = "SVGFEFuncRElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgfeFuncRElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEFuncRElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeFuncRElement`*"] pub type SvgfeFuncRElement; } web-sys-0.3.55/src/features/gen_SvgfeGaussianBlurElement.rs000064400000000000000000000132410072674642500220500ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEGaussianBlurElement , typescript_type = "SVGFEGaussianBlurElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgfeGaussianBlurElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEGaussianBlurElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeGaussianBlurElement`*"] pub type SvgfeGaussianBlurElement; #[cfg(feature = "SvgAnimatedString")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEGaussianBlurElement" , js_name = in1)] #[doc = "Getter for the `in1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEGaussianBlurElement/in1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeGaussianBlurElement`*"] pub fn in1(this: &SvgfeGaussianBlurElement) -> SvgAnimatedString; #[cfg(feature = "SvgAnimatedNumber")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEGaussianBlurElement" , js_name = stdDeviationX)] #[doc = "Getter for the `stdDeviationX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEGaussianBlurElement/stdDeviationX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeGaussianBlurElement`*"] pub fn std_deviation_x(this: &SvgfeGaussianBlurElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEGaussianBlurElement" , js_name = stdDeviationY)] #[doc = "Getter for the `stdDeviationY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEGaussianBlurElement/stdDeviationY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeGaussianBlurElement`*"] pub fn std_deviation_y(this: &SvgfeGaussianBlurElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEGaussianBlurElement" , js_name = x)] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEGaussianBlurElement/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeGaussianBlurElement`*"] pub fn x(this: &SvgfeGaussianBlurElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEGaussianBlurElement" , js_name = y)] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEGaussianBlurElement/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeGaussianBlurElement`*"] pub fn y(this: &SvgfeGaussianBlurElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEGaussianBlurElement" , js_name = width)] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEGaussianBlurElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeGaussianBlurElement`*"] pub fn width(this: &SvgfeGaussianBlurElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEGaussianBlurElement" , js_name = height)] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEGaussianBlurElement/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeGaussianBlurElement`*"] pub fn height(this: &SvgfeGaussianBlurElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedString")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEGaussianBlurElement" , js_name = result)] #[doc = "Getter for the `result` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEGaussianBlurElement/result)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeGaussianBlurElement`*"] pub fn result(this: &SvgfeGaussianBlurElement) -> SvgAnimatedString; # [wasm_bindgen (method , structural , js_class = "SVGFEGaussianBlurElement" , js_name = setStdDeviation)] #[doc = "The `setStdDeviation()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEGaussianBlurElement/setStdDeviation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeGaussianBlurElement`*"] pub fn set_std_deviation( this: &SvgfeGaussianBlurElement, std_deviation_x: f32, std_deviation_y: f32, ); } web-sys-0.3.55/src/features/gen_SvgfeImageElement.rs000064400000000000000000000105610072674642500204750ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEImageElement , typescript_type = "SVGFEImageElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgfeImageElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEImageElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeImageElement`*"] pub type SvgfeImageElement; #[cfg(feature = "SvgAnimatedPreserveAspectRatio")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEImageElement" , js_name = preserveAspectRatio)] #[doc = "Getter for the `preserveAspectRatio` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEImageElement/preserveAspectRatio)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedPreserveAspectRatio`, `SvgfeImageElement`*"] pub fn preserve_aspect_ratio(this: &SvgfeImageElement) -> SvgAnimatedPreserveAspectRatio; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEImageElement" , js_name = x)] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEImageElement/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeImageElement`*"] pub fn x(this: &SvgfeImageElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEImageElement" , js_name = y)] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEImageElement/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeImageElement`*"] pub fn y(this: &SvgfeImageElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEImageElement" , js_name = width)] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEImageElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeImageElement`*"] pub fn width(this: &SvgfeImageElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEImageElement" , js_name = height)] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEImageElement/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeImageElement`*"] pub fn height(this: &SvgfeImageElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedString")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEImageElement" , js_name = result)] #[doc = "Getter for the `result` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEImageElement/result)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeImageElement`*"] pub fn result(this: &SvgfeImageElement) -> SvgAnimatedString; #[cfg(feature = "SvgAnimatedString")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEImageElement" , js_name = href)] #[doc = "Getter for the `href` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEImageElement/href)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeImageElement`*"] pub fn href(this: &SvgfeImageElement) -> SvgAnimatedString; } web-sys-0.3.55/src/features/gen_SvgfeMergeElement.rs000064400000000000000000000063520072674642500205150ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEMergeElement , typescript_type = "SVGFEMergeElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgfeMergeElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMergeElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeMergeElement`*"] pub type SvgfeMergeElement; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEMergeElement" , js_name = x)] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMergeElement/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeMergeElement`*"] pub fn x(this: &SvgfeMergeElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEMergeElement" , js_name = y)] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMergeElement/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeMergeElement`*"] pub fn y(this: &SvgfeMergeElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEMergeElement" , js_name = width)] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMergeElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeMergeElement`*"] pub fn width(this: &SvgfeMergeElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEMergeElement" , js_name = height)] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMergeElement/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeMergeElement`*"] pub fn height(this: &SvgfeMergeElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedString")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEMergeElement" , js_name = result)] #[doc = "Getter for the `result` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMergeElement/result)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeMergeElement`*"] pub fn result(this: &SvgfeMergeElement) -> SvgAnimatedString; } web-sys-0.3.55/src/features/gen_SvgfeMergeNodeElement.rs000064400000000000000000000023160072674642500213170ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEMergeNodeElement , typescript_type = "SVGFEMergeNodeElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgfeMergeNodeElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMergeNodeElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeMergeNodeElement`*"] pub type SvgfeMergeNodeElement; #[cfg(feature = "SvgAnimatedString")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEMergeNodeElement" , js_name = in1)] #[doc = "Getter for the `in1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMergeNodeElement/in1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeMergeNodeElement`*"] pub fn in1(this: &SvgfeMergeNodeElement) -> SvgAnimatedString; } web-sys-0.3.55/src/features/gen_SvgfeMorphologyElement.rs000064400000000000000000000145740072674642500216220ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEMorphologyElement , typescript_type = "SVGFEMorphologyElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgfeMorphologyElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMorphologyElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeMorphologyElement`*"] pub type SvgfeMorphologyElement; #[cfg(feature = "SvgAnimatedString")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEMorphologyElement" , js_name = in1)] #[doc = "Getter for the `in1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMorphologyElement/in1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeMorphologyElement`*"] pub fn in1(this: &SvgfeMorphologyElement) -> SvgAnimatedString; #[cfg(feature = "SvgAnimatedEnumeration")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEMorphologyElement" , js_name = operator)] #[doc = "Getter for the `operator` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMorphologyElement/operator)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgfeMorphologyElement`*"] pub fn operator(this: &SvgfeMorphologyElement) -> SvgAnimatedEnumeration; #[cfg(feature = "SvgAnimatedNumber")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEMorphologyElement" , js_name = radiusX)] #[doc = "Getter for the `radiusX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMorphologyElement/radiusX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeMorphologyElement`*"] pub fn radius_x(this: &SvgfeMorphologyElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEMorphologyElement" , js_name = radiusY)] #[doc = "Getter for the `radiusY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMorphologyElement/radiusY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeMorphologyElement`*"] pub fn radius_y(this: &SvgfeMorphologyElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEMorphologyElement" , js_name = x)] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMorphologyElement/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeMorphologyElement`*"] pub fn x(this: &SvgfeMorphologyElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEMorphologyElement" , js_name = y)] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMorphologyElement/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeMorphologyElement`*"] pub fn y(this: &SvgfeMorphologyElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEMorphologyElement" , js_name = width)] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMorphologyElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeMorphologyElement`*"] pub fn width(this: &SvgfeMorphologyElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEMorphologyElement" , js_name = height)] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMorphologyElement/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeMorphologyElement`*"] pub fn height(this: &SvgfeMorphologyElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedString")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEMorphologyElement" , js_name = result)] #[doc = "Getter for the `result` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMorphologyElement/result)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeMorphologyElement`*"] pub fn result(this: &SvgfeMorphologyElement) -> SvgAnimatedString; } impl SvgfeMorphologyElement { #[doc = "The `SVGFEMorphologyElement.SVG_MORPHOLOGY_OPERATOR_UNKNOWN` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeMorphologyElement`*"] pub const SVG_MORPHOLOGY_OPERATOR_UNKNOWN: u16 = 0i64 as u16; #[doc = "The `SVGFEMorphologyElement.SVG_MORPHOLOGY_OPERATOR_ERODE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeMorphologyElement`*"] pub const SVG_MORPHOLOGY_OPERATOR_ERODE: u16 = 1u64 as u16; #[doc = "The `SVGFEMorphologyElement.SVG_MORPHOLOGY_OPERATOR_DILATE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeMorphologyElement`*"] pub const SVG_MORPHOLOGY_OPERATOR_DILATE: u16 = 2u64 as u16; } web-sys-0.3.55/src/features/gen_SvgfeOffsetElement.rs000064400000000000000000000114570072674642500207060ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEOffsetElement , typescript_type = "SVGFEOffsetElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgfeOffsetElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEOffsetElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeOffsetElement`*"] pub type SvgfeOffsetElement; #[cfg(feature = "SvgAnimatedString")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEOffsetElement" , js_name = in1)] #[doc = "Getter for the `in1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEOffsetElement/in1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeOffsetElement`*"] pub fn in1(this: &SvgfeOffsetElement) -> SvgAnimatedString; #[cfg(feature = "SvgAnimatedNumber")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEOffsetElement" , js_name = dx)] #[doc = "Getter for the `dx` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEOffsetElement/dx)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeOffsetElement`*"] pub fn dx(this: &SvgfeOffsetElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEOffsetElement" , js_name = dy)] #[doc = "Getter for the `dy` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEOffsetElement/dy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeOffsetElement`*"] pub fn dy(this: &SvgfeOffsetElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEOffsetElement" , js_name = x)] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEOffsetElement/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeOffsetElement`*"] pub fn x(this: &SvgfeOffsetElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEOffsetElement" , js_name = y)] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEOffsetElement/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeOffsetElement`*"] pub fn y(this: &SvgfeOffsetElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEOffsetElement" , js_name = width)] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEOffsetElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeOffsetElement`*"] pub fn width(this: &SvgfeOffsetElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEOffsetElement" , js_name = height)] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEOffsetElement/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeOffsetElement`*"] pub fn height(this: &SvgfeOffsetElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedString")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEOffsetElement" , js_name = result)] #[doc = "Getter for the `result` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEOffsetElement/result)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeOffsetElement`*"] pub fn result(this: &SvgfeOffsetElement) -> SvgAnimatedString; } web-sys-0.3.55/src/features/gen_SvgfePointLightElement.rs000064400000000000000000000044020072674642500215310ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEPointLightElement , typescript_type = "SVGFEPointLightElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgfePointLightElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEPointLightElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfePointLightElement`*"] pub type SvgfePointLightElement; #[cfg(feature = "SvgAnimatedNumber")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEPointLightElement" , js_name = x)] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEPointLightElement/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfePointLightElement`*"] pub fn x(this: &SvgfePointLightElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEPointLightElement" , js_name = y)] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEPointLightElement/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfePointLightElement`*"] pub fn y(this: &SvgfePointLightElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFEPointLightElement" , js_name = z)] #[doc = "Getter for the `z` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEPointLightElement/z)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfePointLightElement`*"] pub fn z(this: &SvgfePointLightElement) -> SvgAnimatedNumber; } web-sys-0.3.55/src/features/gen_SvgfeSpecularLightingElement.rs000064400000000000000000000161430072674642500227210ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFESpecularLightingElement , typescript_type = "SVGFESpecularLightingElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgfeSpecularLightingElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpecularLightingElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeSpecularLightingElement`*"] pub type SvgfeSpecularLightingElement; #[cfg(feature = "SvgAnimatedString")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFESpecularLightingElement" , js_name = in1)] #[doc = "Getter for the `in1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpecularLightingElement/in1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeSpecularLightingElement`*"] pub fn in1(this: &SvgfeSpecularLightingElement) -> SvgAnimatedString; #[cfg(feature = "SvgAnimatedNumber")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFESpecularLightingElement" , js_name = surfaceScale)] #[doc = "Getter for the `surfaceScale` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpecularLightingElement/surfaceScale)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeSpecularLightingElement`*"] pub fn surface_scale(this: &SvgfeSpecularLightingElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFESpecularLightingElement" , js_name = specularConstant)] #[doc = "Getter for the `specularConstant` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpecularLightingElement/specularConstant)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeSpecularLightingElement`*"] pub fn specular_constant(this: &SvgfeSpecularLightingElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFESpecularLightingElement" , js_name = specularExponent)] #[doc = "Getter for the `specularExponent` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpecularLightingElement/specularExponent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeSpecularLightingElement`*"] pub fn specular_exponent(this: &SvgfeSpecularLightingElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFESpecularLightingElement" , js_name = kernelUnitLengthX)] #[doc = "Getter for the `kernelUnitLengthX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpecularLightingElement/kernelUnitLengthX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeSpecularLightingElement`*"] pub fn kernel_unit_length_x(this: &SvgfeSpecularLightingElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFESpecularLightingElement" , js_name = kernelUnitLengthY)] #[doc = "Getter for the `kernelUnitLengthY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpecularLightingElement/kernelUnitLengthY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeSpecularLightingElement`*"] pub fn kernel_unit_length_y(this: &SvgfeSpecularLightingElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFESpecularLightingElement" , js_name = x)] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpecularLightingElement/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeSpecularLightingElement`*"] pub fn x(this: &SvgfeSpecularLightingElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFESpecularLightingElement" , js_name = y)] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpecularLightingElement/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeSpecularLightingElement`*"] pub fn y(this: &SvgfeSpecularLightingElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFESpecularLightingElement" , js_name = width)] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpecularLightingElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeSpecularLightingElement`*"] pub fn width(this: &SvgfeSpecularLightingElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFESpecularLightingElement" , js_name = height)] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpecularLightingElement/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeSpecularLightingElement`*"] pub fn height(this: &SvgfeSpecularLightingElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedString")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFESpecularLightingElement" , js_name = result)] #[doc = "Getter for the `result` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpecularLightingElement/result)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeSpecularLightingElement`*"] pub fn result(this: &SvgfeSpecularLightingElement) -> SvgAnimatedString; } web-sys-0.3.55/src/features/gen_SvgfeSpotLightElement.rs000064400000000000000000000120760072674642500213730ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFESpotLightElement , typescript_type = "SVGFESpotLightElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgfeSpotLightElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpotLightElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeSpotLightElement`*"] pub type SvgfeSpotLightElement; #[cfg(feature = "SvgAnimatedNumber")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFESpotLightElement" , js_name = x)] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpotLightElement/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeSpotLightElement`*"] pub fn x(this: &SvgfeSpotLightElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFESpotLightElement" , js_name = y)] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpotLightElement/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeSpotLightElement`*"] pub fn y(this: &SvgfeSpotLightElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFESpotLightElement" , js_name = z)] #[doc = "Getter for the `z` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpotLightElement/z)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeSpotLightElement`*"] pub fn z(this: &SvgfeSpotLightElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFESpotLightElement" , js_name = pointsAtX)] #[doc = "Getter for the `pointsAtX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpotLightElement/pointsAtX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeSpotLightElement`*"] pub fn points_at_x(this: &SvgfeSpotLightElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFESpotLightElement" , js_name = pointsAtY)] #[doc = "Getter for the `pointsAtY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpotLightElement/pointsAtY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeSpotLightElement`*"] pub fn points_at_y(this: &SvgfeSpotLightElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFESpotLightElement" , js_name = pointsAtZ)] #[doc = "Getter for the `pointsAtZ` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpotLightElement/pointsAtZ)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeSpotLightElement`*"] pub fn points_at_z(this: &SvgfeSpotLightElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFESpotLightElement" , js_name = specularExponent)] #[doc = "Getter for the `specularExponent` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpotLightElement/specularExponent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeSpotLightElement`*"] pub fn specular_exponent(this: &SvgfeSpotLightElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFESpotLightElement" , js_name = limitingConeAngle)] #[doc = "Getter for the `limitingConeAngle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpotLightElement/limitingConeAngle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeSpotLightElement`*"] pub fn limiting_cone_angle(this: &SvgfeSpotLightElement) -> SvgAnimatedNumber; } web-sys-0.3.55/src/features/gen_SvgfeTileElement.rs000064400000000000000000000073310072674642500203510ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFETileElement , typescript_type = "SVGFETileElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgfeTileElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFETileElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeTileElement`*"] pub type SvgfeTileElement; #[cfg(feature = "SvgAnimatedString")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFETileElement" , js_name = in1)] #[doc = "Getter for the `in1` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFETileElement/in1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeTileElement`*"] pub fn in1(this: &SvgfeTileElement) -> SvgAnimatedString; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFETileElement" , js_name = x)] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFETileElement/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeTileElement`*"] pub fn x(this: &SvgfeTileElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFETileElement" , js_name = y)] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFETileElement/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeTileElement`*"] pub fn y(this: &SvgfeTileElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFETileElement" , js_name = width)] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFETileElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeTileElement`*"] pub fn width(this: &SvgfeTileElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFETileElement" , js_name = height)] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFETileElement/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeTileElement`*"] pub fn height(this: &SvgfeTileElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedString")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFETileElement" , js_name = result)] #[doc = "Getter for the `result` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFETileElement/result)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeTileElement`*"] pub fn result(this: &SvgfeTileElement) -> SvgAnimatedString; } web-sys-0.3.55/src/features/gen_SvgfeTurbulenceElement.rs000064400000000000000000000204620072674642500215640ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFETurbulenceElement , typescript_type = "SVGFETurbulenceElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgfeTurbulenceElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFETurbulenceElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeTurbulenceElement`*"] pub type SvgfeTurbulenceElement; #[cfg(feature = "SvgAnimatedNumber")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFETurbulenceElement" , js_name = baseFrequencyX)] #[doc = "Getter for the `baseFrequencyX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFETurbulenceElement/baseFrequencyX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeTurbulenceElement`*"] pub fn base_frequency_x(this: &SvgfeTurbulenceElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFETurbulenceElement" , js_name = baseFrequencyY)] #[doc = "Getter for the `baseFrequencyY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFETurbulenceElement/baseFrequencyY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeTurbulenceElement`*"] pub fn base_frequency_y(this: &SvgfeTurbulenceElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedInteger")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFETurbulenceElement" , js_name = numOctaves)] #[doc = "Getter for the `numOctaves` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFETurbulenceElement/numOctaves)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedInteger`, `SvgfeTurbulenceElement`*"] pub fn num_octaves(this: &SvgfeTurbulenceElement) -> SvgAnimatedInteger; #[cfg(feature = "SvgAnimatedNumber")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFETurbulenceElement" , js_name = seed)] #[doc = "Getter for the `seed` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFETurbulenceElement/seed)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeTurbulenceElement`*"] pub fn seed(this: &SvgfeTurbulenceElement) -> SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedEnumeration")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFETurbulenceElement" , js_name = stitchTiles)] #[doc = "Getter for the `stitchTiles` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFETurbulenceElement/stitchTiles)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgfeTurbulenceElement`*"] pub fn stitch_tiles(this: &SvgfeTurbulenceElement) -> SvgAnimatedEnumeration; #[cfg(feature = "SvgAnimatedEnumeration")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFETurbulenceElement" , js_name = type)] #[doc = "Getter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFETurbulenceElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgfeTurbulenceElement`*"] pub fn type_(this: &SvgfeTurbulenceElement) -> SvgAnimatedEnumeration; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFETurbulenceElement" , js_name = x)] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFETurbulenceElement/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeTurbulenceElement`*"] pub fn x(this: &SvgfeTurbulenceElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFETurbulenceElement" , js_name = y)] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFETurbulenceElement/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeTurbulenceElement`*"] pub fn y(this: &SvgfeTurbulenceElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFETurbulenceElement" , js_name = width)] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFETurbulenceElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeTurbulenceElement`*"] pub fn width(this: &SvgfeTurbulenceElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFETurbulenceElement" , js_name = height)] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFETurbulenceElement/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeTurbulenceElement`*"] pub fn height(this: &SvgfeTurbulenceElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedString")] # [wasm_bindgen (structural , method , getter , js_class = "SVGFETurbulenceElement" , js_name = result)] #[doc = "Getter for the `result` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFETurbulenceElement/result)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeTurbulenceElement`*"] pub fn result(this: &SvgfeTurbulenceElement) -> SvgAnimatedString; } impl SvgfeTurbulenceElement { #[doc = "The `SVGFETurbulenceElement.SVG_TURBULENCE_TYPE_UNKNOWN` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeTurbulenceElement`*"] pub const SVG_TURBULENCE_TYPE_UNKNOWN: u16 = 0i64 as u16; #[doc = "The `SVGFETurbulenceElement.SVG_TURBULENCE_TYPE_FRACTALNOISE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeTurbulenceElement`*"] pub const SVG_TURBULENCE_TYPE_FRACTALNOISE: u16 = 1u64 as u16; #[doc = "The `SVGFETurbulenceElement.SVG_TURBULENCE_TYPE_TURBULENCE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeTurbulenceElement`*"] pub const SVG_TURBULENCE_TYPE_TURBULENCE: u16 = 2u64 as u16; #[doc = "The `SVGFETurbulenceElement.SVG_STITCHTYPE_UNKNOWN` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeTurbulenceElement`*"] pub const SVG_STITCHTYPE_UNKNOWN: u16 = 0i64 as u16; #[doc = "The `SVGFETurbulenceElement.SVG_STITCHTYPE_STITCH` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeTurbulenceElement`*"] pub const SVG_STITCHTYPE_STITCH: u16 = 1u64 as u16; #[doc = "The `SVGFETurbulenceElement.SVG_STITCHTYPE_NOSTITCH` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgfeTurbulenceElement`*"] pub const SVG_STITCHTYPE_NOSTITCH: u16 = 2u64 as u16; } web-sys-0.3.55/src/features/gen_SvggElement.rs000064400000000000000000000012240072674642500173620ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGGElement , typescript_type = "SVGGElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvggElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvggElement`*"] pub type SvggElement; } web-sys-0.3.55/src/features/gen_SvgmPathElement.rs000064400000000000000000000022260072674642500202100ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGMPathElement , typescript_type = "SVGMPathElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgmPathElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMPathElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgmPathElement`*"] pub type SvgmPathElement; #[cfg(feature = "SvgAnimatedString")] # [wasm_bindgen (structural , method , getter , js_class = "SVGMPathElement" , js_name = href)] #[doc = "Getter for the `href` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMPathElement/href)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgmPathElement`*"] pub fn href(this: &SvgmPathElement) -> SvgAnimatedString; } web-sys-0.3.55/src/features/gen_SvgsvgElement.rs000064400000000000000000000403250072674642500177400ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGSVGElement , typescript_type = "SVGSVGElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgsvgElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"] pub type SvgsvgElement; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGSVGElement" , js_name = x)] #[doc = "Getter for the `x` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgsvgElement`*"] pub fn x(this: &SvgsvgElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGSVGElement" , js_name = y)] #[doc = "Getter for the `y` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgsvgElement`*"] pub fn y(this: &SvgsvgElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGSVGElement" , js_name = width)] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgsvgElement`*"] pub fn width(this: &SvgsvgElement) -> SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] # [wasm_bindgen (structural , method , getter , js_class = "SVGSVGElement" , js_name = height)] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgsvgElement`*"] pub fn height(this: &SvgsvgElement) -> SvgAnimatedLength; # [wasm_bindgen (structural , method , getter , js_class = "SVGSVGElement" , js_name = useCurrentView)] #[doc = "Getter for the `useCurrentView` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/useCurrentView)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"] pub fn use_current_view(this: &SvgsvgElement) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "SVGSVGElement" , js_name = currentScale)] #[doc = "Getter for the `currentScale` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/currentScale)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"] pub fn current_scale(this: &SvgsvgElement) -> f32; # [wasm_bindgen (structural , method , setter , js_class = "SVGSVGElement" , js_name = currentScale)] #[doc = "Setter for the `currentScale` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/currentScale)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"] pub fn set_current_scale(this: &SvgsvgElement, value: f32); #[cfg(feature = "SvgPoint")] # [wasm_bindgen (structural , method , getter , js_class = "SVGSVGElement" , js_name = currentTranslate)] #[doc = "Getter for the `currentTranslate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/currentTranslate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPoint`, `SvgsvgElement`*"] pub fn current_translate(this: &SvgsvgElement) -> SvgPoint; #[cfg(feature = "SvgAnimatedRect")] # [wasm_bindgen (structural , method , getter , js_class = "SVGSVGElement" , js_name = viewBox)] #[doc = "Getter for the `viewBox` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/viewBox)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedRect`, `SvgsvgElement`*"] pub fn view_box(this: &SvgsvgElement) -> SvgAnimatedRect; #[cfg(feature = "SvgAnimatedPreserveAspectRatio")] # [wasm_bindgen (structural , method , getter , js_class = "SVGSVGElement" , js_name = preserveAspectRatio)] #[doc = "Getter for the `preserveAspectRatio` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/preserveAspectRatio)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedPreserveAspectRatio`, `SvgsvgElement`*"] pub fn preserve_aspect_ratio(this: &SvgsvgElement) -> SvgAnimatedPreserveAspectRatio; # [wasm_bindgen (structural , method , getter , js_class = "SVGSVGElement" , js_name = zoomAndPan)] #[doc = "Getter for the `zoomAndPan` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/zoomAndPan)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"] pub fn zoom_and_pan(this: &SvgsvgElement) -> u16; # [wasm_bindgen (structural , method , setter , js_class = "SVGSVGElement" , js_name = zoomAndPan)] #[doc = "Setter for the `zoomAndPan` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/zoomAndPan)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"] pub fn set_zoom_and_pan(this: &SvgsvgElement, value: u16); # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = animationsPaused)] #[doc = "The `animationsPaused()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/animationsPaused)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"] pub fn animations_paused(this: &SvgsvgElement) -> bool; #[cfg(feature = "SvgAngle")] # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = createSVGAngle)] #[doc = "The `createSVGAngle()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/createSVGAngle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAngle`, `SvgsvgElement`*"] pub fn create_svg_angle(this: &SvgsvgElement) -> SvgAngle; #[cfg(feature = "SvgLength")] # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = createSVGLength)] #[doc = "The `createSVGLength()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/createSVGLength)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgLength`, `SvgsvgElement`*"] pub fn create_svg_length(this: &SvgsvgElement) -> SvgLength; #[cfg(feature = "SvgMatrix")] # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = createSVGMatrix)] #[doc = "The `createSVGMatrix()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/createSVGMatrix)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`, `SvgsvgElement`*"] pub fn create_svg_matrix(this: &SvgsvgElement) -> SvgMatrix; #[cfg(feature = "SvgNumber")] # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = createSVGNumber)] #[doc = "The `createSVGNumber()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/createSVGNumber)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgNumber`, `SvgsvgElement`*"] pub fn create_svg_number(this: &SvgsvgElement) -> SvgNumber; #[cfg(feature = "SvgPoint")] # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = createSVGPoint)] #[doc = "The `createSVGPoint()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/createSVGPoint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPoint`, `SvgsvgElement`*"] pub fn create_svg_point(this: &SvgsvgElement) -> SvgPoint; #[cfg(feature = "SvgRect")] # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = createSVGRect)] #[doc = "The `createSVGRect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/createSVGRect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgRect`, `SvgsvgElement`*"] pub fn create_svg_rect(this: &SvgsvgElement) -> SvgRect; #[cfg(feature = "SvgTransform")] # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = createSVGTransform)] #[doc = "The `createSVGTransform()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/createSVGTransform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgTransform`, `SvgsvgElement`*"] pub fn create_svg_transform(this: &SvgsvgElement) -> SvgTransform; #[cfg(all(feature = "SvgMatrix", feature = "SvgTransform",))] # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = createSVGTransformFromMatrix)] #[doc = "The `createSVGTransformFromMatrix()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/createSVGTransformFromMatrix)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`, `SvgTransform`, `SvgsvgElement`*"] pub fn create_svg_transform_from_matrix( this: &SvgsvgElement, matrix: &SvgMatrix, ) -> SvgTransform; # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = deselectAll)] #[doc = "The `deselectAll()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/deselectAll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"] pub fn deselect_all(this: &SvgsvgElement); # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = forceRedraw)] #[doc = "The `forceRedraw()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/forceRedraw)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"] pub fn force_redraw(this: &SvgsvgElement); # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = getCurrentTime)] #[doc = "The `getCurrentTime()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/getCurrentTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"] pub fn get_current_time(this: &SvgsvgElement) -> f32; # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = getElementById)] #[doc = "The `getElementById()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/getElementById)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"] pub fn get_element_by_id(this: &SvgsvgElement, element_id: &str) -> Option; # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = pauseAnimations)] #[doc = "The `pauseAnimations()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/pauseAnimations)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"] pub fn pause_animations(this: &SvgsvgElement); # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = setCurrentTime)] #[doc = "The `setCurrentTime()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/setCurrentTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"] pub fn set_current_time(this: &SvgsvgElement, seconds: f32); # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = suspendRedraw)] #[doc = "The `suspendRedraw()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/suspendRedraw)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"] pub fn suspend_redraw(this: &SvgsvgElement, max_wait_milliseconds: u32) -> u32; # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = unpauseAnimations)] #[doc = "The `unpauseAnimations()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/unpauseAnimations)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"] pub fn unpause_animations(this: &SvgsvgElement); # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = unsuspendRedraw)] #[doc = "The `unsuspendRedraw()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/unsuspendRedraw)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"] pub fn unsuspend_redraw(this: &SvgsvgElement, suspend_handle_id: u32); # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = unsuspendRedrawAll)] #[doc = "The `unsuspendRedrawAll()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/unsuspendRedrawAll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"] pub fn unsuspend_redraw_all(this: &SvgsvgElement); } impl SvgsvgElement { #[doc = "The `SVGSVGElement.SVG_ZOOMANDPAN_UNKNOWN` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"] pub const SVG_ZOOMANDPAN_UNKNOWN: u16 = 0i64 as u16; #[doc = "The `SVGSVGElement.SVG_ZOOMANDPAN_DISABLE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"] pub const SVG_ZOOMANDPAN_DISABLE: u16 = 1u64 as u16; #[doc = "The `SVGSVGElement.SVG_ZOOMANDPAN_MAGNIFY` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"] pub const SVG_ZOOMANDPAN_MAGNIFY: u16 = 2u64 as u16; } web-sys-0.3.55/src/features/gen_SvgtSpanElement.rs000064400000000000000000000013640072674642500202260ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = SvgTextPositioningElement , extends = SvgTextContentElement , extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGTSpanElement , typescript_type = "SVGTSpanElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvgtSpanElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTSpanElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgtSpanElement`*"] pub type SvgtSpanElement; } web-sys-0.3.55/src/features/gen_TcpReadyState.rs000064400000000000000000000006000072674642500176530ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `TcpReadyState` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpReadyState`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum TcpReadyState { Connecting = "connecting", Open = "open", Closing = "closing", Closed = "closed", } web-sys-0.3.55/src/features/gen_TcpServerSocket.rs000064400000000000000000000120700072674642500202310ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = TCPServerSocket , typescript_type = "TCPServerSocket")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TcpServerSocket` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPServerSocket)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpServerSocket`*"] pub type TcpServerSocket; # [wasm_bindgen (structural , method , getter , js_class = "TCPServerSocket" , js_name = localPort)] #[doc = "Getter for the `localPort` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPServerSocket/localPort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpServerSocket`*"] pub fn local_port(this: &TcpServerSocket) -> u16; # [wasm_bindgen (structural , method , getter , js_class = "TCPServerSocket" , js_name = onconnect)] #[doc = "Getter for the `onconnect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPServerSocket/onconnect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpServerSocket`*"] pub fn onconnect(this: &TcpServerSocket) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "TCPServerSocket" , js_name = onconnect)] #[doc = "Setter for the `onconnect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPServerSocket/onconnect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpServerSocket`*"] pub fn set_onconnect(this: &TcpServerSocket, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "TCPServerSocket" , js_name = onerror)] #[doc = "Getter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPServerSocket/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpServerSocket`*"] pub fn onerror(this: &TcpServerSocket) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "TCPServerSocket" , js_name = onerror)] #[doc = "Setter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPServerSocket/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpServerSocket`*"] pub fn set_onerror(this: &TcpServerSocket, value: Option<&::js_sys::Function>); #[wasm_bindgen(catch, constructor, js_class = "TCPServerSocket")] #[doc = "The `new TcpServerSocket(..)` constructor, creating a new instance of `TcpServerSocket`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPServerSocket/TCPServerSocket)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpServerSocket`*"] pub fn new(port: u16) -> Result; #[cfg(feature = "ServerSocketOptions")] #[wasm_bindgen(catch, constructor, js_class = "TCPServerSocket")] #[doc = "The `new TcpServerSocket(..)` constructor, creating a new instance of `TcpServerSocket`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPServerSocket/TCPServerSocket)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServerSocketOptions`, `TcpServerSocket`*"] pub fn new_with_options( port: u16, options: &ServerSocketOptions, ) -> Result; #[cfg(feature = "ServerSocketOptions")] #[wasm_bindgen(catch, constructor, js_class = "TCPServerSocket")] #[doc = "The `new TcpServerSocket(..)` constructor, creating a new instance of `TcpServerSocket`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPServerSocket/TCPServerSocket)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServerSocketOptions`, `TcpServerSocket`*"] pub fn new_with_options_and_backlog( port: u16, options: &ServerSocketOptions, backlog: u16, ) -> Result; # [wasm_bindgen (method , structural , js_class = "TCPServerSocket" , js_name = close)] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPServerSocket/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpServerSocket`*"] pub fn close(this: &TcpServerSocket); } web-sys-0.3.55/src/features/gen_TcpServerSocketEvent.rs000064400000000000000000000044570072674642500212450ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = TCPServerSocketEvent , typescript_type = "TCPServerSocketEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TcpServerSocketEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPServerSocketEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpServerSocketEvent`*"] pub type TcpServerSocketEvent; #[cfg(feature = "TcpSocket")] # [wasm_bindgen (structural , method , getter , js_class = "TCPServerSocketEvent" , js_name = socket)] #[doc = "Getter for the `socket` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPServerSocketEvent/socket)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpServerSocketEvent`, `TcpSocket`*"] pub fn socket(this: &TcpServerSocketEvent) -> TcpSocket; #[wasm_bindgen(catch, constructor, js_class = "TCPServerSocketEvent")] #[doc = "The `new TcpServerSocketEvent(..)` constructor, creating a new instance of `TcpServerSocketEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPServerSocketEvent/TCPServerSocketEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpServerSocketEvent`*"] pub fn new(type_: &str) -> Result; #[cfg(feature = "TcpServerSocketEventInit")] #[wasm_bindgen(catch, constructor, js_class = "TCPServerSocketEvent")] #[doc = "The `new TcpServerSocketEvent(..)` constructor, creating a new instance of `TcpServerSocketEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPServerSocketEvent/TCPServerSocketEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpServerSocketEvent`, `TcpServerSocketEventInit`*"] pub fn new_with_event_init_dict( type_: &str, event_init_dict: &TcpServerSocketEventInit, ) -> Result; } web-sys-0.3.55/src/features/gen_TcpServerSocketEventInit.rs000064400000000000000000000064310072674642500220630ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = TCPServerSocketEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TcpServerSocketEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpServerSocketEventInit`*"] pub type TcpServerSocketEventInit; } impl TcpServerSocketEventInit { #[doc = "Construct a new `TcpServerSocketEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpServerSocketEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpServerSocketEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpServerSocketEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpServerSocketEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "TcpSocket")] #[doc = "Change the `socket` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpServerSocketEventInit`, `TcpSocket`*"] pub fn socket(&mut self, val: Option<&TcpSocket>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("socket"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for TcpServerSocketEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_TcpSocket.rs000064400000000000000000000304760072674642500170540ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = TCPSocket , typescript_type = "TCPSocket")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TcpSocket` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] pub type TcpSocket; # [wasm_bindgen (structural , method , getter , js_class = "TCPSocket" , js_name = host)] #[doc = "Getter for the `host` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/host)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] pub fn host(this: &TcpSocket) -> String; # [wasm_bindgen (structural , method , getter , js_class = "TCPSocket" , js_name = port)] #[doc = "Getter for the `port` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/port)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] pub fn port(this: &TcpSocket) -> u16; # [wasm_bindgen (structural , method , getter , js_class = "TCPSocket" , js_name = ssl)] #[doc = "Getter for the `ssl` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/ssl)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] pub fn ssl(this: &TcpSocket) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "TCPSocket" , js_name = bufferedAmount)] #[doc = "Getter for the `bufferedAmount` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/bufferedAmount)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] pub fn buffered_amount(this: &TcpSocket) -> f64; #[cfg(feature = "TcpReadyState")] # [wasm_bindgen (structural , method , getter , js_class = "TCPSocket" , js_name = readyState)] #[doc = "Getter for the `readyState` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/readyState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpReadyState`, `TcpSocket`*"] pub fn ready_state(this: &TcpSocket) -> TcpReadyState; #[cfg(feature = "TcpSocketBinaryType")] # [wasm_bindgen (structural , method , getter , js_class = "TCPSocket" , js_name = binaryType)] #[doc = "Getter for the `binaryType` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/binaryType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocket`, `TcpSocketBinaryType`*"] pub fn binary_type(this: &TcpSocket) -> TcpSocketBinaryType; # [wasm_bindgen (structural , method , getter , js_class = "TCPSocket" , js_name = onopen)] #[doc = "Getter for the `onopen` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/onopen)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] pub fn onopen(this: &TcpSocket) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "TCPSocket" , js_name = onopen)] #[doc = "Setter for the `onopen` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/onopen)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] pub fn set_onopen(this: &TcpSocket, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "TCPSocket" , js_name = ondrain)] #[doc = "Getter for the `ondrain` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/ondrain)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] pub fn ondrain(this: &TcpSocket) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "TCPSocket" , js_name = ondrain)] #[doc = "Setter for the `ondrain` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/ondrain)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] pub fn set_ondrain(this: &TcpSocket, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "TCPSocket" , js_name = ondata)] #[doc = "Getter for the `ondata` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/ondata)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] pub fn ondata(this: &TcpSocket) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "TCPSocket" , js_name = ondata)] #[doc = "Setter for the `ondata` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/ondata)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] pub fn set_ondata(this: &TcpSocket, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "TCPSocket" , js_name = onerror)] #[doc = "Getter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] pub fn onerror(this: &TcpSocket) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "TCPSocket" , js_name = onerror)] #[doc = "Setter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] pub fn set_onerror(this: &TcpSocket, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "TCPSocket" , js_name = onclose)] #[doc = "Getter for the `onclose` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/onclose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] pub fn onclose(this: &TcpSocket) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "TCPSocket" , js_name = onclose)] #[doc = "Setter for the `onclose` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/onclose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] pub fn set_onclose(this: &TcpSocket, value: Option<&::js_sys::Function>); #[wasm_bindgen(catch, constructor, js_class = "TCPSocket")] #[doc = "The `new TcpSocket(..)` constructor, creating a new instance of `TcpSocket`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/TCPSocket)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] pub fn new(host: &str, port: u16) -> Result; #[cfg(feature = "SocketOptions")] #[wasm_bindgen(catch, constructor, js_class = "TCPSocket")] #[doc = "The `new TcpSocket(..)` constructor, creating a new instance of `TcpSocket`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/TCPSocket)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SocketOptions`, `TcpSocket`*"] pub fn new_with_options( host: &str, port: u16, options: &SocketOptions, ) -> Result; # [wasm_bindgen (method , structural , js_class = "TCPSocket" , js_name = close)] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] pub fn close(this: &TcpSocket); # [wasm_bindgen (catch , method , structural , js_class = "TCPSocket" , js_name = resume)] #[doc = "The `resume()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/resume)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] pub fn resume(this: &TcpSocket) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "TCPSocket" , js_name = send)] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/send)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] pub fn send_with_str(this: &TcpSocket, data: &str) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "TCPSocket" , js_name = send)] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/send)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] pub fn send_with_array_buffer( this: &TcpSocket, data: &::js_sys::ArrayBuffer, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "TCPSocket" , js_name = send)] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/send)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] pub fn send_with_array_buffer_and_byte_offset( this: &TcpSocket, data: &::js_sys::ArrayBuffer, byte_offset: u32, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "TCPSocket" , js_name = send)] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/send)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] pub fn send_with_array_buffer_and_byte_offset_and_byte_length( this: &TcpSocket, data: &::js_sys::ArrayBuffer, byte_offset: u32, byte_length: u32, ) -> Result; # [wasm_bindgen (method , structural , js_class = "TCPSocket" , js_name = suspend)] #[doc = "The `suspend()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/suspend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] pub fn suspend(this: &TcpSocket); # [wasm_bindgen (catch , method , structural , js_class = "TCPSocket" , js_name = upgradeToSecure)] #[doc = "The `upgradeToSecure()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/upgradeToSecure)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] pub fn upgrade_to_secure(this: &TcpSocket) -> Result<(), JsValue>; } web-sys-0.3.55/src/features/gen_TcpSocketBinaryType.rs000064400000000000000000000005500072674642500210510ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `TcpSocketBinaryType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocketBinaryType`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum TcpSocketBinaryType { Arraybuffer = "arraybuffer", String = "string", } web-sys-0.3.55/src/features/gen_TcpSocketErrorEvent.rs000064400000000000000000000052650072674642500210660ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = TCPSocketErrorEvent , typescript_type = "TCPSocketErrorEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TcpSocketErrorEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocketErrorEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocketErrorEvent`*"] pub type TcpSocketErrorEvent; # [wasm_bindgen (structural , method , getter , js_class = "TCPSocketErrorEvent" , js_name = name)] #[doc = "Getter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocketErrorEvent/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocketErrorEvent`*"] pub fn name(this: &TcpSocketErrorEvent) -> String; # [wasm_bindgen (structural , method , getter , js_class = "TCPSocketErrorEvent" , js_name = message)] #[doc = "Getter for the `message` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocketErrorEvent/message)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocketErrorEvent`*"] pub fn message(this: &TcpSocketErrorEvent) -> String; #[wasm_bindgen(catch, constructor, js_class = "TCPSocketErrorEvent")] #[doc = "The `new TcpSocketErrorEvent(..)` constructor, creating a new instance of `TcpSocketErrorEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocketErrorEvent/TCPSocketErrorEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocketErrorEvent`*"] pub fn new(type_: &str) -> Result; #[cfg(feature = "TcpSocketErrorEventInit")] #[wasm_bindgen(catch, constructor, js_class = "TCPSocketErrorEvent")] #[doc = "The `new TcpSocketErrorEvent(..)` constructor, creating a new instance of `TcpSocketErrorEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocketErrorEvent/TCPSocketErrorEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocketErrorEvent`, `TcpSocketErrorEventInit`*"] pub fn new_with_event_init_dict( type_: &str, event_init_dict: &TcpSocketErrorEventInit, ) -> Result; } web-sys-0.3.55/src/features/gen_TcpSocketErrorEventInit.rs000064400000000000000000000074200072674642500217050ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = TCPSocketErrorEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TcpSocketErrorEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocketErrorEventInit`*"] pub type TcpSocketErrorEventInit; } impl TcpSocketErrorEventInit { #[doc = "Construct a new `TcpSocketErrorEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocketErrorEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocketErrorEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocketErrorEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocketErrorEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `message` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocketErrorEventInit`*"] pub fn message(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("message"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocketErrorEventInit`*"] pub fn name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for TcpSocketErrorEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_TcpSocketEvent.rs000064400000000000000000000041440072674642500200470ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = TCPSocketEvent , typescript_type = "TCPSocketEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TcpSocketEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocketEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocketEvent`*"] pub type TcpSocketEvent; # [wasm_bindgen (structural , method , getter , js_class = "TCPSocketEvent" , js_name = data)] #[doc = "Getter for the `data` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocketEvent/data)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocketEvent`*"] pub fn data(this: &TcpSocketEvent) -> ::wasm_bindgen::JsValue; #[wasm_bindgen(catch, constructor, js_class = "TCPSocketEvent")] #[doc = "The `new TcpSocketEvent(..)` constructor, creating a new instance of `TcpSocketEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocketEvent/TCPSocketEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocketEvent`*"] pub fn new(type_: &str) -> Result; #[cfg(feature = "TcpSocketEventInit")] #[wasm_bindgen(catch, constructor, js_class = "TCPSocketEvent")] #[doc = "The `new TcpSocketEvent(..)` constructor, creating a new instance of `TcpSocketEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocketEvent/TCPSocketEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocketEvent`, `TcpSocketEventInit`*"] pub fn new_with_event_init_dict( type_: &str, event_init_dict: &TcpSocketEventInit, ) -> Result; } web-sys-0.3.55/src/features/gen_TcpSocketEventInit.rs000064400000000000000000000062260072674642500206760ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = TCPSocketEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TcpSocketEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocketEventInit`*"] pub type TcpSocketEventInit; } impl TcpSocketEventInit { #[doc = "Construct a new `TcpSocketEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocketEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocketEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocketEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocketEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `data` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocketEventInit`*"] pub fn data(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("data"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for TcpSocketEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_Text.rs000064400000000000000000000404720072674642500160760ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = CharacterData , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = Text , typescript_type = "Text")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Text` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Text`*"] pub type Text; # [wasm_bindgen (structural , catch , method , getter , js_class = "Text" , js_name = wholeText)] #[doc = "Getter for the `wholeText` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/wholeText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Text`*"] pub fn whole_text(this: &Text) -> Result; #[cfg(feature = "HtmlSlotElement")] # [wasm_bindgen (structural , method , getter , js_class = "Text" , js_name = assignedSlot)] #[doc = "Getter for the `assignedSlot` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/assignedSlot)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSlotElement`, `Text`*"] pub fn assigned_slot(this: &Text) -> Option; #[wasm_bindgen(catch, constructor, js_class = "Text")] #[doc = "The `new Text(..)` constructor, creating a new instance of `Text`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/Text)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Text`*"] pub fn new() -> Result; #[wasm_bindgen(catch, constructor, js_class = "Text")] #[doc = "The `new Text(..)` constructor, creating a new instance of `Text`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/Text)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Text`*"] pub fn new_with_data(data: &str) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Text" , js_name = splitText)] #[doc = "The `splitText()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/splitText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Text`*"] pub fn split_text(this: &Text, offset: u32) -> Result; #[cfg(all(feature = "DomPoint", feature = "DomPointInit",))] # [wasm_bindgen (catch , method , structural , js_class = "Text" , js_name = convertPointFromNode)] #[doc = "The `convertPointFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/convertPointFromNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPoint`, `DomPointInit`, `Text`*"] pub fn convert_point_from_node_with_text( this: &Text, point: &DomPointInit, from: &Text, ) -> Result; #[cfg(all(feature = "DomPoint", feature = "DomPointInit", feature = "Element",))] # [wasm_bindgen (catch , method , structural , js_class = "Text" , js_name = convertPointFromNode)] #[doc = "The `convertPointFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/convertPointFromNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPoint`, `DomPointInit`, `Element`, `Text`*"] pub fn convert_point_from_node_with_element( this: &Text, point: &DomPointInit, from: &Element, ) -> Result; #[cfg(all(feature = "Document", feature = "DomPoint", feature = "DomPointInit",))] # [wasm_bindgen (catch , method , structural , js_class = "Text" , js_name = convertPointFromNode)] #[doc = "The `convertPointFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/convertPointFromNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `DomPoint`, `DomPointInit`, `Text`*"] pub fn convert_point_from_node_with_document( this: &Text, point: &DomPointInit, from: &Document, ) -> Result; #[cfg(all( feature = "ConvertCoordinateOptions", feature = "DomPoint", feature = "DomPointInit", ))] # [wasm_bindgen (catch , method , structural , js_class = "Text" , js_name = convertPointFromNode)] #[doc = "The `convertPointFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/convertPointFromNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `DomPoint`, `DomPointInit`, `Text`*"] pub fn convert_point_from_node_with_text_and_options( this: &Text, point: &DomPointInit, from: &Text, options: &ConvertCoordinateOptions, ) -> Result; #[cfg(all( feature = "ConvertCoordinateOptions", feature = "DomPoint", feature = "DomPointInit", feature = "Element", ))] # [wasm_bindgen (catch , method , structural , js_class = "Text" , js_name = convertPointFromNode)] #[doc = "The `convertPointFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/convertPointFromNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `DomPoint`, `DomPointInit`, `Element`, `Text`*"] pub fn convert_point_from_node_with_element_and_options( this: &Text, point: &DomPointInit, from: &Element, options: &ConvertCoordinateOptions, ) -> Result; #[cfg(all( feature = "ConvertCoordinateOptions", feature = "Document", feature = "DomPoint", feature = "DomPointInit", ))] # [wasm_bindgen (catch , method , structural , js_class = "Text" , js_name = convertPointFromNode)] #[doc = "The `convertPointFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/convertPointFromNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `Document`, `DomPoint`, `DomPointInit`, `Text`*"] pub fn convert_point_from_node_with_document_and_options( this: &Text, point: &DomPointInit, from: &Document, options: &ConvertCoordinateOptions, ) -> Result; #[cfg(feature = "DomQuad")] # [wasm_bindgen (catch , method , structural , js_class = "Text" , js_name = convertQuadFromNode)] #[doc = "The `convertQuadFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/convertQuadFromNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomQuad`, `Text`*"] pub fn convert_quad_from_node_with_text( this: &Text, quad: &DomQuad, from: &Text, ) -> Result; #[cfg(all(feature = "DomQuad", feature = "Element",))] # [wasm_bindgen (catch , method , structural , js_class = "Text" , js_name = convertQuadFromNode)] #[doc = "The `convertQuadFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/convertQuadFromNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomQuad`, `Element`, `Text`*"] pub fn convert_quad_from_node_with_element( this: &Text, quad: &DomQuad, from: &Element, ) -> Result; #[cfg(all(feature = "Document", feature = "DomQuad",))] # [wasm_bindgen (catch , method , structural , js_class = "Text" , js_name = convertQuadFromNode)] #[doc = "The `convertQuadFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/convertQuadFromNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `DomQuad`, `Text`*"] pub fn convert_quad_from_node_with_document( this: &Text, quad: &DomQuad, from: &Document, ) -> Result; #[cfg(all(feature = "ConvertCoordinateOptions", feature = "DomQuad",))] # [wasm_bindgen (catch , method , structural , js_class = "Text" , js_name = convertQuadFromNode)] #[doc = "The `convertQuadFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/convertQuadFromNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `DomQuad`, `Text`*"] pub fn convert_quad_from_node_with_text_and_options( this: &Text, quad: &DomQuad, from: &Text, options: &ConvertCoordinateOptions, ) -> Result; #[cfg(all( feature = "ConvertCoordinateOptions", feature = "DomQuad", feature = "Element", ))] # [wasm_bindgen (catch , method , structural , js_class = "Text" , js_name = convertQuadFromNode)] #[doc = "The `convertQuadFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/convertQuadFromNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `DomQuad`, `Element`, `Text`*"] pub fn convert_quad_from_node_with_element_and_options( this: &Text, quad: &DomQuad, from: &Element, options: &ConvertCoordinateOptions, ) -> Result; #[cfg(all( feature = "ConvertCoordinateOptions", feature = "Document", feature = "DomQuad", ))] # [wasm_bindgen (catch , method , structural , js_class = "Text" , js_name = convertQuadFromNode)] #[doc = "The `convertQuadFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/convertQuadFromNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `Document`, `DomQuad`, `Text`*"] pub fn convert_quad_from_node_with_document_and_options( this: &Text, quad: &DomQuad, from: &Document, options: &ConvertCoordinateOptions, ) -> Result; #[cfg(all(feature = "DomQuad", feature = "DomRectReadOnly",))] # [wasm_bindgen (catch , method , structural , js_class = "Text" , js_name = convertRectFromNode)] #[doc = "The `convertRectFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/convertRectFromNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomQuad`, `DomRectReadOnly`, `Text`*"] pub fn convert_rect_from_node_with_text( this: &Text, rect: &DomRectReadOnly, from: &Text, ) -> Result; #[cfg(all(feature = "DomQuad", feature = "DomRectReadOnly", feature = "Element",))] # [wasm_bindgen (catch , method , structural , js_class = "Text" , js_name = convertRectFromNode)] #[doc = "The `convertRectFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/convertRectFromNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomQuad`, `DomRectReadOnly`, `Element`, `Text`*"] pub fn convert_rect_from_node_with_element( this: &Text, rect: &DomRectReadOnly, from: &Element, ) -> Result; #[cfg(all(feature = "Document", feature = "DomQuad", feature = "DomRectReadOnly",))] # [wasm_bindgen (catch , method , structural , js_class = "Text" , js_name = convertRectFromNode)] #[doc = "The `convertRectFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/convertRectFromNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `DomQuad`, `DomRectReadOnly`, `Text`*"] pub fn convert_rect_from_node_with_document( this: &Text, rect: &DomRectReadOnly, from: &Document, ) -> Result; #[cfg(all( feature = "ConvertCoordinateOptions", feature = "DomQuad", feature = "DomRectReadOnly", ))] # [wasm_bindgen (catch , method , structural , js_class = "Text" , js_name = convertRectFromNode)] #[doc = "The `convertRectFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/convertRectFromNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `DomQuad`, `DomRectReadOnly`, `Text`*"] pub fn convert_rect_from_node_with_text_and_options( this: &Text, rect: &DomRectReadOnly, from: &Text, options: &ConvertCoordinateOptions, ) -> Result; #[cfg(all( feature = "ConvertCoordinateOptions", feature = "DomQuad", feature = "DomRectReadOnly", feature = "Element", ))] # [wasm_bindgen (catch , method , structural , js_class = "Text" , js_name = convertRectFromNode)] #[doc = "The `convertRectFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/convertRectFromNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `DomQuad`, `DomRectReadOnly`, `Element`, `Text`*"] pub fn convert_rect_from_node_with_element_and_options( this: &Text, rect: &DomRectReadOnly, from: &Element, options: &ConvertCoordinateOptions, ) -> Result; #[cfg(all( feature = "ConvertCoordinateOptions", feature = "Document", feature = "DomQuad", feature = "DomRectReadOnly", ))] # [wasm_bindgen (catch , method , structural , js_class = "Text" , js_name = convertRectFromNode)] #[doc = "The `convertRectFromNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/convertRectFromNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `Document`, `DomQuad`, `DomRectReadOnly`, `Text`*"] pub fn convert_rect_from_node_with_document_and_options( this: &Text, rect: &DomRectReadOnly, from: &Document, options: &ConvertCoordinateOptions, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Text" , js_name = getBoxQuads)] #[doc = "The `getBoxQuads()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/getBoxQuads)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Text`*"] pub fn get_box_quads(this: &Text) -> Result<::js_sys::Array, JsValue>; #[cfg(feature = "BoxQuadOptions")] # [wasm_bindgen (catch , method , structural , js_class = "Text" , js_name = getBoxQuads)] #[doc = "The `getBoxQuads()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/getBoxQuads)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BoxQuadOptions`, `Text`*"] pub fn get_box_quads_with_options( this: &Text, options: &BoxQuadOptions, ) -> Result<::js_sys::Array, JsValue>; } web-sys-0.3.55/src/features/gen_TextDecodeOptions.rs000064400000000000000000000026300072674642500205500ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = TextDecodeOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TextDecodeOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextDecodeOptions`*"] pub type TextDecodeOptions; } impl TextDecodeOptions { #[doc = "Construct a new `TextDecodeOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextDecodeOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `stream` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextDecodeOptions`*"] pub fn stream(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("stream"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for TextDecodeOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_TextDecoder.rs000064400000000000000000000126560072674642500173670ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = TextDecoder , typescript_type = "TextDecoder")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TextDecoder` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextDecoder`*"] pub type TextDecoder; # [wasm_bindgen (structural , method , getter , js_class = "TextDecoder" , js_name = encoding)] #[doc = "Getter for the `encoding` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder/encoding)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextDecoder`*"] pub fn encoding(this: &TextDecoder) -> String; # [wasm_bindgen (structural , method , getter , js_class = "TextDecoder" , js_name = fatal)] #[doc = "Getter for the `fatal` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder/fatal)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextDecoder`*"] pub fn fatal(this: &TextDecoder) -> bool; #[wasm_bindgen(catch, constructor, js_class = "TextDecoder")] #[doc = "The `new TextDecoder(..)` constructor, creating a new instance of `TextDecoder`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder/TextDecoder)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextDecoder`*"] pub fn new() -> Result; #[wasm_bindgen(catch, constructor, js_class = "TextDecoder")] #[doc = "The `new TextDecoder(..)` constructor, creating a new instance of `TextDecoder`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder/TextDecoder)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextDecoder`*"] pub fn new_with_label(label: &str) -> Result; #[cfg(feature = "TextDecoderOptions")] #[wasm_bindgen(catch, constructor, js_class = "TextDecoder")] #[doc = "The `new TextDecoder(..)` constructor, creating a new instance of `TextDecoder`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder/TextDecoder)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextDecoder`, `TextDecoderOptions`*"] pub fn new_with_label_and_options( label: &str, options: &TextDecoderOptions, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "TextDecoder" , js_name = decode)] #[doc = "The `decode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder/decode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextDecoder`*"] pub fn decode(this: &TextDecoder) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "TextDecoder" , js_name = decode)] #[doc = "The `decode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder/decode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextDecoder`*"] pub fn decode_with_buffer_source( this: &TextDecoder, input: &::js_sys::Object, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "TextDecoder" , js_name = decode)] #[doc = "The `decode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder/decode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextDecoder`*"] pub fn decode_with_u8_array(this: &TextDecoder, input: &mut [u8]) -> Result; #[cfg(feature = "TextDecodeOptions")] # [wasm_bindgen (catch , method , structural , js_class = "TextDecoder" , js_name = decode)] #[doc = "The `decode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder/decode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextDecodeOptions`, `TextDecoder`*"] pub fn decode_with_buffer_source_and_options( this: &TextDecoder, input: &::js_sys::Object, options: &TextDecodeOptions, ) -> Result; #[cfg(feature = "TextDecodeOptions")] # [wasm_bindgen (catch , method , structural , js_class = "TextDecoder" , js_name = decode)] #[doc = "The `decode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder/decode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextDecodeOptions`, `TextDecoder`*"] pub fn decode_with_u8_array_and_options( this: &TextDecoder, input: &mut [u8], options: &TextDecodeOptions, ) -> Result; } web-sys-0.3.55/src/features/gen_TextDecoderOptions.rs000064400000000000000000000026220072674642500207330ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = TextDecoderOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TextDecoderOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextDecoderOptions`*"] pub type TextDecoderOptions; } impl TextDecoderOptions { #[doc = "Construct a new `TextDecoderOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextDecoderOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `fatal` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextDecoderOptions`*"] pub fn fatal(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("fatal"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for TextDecoderOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_TextEncoder.rs000064400000000000000000000043500072674642500173710ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = TextEncoder , typescript_type = "TextEncoder")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TextEncoder` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextEncoder)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextEncoder`*"] pub type TextEncoder; # [wasm_bindgen (structural , method , getter , js_class = "TextEncoder" , js_name = encoding)] #[doc = "Getter for the `encoding` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextEncoder/encoding)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextEncoder`*"] pub fn encoding(this: &TextEncoder) -> String; #[wasm_bindgen(catch, constructor, js_class = "TextEncoder")] #[doc = "The `new TextEncoder(..)` constructor, creating a new instance of `TextEncoder`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextEncoder/TextEncoder)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextEncoder`*"] pub fn new() -> Result; # [wasm_bindgen (method , structural , js_class = "TextEncoder" , js_name = encode)] #[doc = "The `encode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextEncoder/encode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextEncoder`*"] pub fn encode(this: &TextEncoder) -> Vec; # [wasm_bindgen (method , structural , js_class = "TextEncoder" , js_name = encode)] #[doc = "The `encode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextEncoder/encode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextEncoder`*"] pub fn encode_with_input(this: &TextEncoder, input: &str) -> Vec; } web-sys-0.3.55/src/features/gen_TextMetrics.rs000064400000000000000000000076370072674642500174330ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = TextMetrics , typescript_type = "TextMetrics")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TextMetrics` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextMetrics)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextMetrics`*"] pub type TextMetrics; # [wasm_bindgen (structural , method , getter , js_class = "TextMetrics" , js_name = width)] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextMetrics/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextMetrics`*"] pub fn width(this: &TextMetrics) -> f64; # [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.55/src/features/gen_TextTrack.rs000064400000000000000000000151400072674642500170550ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = TextTrack , typescript_type = "TextTrack")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TextTrack` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrack`*"] pub type TextTrack; #[cfg(feature = "TextTrackKind")] # [wasm_bindgen (structural , method , getter , js_class = "TextTrack" , js_name = kind)] #[doc = "Getter for the `kind` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/kind)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrack`, `TextTrackKind`*"] pub fn kind(this: &TextTrack) -> TextTrackKind; # [wasm_bindgen (structural , method , getter , js_class = "TextTrack" , js_name = label)] #[doc = "Getter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrack`*"] pub fn label(this: &TextTrack) -> String; # [wasm_bindgen (structural , method , getter , js_class = "TextTrack" , js_name = language)] #[doc = "Getter for the `language` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/language)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrack`*"] pub fn language(this: &TextTrack) -> String; # [wasm_bindgen (structural , method , getter , js_class = "TextTrack" , js_name = id)] #[doc = "Getter for the `id` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/id)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrack`*"] pub fn id(this: &TextTrack) -> String; # [wasm_bindgen (structural , method , getter , js_class = "TextTrack" , js_name = inBandMetadataTrackDispatchType)] #[doc = "Getter for the `inBandMetadataTrackDispatchType` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/inBandMetadataTrackDispatchType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrack`*"] pub fn in_band_metadata_track_dispatch_type(this: &TextTrack) -> String; #[cfg(feature = "TextTrackMode")] # [wasm_bindgen (structural , method , getter , js_class = "TextTrack" , js_name = mode)] #[doc = "Getter for the `mode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/mode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrack`, `TextTrackMode`*"] pub fn mode(this: &TextTrack) -> TextTrackMode; #[cfg(feature = "TextTrackMode")] # [wasm_bindgen (structural , method , setter , js_class = "TextTrack" , js_name = mode)] #[doc = "Setter for the `mode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/mode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrack`, `TextTrackMode`*"] pub fn set_mode(this: &TextTrack, value: TextTrackMode); #[cfg(feature = "TextTrackCueList")] # [wasm_bindgen (structural , method , getter , js_class = "TextTrack" , js_name = cues)] #[doc = "Getter for the `cues` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/cues)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrack`, `TextTrackCueList`*"] pub fn cues(this: &TextTrack) -> Option; #[cfg(feature = "TextTrackCueList")] # [wasm_bindgen (structural , method , getter , js_class = "TextTrack" , js_name = activeCues)] #[doc = "Getter for the `activeCues` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/activeCues)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrack`, `TextTrackCueList`*"] pub fn active_cues(this: &TextTrack) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "TextTrack" , js_name = oncuechange)] #[doc = "Getter for the `oncuechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/oncuechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrack`*"] pub fn oncuechange(this: &TextTrack) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "TextTrack" , js_name = oncuechange)] #[doc = "Setter for the `oncuechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/oncuechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrack`*"] pub fn set_oncuechange(this: &TextTrack, value: Option<&::js_sys::Function>); #[cfg(feature = "VttCue")] # [wasm_bindgen (method , structural , js_class = "TextTrack" , js_name = addCue)] #[doc = "The `addCue()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/addCue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrack`, `VttCue`*"] pub fn add_cue(this: &TextTrack, cue: &VttCue); #[cfg(feature = "VttCue")] # [wasm_bindgen (catch , method , structural , js_class = "TextTrack" , js_name = removeCue)] #[doc = "The `removeCue()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/removeCue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrack`, `VttCue`*"] pub fn remove_cue(this: &TextTrack, cue: &VttCue) -> Result<(), JsValue>; } web-sys-0.3.55/src/features/gen_TextTrackCue.rs000064400000000000000000000146420072674642500175200ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = TextTrackCue , typescript_type = "TextTrackCue")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TextTrackCue` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrackCue`*"] pub type TextTrackCue; #[cfg(feature = "TextTrack")] # [wasm_bindgen (structural , method , getter , js_class = "TextTrackCue" , js_name = track)] #[doc = "Getter for the `track` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue/track)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrack`, `TextTrackCue`*"] pub fn track(this: &TextTrackCue) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "TextTrackCue" , js_name = id)] #[doc = "Getter for the `id` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue/id)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrackCue`*"] pub fn id(this: &TextTrackCue) -> String; # [wasm_bindgen (structural , method , setter , js_class = "TextTrackCue" , js_name = id)] #[doc = "Setter for the `id` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue/id)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrackCue`*"] pub fn set_id(this: &TextTrackCue, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "TextTrackCue" , js_name = startTime)] #[doc = "Getter for the `startTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue/startTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrackCue`*"] pub fn start_time(this: &TextTrackCue) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "TextTrackCue" , js_name = startTime)] #[doc = "Setter for the `startTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue/startTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrackCue`*"] pub fn set_start_time(this: &TextTrackCue, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "TextTrackCue" , js_name = endTime)] #[doc = "Getter for the `endTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue/endTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrackCue`*"] pub fn end_time(this: &TextTrackCue) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "TextTrackCue" , js_name = endTime)] #[doc = "Setter for the `endTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue/endTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrackCue`*"] pub fn set_end_time(this: &TextTrackCue, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "TextTrackCue" , js_name = pauseOnExit)] #[doc = "Getter for the `pauseOnExit` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue/pauseOnExit)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrackCue`*"] pub fn pause_on_exit(this: &TextTrackCue) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "TextTrackCue" , js_name = pauseOnExit)] #[doc = "Setter for the `pauseOnExit` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue/pauseOnExit)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrackCue`*"] pub fn set_pause_on_exit(this: &TextTrackCue, value: bool); # [wasm_bindgen (structural , method , getter , js_class = "TextTrackCue" , js_name = onenter)] #[doc = "Getter for the `onenter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue/onenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrackCue`*"] pub fn onenter(this: &TextTrackCue) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "TextTrackCue" , js_name = onenter)] #[doc = "Setter for the `onenter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue/onenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrackCue`*"] pub fn set_onenter(this: &TextTrackCue, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "TextTrackCue" , js_name = onexit)] #[doc = "Getter for the `onexit` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue/onexit)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrackCue`*"] pub fn onexit(this: &TextTrackCue) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "TextTrackCue" , js_name = onexit)] #[doc = "Setter for the `onexit` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue/onexit)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrackCue`*"] pub fn set_onexit(this: &TextTrackCue, value: Option<&::js_sys::Function>); } web-sys-0.3.55/src/features/gen_TextTrackCueList.rs000064400000000000000000000035740072674642500203560ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = TextTrackCueList , typescript_type = "TextTrackCueList")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TextTrackCueList` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCueList)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrackCueList`*"] pub type TextTrackCueList; # [wasm_bindgen (structural , method , getter , js_class = "TextTrackCueList" , js_name = length)] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCueList/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrackCueList`*"] pub fn length(this: &TextTrackCueList) -> u32; #[cfg(feature = "VttCue")] # [wasm_bindgen (method , structural , js_class = "TextTrackCueList" , js_name = getCueById)] #[doc = "The `getCueById()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCueList/getCueById)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrackCueList`, `VttCue`*"] pub fn get_cue_by_id(this: &TextTrackCueList, id: &str) -> Option; #[cfg(feature = "VttCue")] #[wasm_bindgen(method, structural, js_class = "TextTrackCueList", indexing_getter)] #[doc = "Indexing getter."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrackCueList`, `VttCue`*"] pub fn get(this: &TextTrackCueList, index: u32) -> Option; } web-sys-0.3.55/src/features/gen_TextTrackKind.rs000064400000000000000000000006570072674642500176720ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `TextTrackKind` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrackKind`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum TextTrackKind { Subtitles = "subtitles", Captions = "captions", Descriptions = "descriptions", Chapters = "chapters", Metadata = "metadata", } web-sys-0.3.55/src/features/gen_TextTrackList.rs000064400000000000000000000113630072674642500177140ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = TextTrackList , typescript_type = "TextTrackList")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TextTrackList` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackList)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrackList`*"] pub type TextTrackList; # [wasm_bindgen (structural , method , getter , js_class = "TextTrackList" , js_name = length)] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackList/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrackList`*"] pub fn length(this: &TextTrackList) -> u32; # [wasm_bindgen (structural , method , getter , js_class = "TextTrackList" , js_name = onchange)] #[doc = "Getter for the `onchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackList/onchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrackList`*"] pub fn onchange(this: &TextTrackList) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "TextTrackList" , js_name = onchange)] #[doc = "Setter for the `onchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackList/onchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrackList`*"] pub fn set_onchange(this: &TextTrackList, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "TextTrackList" , js_name = onaddtrack)] #[doc = "Getter for the `onaddtrack` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackList/onaddtrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrackList`*"] pub fn onaddtrack(this: &TextTrackList) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "TextTrackList" , js_name = onaddtrack)] #[doc = "Setter for the `onaddtrack` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackList/onaddtrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrackList`*"] pub fn set_onaddtrack(this: &TextTrackList, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "TextTrackList" , js_name = onremovetrack)] #[doc = "Getter for the `onremovetrack` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackList/onremovetrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrackList`*"] pub fn onremovetrack(this: &TextTrackList) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "TextTrackList" , js_name = onremovetrack)] #[doc = "Setter for the `onremovetrack` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackList/onremovetrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrackList`*"] pub fn set_onremovetrack(this: &TextTrackList, value: Option<&::js_sys::Function>); #[cfg(feature = "TextTrack")] # [wasm_bindgen (method , structural , js_class = "TextTrackList" , js_name = getTrackById)] #[doc = "The `getTrackById()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackList/getTrackById)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrack`, `TextTrackList`*"] pub fn get_track_by_id(this: &TextTrackList, id: &str) -> Option; #[cfg(feature = "TextTrack")] #[wasm_bindgen(method, structural, js_class = "TextTrackList", indexing_getter)] #[doc = "Indexing getter."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrack`, `TextTrackList`*"] pub fn get(this: &TextTrackList, index: u32) -> Option; } web-sys-0.3.55/src/features/gen_TextTrackMode.rs000064400000000000000000000005510072674642500176620ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `TextTrackMode` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrackMode`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum TextTrackMode { Disabled = "disabled", Hidden = "hidden", Showing = "showing", } web-sys-0.3.55/src/features/gen_TimeEvent.rs000064400000000000000000000056350072674642500170540ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = TimeEvent , typescript_type = "TimeEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TimeEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TimeEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TimeEvent`*"] pub type TimeEvent; # [wasm_bindgen (structural , method , getter , js_class = "TimeEvent" , js_name = detail)] #[doc = "Getter for the `detail` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TimeEvent/detail)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TimeEvent`*"] pub fn detail(this: &TimeEvent) -> i32; #[cfg(feature = "Window")] # [wasm_bindgen (structural , method , getter , js_class = "TimeEvent" , js_name = view)] #[doc = "Getter for the `view` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TimeEvent/view)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TimeEvent`, `Window`*"] pub fn view(this: &TimeEvent) -> Option; # [wasm_bindgen (method , structural , js_class = "TimeEvent" , js_name = initTimeEvent)] #[doc = "The `initTimeEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TimeEvent/initTimeEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TimeEvent`*"] pub fn init_time_event(this: &TimeEvent, a_type: &str); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "TimeEvent" , js_name = initTimeEvent)] #[doc = "The `initTimeEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TimeEvent/initTimeEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TimeEvent`, `Window`*"] pub fn init_time_event_with_a_view(this: &TimeEvent, a_type: &str, a_view: Option<&Window>); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "TimeEvent" , js_name = initTimeEvent)] #[doc = "The `initTimeEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TimeEvent/initTimeEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TimeEvent`, `Window`*"] pub fn init_time_event_with_a_view_and_a_detail( this: &TimeEvent, a_type: &str, a_view: Option<&Window>, a_detail: i32, ); } web-sys-0.3.55/src/features/gen_TimeRanges.rs000064400000000000000000000034450072674642500172070ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = TimeRanges , typescript_type = "TimeRanges")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TimeRanges` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TimeRanges)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TimeRanges`*"] pub type TimeRanges; # [wasm_bindgen (structural , method , getter , js_class = "TimeRanges" , js_name = length)] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TimeRanges/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TimeRanges`*"] pub fn length(this: &TimeRanges) -> u32; # [wasm_bindgen (catch , method , structural , js_class = "TimeRanges" , js_name = end)] #[doc = "The `end()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TimeRanges/end)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TimeRanges`*"] pub fn end(this: &TimeRanges, index: u32) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "TimeRanges" , js_name = start)] #[doc = "The `start()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TimeRanges/start)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TimeRanges`*"] pub fn start(this: &TimeRanges, index: u32) -> Result; } web-sys-0.3.55/src/features/gen_Touch.rs000064400000000000000000000136610072674642500162340ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Touch , typescript_type = "Touch")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Touch` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Touch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Touch`*"] pub type Touch; # [wasm_bindgen (structural , method , getter , js_class = "Touch" , js_name = identifier)] #[doc = "Getter for the `identifier` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Touch/identifier)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Touch`*"] pub fn identifier(this: &Touch) -> i32; #[cfg(feature = "EventTarget")] # [wasm_bindgen (structural , method , getter , js_class = "Touch" , js_name = target)] #[doc = "Getter for the `target` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Touch/target)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventTarget`, `Touch`*"] pub fn target(this: &Touch) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "Touch" , js_name = screenX)] #[doc = "Getter for the `screenX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Touch/screenX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Touch`*"] pub fn screen_x(this: &Touch) -> i32; # [wasm_bindgen (structural , method , getter , js_class = "Touch" , js_name = screenY)] #[doc = "Getter for the `screenY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Touch/screenY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Touch`*"] pub fn screen_y(this: &Touch) -> i32; # [wasm_bindgen (structural , method , getter , js_class = "Touch" , js_name = clientX)] #[doc = "Getter for the `clientX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Touch/clientX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Touch`*"] pub fn client_x(this: &Touch) -> i32; # [wasm_bindgen (structural , method , getter , js_class = "Touch" , js_name = clientY)] #[doc = "Getter for the `clientY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Touch/clientY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Touch`*"] pub fn client_y(this: &Touch) -> i32; # [wasm_bindgen (structural , method , getter , js_class = "Touch" , js_name = pageX)] #[doc = "Getter for the `pageX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Touch/pageX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Touch`*"] pub fn page_x(this: &Touch) -> i32; # [wasm_bindgen (structural , method , getter , js_class = "Touch" , js_name = pageY)] #[doc = "Getter for the `pageY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Touch/pageY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Touch`*"] pub fn page_y(this: &Touch) -> i32; # [wasm_bindgen (structural , method , getter , js_class = "Touch" , js_name = radiusX)] #[doc = "Getter for the `radiusX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Touch/radiusX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Touch`*"] pub fn radius_x(this: &Touch) -> i32; # [wasm_bindgen (structural , method , getter , js_class = "Touch" , js_name = radiusY)] #[doc = "Getter for the `radiusY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Touch/radiusY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Touch`*"] pub fn radius_y(this: &Touch) -> i32; # [wasm_bindgen (structural , method , getter , js_class = "Touch" , js_name = rotationAngle)] #[doc = "Getter for the `rotationAngle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Touch/rotationAngle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Touch`*"] pub fn rotation_angle(this: &Touch) -> f32; # [wasm_bindgen (structural , method , getter , js_class = "Touch" , js_name = force)] #[doc = "Getter for the `force` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Touch/force)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Touch`*"] pub fn force(this: &Touch) -> f32; #[cfg(feature = "TouchInit")] #[wasm_bindgen(catch, constructor, js_class = "Touch")] #[doc = "The `new Touch(..)` constructor, creating a new instance of `Touch`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Touch/Touch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Touch`, `TouchInit`*"] pub fn new(touch_init_dict: &TouchInit) -> Result; } web-sys-0.3.55/src/features/gen_TouchEvent.rs000064400000000000000000000323240072674642500172330ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = UiEvent , extends = Event , extends = :: js_sys :: Object , js_name = TouchEvent , typescript_type = "TouchEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TouchEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEvent`*"] pub type TouchEvent; #[cfg(feature = "TouchList")] # [wasm_bindgen (structural , method , getter , js_class = "TouchEvent" , js_name = touches)] #[doc = "Getter for the `touches` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/touches)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEvent`, `TouchList`*"] pub fn touches(this: &TouchEvent) -> TouchList; #[cfg(feature = "TouchList")] # [wasm_bindgen (structural , method , getter , js_class = "TouchEvent" , js_name = targetTouches)] #[doc = "Getter for the `targetTouches` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/targetTouches)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEvent`, `TouchList`*"] pub fn target_touches(this: &TouchEvent) -> TouchList; #[cfg(feature = "TouchList")] # [wasm_bindgen (structural , method , getter , js_class = "TouchEvent" , js_name = changedTouches)] #[doc = "Getter for the `changedTouches` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/changedTouches)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEvent`, `TouchList`*"] pub fn changed_touches(this: &TouchEvent) -> TouchList; # [wasm_bindgen (structural , method , getter , js_class = "TouchEvent" , js_name = altKey)] #[doc = "Getter for the `altKey` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/altKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEvent`*"] pub fn alt_key(this: &TouchEvent) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "TouchEvent" , js_name = metaKey)] #[doc = "Getter for the `metaKey` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/metaKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEvent`*"] pub fn meta_key(this: &TouchEvent) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "TouchEvent" , js_name = ctrlKey)] #[doc = "Getter for the `ctrlKey` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/ctrlKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEvent`*"] pub fn ctrl_key(this: &TouchEvent) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "TouchEvent" , js_name = shiftKey)] #[doc = "Getter for the `shiftKey` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/shiftKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEvent`*"] pub fn shift_key(this: &TouchEvent) -> bool; #[wasm_bindgen(catch, constructor, js_class = "TouchEvent")] #[doc = "The `new TouchEvent(..)` constructor, creating a new instance of `TouchEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/TouchEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEvent`*"] pub fn new(type_: &str) -> Result; #[cfg(feature = "TouchEventInit")] #[wasm_bindgen(catch, constructor, js_class = "TouchEvent")] #[doc = "The `new TouchEvent(..)` constructor, creating a new instance of `TouchEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/TouchEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEvent`, `TouchEventInit`*"] pub fn new_with_event_init_dict( type_: &str, event_init_dict: &TouchEventInit, ) -> Result; # [wasm_bindgen (method , structural , js_class = "TouchEvent" , js_name = initTouchEvent)] #[doc = "The `initTouchEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/initTouchEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEvent`*"] pub fn init_touch_event(this: &TouchEvent, type_: &str); # [wasm_bindgen (method , structural , js_class = "TouchEvent" , js_name = initTouchEvent)] #[doc = "The `initTouchEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/initTouchEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEvent`*"] pub fn init_touch_event_with_can_bubble(this: &TouchEvent, type_: &str, can_bubble: bool); # [wasm_bindgen (method , structural , js_class = "TouchEvent" , js_name = initTouchEvent)] #[doc = "The `initTouchEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/initTouchEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEvent`*"] pub fn init_touch_event_with_can_bubble_and_cancelable( this: &TouchEvent, type_: &str, can_bubble: bool, cancelable: bool, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "TouchEvent" , js_name = initTouchEvent)] #[doc = "The `initTouchEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/initTouchEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEvent`, `Window`*"] pub fn init_touch_event_with_can_bubble_and_cancelable_and_view( this: &TouchEvent, type_: &str, can_bubble: bool, cancelable: bool, view: Option<&Window>, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "TouchEvent" , js_name = initTouchEvent)] #[doc = "The `initTouchEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/initTouchEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEvent`, `Window`*"] pub fn init_touch_event_with_can_bubble_and_cancelable_and_view_and_detail( this: &TouchEvent, type_: &str, can_bubble: bool, cancelable: bool, view: Option<&Window>, detail: i32, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "TouchEvent" , js_name = initTouchEvent)] #[doc = "The `initTouchEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/initTouchEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEvent`, `Window`*"] pub fn init_touch_event_with_can_bubble_and_cancelable_and_view_and_detail_and_ctrl_key( this: &TouchEvent, type_: &str, can_bubble: bool, cancelable: bool, view: Option<&Window>, detail: i32, ctrl_key: bool, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "TouchEvent" , js_name = initTouchEvent)] #[doc = "The `initTouchEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/initTouchEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEvent`, `Window`*"] pub fn init_touch_event_with_can_bubble_and_cancelable_and_view_and_detail_and_ctrl_key_and_alt_key( this: &TouchEvent, type_: &str, can_bubble: bool, cancelable: bool, view: Option<&Window>, detail: i32, ctrl_key: bool, alt_key: bool, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "TouchEvent" , js_name = initTouchEvent)] #[doc = "The `initTouchEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/initTouchEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEvent`, `Window`*"] pub fn init_touch_event_with_can_bubble_and_cancelable_and_view_and_detail_and_ctrl_key_and_alt_key_and_shift_key( this: &TouchEvent, type_: &str, can_bubble: bool, cancelable: bool, view: Option<&Window>, detail: i32, ctrl_key: bool, alt_key: bool, shift_key: bool, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "TouchEvent" , js_name = initTouchEvent)] #[doc = "The `initTouchEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/initTouchEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEvent`, `Window`*"] pub fn init_touch_event_with_can_bubble_and_cancelable_and_view_and_detail_and_ctrl_key_and_alt_key_and_shift_key_and_meta_key( this: &TouchEvent, type_: &str, can_bubble: bool, cancelable: bool, view: Option<&Window>, detail: i32, ctrl_key: bool, alt_key: bool, shift_key: bool, meta_key: bool, ); #[cfg(all(feature = "TouchList", feature = "Window",))] # [wasm_bindgen (method , structural , js_class = "TouchEvent" , js_name = initTouchEvent)] #[doc = "The `initTouchEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/initTouchEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEvent`, `TouchList`, `Window`*"] pub fn init_touch_event_with_can_bubble_and_cancelable_and_view_and_detail_and_ctrl_key_and_alt_key_and_shift_key_and_meta_key_and_touches( this: &TouchEvent, type_: &str, can_bubble: bool, cancelable: bool, view: Option<&Window>, detail: i32, ctrl_key: bool, alt_key: bool, shift_key: bool, meta_key: bool, touches: Option<&TouchList>, ); #[cfg(all(feature = "TouchList", feature = "Window",))] # [wasm_bindgen (method , structural , js_class = "TouchEvent" , js_name = initTouchEvent)] #[doc = "The `initTouchEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/initTouchEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEvent`, `TouchList`, `Window`*"] pub fn init_touch_event_with_can_bubble_and_cancelable_and_view_and_detail_and_ctrl_key_and_alt_key_and_shift_key_and_meta_key_and_touches_and_target_touches( this: &TouchEvent, type_: &str, can_bubble: bool, cancelable: bool, view: Option<&Window>, detail: i32, ctrl_key: bool, alt_key: bool, shift_key: bool, meta_key: bool, touches: Option<&TouchList>, target_touches: Option<&TouchList>, ); #[cfg(all(feature = "TouchList", feature = "Window",))] # [wasm_bindgen (method , structural , js_class = "TouchEvent" , js_name = initTouchEvent)] #[doc = "The `initTouchEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/initTouchEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEvent`, `TouchList`, `Window`*"] pub fn init_touch_event_with_can_bubble_and_cancelable_and_view_and_detail_and_ctrl_key_and_alt_key_and_shift_key_and_meta_key_and_touches_and_target_touches_and_changed_touches( this: &TouchEvent, type_: &str, can_bubble: bool, cancelable: bool, view: Option<&Window>, detail: i32, ctrl_key: bool, alt_key: bool, shift_key: bool, meta_key: bool, touches: Option<&TouchList>, target_touches: Option<&TouchList>, changed_touches: Option<&TouchList>, ); } web-sys-0.3.55/src/features/gen_TouchEventInit.rs000064400000000000000000000321310072674642500200530ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = TouchEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TouchEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] pub type TouchEventInit; } impl TouchEventInit { #[doc = "Construct a new `TouchEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `detail` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] pub fn detail(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("detail"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "Window")] #[doc = "Change the `view` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`, `Window`*"] pub fn view(&mut self, val: Option<&Window>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("view"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `altKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] pub fn alt_key(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("altKey"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `ctrlKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] pub fn ctrl_key(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("ctrlKey"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `metaKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] pub fn meta_key(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("metaKey"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierAltGraph` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] pub fn modifier_alt_graph(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierAltGraph"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierCapsLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] pub fn modifier_caps_lock(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierCapsLock"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierFn` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] pub fn modifier_fn(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierFn"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierFnLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] pub fn modifier_fn_lock(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierFnLock"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierNumLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] pub fn modifier_num_lock(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierNumLock"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierOS` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] pub fn modifier_os(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierOS"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierScrollLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] pub fn modifier_scroll_lock(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierScrollLock"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierSymbol` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] pub fn modifier_symbol(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierSymbol"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierSymbolLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] pub fn modifier_symbol_lock(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierSymbolLock"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `shiftKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] pub fn shift_key(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("shiftKey"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `changedTouches` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] pub fn changed_touches(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("changedTouches"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `targetTouches` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] pub fn target_touches(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("targetTouches"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `touches` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] pub fn touches(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("touches"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for TouchEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_TouchInit.rs000064400000000000000000000170650072674642500170620ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = TouchInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TouchInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchInit`*"] pub type TouchInit; } impl TouchInit { #[cfg(feature = "EventTarget")] #[doc = "Construct a new `TouchInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventTarget`, `TouchInit`*"] pub fn new(identifier: i32, target: &EventTarget) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.identifier(identifier); ret.target(target); ret } #[doc = "Change the `clientX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchInit`*"] pub fn client_x(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("clientX"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `clientY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchInit`*"] pub fn client_y(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("clientY"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `force` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchInit`*"] pub fn force(&mut self, val: f32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("force"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `identifier` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchInit`*"] pub fn identifier(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("identifier"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `pageX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchInit`*"] pub fn page_x(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("pageX"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `pageY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchInit`*"] pub fn page_y(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("pageY"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `radiusX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchInit`*"] pub fn radius_x(&mut self, val: f32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("radiusX"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `radiusY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchInit`*"] pub fn radius_y(&mut self, val: f32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("radiusY"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `rotationAngle` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchInit`*"] pub fn rotation_angle(&mut self, val: f32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("rotationAngle"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `screenX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchInit`*"] pub fn screen_x(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("screenX"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `screenY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchInit`*"] pub fn screen_y(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("screenY"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "EventTarget")] #[doc = "Change the `target` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventTarget`, `TouchInit`*"] pub fn target(&mut self, val: &EventTarget) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("target"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_TouchList.rs000064400000000000000000000033460072674642500170670ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = TouchList , typescript_type = "TouchList")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TouchList` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchList)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchList`*"] pub type TouchList; # [wasm_bindgen (structural , method , getter , js_class = "TouchList" , js_name = length)] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchList/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchList`*"] pub fn length(this: &TouchList) -> u32; #[cfg(feature = "Touch")] # [wasm_bindgen (method , structural , js_class = "TouchList" , js_name = item)] #[doc = "The `item()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchList/item)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Touch`, `TouchList`*"] pub fn item(this: &TouchList, index: u32) -> Option; #[cfg(feature = "Touch")] #[wasm_bindgen(method, structural, js_class = "TouchList", indexing_getter)] #[doc = "Indexing getter."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Touch`, `TouchList`*"] pub fn get(this: &TouchList, index: u32) -> Option; } web-sys-0.3.55/src/features/gen_TrackEvent.rs000064400000000000000000000037750072674642500172250ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = TrackEvent , typescript_type = "TrackEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TrackEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TrackEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TrackEvent`*"] pub type TrackEvent; # [wasm_bindgen (structural , method , getter , js_class = "TrackEvent" , js_name = track)] #[doc = "Getter for the `track` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TrackEvent/track)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TrackEvent`*"] pub fn track(this: &TrackEvent) -> Option<::js_sys::Object>; #[wasm_bindgen(catch, constructor, js_class = "TrackEvent")] #[doc = "The `new TrackEvent(..)` constructor, creating a new instance of `TrackEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TrackEvent/TrackEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TrackEvent`*"] pub fn new(type_: &str) -> Result; #[cfg(feature = "TrackEventInit")] #[wasm_bindgen(catch, constructor, js_class = "TrackEvent")] #[doc = "The `new TrackEvent(..)` constructor, creating a new instance of `TrackEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TrackEvent/TrackEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TrackEvent`, `TrackEventInit`*"] pub fn new_with_event_init_dict( type_: &str, event_init_dict: &TrackEventInit, ) -> Result; } web-sys-0.3.55/src/features/gen_TrackEventInit.rs000064400000000000000000000061520072674642500200410ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = TrackEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TrackEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TrackEventInit`*"] pub type TrackEventInit; } impl TrackEventInit { #[doc = "Construct a new `TrackEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TrackEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TrackEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TrackEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TrackEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `track` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TrackEventInit`*"] pub fn track(&mut self, val: Option<&::js_sys::Object>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("track"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for TrackEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_TransformStream.rs000064400000000000000000000135300072674642500202740ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type TransformStream; #[cfg(web_sys_unstable_apis)] #[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`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn readable(this: &TransformStream) -> ReadableStream; #[cfg(web_sys_unstable_apis)] #[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`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn writable(this: &TransformStream) -> WritableStream; #[cfg(web_sys_unstable_apis)] #[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`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new() -> Result; #[cfg(web_sys_unstable_apis)] #[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`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new_with_transformer(transformer: &::js_sys::Object) -> Result; #[cfg(web_sys_unstable_apis)] #[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`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new_with_transformer_and_writable_strategy( transformer: &::js_sys::Object, writable_strategy: &QueuingStrategy, ) -> Result; #[cfg(web_sys_unstable_apis)] #[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`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new_with_transformer_and_writable_strategy_and_readable_strategy( transformer: &::js_sys::Object, writable_strategy: &QueuingStrategy, readable_strategy: &QueuingStrategy, ) -> Result; } web-sys-0.3.55/src/features/gen_TransitionEvent.rs000064400000000000000000000061140072674642500203010ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = TransitionEvent , typescript_type = "TransitionEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TransitionEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TransitionEvent`*"] pub type TransitionEvent; # [wasm_bindgen (structural , method , getter , js_class = "TransitionEvent" , js_name = propertyName)] #[doc = "Getter for the `propertyName` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent/propertyName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TransitionEvent`*"] pub fn property_name(this: &TransitionEvent) -> String; # [wasm_bindgen (structural , method , getter , js_class = "TransitionEvent" , js_name = elapsedTime)] #[doc = "Getter for the `elapsedTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent/elapsedTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TransitionEvent`*"] pub fn elapsed_time(this: &TransitionEvent) -> f32; # [wasm_bindgen (structural , method , getter , js_class = "TransitionEvent" , js_name = pseudoElement)] #[doc = "Getter for the `pseudoElement` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent/pseudoElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TransitionEvent`*"] pub fn pseudo_element(this: &TransitionEvent) -> String; #[wasm_bindgen(catch, constructor, js_class = "TransitionEvent")] #[doc = "The `new TransitionEvent(..)` constructor, creating a new instance of `TransitionEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent/TransitionEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TransitionEvent`*"] pub fn new(type_: &str) -> Result; #[cfg(feature = "TransitionEventInit")] #[wasm_bindgen(catch, constructor, js_class = "TransitionEvent")] #[doc = "The `new TransitionEvent(..)` constructor, creating a new instance of `TransitionEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent/TransitionEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TransitionEvent`, `TransitionEventInit`*"] pub fn new_with_event_init_dict( type_: &str, event_init_dict: &TransitionEventInit, ) -> Result; } web-sys-0.3.55/src/features/gen_TransitionEventInit.rs000064400000000000000000000106210072674642500211230ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = TransitionEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TransitionEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TransitionEventInit`*"] pub type TransitionEventInit; } impl TransitionEventInit { #[doc = "Construct a new `TransitionEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TransitionEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TransitionEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TransitionEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TransitionEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `elapsedTime` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TransitionEventInit`*"] pub fn elapsed_time(&mut self, val: f32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("elapsedTime"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `propertyName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TransitionEventInit`*"] pub fn property_name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("propertyName"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `pseudoElement` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TransitionEventInit`*"] pub fn pseudo_element(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("pseudoElement"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for TransitionEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_Transport.rs000064400000000000000000000005240072674642500171400ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `Transport` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Transport`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum Transport { Bt = "bt", Ble = "ble", Nfc = "nfc", Usb = "usb", } web-sys-0.3.55/src/features/gen_TreeBoxObject.rs000064400000000000000000000261330072674642500176470ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = TreeBoxObject , typescript_type = "TreeBoxObject")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TreeBoxObject` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] pub type TreeBoxObject; # [wasm_bindgen (structural , method , getter , js_class = "TreeBoxObject" , js_name = focused)] #[doc = "Getter for the `focused` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/focused)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] pub fn focused(this: &TreeBoxObject) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "TreeBoxObject" , js_name = focused)] #[doc = "Setter for the `focused` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/focused)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] pub fn set_focused(this: &TreeBoxObject, value: bool); #[cfg(feature = "Element")] # [wasm_bindgen (structural , method , getter , js_class = "TreeBoxObject" , js_name = treeBody)] #[doc = "Getter for the `treeBody` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/treeBody)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `TreeBoxObject`*"] pub fn tree_body(this: &TreeBoxObject) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "TreeBoxObject" , js_name = rowHeight)] #[doc = "Getter for the `rowHeight` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/rowHeight)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] pub fn row_height(this: &TreeBoxObject) -> i32; # [wasm_bindgen (structural , method , getter , js_class = "TreeBoxObject" , js_name = rowWidth)] #[doc = "Getter for the `rowWidth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/rowWidth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] pub fn row_width(this: &TreeBoxObject) -> i32; # [wasm_bindgen (structural , method , getter , js_class = "TreeBoxObject" , js_name = horizontalPosition)] #[doc = "Getter for the `horizontalPosition` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/horizontalPosition)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] pub fn horizontal_position(this: &TreeBoxObject) -> i32; # [wasm_bindgen (method , structural , js_class = "TreeBoxObject" , js_name = beginUpdateBatch)] #[doc = "The `beginUpdateBatch()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/beginUpdateBatch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] pub fn begin_update_batch(this: &TreeBoxObject); # [wasm_bindgen (method , structural , js_class = "TreeBoxObject" , js_name = clearStyleAndImageCaches)] #[doc = "The `clearStyleAndImageCaches()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/clearStyleAndImageCaches)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] pub fn clear_style_and_image_caches(this: &TreeBoxObject); # [wasm_bindgen (method , structural , js_class = "TreeBoxObject" , js_name = endUpdateBatch)] #[doc = "The `endUpdateBatch()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/endUpdateBatch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] pub fn end_update_batch(this: &TreeBoxObject); # [wasm_bindgen (method , structural , js_class = "TreeBoxObject" , js_name = ensureRowIsVisible)] #[doc = "The `ensureRowIsVisible()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/ensureRowIsVisible)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] pub fn ensure_row_is_visible(this: &TreeBoxObject, index: i32); #[cfg(feature = "TreeCellInfo")] # [wasm_bindgen (catch , method , structural , js_class = "TreeBoxObject" , js_name = getCellAt)] #[doc = "The `getCellAt()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/getCellAt)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`, `TreeCellInfo`*"] pub fn get_cell_at(this: &TreeBoxObject, x: i32, y: i32) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "TreeBoxObject" , js_name = getCellAt)] #[doc = "The `getCellAt()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/getCellAt)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] pub fn get_cell_at_with_row_and_column_and_child_elt( this: &TreeBoxObject, x: i32, y: i32, row: &::js_sys::Object, column: &::js_sys::Object, child_elt: &::js_sys::Object, ) -> Result<(), JsValue>; # [wasm_bindgen (method , structural , js_class = "TreeBoxObject" , js_name = getFirstVisibleRow)] #[doc = "The `getFirstVisibleRow()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/getFirstVisibleRow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] pub fn get_first_visible_row(this: &TreeBoxObject) -> i32; # [wasm_bindgen (method , structural , js_class = "TreeBoxObject" , js_name = getLastVisibleRow)] #[doc = "The `getLastVisibleRow()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/getLastVisibleRow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] pub fn get_last_visible_row(this: &TreeBoxObject) -> i32; # [wasm_bindgen (method , structural , js_class = "TreeBoxObject" , js_name = getPageLength)] #[doc = "The `getPageLength()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/getPageLength)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] pub fn get_page_length(this: &TreeBoxObject) -> i32; # [wasm_bindgen (method , structural , js_class = "TreeBoxObject" , js_name = getRowAt)] #[doc = "The `getRowAt()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/getRowAt)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] pub fn get_row_at(this: &TreeBoxObject, x: i32, y: i32) -> i32; # [wasm_bindgen (method , structural , js_class = "TreeBoxObject" , js_name = invalidate)] #[doc = "The `invalidate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/invalidate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] pub fn invalidate(this: &TreeBoxObject); # [wasm_bindgen (method , structural , js_class = "TreeBoxObject" , js_name = invalidateRange)] #[doc = "The `invalidateRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/invalidateRange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] pub fn invalidate_range(this: &TreeBoxObject, start_index: i32, end_index: i32); # [wasm_bindgen (method , structural , js_class = "TreeBoxObject" , js_name = invalidateRow)] #[doc = "The `invalidateRow()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/invalidateRow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] pub fn invalidate_row(this: &TreeBoxObject, index: i32); # [wasm_bindgen (method , structural , js_class = "TreeBoxObject" , js_name = rowCountChanged)] #[doc = "The `rowCountChanged()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/rowCountChanged)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] pub fn row_count_changed(this: &TreeBoxObject, index: i32, count: i32); # [wasm_bindgen (method , structural , js_class = "TreeBoxObject" , js_name = scrollByLines)] #[doc = "The `scrollByLines()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/scrollByLines)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] pub fn scroll_by_lines(this: &TreeBoxObject, num_lines: i32); # [wasm_bindgen (method , structural , js_class = "TreeBoxObject" , js_name = scrollByPages)] #[doc = "The `scrollByPages()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/scrollByPages)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] pub fn scroll_by_pages(this: &TreeBoxObject, num_pages: i32); # [wasm_bindgen (method , structural , js_class = "TreeBoxObject" , js_name = scrollToRow)] #[doc = "The `scrollToRow()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/scrollToRow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] pub fn scroll_to_row(this: &TreeBoxObject, index: i32); } web-sys-0.3.55/src/features/gen_TreeCellInfo.rs000064400000000000000000000036400072674642500174610ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = TreeCellInfo)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TreeCellInfo` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeCellInfo`*"] pub type TreeCellInfo; } impl TreeCellInfo { #[doc = "Construct a new `TreeCellInfo`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeCellInfo`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `childElt` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeCellInfo`*"] pub fn child_elt(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("childElt"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `row` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeCellInfo`*"] pub fn row(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("row"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for TreeCellInfo { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_TreeView.rs000064400000000000000000000216410072674642500167010ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = TreeView , typescript_type = "TreeView")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TreeView` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeView)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeView`*"] pub type TreeView; # [wasm_bindgen (structural , method , getter , js_class = "TreeView" , js_name = rowCount)] #[doc = "Getter for the `rowCount` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeView/rowCount)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeView`*"] pub fn row_count(this: &TreeView) -> i32; #[cfg(feature = "DataTransfer")] # [wasm_bindgen (catch , method , structural , js_class = "TreeView" , js_name = canDrop)] #[doc = "The `canDrop()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeView/canDrop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransfer`, `TreeView`*"] pub fn can_drop( this: &TreeView, row: i32, orientation: i32, data_transfer: Option<&DataTransfer>, ) -> Result; #[cfg(feature = "DataTransfer")] # [wasm_bindgen (catch , method , structural , js_class = "TreeView" , js_name = drop)] #[doc = "The `drop()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeView/drop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransfer`, `TreeView`*"] pub fn drop( this: &TreeView, row: i32, orientation: i32, data_transfer: Option<&DataTransfer>, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "TreeView" , js_name = getLevel)] #[doc = "The `getLevel()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeView/getLevel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeView`*"] pub fn get_level(this: &TreeView, row: i32) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "TreeView" , js_name = getParentIndex)] #[doc = "The `getParentIndex()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeView/getParentIndex)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeView`*"] pub fn get_parent_index(this: &TreeView, row: i32) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "TreeView" , js_name = getRowProperties)] #[doc = "The `getRowProperties()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeView/getRowProperties)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeView`*"] pub fn get_row_properties(this: &TreeView, row: i32) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "TreeView" , js_name = hasNextSibling)] #[doc = "The `hasNextSibling()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeView/hasNextSibling)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeView`*"] pub fn has_next_sibling(this: &TreeView, row: i32, after_index: i32) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "TreeView" , js_name = isContainer)] #[doc = "The `isContainer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeView/isContainer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeView`*"] pub fn is_container(this: &TreeView, row: i32) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "TreeView" , js_name = isContainerEmpty)] #[doc = "The `isContainerEmpty()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeView/isContainerEmpty)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeView`*"] pub fn is_container_empty(this: &TreeView, row: i32) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "TreeView" , js_name = isContainerOpen)] #[doc = "The `isContainerOpen()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeView/isContainerOpen)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeView`*"] pub fn is_container_open(this: &TreeView, row: i32) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "TreeView" , js_name = isSeparator)] #[doc = "The `isSeparator()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeView/isSeparator)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeView`*"] pub fn is_separator(this: &TreeView, row: i32) -> Result; # [wasm_bindgen (method , structural , js_class = "TreeView" , js_name = isSorted)] #[doc = "The `isSorted()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeView/isSorted)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeView`*"] pub fn is_sorted(this: &TreeView) -> bool; # [wasm_bindgen (method , structural , js_class = "TreeView" , js_name = performAction)] #[doc = "The `performAction()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeView/performAction)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeView`*"] pub fn perform_action(this: &TreeView, action: &str); # [wasm_bindgen (method , structural , js_class = "TreeView" , js_name = performActionOnRow)] #[doc = "The `performActionOnRow()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeView/performActionOnRow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeView`*"] pub fn perform_action_on_row(this: &TreeView, action: &str, row: i32); # [wasm_bindgen (method , structural , js_class = "TreeView" , js_name = selectionChanged)] #[doc = "The `selectionChanged()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeView/selectionChanged)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeView`*"] pub fn selection_changed(this: &TreeView); #[cfg(feature = "TreeBoxObject")] # [wasm_bindgen (catch , method , structural , js_class = "TreeView" , js_name = setTree)] #[doc = "The `setTree()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeView/setTree)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`, `TreeView`*"] pub fn set_tree(this: &TreeView, tree: Option<&TreeBoxObject>) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "TreeView" , js_name = toggleOpenState)] #[doc = "The `toggleOpenState()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeView/toggleOpenState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeView`*"] pub fn toggle_open_state(this: &TreeView, row: i32) -> Result<(), JsValue>; } impl TreeView { #[doc = "The `TreeView.DROP_BEFORE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeView`*"] pub const DROP_BEFORE: i16 = -1i64 as i16; #[doc = "The `TreeView.DROP_ON` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeView`*"] pub const DROP_ON: i16 = 0i64 as i16; #[doc = "The `TreeView.DROP_AFTER` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeView`*"] pub const DROP_AFTER: i16 = 1u64 as i16; } web-sys-0.3.55/src/features/gen_TreeWalker.rs000064400000000000000000000143470072674642500172210ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = TreeWalker , typescript_type = "TreeWalker")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TreeWalker` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeWalker`*"] pub type TreeWalker; #[cfg(feature = "Node")] # [wasm_bindgen (structural , method , getter , js_class = "TreeWalker" , js_name = root)] #[doc = "Getter for the `root` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker/root)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `TreeWalker`*"] pub fn root(this: &TreeWalker) -> Node; # [wasm_bindgen (structural , method , getter , js_class = "TreeWalker" , js_name = whatToShow)] #[doc = "Getter for the `whatToShow` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker/whatToShow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeWalker`*"] pub fn what_to_show(this: &TreeWalker) -> u32; #[cfg(feature = "NodeFilter")] # [wasm_bindgen (structural , method , getter , js_class = "TreeWalker" , js_name = filter)] #[doc = "Getter for the `filter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker/filter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NodeFilter`, `TreeWalker`*"] pub fn filter(this: &TreeWalker) -> Option; #[cfg(feature = "Node")] # [wasm_bindgen (structural , method , getter , js_class = "TreeWalker" , js_name = currentNode)] #[doc = "Getter for the `currentNode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker/currentNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `TreeWalker`*"] pub fn current_node(this: &TreeWalker) -> Node; #[cfg(feature = "Node")] # [wasm_bindgen (structural , method , setter , js_class = "TreeWalker" , js_name = currentNode)] #[doc = "Setter for the `currentNode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker/currentNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `TreeWalker`*"] pub fn set_current_node(this: &TreeWalker, value: &Node); #[cfg(feature = "Node")] # [wasm_bindgen (catch , method , structural , js_class = "TreeWalker" , js_name = firstChild)] #[doc = "The `firstChild()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker/firstChild)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `TreeWalker`*"] pub fn first_child(this: &TreeWalker) -> Result, JsValue>; #[cfg(feature = "Node")] # [wasm_bindgen (catch , method , structural , js_class = "TreeWalker" , js_name = lastChild)] #[doc = "The `lastChild()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker/lastChild)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `TreeWalker`*"] pub fn last_child(this: &TreeWalker) -> Result, JsValue>; #[cfg(feature = "Node")] # [wasm_bindgen (catch , method , structural , js_class = "TreeWalker" , js_name = nextNode)] #[doc = "The `nextNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker/nextNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `TreeWalker`*"] pub fn next_node(this: &TreeWalker) -> Result, JsValue>; #[cfg(feature = "Node")] # [wasm_bindgen (catch , method , structural , js_class = "TreeWalker" , js_name = nextSibling)] #[doc = "The `nextSibling()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker/nextSibling)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `TreeWalker`*"] pub fn next_sibling(this: &TreeWalker) -> Result, JsValue>; #[cfg(feature = "Node")] # [wasm_bindgen (catch , method , structural , js_class = "TreeWalker" , js_name = parentNode)] #[doc = "The `parentNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker/parentNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `TreeWalker`*"] pub fn parent_node(this: &TreeWalker) -> Result, JsValue>; #[cfg(feature = "Node")] # [wasm_bindgen (catch , method , structural , js_class = "TreeWalker" , js_name = previousNode)] #[doc = "The `previousNode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker/previousNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `TreeWalker`*"] pub fn previous_node(this: &TreeWalker) -> Result, JsValue>; #[cfg(feature = "Node")] # [wasm_bindgen (catch , method , structural , js_class = "TreeWalker" , js_name = previousSibling)] #[doc = "The `previousSibling()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker/previousSibling)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `TreeWalker`*"] pub fn previous_sibling(this: &TreeWalker) -> Result, JsValue>; } web-sys-0.3.55/src/features/gen_U2f.rs000064400000000000000000000077400072674642500156070ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = U2F , typescript_type = "U2F")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `U2f` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/U2F)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `U2f`*"] pub type U2f; # [wasm_bindgen (catch , method , structural , js_class = "U2F" , js_name = register)] #[doc = "The `register()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/U2F/register)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `U2f`*"] pub fn register( this: &U2f, app_id: &str, register_requests: &::wasm_bindgen::JsValue, registered_keys: &::wasm_bindgen::JsValue, callback: &::js_sys::Function, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "U2F" , js_name = register)] #[doc = "The `register()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/U2F/register)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `U2f`*"] pub fn register_with_opt_timeout_seconds( this: &U2f, app_id: &str, register_requests: &::wasm_bindgen::JsValue, registered_keys: &::wasm_bindgen::JsValue, callback: &::js_sys::Function, opt_timeout_seconds: Option, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "U2F" , js_name = sign)] #[doc = "The `sign()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/U2F/sign)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `U2f`*"] pub fn sign( this: &U2f, app_id: &str, challenge: &str, registered_keys: &::wasm_bindgen::JsValue, callback: &::js_sys::Function, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "U2F" , js_name = sign)] #[doc = "The `sign()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/U2F/sign)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `U2f`*"] pub fn sign_with_opt_timeout_seconds( this: &U2f, app_id: &str, challenge: &str, registered_keys: &::wasm_bindgen::JsValue, callback: &::js_sys::Function, opt_timeout_seconds: Option, ) -> Result<(), JsValue>; } impl U2f { #[doc = "The `U2F.OK` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `U2f`*"] pub const OK: u16 = 0i64 as u16; #[doc = "The `U2F.OTHER_ERROR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `U2f`*"] pub const OTHER_ERROR: u16 = 1u64 as u16; #[doc = "The `U2F.BAD_REQUEST` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `U2f`*"] pub const BAD_REQUEST: u16 = 2u64 as u16; #[doc = "The `U2F.CONFIGURATION_UNSUPPORTED` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `U2f`*"] pub const CONFIGURATION_UNSUPPORTED: u16 = 3u64 as u16; #[doc = "The `U2F.DEVICE_INELIGIBLE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `U2f`*"] pub const DEVICE_INELIGIBLE: u16 = 4u64 as u16; #[doc = "The `U2F.TIMEOUT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `U2f`*"] pub const TIMEOUT: u16 = 5u64 as u16; } web-sys-0.3.55/src/features/gen_U2fClientData.rs000064400000000000000000000047170072674642500175410ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = U2FClientData)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `U2fClientData` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `U2fClientData`*"] pub type U2fClientData; } impl U2fClientData { #[doc = "Construct a new `U2fClientData`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `U2fClientData`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `challenge` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `U2fClientData`*"] pub fn challenge(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("challenge"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `origin` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `U2fClientData`*"] pub fn origin(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("origin"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `typ` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `U2fClientData`*"] pub fn typ(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("typ"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for U2fClientData { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_UdpMessageEventInit.rs000064400000000000000000000105320072674642500210270ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = UDPMessageEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UdpMessageEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UdpMessageEventInit`*"] pub type UdpMessageEventInit; } impl UdpMessageEventInit { #[doc = "Construct a new `UdpMessageEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UdpMessageEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UdpMessageEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UdpMessageEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UdpMessageEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `data` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UdpMessageEventInit`*"] pub fn data(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("data"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `remoteAddress` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UdpMessageEventInit`*"] pub fn remote_address(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("remoteAddress"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `remotePort` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UdpMessageEventInit`*"] pub fn remote_port(&mut self, val: u16) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("remotePort"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for UdpMessageEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_UdpOptions.rs000064400000000000000000000104350072674642500172520ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = UDPOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UdpOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UdpOptions`*"] pub type UdpOptions; } impl UdpOptions { #[doc = "Construct a new `UdpOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UdpOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `addressReuse` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UdpOptions`*"] pub fn address_reuse(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("addressReuse"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `localAddress` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UdpOptions`*"] pub fn local_address(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("localAddress"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `localPort` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UdpOptions`*"] pub fn local_port(&mut self, val: u16) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("localPort"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `loopback` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UdpOptions`*"] pub fn loopback(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("loopback"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `remoteAddress` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UdpOptions`*"] pub fn remote_address(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("remoteAddress"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `remotePort` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UdpOptions`*"] pub fn remote_port(&mut self, val: u16) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("remotePort"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for UdpOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_UiEvent.rs000064400000000000000000000205420072674642500165250ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = UIEvent , typescript_type = "UIEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UiEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UiEvent`*"] pub type UiEvent; #[cfg(feature = "Window")] # [wasm_bindgen (structural , method , getter , js_class = "UIEvent" , js_name = view)] #[doc = "Getter for the `view` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/view)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UiEvent`, `Window`*"] pub fn view(this: &UiEvent) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "UIEvent" , js_name = detail)] #[doc = "Getter for the `detail` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/detail)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UiEvent`*"] pub fn detail(this: &UiEvent) -> i32; # [wasm_bindgen (structural , method , getter , js_class = "UIEvent" , js_name = layerX)] #[doc = "Getter for the `layerX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/layerX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UiEvent`*"] pub fn layer_x(this: &UiEvent) -> i32; # [wasm_bindgen (structural , method , getter , js_class = "UIEvent" , js_name = layerY)] #[doc = "Getter for the `layerY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/layerY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UiEvent`*"] pub fn layer_y(this: &UiEvent) -> i32; # [wasm_bindgen (structural , method , getter , js_class = "UIEvent" , js_name = pageX)] #[doc = "Getter for the `pageX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/pageX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UiEvent`*"] pub fn page_x(this: &UiEvent) -> i32; # [wasm_bindgen (structural , method , getter , js_class = "UIEvent" , js_name = pageY)] #[doc = "Getter for the `pageY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/pageY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UiEvent`*"] pub fn page_y(this: &UiEvent) -> i32; # [wasm_bindgen (structural , method , getter , js_class = "UIEvent" , js_name = which)] #[doc = "Getter for the `which` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/which)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UiEvent`*"] pub fn which(this: &UiEvent) -> u32; #[cfg(feature = "Node")] # [wasm_bindgen (structural , method , getter , js_class = "UIEvent" , js_name = rangeParent)] #[doc = "Getter for the `rangeParent` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/rangeParent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `UiEvent`*"] pub fn range_parent(this: &UiEvent) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "UIEvent" , js_name = rangeOffset)] #[doc = "Getter for the `rangeOffset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/rangeOffset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UiEvent`*"] pub fn range_offset(this: &UiEvent) -> i32; #[wasm_bindgen(catch, constructor, js_class = "UIEvent")] #[doc = "The `new UiEvent(..)` constructor, creating a new instance of `UiEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/UIEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UiEvent`*"] pub fn new(type_: &str) -> Result; #[cfg(feature = "UiEventInit")] #[wasm_bindgen(catch, constructor, js_class = "UIEvent")] #[doc = "The `new UiEvent(..)` constructor, creating a new instance of `UiEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/UIEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UiEvent`, `UiEventInit`*"] pub fn new_with_event_init_dict( type_: &str, event_init_dict: &UiEventInit, ) -> Result; # [wasm_bindgen (method , structural , js_class = "UIEvent" , js_name = initUIEvent)] #[doc = "The `initUIEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/initUIEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UiEvent`*"] pub fn init_ui_event(this: &UiEvent, a_type: &str); # [wasm_bindgen (method , structural , js_class = "UIEvent" , js_name = initUIEvent)] #[doc = "The `initUIEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/initUIEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UiEvent`*"] pub fn init_ui_event_with_a_can_bubble(this: &UiEvent, a_type: &str, a_can_bubble: bool); # [wasm_bindgen (method , structural , js_class = "UIEvent" , js_name = initUIEvent)] #[doc = "The `initUIEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/initUIEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UiEvent`*"] pub fn init_ui_event_with_a_can_bubble_and_a_cancelable( this: &UiEvent, a_type: &str, a_can_bubble: bool, a_cancelable: bool, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "UIEvent" , js_name = initUIEvent)] #[doc = "The `initUIEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/initUIEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UiEvent`, `Window`*"] pub fn init_ui_event_with_a_can_bubble_and_a_cancelable_and_a_view( this: &UiEvent, a_type: &str, a_can_bubble: bool, a_cancelable: bool, a_view: Option<&Window>, ); #[cfg(feature = "Window")] # [wasm_bindgen (method , structural , js_class = "UIEvent" , js_name = initUIEvent)] #[doc = "The `initUIEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/initUIEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UiEvent`, `Window`*"] pub fn init_ui_event_with_a_can_bubble_and_a_cancelable_and_a_view_and_a_detail( this: &UiEvent, a_type: &str, a_can_bubble: bool, a_cancelable: bool, a_view: Option<&Window>, a_detail: i32, ); } impl UiEvent { #[doc = "The `UIEvent.SCROLL_PAGE_UP` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UiEvent`*"] pub const SCROLL_PAGE_UP: i32 = -32768i64 as i32; #[doc = "The `UIEvent.SCROLL_PAGE_DOWN` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UiEvent`*"] pub const SCROLL_PAGE_DOWN: i32 = 32768u64 as i32; } web-sys-0.3.55/src/features/gen_UiEventInit.rs000064400000000000000000000072010072674642500173460ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = UIEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UiEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UiEventInit`*"] pub type UiEventInit; } impl UiEventInit { #[doc = "Construct a new `UiEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UiEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UiEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UiEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UiEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `detail` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UiEventInit`*"] pub fn detail(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("detail"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "Window")] #[doc = "Change the `view` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UiEventInit`, `Window`*"] pub fn view(&mut self, val: Option<&Window>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("view"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for UiEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_Url.rs000064400000000000000000000277550072674642500157250ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = URL , typescript_type = "URL")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Url` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Url`*"] pub type Url; # [wasm_bindgen (structural , method , getter , js_class = "URL" , js_name = href)] #[doc = "Getter for the `href` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/href)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Url`*"] pub fn href(this: &Url) -> String; # [wasm_bindgen (structural , method , setter , js_class = "URL" , js_name = href)] #[doc = "Setter for the `href` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/href)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Url`*"] pub fn set_href(this: &Url, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "URL" , js_name = origin)] #[doc = "Getter for the `origin` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/origin)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Url`*"] pub fn origin(this: &Url) -> String; # [wasm_bindgen (structural , method , getter , js_class = "URL" , js_name = protocol)] #[doc = "Getter for the `protocol` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/protocol)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Url`*"] pub fn protocol(this: &Url) -> String; # [wasm_bindgen (structural , method , setter , js_class = "URL" , js_name = protocol)] #[doc = "Setter for the `protocol` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/protocol)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Url`*"] pub fn set_protocol(this: &Url, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "URL" , js_name = username)] #[doc = "Getter for the `username` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/username)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Url`*"] pub fn username(this: &Url) -> String; # [wasm_bindgen (structural , method , setter , js_class = "URL" , js_name = username)] #[doc = "Setter for the `username` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/username)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Url`*"] pub fn set_username(this: &Url, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "URL" , js_name = password)] #[doc = "Getter for the `password` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/password)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Url`*"] pub fn password(this: &Url) -> String; # [wasm_bindgen (structural , method , setter , js_class = "URL" , js_name = password)] #[doc = "Setter for the `password` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/password)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Url`*"] pub fn set_password(this: &Url, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "URL" , js_name = host)] #[doc = "Getter for the `host` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/host)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Url`*"] pub fn host(this: &Url) -> String; # [wasm_bindgen (structural , method , setter , js_class = "URL" , js_name = host)] #[doc = "Setter for the `host` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/host)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Url`*"] pub fn set_host(this: &Url, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "URL" , js_name = hostname)] #[doc = "Getter for the `hostname` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/hostname)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Url`*"] pub fn hostname(this: &Url) -> String; # [wasm_bindgen (structural , method , setter , js_class = "URL" , js_name = hostname)] #[doc = "Setter for the `hostname` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/hostname)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Url`*"] pub fn set_hostname(this: &Url, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "URL" , js_name = port)] #[doc = "Getter for the `port` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/port)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Url`*"] pub fn port(this: &Url) -> String; # [wasm_bindgen (structural , method , setter , js_class = "URL" , js_name = port)] #[doc = "Setter for the `port` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/port)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Url`*"] pub fn set_port(this: &Url, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "URL" , js_name = pathname)] #[doc = "Getter for the `pathname` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/pathname)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Url`*"] pub fn pathname(this: &Url) -> String; # [wasm_bindgen (structural , method , setter , js_class = "URL" , js_name = pathname)] #[doc = "Setter for the `pathname` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/pathname)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Url`*"] pub fn set_pathname(this: &Url, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "URL" , js_name = search)] #[doc = "Getter for the `search` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/search)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Url`*"] pub fn search(this: &Url) -> String; # [wasm_bindgen (structural , method , setter , js_class = "URL" , js_name = search)] #[doc = "Setter for the `search` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/search)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Url`*"] pub fn set_search(this: &Url, value: &str); #[cfg(feature = "UrlSearchParams")] # [wasm_bindgen (structural , method , getter , js_class = "URL" , js_name = searchParams)] #[doc = "Getter for the `searchParams` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/searchParams)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Url`, `UrlSearchParams`*"] pub fn search_params(this: &Url) -> UrlSearchParams; # [wasm_bindgen (structural , method , getter , js_class = "URL" , js_name = hash)] #[doc = "Getter for the `hash` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/hash)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Url`*"] pub fn hash(this: &Url) -> String; # [wasm_bindgen (structural , method , setter , js_class = "URL" , js_name = hash)] #[doc = "Setter for the `hash` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/hash)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Url`*"] pub fn set_hash(this: &Url, value: &str); #[wasm_bindgen(catch, constructor, js_class = "URL")] #[doc = "The `new Url(..)` constructor, creating a new instance of `Url`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/URL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Url`*"] pub fn new(url: &str) -> Result; #[wasm_bindgen(catch, constructor, js_class = "URL")] #[doc = "The `new Url(..)` constructor, creating a new instance of `Url`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/URL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Url`*"] pub fn new_with_base(url: &str, base: &str) -> Result; #[cfg(feature = "Blob")] # [wasm_bindgen (catch , static_method_of = Url , js_class = "URL" , js_name = createObjectURL)] #[doc = "The `createObjectURL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`, `Url`*"] pub fn create_object_url_with_blob(blob: &Blob) -> Result; #[cfg(feature = "MediaSource")] # [wasm_bindgen (catch , static_method_of = Url , js_class = "URL" , js_name = createObjectURL)] #[doc = "The `createObjectURL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSource`, `Url`*"] pub fn create_object_url_with_source(source: &MediaSource) -> Result; # [wasm_bindgen (catch , static_method_of = Url , js_class = "URL" , js_name = revokeObjectURL)] #[doc = "The `revokeObjectURL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/revokeObjectURL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Url`*"] pub fn revoke_object_url(url: &str) -> Result<(), JsValue>; # [wasm_bindgen (method , structural , js_class = "URL" , js_name = toJSON)] #[doc = "The `toJSON()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/toJSON)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Url`*"] pub fn to_json(this: &Url) -> String; } web-sys-0.3.55/src/features/gen_UrlSearchParams.rs000064400000000000000000000117660072674642500202120ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = URLSearchParams , typescript_type = "URLSearchParams")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UrlSearchParams` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"] pub type UrlSearchParams; #[wasm_bindgen(catch, constructor, js_class = "URLSearchParams")] #[doc = "The `new UrlSearchParams(..)` constructor, creating a new instance of `UrlSearchParams`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/URLSearchParams)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"] pub fn new() -> Result; #[wasm_bindgen(catch, constructor, js_class = "URLSearchParams")] #[doc = "The `new UrlSearchParams(..)` constructor, creating a new instance of `UrlSearchParams`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/URLSearchParams)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"] pub fn new_with_str_sequence_sequence( init: &::wasm_bindgen::JsValue, ) -> Result; #[wasm_bindgen(catch, constructor, js_class = "URLSearchParams")] #[doc = "The `new UrlSearchParams(..)` constructor, creating a new instance of `UrlSearchParams`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/URLSearchParams)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"] pub fn new_with_str(init: &str) -> Result; # [wasm_bindgen (method , structural , js_class = "URLSearchParams" , js_name = append)] #[doc = "The `append()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/append)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"] pub fn append(this: &UrlSearchParams, name: &str, value: &str); # [wasm_bindgen (method , structural , js_class = "URLSearchParams" , js_name = delete)] #[doc = "The `delete()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/delete)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"] pub fn delete(this: &UrlSearchParams, name: &str); # [wasm_bindgen (method , structural , js_class = "URLSearchParams" , js_name = get)] #[doc = "The `get()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/get)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"] pub fn get(this: &UrlSearchParams, name: &str) -> Option; # [wasm_bindgen (method , structural , js_class = "URLSearchParams" , js_name = getAll)] #[doc = "The `getAll()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/getAll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"] pub fn get_all(this: &UrlSearchParams, name: &str) -> ::js_sys::Array; # [wasm_bindgen (method , structural , js_class = "URLSearchParams" , js_name = has)] #[doc = "The `has()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/has)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"] pub fn has(this: &UrlSearchParams, name: &str) -> bool; # [wasm_bindgen (method , structural , js_class = "URLSearchParams" , js_name = set)] #[doc = "The `set()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/set)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"] pub fn set(this: &UrlSearchParams, name: &str, value: &str); # [wasm_bindgen (catch , method , structural , js_class = "URLSearchParams" , js_name = sort)] #[doc = "The `sort()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/sort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"] pub fn sort(this: &UrlSearchParams) -> Result<(), JsValue>; } web-sys-0.3.55/src/features/gen_Usb.rs000064400000000000000000000121160072674642500156750ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn request_device(this: &Usb, options: &UsbDeviceRequestOptions) -> ::js_sys::Promise; } web-sys-0.3.55/src/features/gen_UsbAlternateInterface.rs000064400000000000000000000130020072674642500213510ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn interface_name(this: &UsbAlternateInterface) -> Option; #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn endpoints(this: &UsbAlternateInterface) -> ::js_sys::Array; } web-sys-0.3.55/src/features/gen_UsbConfiguration.rs000064400000000000000000000061630072674642500204320ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn configuration_name(this: &UsbConfiguration) -> Option; #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn interfaces(this: &UsbConfiguration) -> ::js_sys::Array; } web-sys-0.3.55/src/features/gen_UsbConnectionEvent.rs000064400000000000000000000032140072674642500207160ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn device(this: &UsbConnectionEvent) -> UsbDevice; } web-sys-0.3.55/src/features/gen_UsbConnectionEventInit.rs000064400000000000000000000115670072674642500215540ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type UsbConnectionEventInit; } #[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://rustwasm.github.io/docs/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.device(device); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn device(&mut self, val: &UsbDevice) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("device"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_UsbControlTransferParameters.rs000064400000000000000000000141420072674642500227700ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type UsbControlTransferParameters; } #[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://rustwasm.github.io/docs/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.index(index); ret.recipient(recipient); ret.request(request); ret.request_type(request_type); ret.value(value); ret } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn index(&mut self, val: u16) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("index"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn recipient(&mut self, val: UsbRecipient) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("recipient"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn request(&mut self, val: u8) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("request"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn request_type(&mut self, val: UsbRequestType) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("requestType"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn value(&mut self, val: u16) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("value"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_UsbDevice.rs000064400000000000000000000667000072674642500170250ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn manufacturer_name(this: &UsbDevice) -> Option; #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn product_name(this: &UsbDevice) -> Option; #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn serial_number(this: &UsbDevice) -> Option; #[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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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 (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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn control_transfer_out_with_buffer_source( this: &UsbDevice, setup: &UsbControlTransferParameters, data: &::js_sys::Object, ) -> ::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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn control_transfer_out_with_u8_array( this: &UsbDevice, setup: &UsbControlTransferParameters, data: &mut [u8], ) -> ::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://rustwasm.github.io/docs/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 (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://rustwasm.github.io/docs/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, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn isochronous_transfer_out_with_u8_array( this: &UsbDevice, endpoint_number: u8, data: &mut [u8], packet_lengths: &::wasm_bindgen::JsValue, ) -> ::js_sys::Promise; #[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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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 (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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn transfer_out_with_buffer_source( this: &UsbDevice, endpoint_number: u8, data: &::js_sys::Object, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn transfer_out_with_u8_array( this: &UsbDevice, endpoint_number: u8, data: &mut [u8], ) -> ::js_sys::Promise; } web-sys-0.3.55/src/features/gen_UsbDeviceFilter.rs000064400000000000000000000150460072674642500201700ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type UsbDeviceFilter; } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn class_code(&mut self, val: u8) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("classCode"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn product_id(&mut self, val: u16) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("productId"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn protocol_code(&mut self, val: u8) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("protocolCode"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn serial_number(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("serialNumber"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn subclass_code(&mut self, val: u8) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("subclassCode"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn vendor_id(&mut self, val: u16) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("vendorId"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } #[cfg(web_sys_unstable_apis)] impl Default for UsbDeviceFilter { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_UsbDeviceRequestOptions.rs000064400000000000000000000044420072674642500217450ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type UsbDeviceRequestOptions; } #[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://rustwasm.github.io/docs/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.filters(filters); ret } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn filters(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("filters"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_UsbDirection.rs000064400000000000000000000011020072674642500175270ustar 00000000000000#![allow(unused_imports)] 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum UsbDirection { In = "in", Out = "out", } web-sys-0.3.55/src/features/gen_UsbEndpoint.rs000064400000000000000000000074330072674642500174040ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn packet_size(this: &UsbEndpoint) -> u32; } web-sys-0.3.55/src/features/gen_UsbEndpointType.rs000064400000000000000000000011740072674642500202420ustar 00000000000000#![allow(unused_imports)] 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://rustwasm.github.io/docs/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.55/src/features/gen_UsbInTransferResult.rs000064400000000000000000000046260072674642500210770ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn status(this: &UsbInTransferResult) -> UsbTransferStatus; } web-sys-0.3.55/src/features/gen_UsbInterface.rs000064400000000000000000000074400072674642500175220ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn claimed(this: &UsbInterface) -> bool; } web-sys-0.3.55/src/features/gen_UsbIsochronousInTransferPacket.rs000064400000000000000000000050600072674642500232550ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn status(this: &UsbIsochronousInTransferPacket) -> UsbTransferStatus; } web-sys-0.3.55/src/features/gen_UsbIsochronousInTransferResult.rs000064400000000000000000000047630072674642500233350ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn packets(this: &UsbIsochronousInTransferResult) -> ::js_sys::Array; } web-sys-0.3.55/src/features/gen_UsbIsochronousOutTransferPacket.rs000064400000000000000000000051100072674642500234520ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn status(this: &UsbIsochronousOutTransferPacket) -> UsbTransferStatus; } web-sys-0.3.55/src/features/gen_UsbIsochronousOutTransferResult.rs000064400000000000000000000033270072674642500235310ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn packets(this: &UsbIsochronousOutTransferResult) -> ::js_sys::Array; } web-sys-0.3.55/src/features/gen_UsbOutTransferResult.rs000064400000000000000000000046560072674642500213030ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn status(this: &UsbOutTransferResult) -> UsbTransferStatus; } web-sys-0.3.55/src/features/gen_UsbPermissionDescriptor.rs000064400000000000000000000062740072674642500220150ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type UsbPermissionDescriptor; } #[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://rustwasm.github.io/docs/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.name(name); ret } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn name(&mut self, val: PermissionName) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn filters(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("filters"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_UsbPermissionResult.rs000064400000000000000000000046410072674642500211510ustar 00000000000000#![allow(unused_imports)] 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_devices(this: &UsbPermissionResult, value: &::wasm_bindgen::JsValue); } web-sys-0.3.55/src/features/gen_UsbPermissionStorage.rs000064400000000000000000000045360072674642500213020ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type UsbPermissionStorage; } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn allowed_devices(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("allowedDevices"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } #[cfg(web_sys_unstable_apis)] impl Default for UsbPermissionStorage { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_UsbRecipient.rs000064400000000000000000000012060072674642500175360ustar 00000000000000#![allow(unused_imports)] 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://rustwasm.github.io/docs/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.55/src/features/gen_UsbRequestType.rs000064400000000000000000000011570072674642500201130ustar 00000000000000#![allow(unused_imports)] 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://rustwasm.github.io/docs/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.55/src/features/gen_UsbTransferStatus.rs000064400000000000000000000011540072674642500206060ustar 00000000000000#![allow(unused_imports)] 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://rustwasm.github.io/docs/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.55/src/features/gen_UserProximityEvent.rs000064400000000000000000000042750072674642500210200ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = UserProximityEvent , typescript_type = "UserProximityEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UserProximityEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UserProximityEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UserProximityEvent`*"] pub type UserProximityEvent; # [wasm_bindgen (structural , method , getter , js_class = "UserProximityEvent" , js_name = near)] #[doc = "Getter for the `near` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UserProximityEvent/near)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UserProximityEvent`*"] pub fn near(this: &UserProximityEvent) -> bool; #[wasm_bindgen(catch, constructor, js_class = "UserProximityEvent")] #[doc = "The `new UserProximityEvent(..)` constructor, creating a new instance of `UserProximityEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UserProximityEvent/UserProximityEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UserProximityEvent`*"] pub fn new(type_: &str) -> Result; #[cfg(feature = "UserProximityEventInit")] #[wasm_bindgen(catch, constructor, js_class = "UserProximityEvent")] #[doc = "The `new UserProximityEvent(..)` constructor, creating a new instance of `UserProximityEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UserProximityEvent/UserProximityEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UserProximityEvent`, `UserProximityEventInit`*"] pub fn new_with_event_init_dict( type_: &str, event_init_dict: &UserProximityEventInit, ) -> Result; } web-sys-0.3.55/src/features/gen_UserProximityEventInit.rs000064400000000000000000000062620072674642500216420ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = UserProximityEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UserProximityEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UserProximityEventInit`*"] pub type UserProximityEventInit; } impl UserProximityEventInit { #[doc = "Construct a new `UserProximityEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UserProximityEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UserProximityEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UserProximityEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UserProximityEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `near` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UserProximityEventInit`*"] pub fn near(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("near"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for UserProximityEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_UserVerificationRequirement.rs000064400000000000000000000006410072674642500226460ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `UserVerificationRequirement` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UserVerificationRequirement`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum UserVerificationRequirement { Required = "required", Preferred = "preferred", Discouraged = "discouraged", } web-sys-0.3.55/src/features/gen_ValidityState.rs000064400000000000000000000130420072674642500177310ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ValidityState , typescript_type = "ValidityState")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ValidityState` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ValidityState`*"] pub type ValidityState; # [wasm_bindgen (structural , method , getter , js_class = "ValidityState" , js_name = valueMissing)] #[doc = "Getter for the `valueMissing` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState/valueMissing)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ValidityState`*"] pub fn value_missing(this: &ValidityState) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "ValidityState" , js_name = typeMismatch)] #[doc = "Getter for the `typeMismatch` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState/typeMismatch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ValidityState`*"] pub fn type_mismatch(this: &ValidityState) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "ValidityState" , js_name = patternMismatch)] #[doc = "Getter for the `patternMismatch` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState/patternMismatch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ValidityState`*"] pub fn pattern_mismatch(this: &ValidityState) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "ValidityState" , js_name = tooLong)] #[doc = "Getter for the `tooLong` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState/tooLong)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ValidityState`*"] pub fn too_long(this: &ValidityState) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "ValidityState" , js_name = tooShort)] #[doc = "Getter for the `tooShort` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState/tooShort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ValidityState`*"] pub fn too_short(this: &ValidityState) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "ValidityState" , js_name = rangeUnderflow)] #[doc = "Getter for the `rangeUnderflow` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState/rangeUnderflow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ValidityState`*"] pub fn range_underflow(this: &ValidityState) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "ValidityState" , js_name = rangeOverflow)] #[doc = "Getter for the `rangeOverflow` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState/rangeOverflow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ValidityState`*"] pub fn range_overflow(this: &ValidityState) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "ValidityState" , js_name = stepMismatch)] #[doc = "Getter for the `stepMismatch` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState/stepMismatch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ValidityState`*"] pub fn step_mismatch(this: &ValidityState) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "ValidityState" , js_name = badInput)] #[doc = "Getter for the `badInput` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState/badInput)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ValidityState`*"] pub fn bad_input(this: &ValidityState) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "ValidityState" , js_name = customError)] #[doc = "Getter for the `customError` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState/customError)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ValidityState`*"] pub fn custom_error(this: &ValidityState) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "ValidityState" , js_name = valid)] #[doc = "Getter for the `valid` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState/valid)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ValidityState`*"] pub fn valid(this: &ValidityState) -> bool; } web-sys-0.3.55/src/features/gen_ValueEvent.rs000064400000000000000000000030270072674642500172230ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn value(this: &ValueEvent) -> ::wasm_bindgen::JsValue; } web-sys-0.3.55/src/features/gen_ValueEventInit.rs000064400000000000000000000114110072674642500200430ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type ValueEventInit; } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn value(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("value"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } #[cfg(web_sys_unstable_apis)] impl Default for ValueEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_VideoConfiguration.rs000064400000000000000000000072600072674642500207460ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VideoConfiguration)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VideoConfiguration` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoConfiguration`*"] pub type VideoConfiguration; } impl VideoConfiguration { #[doc = "Construct a new `VideoConfiguration`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoConfiguration`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bitrate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoConfiguration`*"] pub fn bitrate(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bitrate"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `contentType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoConfiguration`*"] pub fn content_type(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("contentType"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `framerate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoConfiguration`*"] pub fn framerate(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("framerate"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `height` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoConfiguration`*"] pub fn height(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("height"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `width` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoConfiguration`*"] pub fn width(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("width"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for VideoConfiguration { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_VideoFacingModeEnum.rs000064400000000000000000000006140072674642500207540ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `VideoFacingModeEnum` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFacingModeEnum`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum VideoFacingModeEnum { User = "user", Environment = "environment", Left = "left", Right = "right", } web-sys-0.3.55/src/features/gen_VideoPlaybackQuality.rs000064400000000000000000000051460072674642500212370ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VideoPlaybackQuality , typescript_type = "VideoPlaybackQuality")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VideoPlaybackQuality` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoPlaybackQuality)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoPlaybackQuality`*"] pub type VideoPlaybackQuality; # [wasm_bindgen (structural , method , getter , js_class = "VideoPlaybackQuality" , js_name = creationTime)] #[doc = "Getter for the `creationTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoPlaybackQuality/creationTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoPlaybackQuality`*"] pub fn creation_time(this: &VideoPlaybackQuality) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "VideoPlaybackQuality" , js_name = totalVideoFrames)] #[doc = "Getter for the `totalVideoFrames` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoPlaybackQuality/totalVideoFrames)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoPlaybackQuality`*"] pub fn total_video_frames(this: &VideoPlaybackQuality) -> u32; # [wasm_bindgen (structural , method , getter , js_class = "VideoPlaybackQuality" , js_name = droppedVideoFrames)] #[doc = "Getter for the `droppedVideoFrames` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoPlaybackQuality/droppedVideoFrames)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoPlaybackQuality`*"] pub fn dropped_video_frames(this: &VideoPlaybackQuality) -> u32; # [wasm_bindgen (structural , method , getter , js_class = "VideoPlaybackQuality" , js_name = corruptedVideoFrames)] #[doc = "Getter for the `corruptedVideoFrames` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoPlaybackQuality/corruptedVideoFrames)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoPlaybackQuality`*"] pub fn corrupted_video_frames(this: &VideoPlaybackQuality) -> u32; } web-sys-0.3.55/src/features/gen_VideoStreamTrack.rs000064400000000000000000000011640072674642500203540ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = MediaStreamTrack , extends = EventTarget , extends = :: js_sys :: Object , js_name = VideoStreamTrack , typescript_type = "VideoStreamTrack")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VideoStreamTrack` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoStreamTrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoStreamTrack`*"] pub type VideoStreamTrack; } web-sys-0.3.55/src/features/gen_VideoTrack.rs000064400000000000000000000061160072674642500172020ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VideoTrack , typescript_type = "VideoTrack")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VideoTrack` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoTrack`*"] pub type VideoTrack; # [wasm_bindgen (structural , method , getter , js_class = "VideoTrack" , js_name = id)] #[doc = "Getter for the `id` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrack/id)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoTrack`*"] pub fn id(this: &VideoTrack) -> String; # [wasm_bindgen (structural , method , getter , js_class = "VideoTrack" , js_name = kind)] #[doc = "Getter for the `kind` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrack/kind)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoTrack`*"] pub fn kind(this: &VideoTrack) -> String; # [wasm_bindgen (structural , method , getter , js_class = "VideoTrack" , js_name = label)] #[doc = "Getter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrack/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoTrack`*"] pub fn label(this: &VideoTrack) -> String; # [wasm_bindgen (structural , method , getter , js_class = "VideoTrack" , js_name = language)] #[doc = "Getter for the `language` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrack/language)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoTrack`*"] pub fn language(this: &VideoTrack) -> String; # [wasm_bindgen (structural , method , getter , js_class = "VideoTrack" , js_name = selected)] #[doc = "Getter for the `selected` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrack/selected)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoTrack`*"] pub fn selected(this: &VideoTrack) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "VideoTrack" , js_name = selected)] #[doc = "Setter for the `selected` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrack/selected)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoTrack`*"] pub fn set_selected(this: &VideoTrack, value: bool); } web-sys-0.3.55/src/features/gen_VideoTrackList.rs000064400000000000000000000123770072674642500200440ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = VideoTrackList , typescript_type = "VideoTrackList")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VideoTrackList` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrackList)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoTrackList`*"] pub type VideoTrackList; # [wasm_bindgen (structural , method , getter , js_class = "VideoTrackList" , js_name = length)] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrackList/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoTrackList`*"] pub fn length(this: &VideoTrackList) -> u32; # [wasm_bindgen (structural , method , getter , js_class = "VideoTrackList" , js_name = selectedIndex)] #[doc = "Getter for the `selectedIndex` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrackList/selectedIndex)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoTrackList`*"] pub fn selected_index(this: &VideoTrackList) -> i32; # [wasm_bindgen (structural , method , getter , js_class = "VideoTrackList" , js_name = onchange)] #[doc = "Getter for the `onchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrackList/onchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoTrackList`*"] pub fn onchange(this: &VideoTrackList) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "VideoTrackList" , js_name = onchange)] #[doc = "Setter for the `onchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrackList/onchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoTrackList`*"] pub fn set_onchange(this: &VideoTrackList, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "VideoTrackList" , js_name = onaddtrack)] #[doc = "Getter for the `onaddtrack` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrackList/onaddtrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoTrackList`*"] pub fn onaddtrack(this: &VideoTrackList) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "VideoTrackList" , js_name = onaddtrack)] #[doc = "Setter for the `onaddtrack` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrackList/onaddtrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoTrackList`*"] pub fn set_onaddtrack(this: &VideoTrackList, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "VideoTrackList" , js_name = onremovetrack)] #[doc = "Getter for the `onremovetrack` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrackList/onremovetrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoTrackList`*"] pub fn onremovetrack(this: &VideoTrackList) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "VideoTrackList" , js_name = onremovetrack)] #[doc = "Setter for the `onremovetrack` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrackList/onremovetrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoTrackList`*"] pub fn set_onremovetrack(this: &VideoTrackList, value: Option<&::js_sys::Function>); #[cfg(feature = "VideoTrack")] # [wasm_bindgen (method , structural , js_class = "VideoTrackList" , js_name = getTrackById)] #[doc = "The `getTrackById()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrackList/getTrackById)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoTrack`, `VideoTrackList`*"] pub fn get_track_by_id(this: &VideoTrackList, id: &str) -> Option; #[cfg(feature = "VideoTrack")] #[wasm_bindgen(method, structural, js_class = "VideoTrackList", indexing_getter)] #[doc = "Indexing getter."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoTrack`, `VideoTrackList`*"] pub fn get(this: &VideoTrackList, index: u32) -> Option; } web-sys-0.3.55/src/features/gen_VisibilityState.rs000064400000000000000000000005240072674642500202740ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `VisibilityState` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VisibilityState`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum VisibilityState { Hidden = "hidden", Visible = "visible", } web-sys-0.3.55/src/features/gen_VoidCallback.rs000064400000000000000000000026550072674642500174710ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VoidCallback)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VoidCallback` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VoidCallback`*"] pub type VoidCallback; } impl VoidCallback { #[doc = "Construct a new `VoidCallback`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VoidCallback`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `handleEvent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VoidCallback`*"] pub fn handle_event(&mut self, val: &::js_sys::Function) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("handleEvent"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for VoidCallback { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_VrDisplay.rs000064400000000000000000000244300072674642500170630ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = VRDisplay , typescript_type = "VRDisplay")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VrDisplay` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"] pub type VrDisplay; # [wasm_bindgen (structural , method , getter , js_class = "VRDisplay" , js_name = isConnected)] #[doc = "Getter for the `isConnected` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/isConnected)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"] pub fn is_connected(this: &VrDisplay) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "VRDisplay" , js_name = isPresenting)] #[doc = "Getter for the `isPresenting` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/isPresenting)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"] pub fn is_presenting(this: &VrDisplay) -> bool; #[cfg(feature = "VrDisplayCapabilities")] # [wasm_bindgen (structural , method , getter , js_class = "VRDisplay" , js_name = capabilities)] #[doc = "Getter for the `capabilities` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/capabilities)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrDisplay`, `VrDisplayCapabilities`*"] pub fn capabilities(this: &VrDisplay) -> VrDisplayCapabilities; #[cfg(feature = "VrStageParameters")] # [wasm_bindgen (structural , method , getter , js_class = "VRDisplay" , js_name = stageParameters)] #[doc = "Getter for the `stageParameters` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/stageParameters)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrDisplay`, `VrStageParameters`*"] pub fn stage_parameters(this: &VrDisplay) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "VRDisplay" , js_name = displayId)] #[doc = "Getter for the `displayId` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/displayId)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"] pub fn display_id(this: &VrDisplay) -> u32; # [wasm_bindgen (structural , method , getter , js_class = "VRDisplay" , js_name = displayName)] #[doc = "Getter for the `displayName` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/displayName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"] pub fn display_name(this: &VrDisplay) -> String; # [wasm_bindgen (structural , method , getter , js_class = "VRDisplay" , js_name = depthNear)] #[doc = "Getter for the `depthNear` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/depthNear)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"] pub fn depth_near(this: &VrDisplay) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "VRDisplay" , js_name = depthNear)] #[doc = "Setter for the `depthNear` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/depthNear)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"] pub fn set_depth_near(this: &VrDisplay, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "VRDisplay" , js_name = depthFar)] #[doc = "Getter for the `depthFar` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/depthFar)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"] pub fn depth_far(this: &VrDisplay) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "VRDisplay" , js_name = depthFar)] #[doc = "Setter for the `depthFar` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/depthFar)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"] pub fn set_depth_far(this: &VrDisplay, value: f64); # [wasm_bindgen (catch , method , structural , js_class = "VRDisplay" , js_name = cancelAnimationFrame)] #[doc = "The `cancelAnimationFrame()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/cancelAnimationFrame)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"] pub fn cancel_animation_frame(this: &VrDisplay, handle: i32) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "VRDisplay" , js_name = exitPresent)] #[doc = "The `exitPresent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/exitPresent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"] pub fn exit_present(this: &VrDisplay) -> Result<::js_sys::Promise, JsValue>; #[cfg(all(feature = "VrEye", feature = "VrEyeParameters",))] # [wasm_bindgen (method , structural , js_class = "VRDisplay" , js_name = getEyeParameters)] #[doc = "The `getEyeParameters()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/getEyeParameters)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrDisplay`, `VrEye`, `VrEyeParameters`*"] pub fn get_eye_parameters(this: &VrDisplay, which_eye: VrEye) -> VrEyeParameters; #[cfg(feature = "VrFrameData")] # [wasm_bindgen (method , structural , js_class = "VRDisplay" , js_name = getFrameData)] #[doc = "The `getFrameData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/getFrameData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrDisplay`, `VrFrameData`*"] pub fn get_frame_data(this: &VrDisplay, frame_data: &VrFrameData) -> bool; # [wasm_bindgen (method , structural , js_class = "VRDisplay" , js_name = getLayers)] #[doc = "The `getLayers()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/getLayers)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"] pub fn get_layers(this: &VrDisplay) -> ::js_sys::Array; #[cfg(feature = "VrPose")] # [wasm_bindgen (method , structural , js_class = "VRDisplay" , js_name = getPose)] #[doc = "The `getPose()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/getPose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrDisplay`, `VrPose`*"] pub fn get_pose(this: &VrDisplay) -> VrPose; #[cfg(feature = "VrSubmitFrameResult")] # [wasm_bindgen (method , structural , js_class = "VRDisplay" , js_name = getSubmitFrameResult)] #[doc = "The `getSubmitFrameResult()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/getSubmitFrameResult)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrDisplay`, `VrSubmitFrameResult`*"] pub fn get_submit_frame_result(this: &VrDisplay, result: &VrSubmitFrameResult) -> bool; # [wasm_bindgen (catch , method , structural , js_class = "VRDisplay" , js_name = requestAnimationFrame)] #[doc = "The `requestAnimationFrame()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/requestAnimationFrame)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"] pub fn request_animation_frame( this: &VrDisplay, callback: &::js_sys::Function, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "VRDisplay" , js_name = requestPresent)] #[doc = "The `requestPresent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/requestPresent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"] pub fn request_present( this: &VrDisplay, layers: &::wasm_bindgen::JsValue, ) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (method , structural , js_class = "VRDisplay" , js_name = resetPose)] #[doc = "The `resetPose()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/resetPose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"] pub fn reset_pose(this: &VrDisplay); # [wasm_bindgen (method , structural , js_class = "VRDisplay" , js_name = submitFrame)] #[doc = "The `submitFrame()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/submitFrame)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"] pub fn submit_frame(this: &VrDisplay); } web-sys-0.3.55/src/features/gen_VrDisplayCapabilities.rs000064400000000000000000000060630072674642500213770ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VRDisplayCapabilities , typescript_type = "VRDisplayCapabilities")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VrDisplayCapabilities` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplayCapabilities)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrDisplayCapabilities`*"] pub type VrDisplayCapabilities; # [wasm_bindgen (structural , method , getter , js_class = "VRDisplayCapabilities" , js_name = hasPosition)] #[doc = "Getter for the `hasPosition` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplayCapabilities/hasPosition)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrDisplayCapabilities`*"] pub fn has_position(this: &VrDisplayCapabilities) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "VRDisplayCapabilities" , js_name = hasOrientation)] #[doc = "Getter for the `hasOrientation` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplayCapabilities/hasOrientation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrDisplayCapabilities`*"] pub fn has_orientation(this: &VrDisplayCapabilities) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "VRDisplayCapabilities" , js_name = hasExternalDisplay)] #[doc = "Getter for the `hasExternalDisplay` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplayCapabilities/hasExternalDisplay)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrDisplayCapabilities`*"] pub fn has_external_display(this: &VrDisplayCapabilities) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "VRDisplayCapabilities" , js_name = canPresent)] #[doc = "Getter for the `canPresent` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplayCapabilities/canPresent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrDisplayCapabilities`*"] pub fn can_present(this: &VrDisplayCapabilities) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "VRDisplayCapabilities" , js_name = maxLayers)] #[doc = "Getter for the `maxLayers` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplayCapabilities/maxLayers)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrDisplayCapabilities`*"] pub fn max_layers(this: &VrDisplayCapabilities) -> u32; } web-sys-0.3.55/src/features/gen_VrEye.rs000064400000000000000000000004560072674642500162020ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `VrEye` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrEye`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum VrEye { Left = "left", Right = "right", } web-sys-0.3.55/src/features/gen_VrEyeParameters.rs000064400000000000000000000047540072674642500202330ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VREyeParameters , typescript_type = "VREyeParameters")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VrEyeParameters` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VREyeParameters)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrEyeParameters`*"] pub type VrEyeParameters; # [wasm_bindgen (structural , catch , method , getter , js_class = "VREyeParameters" , js_name = offset)] #[doc = "Getter for the `offset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VREyeParameters/offset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrEyeParameters`*"] pub fn offset(this: &VrEyeParameters) -> Result, JsValue>; #[cfg(feature = "VrFieldOfView")] # [wasm_bindgen (structural , method , getter , js_class = "VREyeParameters" , js_name = fieldOfView)] #[doc = "Getter for the `fieldOfView` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VREyeParameters/fieldOfView)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrEyeParameters`, `VrFieldOfView`*"] pub fn field_of_view(this: &VrEyeParameters) -> VrFieldOfView; # [wasm_bindgen (structural , method , getter , js_class = "VREyeParameters" , js_name = renderWidth)] #[doc = "Getter for the `renderWidth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VREyeParameters/renderWidth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrEyeParameters`*"] pub fn render_width(this: &VrEyeParameters) -> u32; # [wasm_bindgen (structural , method , getter , js_class = "VREyeParameters" , js_name = renderHeight)] #[doc = "Getter for the `renderHeight` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VREyeParameters/renderHeight)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrEyeParameters`*"] pub fn render_height(this: &VrEyeParameters) -> u32; } web-sys-0.3.55/src/features/gen_VrFieldOfView.rs000064400000000000000000000045550072674642500176270ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VRFieldOfView , typescript_type = "VRFieldOfView")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VrFieldOfView` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRFieldOfView)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrFieldOfView`*"] pub type VrFieldOfView; # [wasm_bindgen (structural , method , getter , js_class = "VRFieldOfView" , js_name = upDegrees)] #[doc = "Getter for the `upDegrees` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRFieldOfView/upDegrees)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrFieldOfView`*"] pub fn up_degrees(this: &VrFieldOfView) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "VRFieldOfView" , js_name = rightDegrees)] #[doc = "Getter for the `rightDegrees` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRFieldOfView/rightDegrees)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrFieldOfView`*"] pub fn right_degrees(this: &VrFieldOfView) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "VRFieldOfView" , js_name = downDegrees)] #[doc = "Getter for the `downDegrees` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRFieldOfView/downDegrees)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrFieldOfView`*"] pub fn down_degrees(this: &VrFieldOfView) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "VRFieldOfView" , js_name = leftDegrees)] #[doc = "Getter for the `leftDegrees` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRFieldOfView/leftDegrees)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrFieldOfView`*"] pub fn left_degrees(this: &VrFieldOfView) -> f64; } web-sys-0.3.55/src/features/gen_VrFrameData.rs000064400000000000000000000076010072674642500173030ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VRFrameData , typescript_type = "VRFrameData")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VrFrameData` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRFrameData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrFrameData`*"] pub type VrFrameData; # [wasm_bindgen (structural , method , getter , js_class = "VRFrameData" , js_name = timestamp)] #[doc = "Getter for the `timestamp` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRFrameData/timestamp)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrFrameData`*"] pub fn timestamp(this: &VrFrameData) -> f64; # [wasm_bindgen (structural , catch , method , getter , js_class = "VRFrameData" , js_name = leftProjectionMatrix)] #[doc = "Getter for the `leftProjectionMatrix` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRFrameData/leftProjectionMatrix)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrFrameData`*"] pub fn left_projection_matrix(this: &VrFrameData) -> Result, JsValue>; # [wasm_bindgen (structural , catch , method , getter , js_class = "VRFrameData" , js_name = leftViewMatrix)] #[doc = "Getter for the `leftViewMatrix` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRFrameData/leftViewMatrix)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrFrameData`*"] pub fn left_view_matrix(this: &VrFrameData) -> Result, JsValue>; # [wasm_bindgen (structural , catch , method , getter , js_class = "VRFrameData" , js_name = rightProjectionMatrix)] #[doc = "Getter for the `rightProjectionMatrix` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRFrameData/rightProjectionMatrix)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrFrameData`*"] pub fn right_projection_matrix(this: &VrFrameData) -> Result, JsValue>; # [wasm_bindgen (structural , catch , method , getter , js_class = "VRFrameData" , js_name = rightViewMatrix)] #[doc = "Getter for the `rightViewMatrix` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRFrameData/rightViewMatrix)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrFrameData`*"] pub fn right_view_matrix(this: &VrFrameData) -> Result, JsValue>; #[cfg(feature = "VrPose")] # [wasm_bindgen (structural , method , getter , js_class = "VRFrameData" , js_name = pose)] #[doc = "Getter for the `pose` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRFrameData/pose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrFrameData`, `VrPose`*"] pub fn pose(this: &VrFrameData) -> VrPose; #[wasm_bindgen(catch, constructor, js_class = "VRFrameData")] #[doc = "The `new VrFrameData(..)` constructor, creating a new instance of `VrFrameData`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRFrameData/VRFrameData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrFrameData`*"] pub fn new() -> Result; } web-sys-0.3.55/src/features/gen_VrLayer.rs000064400000000000000000000051260072674642500165330ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VRLayer)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VrLayer` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrLayer`*"] pub type VrLayer; } impl VrLayer { #[doc = "Construct a new `VrLayer`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrLayer`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `leftBounds` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrLayer`*"] pub fn left_bounds(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("leftBounds"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `rightBounds` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrLayer`*"] pub fn right_bounds(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("rightBounds"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "HtmlCanvasElement")] #[doc = "Change the `source` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `VrLayer`*"] pub fn source(&mut self, val: Option<&HtmlCanvasElement>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("source"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for VrLayer { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_VrMockController.rs000064400000000000000000000043240072674642500204130ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VRMockController , typescript_type = "VRMockController")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VrMockController` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRMockController)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrMockController`*"] pub type VrMockController; # [wasm_bindgen (method , structural , js_class = "VRMockController" , js_name = newAxisMoveEvent)] #[doc = "The `newAxisMoveEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRMockController/newAxisMoveEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrMockController`*"] pub fn new_axis_move_event(this: &VrMockController, axis: u32, value: f64); # [wasm_bindgen (method , structural , js_class = "VRMockController" , js_name = newButtonEvent)] #[doc = "The `newButtonEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRMockController/newButtonEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrMockController`*"] pub fn new_button_event(this: &VrMockController, button: u32, pressed: bool); # [wasm_bindgen (method , structural , js_class = "VRMockController" , js_name = newPoseMove)] #[doc = "The `newPoseMove()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRMockController/newPoseMove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrMockController`*"] pub fn new_pose_move( this: &VrMockController, position: Option<&mut [f32]>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&mut [f32]>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&mut [f32]>, ); } web-sys-0.3.55/src/features/gen_VrMockDisplay.rs000064400000000000000000000063300072674642500176740ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VRMockDisplay , typescript_type = "VRMockDisplay")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VrMockDisplay` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRMockDisplay)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrMockDisplay`*"] pub type VrMockDisplay; #[cfg(feature = "VrEye")] # [wasm_bindgen (method , structural , js_class = "VRMockDisplay" , js_name = setEyeParameter)] #[doc = "The `setEyeParameter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRMockDisplay/setEyeParameter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrEye`, `VrMockDisplay`*"] pub fn set_eye_parameter( this: &VrMockDisplay, eye: VrEye, offset_x: f64, offset_y: f64, offset_z: f64, up_degree: f64, right_degree: f64, down_degree: f64, left_degree: f64, ); # [wasm_bindgen (method , structural , js_class = "VRMockDisplay" , js_name = setEyeResolution)] #[doc = "The `setEyeResolution()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRMockDisplay/setEyeResolution)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrMockDisplay`*"] pub fn set_eye_resolution(this: &VrMockDisplay, a_render_width: u32, a_render_height: u32); # [wasm_bindgen (method , structural , js_class = "VRMockDisplay" , js_name = setMountState)] #[doc = "The `setMountState()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRMockDisplay/setMountState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrMockDisplay`*"] pub fn set_mount_state(this: &VrMockDisplay, is_mounted: bool); # [wasm_bindgen (method , structural , js_class = "VRMockDisplay" , js_name = setPose)] #[doc = "The `setPose()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRMockDisplay/setPose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrMockDisplay`*"] pub fn set_pose( this: &VrMockDisplay, position: Option<&mut [f32]>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&mut [f32]>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&mut [f32]>, ); # [wasm_bindgen (method , structural , js_class = "VRMockDisplay" , js_name = update)] #[doc = "The `update()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRMockDisplay/update)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrMockDisplay`*"] pub fn update(this: &VrMockDisplay); } web-sys-0.3.55/src/features/gen_VrPose.rs000064400000000000000000000065570072674642500163760ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VRPose , typescript_type = "VRPose")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VrPose` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRPose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrPose`*"] pub type VrPose; # [wasm_bindgen (structural , catch , method , getter , js_class = "VRPose" , js_name = position)] #[doc = "Getter for the `position` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRPose/position)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrPose`*"] pub fn position(this: &VrPose) -> Result>, JsValue>; # [wasm_bindgen (structural , catch , method , getter , js_class = "VRPose" , js_name = linearVelocity)] #[doc = "Getter for the `linearVelocity` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRPose/linearVelocity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrPose`*"] pub fn linear_velocity(this: &VrPose) -> Result>, JsValue>; # [wasm_bindgen (structural , catch , method , getter , js_class = "VRPose" , js_name = linearAcceleration)] #[doc = "Getter for the `linearAcceleration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRPose/linearAcceleration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrPose`*"] pub fn linear_acceleration(this: &VrPose) -> Result>, JsValue>; # [wasm_bindgen (structural , catch , method , getter , js_class = "VRPose" , js_name = orientation)] #[doc = "Getter for the `orientation` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRPose/orientation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrPose`*"] pub fn orientation(this: &VrPose) -> Result>, JsValue>; # [wasm_bindgen (structural , catch , method , getter , js_class = "VRPose" , js_name = angularVelocity)] #[doc = "Getter for the `angularVelocity` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRPose/angularVelocity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrPose`*"] pub fn angular_velocity(this: &VrPose) -> Result>, JsValue>; # [wasm_bindgen (structural , catch , method , getter , js_class = "VRPose" , js_name = angularAcceleration)] #[doc = "Getter for the `angularAcceleration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRPose/angularAcceleration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrPose`*"] pub fn angular_acceleration(this: &VrPose) -> Result>, JsValue>; } web-sys-0.3.55/src/features/gen_VrServiceTest.rs000064400000000000000000000030660072674642500177200ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VRServiceTest , typescript_type = "VRServiceTest")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VrServiceTest` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRServiceTest)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrServiceTest`*"] pub type VrServiceTest; # [wasm_bindgen (catch , method , structural , js_class = "VRServiceTest" , js_name = attachVRController)] #[doc = "The `attachVRController()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRServiceTest/attachVRController)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrServiceTest`*"] pub fn attach_vr_controller( this: &VrServiceTest, id: &str, ) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "VRServiceTest" , js_name = attachVRDisplay)] #[doc = "The `attachVRDisplay()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRServiceTest/attachVRDisplay)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrServiceTest`*"] pub fn attach_vr_display(this: &VrServiceTest, id: &str) -> Result<::js_sys::Promise, JsValue>; } web-sys-0.3.55/src/features/gen_VrStageParameters.rs000064400000000000000000000040240072674642500205420ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VRStageParameters , typescript_type = "VRStageParameters")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VrStageParameters` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRStageParameters)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrStageParameters`*"] pub type VrStageParameters; # [wasm_bindgen (structural , catch , method , getter , js_class = "VRStageParameters" , js_name = sittingToStandingTransform)] #[doc = "Getter for the `sittingToStandingTransform` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRStageParameters/sittingToStandingTransform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrStageParameters`*"] pub fn sitting_to_standing_transform(this: &VrStageParameters) -> Result, JsValue>; # [wasm_bindgen (structural , method , getter , js_class = "VRStageParameters" , js_name = sizeX)] #[doc = "Getter for the `sizeX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRStageParameters/sizeX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrStageParameters`*"] pub fn size_x(this: &VrStageParameters) -> f32; # [wasm_bindgen (structural , method , getter , js_class = "VRStageParameters" , js_name = sizeZ)] #[doc = "Getter for the `sizeZ` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRStageParameters/sizeZ)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrStageParameters`*"] pub fn size_z(this: &VrStageParameters) -> f32; } web-sys-0.3.55/src/features/gen_VrSubmitFrameResult.rs000064400000000000000000000040320072674642500210670ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VRSubmitFrameResult , typescript_type = "VRSubmitFrameResult")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VrSubmitFrameResult` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRSubmitFrameResult)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrSubmitFrameResult`*"] pub type VrSubmitFrameResult; # [wasm_bindgen (structural , method , getter , js_class = "VRSubmitFrameResult" , js_name = frameNum)] #[doc = "Getter for the `frameNum` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRSubmitFrameResult/frameNum)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrSubmitFrameResult`*"] pub fn frame_num(this: &VrSubmitFrameResult) -> u32; # [wasm_bindgen (structural , method , getter , js_class = "VRSubmitFrameResult" , js_name = base64Image)] #[doc = "Getter for the `base64Image` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRSubmitFrameResult/base64Image)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrSubmitFrameResult`*"] pub fn base64_image(this: &VrSubmitFrameResult) -> Option; #[wasm_bindgen(catch, constructor, js_class = "VRSubmitFrameResult")] #[doc = "The `new VrSubmitFrameResult(..)` constructor, creating a new instance of `VrSubmitFrameResult`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRSubmitFrameResult/VRSubmitFrameResult)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrSubmitFrameResult`*"] pub fn new() -> Result; } web-sys-0.3.55/src/features/gen_VttCue.rs000064400000000000000000000251050072674642500163600ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = TextTrackCue , extends = EventTarget , extends = :: js_sys :: Object , js_name = VTTCue , typescript_type = "VTTCue")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VttCue` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VttCue`*"] pub type VttCue; #[cfg(feature = "VttRegion")] # [wasm_bindgen (structural , method , getter , js_class = "VTTCue" , js_name = region)] #[doc = "Getter for the `region` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/region)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VttCue`, `VttRegion`*"] pub fn region(this: &VttCue) -> Option; #[cfg(feature = "VttRegion")] # [wasm_bindgen (structural , method , setter , js_class = "VTTCue" , js_name = region)] #[doc = "Setter for the `region` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/region)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VttCue`, `VttRegion`*"] pub fn set_region(this: &VttCue, value: Option<&VttRegion>); #[cfg(feature = "DirectionSetting")] # [wasm_bindgen (structural , method , getter , js_class = "VTTCue" , js_name = vertical)] #[doc = "Getter for the `vertical` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/vertical)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DirectionSetting`, `VttCue`*"] pub fn vertical(this: &VttCue) -> DirectionSetting; #[cfg(feature = "DirectionSetting")] # [wasm_bindgen (structural , method , setter , js_class = "VTTCue" , js_name = vertical)] #[doc = "Setter for the `vertical` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/vertical)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DirectionSetting`, `VttCue`*"] pub fn set_vertical(this: &VttCue, value: DirectionSetting); # [wasm_bindgen (structural , method , getter , js_class = "VTTCue" , js_name = snapToLines)] #[doc = "Getter for the `snapToLines` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/snapToLines)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VttCue`*"] pub fn snap_to_lines(this: &VttCue) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "VTTCue" , js_name = snapToLines)] #[doc = "Setter for the `snapToLines` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/snapToLines)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VttCue`*"] pub fn set_snap_to_lines(this: &VttCue, value: bool); # [wasm_bindgen (structural , method , getter , js_class = "VTTCue" , js_name = line)] #[doc = "Getter for the `line` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/line)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VttCue`*"] pub fn line(this: &VttCue) -> ::wasm_bindgen::JsValue; # [wasm_bindgen (structural , method , setter , js_class = "VTTCue" , js_name = line)] #[doc = "Setter for the `line` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/line)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VttCue`*"] pub fn set_line(this: &VttCue, value: &::wasm_bindgen::JsValue); #[cfg(feature = "LineAlignSetting")] # [wasm_bindgen (structural , method , getter , js_class = "VTTCue" , js_name = lineAlign)] #[doc = "Getter for the `lineAlign` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/lineAlign)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LineAlignSetting`, `VttCue`*"] pub fn line_align(this: &VttCue) -> LineAlignSetting; #[cfg(feature = "LineAlignSetting")] # [wasm_bindgen (structural , method , setter , js_class = "VTTCue" , js_name = lineAlign)] #[doc = "Setter for the `lineAlign` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/lineAlign)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LineAlignSetting`, `VttCue`*"] pub fn set_line_align(this: &VttCue, value: LineAlignSetting); # [wasm_bindgen (structural , method , getter , js_class = "VTTCue" , js_name = position)] #[doc = "Getter for the `position` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/position)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VttCue`*"] pub fn position(this: &VttCue) -> ::wasm_bindgen::JsValue; # [wasm_bindgen (structural , method , setter , js_class = "VTTCue" , js_name = position)] #[doc = "Setter for the `position` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/position)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VttCue`*"] pub fn set_position(this: &VttCue, value: &::wasm_bindgen::JsValue); #[cfg(feature = "PositionAlignSetting")] # [wasm_bindgen (structural , method , getter , js_class = "VTTCue" , js_name = positionAlign)] #[doc = "Getter for the `positionAlign` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/positionAlign)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PositionAlignSetting`, `VttCue`*"] pub fn position_align(this: &VttCue) -> PositionAlignSetting; #[cfg(feature = "PositionAlignSetting")] # [wasm_bindgen (structural , method , setter , js_class = "VTTCue" , js_name = positionAlign)] #[doc = "Setter for the `positionAlign` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/positionAlign)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PositionAlignSetting`, `VttCue`*"] pub fn set_position_align(this: &VttCue, value: PositionAlignSetting); # [wasm_bindgen (structural , method , getter , js_class = "VTTCue" , js_name = size)] #[doc = "Getter for the `size` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/size)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VttCue`*"] pub fn size(this: &VttCue) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "VTTCue" , js_name = size)] #[doc = "Setter for the `size` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/size)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VttCue`*"] pub fn set_size(this: &VttCue, value: f64); #[cfg(feature = "AlignSetting")] # [wasm_bindgen (structural , method , getter , js_class = "VTTCue" , js_name = align)] #[doc = "Getter for the `align` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AlignSetting`, `VttCue`*"] pub fn align(this: &VttCue) -> AlignSetting; #[cfg(feature = "AlignSetting")] # [wasm_bindgen (structural , method , setter , js_class = "VTTCue" , js_name = align)] #[doc = "Setter for the `align` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AlignSetting`, `VttCue`*"] pub fn set_align(this: &VttCue, value: AlignSetting); # [wasm_bindgen (structural , method , getter , js_class = "VTTCue" , js_name = text)] #[doc = "Getter for the `text` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/text)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VttCue`*"] pub fn text(this: &VttCue) -> String; # [wasm_bindgen (structural , method , setter , js_class = "VTTCue" , js_name = text)] #[doc = "Setter for the `text` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/text)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VttCue`*"] pub fn set_text(this: &VttCue, value: &str); #[wasm_bindgen(catch, constructor, js_class = "VTTCue")] #[doc = "The `new VttCue(..)` constructor, creating a new instance of `VttCue`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/VTTCue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VttCue`*"] pub fn new(start_time: f64, end_time: f64, text: &str) -> Result; #[cfg(feature = "DocumentFragment")] # [wasm_bindgen (method , structural , js_class = "VTTCue" , js_name = getCueAsHTML)] #[doc = "The `getCueAsHTML()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/getCueAsHTML)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`, `VttCue`*"] pub fn get_cue_as_html(this: &VttCue) -> DocumentFragment; } web-sys-0.3.55/src/features/gen_VttRegion.rs000064400000000000000000000200650072674642500170670ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VTTRegion , typescript_type = "VTTRegion")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VttRegion` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"] pub type VttRegion; # [wasm_bindgen (structural , method , getter , js_class = "VTTRegion" , js_name = id)] #[doc = "Getter for the `id` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/id)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"] pub fn id(this: &VttRegion) -> String; # [wasm_bindgen (structural , method , setter , js_class = "VTTRegion" , js_name = id)] #[doc = "Setter for the `id` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/id)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"] pub fn set_id(this: &VttRegion, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "VTTRegion" , js_name = width)] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"] pub fn width(this: &VttRegion) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "VTTRegion" , js_name = width)] #[doc = "Setter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"] pub fn set_width(this: &VttRegion, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "VTTRegion" , js_name = lines)] #[doc = "Getter for the `lines` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/lines)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"] pub fn lines(this: &VttRegion) -> i32; # [wasm_bindgen (structural , method , setter , js_class = "VTTRegion" , js_name = lines)] #[doc = "Setter for the `lines` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/lines)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"] pub fn set_lines(this: &VttRegion, value: i32); # [wasm_bindgen (structural , method , getter , js_class = "VTTRegion" , js_name = regionAnchorX)] #[doc = "Getter for the `regionAnchorX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/regionAnchorX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"] pub fn region_anchor_x(this: &VttRegion) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "VTTRegion" , js_name = regionAnchorX)] #[doc = "Setter for the `regionAnchorX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/regionAnchorX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"] pub fn set_region_anchor_x(this: &VttRegion, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "VTTRegion" , js_name = regionAnchorY)] #[doc = "Getter for the `regionAnchorY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/regionAnchorY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"] pub fn region_anchor_y(this: &VttRegion) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "VTTRegion" , js_name = regionAnchorY)] #[doc = "Setter for the `regionAnchorY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/regionAnchorY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"] pub fn set_region_anchor_y(this: &VttRegion, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "VTTRegion" , js_name = viewportAnchorX)] #[doc = "Getter for the `viewportAnchorX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/viewportAnchorX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"] pub fn viewport_anchor_x(this: &VttRegion) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "VTTRegion" , js_name = viewportAnchorX)] #[doc = "Setter for the `viewportAnchorX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/viewportAnchorX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"] pub fn set_viewport_anchor_x(this: &VttRegion, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "VTTRegion" , js_name = viewportAnchorY)] #[doc = "Getter for the `viewportAnchorY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/viewportAnchorY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"] pub fn viewport_anchor_y(this: &VttRegion) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "VTTRegion" , js_name = viewportAnchorY)] #[doc = "Setter for the `viewportAnchorY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/viewportAnchorY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"] pub fn set_viewport_anchor_y(this: &VttRegion, value: f64); #[cfg(feature = "ScrollSetting")] # [wasm_bindgen (structural , method , getter , js_class = "VTTRegion" , js_name = scroll)] #[doc = "Getter for the `scroll` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/scroll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollSetting`, `VttRegion`*"] pub fn scroll(this: &VttRegion) -> ScrollSetting; #[cfg(feature = "ScrollSetting")] # [wasm_bindgen (structural , method , setter , js_class = "VTTRegion" , js_name = scroll)] #[doc = "Setter for the `scroll` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/scroll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollSetting`, `VttRegion`*"] pub fn set_scroll(this: &VttRegion, value: ScrollSetting); #[wasm_bindgen(catch, constructor, js_class = "VTTRegion")] #[doc = "The `new VttRegion(..)` constructor, creating a new instance of `VttRegion`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/VTTRegion)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"] pub fn new() -> Result; } web-sys-0.3.55/src/features/gen_WakeLock.rs000064400000000000000000000030350072674642500166440ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn request(this: &WakeLock, type_: WakeLockType) -> ::js_sys::Promise; } web-sys-0.3.55/src/features/gen_WakeLockSentinel.rs000064400000000000000000000111070072674642500203450ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn release(this: &WakeLockSentinel) -> ::js_sys::Promise; } web-sys-0.3.55/src/features/gen_WakeLockType.rs000064400000000000000000000010710072674642500175040ustar 00000000000000#![allow(unused_imports)] 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum WakeLockType { Screen = "screen", } web-sys-0.3.55/src/features/gen_WatchAdvertisementsOptions.rs000064400000000000000000000045770072674642500225200ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type WatchAdvertisementsOptions; } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn signal(&mut self, val: &AbortSignal) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("signal"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } #[cfg(web_sys_unstable_apis)] impl Default for WatchAdvertisementsOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_WaveShaperNode.rs000064400000000000000000000074020072674642500200210ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = WaveShaperNode , typescript_type = "WaveShaperNode")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WaveShaperNode` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WaveShaperNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WaveShaperNode`*"] pub type WaveShaperNode; # [wasm_bindgen (structural , method , getter , js_class = "WaveShaperNode" , js_name = curve)] #[doc = "Getter for the `curve` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WaveShaperNode/curve)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WaveShaperNode`*"] pub fn curve(this: &WaveShaperNode) -> Option>; # [wasm_bindgen (structural , method , setter , js_class = "WaveShaperNode" , js_name = curve)] #[doc = "Setter for the `curve` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WaveShaperNode/curve)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WaveShaperNode`*"] pub fn set_curve(this: &WaveShaperNode, value: Option<&mut [f32]>); #[cfg(feature = "OverSampleType")] # [wasm_bindgen (structural , method , getter , js_class = "WaveShaperNode" , js_name = oversample)] #[doc = "Getter for the `oversample` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WaveShaperNode/oversample)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OverSampleType`, `WaveShaperNode`*"] pub fn oversample(this: &WaveShaperNode) -> OverSampleType; #[cfg(feature = "OverSampleType")] # [wasm_bindgen (structural , method , setter , js_class = "WaveShaperNode" , js_name = oversample)] #[doc = "Setter for the `oversample` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WaveShaperNode/oversample)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OverSampleType`, `WaveShaperNode`*"] pub fn set_oversample(this: &WaveShaperNode, value: OverSampleType); #[cfg(feature = "BaseAudioContext")] #[wasm_bindgen(catch, constructor, js_class = "WaveShaperNode")] #[doc = "The `new WaveShaperNode(..)` constructor, creating a new instance of `WaveShaperNode`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WaveShaperNode/WaveShaperNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `WaveShaperNode`*"] pub fn new(context: &BaseAudioContext) -> Result; #[cfg(all(feature = "BaseAudioContext", feature = "WaveShaperOptions",))] #[wasm_bindgen(catch, constructor, js_class = "WaveShaperNode")] #[doc = "The `new WaveShaperNode(..)` constructor, creating a new instance of `WaveShaperNode`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WaveShaperNode/WaveShaperNode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `WaveShaperNode`, `WaveShaperOptions`*"] pub fn new_with_options( context: &BaseAudioContext, options: &WaveShaperOptions, ) -> Result; } web-sys-0.3.55/src/features/gen_WaveShaperOptions.rs000064400000000000000000000100210072674642500205560ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WaveShaperOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WaveShaperOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WaveShaperOptions`*"] pub type WaveShaperOptions; } impl WaveShaperOptions { #[doc = "Construct a new `WaveShaperOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WaveShaperOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WaveShaperOptions`*"] pub fn channel_count(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("channelCount"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "ChannelCountMode")] #[doc = "Change the `channelCountMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelCountMode`, `WaveShaperOptions`*"] pub fn channel_count_mode(&mut self, val: ChannelCountMode) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("channelCountMode"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "ChannelInterpretation")] #[doc = "Change the `channelInterpretation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelInterpretation`, `WaveShaperOptions`*"] pub fn channel_interpretation(&mut self, val: ChannelInterpretation) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("channelInterpretation"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `curve` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WaveShaperOptions`*"] pub fn curve(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("curve"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "OverSampleType")] #[doc = "Change the `oversample` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OverSampleType`, `WaveShaperOptions`*"] pub fn oversample(&mut self, val: OverSampleType) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("oversample"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for WaveShaperOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_WebGl2RenderingContext.rs000064400000000000000000015574540072674642500214550ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebGL2RenderingContext , typescript_type = "WebGL2RenderingContext")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebGl2RenderingContext` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub type WebGl2RenderingContext; # [wasm_bindgen (structural , method , getter , js_class = "WebGL2RenderingContext" , js_name = canvas)] #[doc = "Getter for the `canvas` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/canvas)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn canvas(this: &WebGl2RenderingContext) -> Option<::js_sys::Object>; # [wasm_bindgen (structural , method , getter , js_class = "WebGL2RenderingContext" , js_name = drawingBufferWidth)] #[doc = "Getter for the `drawingBufferWidth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/drawingBufferWidth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn drawing_buffer_width(this: &WebGl2RenderingContext) -> i32; # [wasm_bindgen (structural , method , getter , js_class = "WebGL2RenderingContext" , js_name = drawingBufferHeight)] #[doc = "Getter for the `drawingBufferHeight` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/drawingBufferHeight)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn drawing_buffer_height(this: &WebGl2RenderingContext) -> i32; #[cfg(feature = "WebGlQuery")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = beginQuery)] #[doc = "The `beginQuery()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/beginQuery)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlQuery`*"] pub fn begin_query(this: &WebGl2RenderingContext, target: u32, query: &WebGlQuery); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = beginTransformFeedback)] #[doc = "The `beginTransformFeedback()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/beginTransformFeedback)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn begin_transform_feedback(this: &WebGl2RenderingContext, primitive_mode: u32); #[cfg(feature = "WebGlBuffer")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bindBufferBase)] #[doc = "The `bindBufferBase()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bindBufferBase)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlBuffer`*"] pub fn bind_buffer_base( this: &WebGl2RenderingContext, target: u32, index: u32, buffer: Option<&WebGlBuffer>, ); #[cfg(feature = "WebGlBuffer")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bindBufferRange)] #[doc = "The `bindBufferRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bindBufferRange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlBuffer`*"] pub fn bind_buffer_range_with_i32_and_i32( this: &WebGl2RenderingContext, target: u32, index: u32, buffer: Option<&WebGlBuffer>, offset: i32, size: i32, ); #[cfg(feature = "WebGlBuffer")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bindBufferRange)] #[doc = "The `bindBufferRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bindBufferRange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlBuffer`*"] pub fn bind_buffer_range_with_f64_and_i32( this: &WebGl2RenderingContext, target: u32, index: u32, buffer: Option<&WebGlBuffer>, offset: f64, size: i32, ); #[cfg(feature = "WebGlBuffer")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bindBufferRange)] #[doc = "The `bindBufferRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bindBufferRange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlBuffer`*"] pub fn bind_buffer_range_with_i32_and_f64( this: &WebGl2RenderingContext, target: u32, index: u32, buffer: Option<&WebGlBuffer>, offset: i32, size: f64, ); #[cfg(feature = "WebGlBuffer")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bindBufferRange)] #[doc = "The `bindBufferRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bindBufferRange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlBuffer`*"] pub fn bind_buffer_range_with_f64_and_f64( this: &WebGl2RenderingContext, target: u32, index: u32, buffer: Option<&WebGlBuffer>, offset: f64, size: f64, ); #[cfg(feature = "WebGlSampler")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bindSampler)] #[doc = "The `bindSampler()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bindSampler)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlSampler`*"] pub fn bind_sampler(this: &WebGl2RenderingContext, unit: u32, sampler: Option<&WebGlSampler>); #[cfg(feature = "WebGlTransformFeedback")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bindTransformFeedback)] #[doc = "The `bindTransformFeedback()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bindTransformFeedback)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlTransformFeedback`*"] pub fn bind_transform_feedback( this: &WebGl2RenderingContext, target: u32, tf: Option<&WebGlTransformFeedback>, ); #[cfg(feature = "WebGlVertexArrayObject")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bindVertexArray)] #[doc = "The `bindVertexArray()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bindVertexArray)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlVertexArrayObject`*"] pub fn bind_vertex_array(this: &WebGl2RenderingContext, array: Option<&WebGlVertexArrayObject>); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = blitFramebuffer)] #[doc = "The `blitFramebuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/blitFramebuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn blit_framebuffer( this: &WebGl2RenderingContext, src_x0: i32, src_y0: i32, src_x1: i32, src_y1: i32, dst_x0: i32, dst_y0: i32, dst_x1: i32, dst_y1: i32, mask: u32, filter: u32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferData)] #[doc = "The `bufferData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn buffer_data_with_i32(this: &WebGl2RenderingContext, target: u32, size: i32, usage: u32); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferData)] #[doc = "The `bufferData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn buffer_data_with_f64(this: &WebGl2RenderingContext, target: u32, size: f64, usage: u32); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferData)] #[doc = "The `bufferData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn buffer_data_with_opt_array_buffer( this: &WebGl2RenderingContext, target: u32, src_data: Option<&::js_sys::ArrayBuffer>, usage: u32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferData)] #[doc = "The `bufferData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn buffer_data_with_array_buffer_view( this: &WebGl2RenderingContext, target: u32, src_data: &::js_sys::Object, usage: u32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferData)] #[doc = "The `bufferData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn buffer_data_with_u8_array( this: &WebGl2RenderingContext, target: u32, src_data: &[u8], usage: u32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferData)] #[doc = "The `bufferData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn buffer_data_with_array_buffer_view_and_src_offset( this: &WebGl2RenderingContext, target: u32, src_data: &::js_sys::Object, usage: u32, src_offset: u32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferData)] #[doc = "The `bufferData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn buffer_data_with_u8_array_and_src_offset( this: &WebGl2RenderingContext, target: u32, src_data: &[u8], usage: u32, src_offset: u32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferData)] #[doc = "The `bufferData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn buffer_data_with_array_buffer_view_and_src_offset_and_length( this: &WebGl2RenderingContext, target: u32, src_data: &::js_sys::Object, usage: u32, src_offset: u32, length: u32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferData)] #[doc = "The `bufferData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn buffer_data_with_u8_array_and_src_offset_and_length( this: &WebGl2RenderingContext, target: u32, src_data: &[u8], usage: u32, src_offset: u32, length: u32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferSubData)] #[doc = "The `bufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferSubData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn buffer_sub_data_with_i32_and_array_buffer( this: &WebGl2RenderingContext, target: u32, offset: i32, src_data: &::js_sys::ArrayBuffer, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferSubData)] #[doc = "The `bufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferSubData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn buffer_sub_data_with_f64_and_array_buffer( this: &WebGl2RenderingContext, target: u32, offset: f64, src_data: &::js_sys::ArrayBuffer, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferSubData)] #[doc = "The `bufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferSubData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn buffer_sub_data_with_i32_and_array_buffer_view( this: &WebGl2RenderingContext, target: u32, offset: i32, src_data: &::js_sys::Object, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferSubData)] #[doc = "The `bufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferSubData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn buffer_sub_data_with_f64_and_array_buffer_view( this: &WebGl2RenderingContext, target: u32, offset: f64, src_data: &::js_sys::Object, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferSubData)] #[doc = "The `bufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferSubData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn buffer_sub_data_with_i32_and_u8_array( this: &WebGl2RenderingContext, target: u32, offset: i32, src_data: &[u8], ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferSubData)] #[doc = "The `bufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferSubData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn buffer_sub_data_with_f64_and_u8_array( this: &WebGl2RenderingContext, target: u32, offset: f64, src_data: &[u8], ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferSubData)] #[doc = "The `bufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferSubData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn buffer_sub_data_with_i32_and_array_buffer_view_and_src_offset( this: &WebGl2RenderingContext, target: u32, dst_byte_offset: i32, src_data: &::js_sys::Object, src_offset: u32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferSubData)] #[doc = "The `bufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferSubData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn buffer_sub_data_with_f64_and_array_buffer_view_and_src_offset( this: &WebGl2RenderingContext, target: u32, dst_byte_offset: f64, src_data: &::js_sys::Object, src_offset: u32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferSubData)] #[doc = "The `bufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferSubData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn buffer_sub_data_with_i32_and_u8_array_and_src_offset( this: &WebGl2RenderingContext, target: u32, dst_byte_offset: i32, src_data: &[u8], src_offset: u32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferSubData)] #[doc = "The `bufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferSubData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn buffer_sub_data_with_f64_and_u8_array_and_src_offset( this: &WebGl2RenderingContext, target: u32, dst_byte_offset: f64, src_data: &[u8], src_offset: u32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferSubData)] #[doc = "The `bufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferSubData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn buffer_sub_data_with_i32_and_array_buffer_view_and_src_offset_and_length( this: &WebGl2RenderingContext, target: u32, dst_byte_offset: i32, src_data: &::js_sys::Object, src_offset: u32, length: u32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferSubData)] #[doc = "The `bufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferSubData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn buffer_sub_data_with_f64_and_array_buffer_view_and_src_offset_and_length( this: &WebGl2RenderingContext, target: u32, dst_byte_offset: f64, src_data: &::js_sys::Object, src_offset: u32, length: u32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferSubData)] #[doc = "The `bufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferSubData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn buffer_sub_data_with_i32_and_u8_array_and_src_offset_and_length( this: &WebGl2RenderingContext, target: u32, dst_byte_offset: i32, src_data: &[u8], src_offset: u32, length: u32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferSubData)] #[doc = "The `bufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferSubData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn buffer_sub_data_with_f64_and_u8_array_and_src_offset_and_length( this: &WebGl2RenderingContext, target: u32, dst_byte_offset: f64, src_data: &[u8], src_offset: u32, length: u32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = clearBufferfi)] #[doc = "The `clearBufferfi()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clearBufferfi)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn clear_bufferfi( this: &WebGl2RenderingContext, buffer: u32, drawbuffer: i32, depth: f32, stencil: i32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = clearBufferfv)] #[doc = "The `clearBufferfv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clearBufferfv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn clear_bufferfv_with_f32_array( this: &WebGl2RenderingContext, buffer: u32, drawbuffer: i32, values: &[f32], ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = clearBufferfv)] #[doc = "The `clearBufferfv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clearBufferfv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn clear_bufferfv_with_f32_sequence( this: &WebGl2RenderingContext, buffer: u32, drawbuffer: i32, values: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = clearBufferfv)] #[doc = "The `clearBufferfv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clearBufferfv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn clear_bufferfv_with_f32_array_and_src_offset( this: &WebGl2RenderingContext, buffer: u32, drawbuffer: i32, values: &[f32], src_offset: u32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = clearBufferfv)] #[doc = "The `clearBufferfv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clearBufferfv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn clear_bufferfv_with_f32_sequence_and_src_offset( this: &WebGl2RenderingContext, buffer: u32, drawbuffer: i32, values: &::wasm_bindgen::JsValue, src_offset: u32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = clearBufferiv)] #[doc = "The `clearBufferiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clearBufferiv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn clear_bufferiv_with_i32_array( this: &WebGl2RenderingContext, buffer: u32, drawbuffer: i32, values: &[i32], ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = clearBufferiv)] #[doc = "The `clearBufferiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clearBufferiv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn clear_bufferiv_with_i32_sequence( this: &WebGl2RenderingContext, buffer: u32, drawbuffer: i32, values: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = clearBufferiv)] #[doc = "The `clearBufferiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clearBufferiv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn clear_bufferiv_with_i32_array_and_src_offset( this: &WebGl2RenderingContext, buffer: u32, drawbuffer: i32, values: &[i32], src_offset: u32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = clearBufferiv)] #[doc = "The `clearBufferiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clearBufferiv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn clear_bufferiv_with_i32_sequence_and_src_offset( this: &WebGl2RenderingContext, buffer: u32, drawbuffer: i32, values: &::wasm_bindgen::JsValue, src_offset: u32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = clearBufferuiv)] #[doc = "The `clearBufferuiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clearBufferuiv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn clear_bufferuiv_with_u32_array( this: &WebGl2RenderingContext, buffer: u32, drawbuffer: i32, values: &[u32], ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = clearBufferuiv)] #[doc = "The `clearBufferuiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clearBufferuiv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn clear_bufferuiv_with_u32_sequence( this: &WebGl2RenderingContext, buffer: u32, drawbuffer: i32, values: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = clearBufferuiv)] #[doc = "The `clearBufferuiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clearBufferuiv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn clear_bufferuiv_with_u32_array_and_src_offset( this: &WebGl2RenderingContext, buffer: u32, drawbuffer: i32, values: &[u32], src_offset: u32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = clearBufferuiv)] #[doc = "The `clearBufferuiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clearBufferuiv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn clear_bufferuiv_with_u32_sequence_and_src_offset( this: &WebGl2RenderingContext, buffer: u32, drawbuffer: i32, values: &::wasm_bindgen::JsValue, src_offset: u32, ); #[cfg(feature = "WebGlSync")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = clientWaitSync)] #[doc = "The `clientWaitSync()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clientWaitSync)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlSync`*"] pub fn client_wait_sync_with_u32( this: &WebGl2RenderingContext, sync: &WebGlSync, flags: u32, timeout: u32, ) -> u32; #[cfg(feature = "WebGlSync")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = clientWaitSync)] #[doc = "The `clientWaitSync()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clientWaitSync)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlSync`*"] pub fn client_wait_sync_with_f64( this: &WebGl2RenderingContext, sync: &WebGlSync, flags: u32, timeout: f64, ) -> u32; # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexImage2D)] #[doc = "The `compressedTexImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn compressed_tex_image_2d_with_i32_and_i32( this: &WebGl2RenderingContext, target: u32, level: i32, internalformat: u32, width: i32, height: i32, border: i32, image_size: i32, offset: i32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexImage2D)] #[doc = "The `compressedTexImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn compressed_tex_image_2d_with_i32_and_f64( this: &WebGl2RenderingContext, target: u32, level: i32, internalformat: u32, width: i32, height: i32, border: i32, image_size: i32, offset: f64, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexImage2D)] #[doc = "The `compressedTexImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn compressed_tex_image_2d_with_array_buffer_view( this: &WebGl2RenderingContext, target: u32, level: i32, internalformat: u32, width: i32, height: i32, border: i32, src_data: &::js_sys::Object, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexImage2D)] #[doc = "The `compressedTexImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn compressed_tex_image_2d_with_u8_array( this: &WebGl2RenderingContext, target: u32, level: i32, internalformat: u32, width: i32, height: i32, border: i32, src_data: &[u8], ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexImage2D)] #[doc = "The `compressedTexImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn compressed_tex_image_2d_with_array_buffer_view_and_u32( this: &WebGl2RenderingContext, target: u32, level: i32, internalformat: u32, width: i32, height: i32, border: i32, src_data: &::js_sys::Object, src_offset: u32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexImage2D)] #[doc = "The `compressedTexImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn compressed_tex_image_2d_with_u8_array_and_u32( this: &WebGl2RenderingContext, target: u32, level: i32, internalformat: u32, width: i32, height: i32, border: i32, src_data: &[u8], src_offset: u32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexImage2D)] #[doc = "The `compressedTexImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn compressed_tex_image_2d_with_array_buffer_view_and_u32_and_src_length_override( this: &WebGl2RenderingContext, target: u32, level: i32, internalformat: u32, width: i32, height: i32, border: i32, src_data: &::js_sys::Object, src_offset: u32, src_length_override: u32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexImage2D)] #[doc = "The `compressedTexImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn compressed_tex_image_2d_with_u8_array_and_u32_and_src_length_override( this: &WebGl2RenderingContext, target: u32, level: i32, internalformat: u32, width: i32, height: i32, border: i32, src_data: &[u8], src_offset: u32, src_length_override: u32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexImage3D)] #[doc = "The `compressedTexImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexImage3D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn compressed_tex_image_3d_with_i32_and_i32( this: &WebGl2RenderingContext, target: u32, level: i32, internalformat: u32, width: i32, height: i32, depth: i32, border: i32, image_size: i32, offset: i32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexImage3D)] #[doc = "The `compressedTexImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexImage3D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn compressed_tex_image_3d_with_i32_and_f64( this: &WebGl2RenderingContext, target: u32, level: i32, internalformat: u32, width: i32, height: i32, depth: i32, border: i32, image_size: i32, offset: f64, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexImage3D)] #[doc = "The `compressedTexImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexImage3D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn compressed_tex_image_3d_with_array_buffer_view( this: &WebGl2RenderingContext, target: u32, level: i32, internalformat: u32, width: i32, height: i32, depth: i32, border: i32, src_data: &::js_sys::Object, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexImage3D)] #[doc = "The `compressedTexImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexImage3D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn compressed_tex_image_3d_with_u8_array( this: &WebGl2RenderingContext, target: u32, level: i32, internalformat: u32, width: i32, height: i32, depth: i32, border: i32, src_data: &[u8], ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexImage3D)] #[doc = "The `compressedTexImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexImage3D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn compressed_tex_image_3d_with_array_buffer_view_and_u32( this: &WebGl2RenderingContext, target: u32, level: i32, internalformat: u32, width: i32, height: i32, depth: i32, border: i32, src_data: &::js_sys::Object, src_offset: u32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexImage3D)] #[doc = "The `compressedTexImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexImage3D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn compressed_tex_image_3d_with_u8_array_and_u32( this: &WebGl2RenderingContext, target: u32, level: i32, internalformat: u32, width: i32, height: i32, depth: i32, border: i32, src_data: &[u8], src_offset: u32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexImage3D)] #[doc = "The `compressedTexImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexImage3D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn compressed_tex_image_3d_with_array_buffer_view_and_u32_and_src_length_override( this: &WebGl2RenderingContext, target: u32, level: i32, internalformat: u32, width: i32, height: i32, depth: i32, border: i32, src_data: &::js_sys::Object, src_offset: u32, src_length_override: u32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexImage3D)] #[doc = "The `compressedTexImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexImage3D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn compressed_tex_image_3d_with_u8_array_and_u32_and_src_length_override( this: &WebGl2RenderingContext, target: u32, level: i32, internalformat: u32, width: i32, height: i32, depth: i32, border: i32, src_data: &[u8], src_offset: u32, src_length_override: u32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexSubImage2D)] #[doc = "The `compressedTexSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn compressed_tex_sub_image_2d_with_i32_and_i32( this: &WebGl2RenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, width: i32, height: i32, format: u32, image_size: i32, offset: i32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexSubImage2D)] #[doc = "The `compressedTexSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn compressed_tex_sub_image_2d_with_i32_and_f64( this: &WebGl2RenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, width: i32, height: i32, format: u32, image_size: i32, offset: f64, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexSubImage2D)] #[doc = "The `compressedTexSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn compressed_tex_sub_image_2d_with_array_buffer_view( this: &WebGl2RenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, width: i32, height: i32, format: u32, src_data: &::js_sys::Object, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexSubImage2D)] #[doc = "The `compressedTexSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn compressed_tex_sub_image_2d_with_u8_array( this: &WebGl2RenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, width: i32, height: i32, format: u32, src_data: &mut [u8], ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexSubImage2D)] #[doc = "The `compressedTexSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn compressed_tex_sub_image_2d_with_array_buffer_view_and_u32( this: &WebGl2RenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, width: i32, height: i32, format: u32, src_data: &::js_sys::Object, src_offset: u32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexSubImage2D)] #[doc = "The `compressedTexSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn compressed_tex_sub_image_2d_with_u8_array_and_u32( this: &WebGl2RenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, width: i32, height: i32, format: u32, src_data: &mut [u8], src_offset: u32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexSubImage2D)] #[doc = "The `compressedTexSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn compressed_tex_sub_image_2d_with_array_buffer_view_and_u32_and_src_length_override( this: &WebGl2RenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, width: i32, height: i32, format: u32, src_data: &::js_sys::Object, src_offset: u32, src_length_override: u32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexSubImage2D)] #[doc = "The `compressedTexSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn compressed_tex_sub_image_2d_with_u8_array_and_u32_and_src_length_override( this: &WebGl2RenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, width: i32, height: i32, format: u32, src_data: &mut [u8], src_offset: u32, src_length_override: u32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexSubImage3D)] #[doc = "The `compressedTexSubImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage3D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn compressed_tex_sub_image_3d_with_i32_and_i32( this: &WebGl2RenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, zoffset: i32, width: i32, height: i32, depth: i32, format: u32, image_size: i32, offset: i32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexSubImage3D)] #[doc = "The `compressedTexSubImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage3D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn compressed_tex_sub_image_3d_with_i32_and_f64( this: &WebGl2RenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, zoffset: i32, width: i32, height: i32, depth: i32, format: u32, image_size: i32, offset: f64, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexSubImage3D)] #[doc = "The `compressedTexSubImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage3D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn compressed_tex_sub_image_3d_with_array_buffer_view( this: &WebGl2RenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, zoffset: i32, width: i32, height: i32, depth: i32, format: u32, src_data: &::js_sys::Object, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexSubImage3D)] #[doc = "The `compressedTexSubImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage3D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn compressed_tex_sub_image_3d_with_u8_array( this: &WebGl2RenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, zoffset: i32, width: i32, height: i32, depth: i32, format: u32, src_data: &mut [u8], ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexSubImage3D)] #[doc = "The `compressedTexSubImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage3D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn compressed_tex_sub_image_3d_with_array_buffer_view_and_u32( this: &WebGl2RenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, zoffset: i32, width: i32, height: i32, depth: i32, format: u32, src_data: &::js_sys::Object, src_offset: u32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexSubImage3D)] #[doc = "The `compressedTexSubImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage3D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn compressed_tex_sub_image_3d_with_u8_array_and_u32( this: &WebGl2RenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, zoffset: i32, width: i32, height: i32, depth: i32, format: u32, src_data: &mut [u8], src_offset: u32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexSubImage3D)] #[doc = "The `compressedTexSubImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage3D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn compressed_tex_sub_image_3d_with_array_buffer_view_and_u32_and_src_length_override( this: &WebGl2RenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, zoffset: i32, width: i32, height: i32, depth: i32, format: u32, src_data: &::js_sys::Object, src_offset: u32, src_length_override: u32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexSubImage3D)] #[doc = "The `compressedTexSubImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage3D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn compressed_tex_sub_image_3d_with_u8_array_and_u32_and_src_length_override( this: &WebGl2RenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, zoffset: i32, width: i32, height: i32, depth: i32, format: u32, src_data: &mut [u8], src_offset: u32, src_length_override: u32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = copyBufferSubData)] #[doc = "The `copyBufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/copyBufferSubData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn copy_buffer_sub_data_with_i32_and_i32_and_i32( this: &WebGl2RenderingContext, read_target: u32, write_target: u32, read_offset: i32, write_offset: i32, size: i32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = copyBufferSubData)] #[doc = "The `copyBufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/copyBufferSubData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn copy_buffer_sub_data_with_f64_and_i32_and_i32( this: &WebGl2RenderingContext, read_target: u32, write_target: u32, read_offset: f64, write_offset: i32, size: i32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = copyBufferSubData)] #[doc = "The `copyBufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/copyBufferSubData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn copy_buffer_sub_data_with_i32_and_f64_and_i32( this: &WebGl2RenderingContext, read_target: u32, write_target: u32, read_offset: i32, write_offset: f64, size: i32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = copyBufferSubData)] #[doc = "The `copyBufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/copyBufferSubData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn copy_buffer_sub_data_with_f64_and_f64_and_i32( this: &WebGl2RenderingContext, read_target: u32, write_target: u32, read_offset: f64, write_offset: f64, size: i32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = copyBufferSubData)] #[doc = "The `copyBufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/copyBufferSubData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn copy_buffer_sub_data_with_i32_and_i32_and_f64( this: &WebGl2RenderingContext, read_target: u32, write_target: u32, read_offset: i32, write_offset: i32, size: f64, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = copyBufferSubData)] #[doc = "The `copyBufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/copyBufferSubData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn copy_buffer_sub_data_with_f64_and_i32_and_f64( this: &WebGl2RenderingContext, read_target: u32, write_target: u32, read_offset: f64, write_offset: i32, size: f64, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = copyBufferSubData)] #[doc = "The `copyBufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/copyBufferSubData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn copy_buffer_sub_data_with_i32_and_f64_and_f64( this: &WebGl2RenderingContext, read_target: u32, write_target: u32, read_offset: i32, write_offset: f64, size: f64, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = copyBufferSubData)] #[doc = "The `copyBufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/copyBufferSubData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn copy_buffer_sub_data_with_f64_and_f64_and_f64( this: &WebGl2RenderingContext, read_target: u32, write_target: u32, read_offset: f64, write_offset: f64, size: f64, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = copyTexSubImage3D)] #[doc = "The `copyTexSubImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/copyTexSubImage3D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn copy_tex_sub_image_3d( this: &WebGl2RenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, zoffset: i32, x: i32, y: i32, width: i32, height: i32, ); #[cfg(feature = "WebGlQuery")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = createQuery)] #[doc = "The `createQuery()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/createQuery)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlQuery`*"] pub fn create_query(this: &WebGl2RenderingContext) -> Option; #[cfg(feature = "WebGlSampler")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = createSampler)] #[doc = "The `createSampler()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/createSampler)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlSampler`*"] pub fn create_sampler(this: &WebGl2RenderingContext) -> Option; #[cfg(feature = "WebGlTransformFeedback")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = createTransformFeedback)] #[doc = "The `createTransformFeedback()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/createTransformFeedback)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlTransformFeedback`*"] pub fn create_transform_feedback( this: &WebGl2RenderingContext, ) -> Option; #[cfg(feature = "WebGlVertexArrayObject")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = createVertexArray)] #[doc = "The `createVertexArray()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/createVertexArray)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlVertexArrayObject`*"] pub fn create_vertex_array(this: &WebGl2RenderingContext) -> Option; #[cfg(feature = "WebGlQuery")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = deleteQuery)] #[doc = "The `deleteQuery()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/deleteQuery)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlQuery`*"] pub fn delete_query(this: &WebGl2RenderingContext, query: Option<&WebGlQuery>); #[cfg(feature = "WebGlSampler")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = deleteSampler)] #[doc = "The `deleteSampler()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/deleteSampler)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlSampler`*"] pub fn delete_sampler(this: &WebGl2RenderingContext, sampler: Option<&WebGlSampler>); #[cfg(feature = "WebGlSync")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = deleteSync)] #[doc = "The `deleteSync()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/deleteSync)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlSync`*"] pub fn delete_sync(this: &WebGl2RenderingContext, sync: Option<&WebGlSync>); #[cfg(feature = "WebGlTransformFeedback")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = deleteTransformFeedback)] #[doc = "The `deleteTransformFeedback()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/deleteTransformFeedback)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlTransformFeedback`*"] pub fn delete_transform_feedback( this: &WebGl2RenderingContext, tf: Option<&WebGlTransformFeedback>, ); #[cfg(feature = "WebGlVertexArrayObject")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = deleteVertexArray)] #[doc = "The `deleteVertexArray()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/deleteVertexArray)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlVertexArrayObject`*"] pub fn delete_vertex_array( this: &WebGl2RenderingContext, vertex_array: Option<&WebGlVertexArrayObject>, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = drawArraysInstanced)] #[doc = "The `drawArraysInstanced()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/drawArraysInstanced)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn draw_arrays_instanced( this: &WebGl2RenderingContext, mode: u32, first: i32, count: i32, instance_count: i32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = drawBuffers)] #[doc = "The `drawBuffers()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/drawBuffers)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn draw_buffers(this: &WebGl2RenderingContext, buffers: &::wasm_bindgen::JsValue); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = drawElementsInstanced)] #[doc = "The `drawElementsInstanced()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/drawElementsInstanced)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn draw_elements_instanced_with_i32( this: &WebGl2RenderingContext, mode: u32, count: i32, type_: u32, offset: i32, instance_count: i32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = drawElementsInstanced)] #[doc = "The `drawElementsInstanced()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/drawElementsInstanced)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn draw_elements_instanced_with_f64( this: &WebGl2RenderingContext, mode: u32, count: i32, type_: u32, offset: f64, instance_count: i32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = drawRangeElements)] #[doc = "The `drawRangeElements()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/drawRangeElements)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn draw_range_elements_with_i32( this: &WebGl2RenderingContext, mode: u32, start: u32, end: u32, count: i32, type_: u32, offset: i32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = drawRangeElements)] #[doc = "The `drawRangeElements()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/drawRangeElements)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn draw_range_elements_with_f64( this: &WebGl2RenderingContext, mode: u32, start: u32, end: u32, count: i32, type_: u32, offset: f64, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = endQuery)] #[doc = "The `endQuery()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/endQuery)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn end_query(this: &WebGl2RenderingContext, target: u32); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = endTransformFeedback)] #[doc = "The `endTransformFeedback()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/endTransformFeedback)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn end_transform_feedback(this: &WebGl2RenderingContext); #[cfg(feature = "WebGlSync")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = fenceSync)] #[doc = "The `fenceSync()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/fenceSync)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlSync`*"] pub fn fence_sync( this: &WebGl2RenderingContext, condition: u32, flags: u32, ) -> Option; #[cfg(feature = "WebGlTexture")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = framebufferTextureLayer)] #[doc = "The `framebufferTextureLayer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/framebufferTextureLayer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlTexture`*"] pub fn framebuffer_texture_layer( this: &WebGl2RenderingContext, target: u32, attachment: u32, texture: Option<&WebGlTexture>, level: i32, layer: i32, ); #[cfg(feature = "WebGlProgram")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getActiveUniformBlockName)] #[doc = "The `getActiveUniformBlockName()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getActiveUniformBlockName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlProgram`*"] pub fn get_active_uniform_block_name( this: &WebGl2RenderingContext, program: &WebGlProgram, uniform_block_index: u32, ) -> Option; #[cfg(feature = "WebGlProgram")] # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = getActiveUniformBlockParameter)] #[doc = "The `getActiveUniformBlockParameter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getActiveUniformBlockParameter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlProgram`*"] pub fn get_active_uniform_block_parameter( this: &WebGl2RenderingContext, program: &WebGlProgram, uniform_block_index: u32, pname: u32, ) -> Result<::wasm_bindgen::JsValue, JsValue>; #[cfg(feature = "WebGlProgram")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getActiveUniforms)] #[doc = "The `getActiveUniforms()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getActiveUniforms)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlProgram`*"] pub fn get_active_uniforms( this: &WebGl2RenderingContext, program: &WebGlProgram, uniform_indices: &::wasm_bindgen::JsValue, pname: u32, ) -> ::wasm_bindgen::JsValue; # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getBufferSubData)] #[doc = "The `getBufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getBufferSubData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn get_buffer_sub_data_with_i32_and_array_buffer_view( this: &WebGl2RenderingContext, target: u32, src_byte_offset: i32, dst_data: &::js_sys::Object, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getBufferSubData)] #[doc = "The `getBufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getBufferSubData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn get_buffer_sub_data_with_f64_and_array_buffer_view( this: &WebGl2RenderingContext, target: u32, src_byte_offset: f64, dst_data: &::js_sys::Object, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getBufferSubData)] #[doc = "The `getBufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getBufferSubData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn get_buffer_sub_data_with_i32_and_u8_array( this: &WebGl2RenderingContext, target: u32, src_byte_offset: i32, dst_data: &mut [u8], ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getBufferSubData)] #[doc = "The `getBufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getBufferSubData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn get_buffer_sub_data_with_f64_and_u8_array( this: &WebGl2RenderingContext, target: u32, src_byte_offset: f64, dst_data: &mut [u8], ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getBufferSubData)] #[doc = "The `getBufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getBufferSubData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn get_buffer_sub_data_with_i32_and_array_buffer_view_and_dst_offset( this: &WebGl2RenderingContext, target: u32, src_byte_offset: i32, dst_data: &::js_sys::Object, dst_offset: u32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getBufferSubData)] #[doc = "The `getBufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getBufferSubData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn get_buffer_sub_data_with_f64_and_array_buffer_view_and_dst_offset( this: &WebGl2RenderingContext, target: u32, src_byte_offset: f64, dst_data: &::js_sys::Object, dst_offset: u32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getBufferSubData)] #[doc = "The `getBufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getBufferSubData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn get_buffer_sub_data_with_i32_and_u8_array_and_dst_offset( this: &WebGl2RenderingContext, target: u32, src_byte_offset: i32, dst_data: &mut [u8], dst_offset: u32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getBufferSubData)] #[doc = "The `getBufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getBufferSubData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn get_buffer_sub_data_with_f64_and_u8_array_and_dst_offset( this: &WebGl2RenderingContext, target: u32, src_byte_offset: f64, dst_data: &mut [u8], dst_offset: u32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getBufferSubData)] #[doc = "The `getBufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getBufferSubData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn get_buffer_sub_data_with_i32_and_array_buffer_view_and_dst_offset_and_length( this: &WebGl2RenderingContext, target: u32, src_byte_offset: i32, dst_data: &::js_sys::Object, dst_offset: u32, length: u32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getBufferSubData)] #[doc = "The `getBufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getBufferSubData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn get_buffer_sub_data_with_f64_and_array_buffer_view_and_dst_offset_and_length( this: &WebGl2RenderingContext, target: u32, src_byte_offset: f64, dst_data: &::js_sys::Object, dst_offset: u32, length: u32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getBufferSubData)] #[doc = "The `getBufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getBufferSubData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn get_buffer_sub_data_with_i32_and_u8_array_and_dst_offset_and_length( this: &WebGl2RenderingContext, target: u32, src_byte_offset: i32, dst_data: &mut [u8], dst_offset: u32, length: u32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getBufferSubData)] #[doc = "The `getBufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getBufferSubData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn get_buffer_sub_data_with_f64_and_u8_array_and_dst_offset_and_length( this: &WebGl2RenderingContext, target: u32, src_byte_offset: f64, dst_data: &mut [u8], dst_offset: u32, length: u32, ); #[cfg(feature = "WebGlProgram")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getFragDataLocation)] #[doc = "The `getFragDataLocation()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getFragDataLocation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlProgram`*"] pub fn get_frag_data_location( this: &WebGl2RenderingContext, program: &WebGlProgram, name: &str, ) -> i32; # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = getIndexedParameter)] #[doc = "The `getIndexedParameter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getIndexedParameter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn get_indexed_parameter( this: &WebGl2RenderingContext, target: u32, index: u32, ) -> Result<::wasm_bindgen::JsValue, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = getInternalformatParameter)] #[doc = "The `getInternalformatParameter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getInternalformatParameter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn get_internalformat_parameter( this: &WebGl2RenderingContext, target: u32, internalformat: u32, pname: u32, ) -> Result<::wasm_bindgen::JsValue, JsValue>; # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getQuery)] #[doc = "The `getQuery()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getQuery)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn get_query( this: &WebGl2RenderingContext, target: u32, pname: u32, ) -> ::wasm_bindgen::JsValue; #[cfg(feature = "WebGlQuery")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getQueryParameter)] #[doc = "The `getQueryParameter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getQueryParameter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlQuery`*"] pub fn get_query_parameter( this: &WebGl2RenderingContext, query: &WebGlQuery, pname: u32, ) -> ::wasm_bindgen::JsValue; #[cfg(feature = "WebGlSampler")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getSamplerParameter)] #[doc = "The `getSamplerParameter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getSamplerParameter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlSampler`*"] pub fn get_sampler_parameter( this: &WebGl2RenderingContext, sampler: &WebGlSampler, pname: u32, ) -> ::wasm_bindgen::JsValue; #[cfg(feature = "WebGlSync")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getSyncParameter)] #[doc = "The `getSyncParameter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getSyncParameter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlSync`*"] pub fn get_sync_parameter( this: &WebGl2RenderingContext, sync: &WebGlSync, pname: u32, ) -> ::wasm_bindgen::JsValue; #[cfg(all(feature = "WebGlActiveInfo", feature = "WebGlProgram",))] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getTransformFeedbackVarying)] #[doc = "The `getTransformFeedbackVarying()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getTransformFeedbackVarying)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlActiveInfo`, `WebGlProgram`*"] pub fn get_transform_feedback_varying( this: &WebGl2RenderingContext, program: &WebGlProgram, index: u32, ) -> Option; #[cfg(feature = "WebGlProgram")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getUniformBlockIndex)] #[doc = "The `getUniformBlockIndex()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getUniformBlockIndex)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlProgram`*"] pub fn get_uniform_block_index( this: &WebGl2RenderingContext, program: &WebGlProgram, uniform_block_name: &str, ) -> u32; #[cfg(feature = "WebGlProgram")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getUniformIndices)] #[doc = "The `getUniformIndices()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getUniformIndices)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlProgram`*"] pub fn get_uniform_indices( this: &WebGl2RenderingContext, program: &WebGlProgram, uniform_names: &::wasm_bindgen::JsValue, ) -> Option<::js_sys::Array>; # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = invalidateFramebuffer)] #[doc = "The `invalidateFramebuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn invalidate_framebuffer( this: &WebGl2RenderingContext, target: u32, attachments: &::wasm_bindgen::JsValue, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = invalidateSubFramebuffer)] #[doc = "The `invalidateSubFramebuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn invalidate_sub_framebuffer( this: &WebGl2RenderingContext, target: u32, attachments: &::wasm_bindgen::JsValue, x: i32, y: i32, width: i32, height: i32, ) -> Result<(), JsValue>; #[cfg(feature = "WebGlQuery")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = isQuery)] #[doc = "The `isQuery()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/isQuery)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlQuery`*"] pub fn is_query(this: &WebGl2RenderingContext, query: Option<&WebGlQuery>) -> bool; #[cfg(feature = "WebGlSampler")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = isSampler)] #[doc = "The `isSampler()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/isSampler)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlSampler`*"] pub fn is_sampler(this: &WebGl2RenderingContext, sampler: Option<&WebGlSampler>) -> bool; #[cfg(feature = "WebGlSync")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = isSync)] #[doc = "The `isSync()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/isSync)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlSync`*"] pub fn is_sync(this: &WebGl2RenderingContext, sync: Option<&WebGlSync>) -> bool; #[cfg(feature = "WebGlTransformFeedback")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = isTransformFeedback)] #[doc = "The `isTransformFeedback()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/isTransformFeedback)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlTransformFeedback`*"] pub fn is_transform_feedback( this: &WebGl2RenderingContext, tf: Option<&WebGlTransformFeedback>, ) -> bool; #[cfg(feature = "WebGlVertexArrayObject")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = isVertexArray)] #[doc = "The `isVertexArray()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/isVertexArray)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlVertexArrayObject`*"] pub fn is_vertex_array( this: &WebGl2RenderingContext, vertex_array: Option<&WebGlVertexArrayObject>, ) -> bool; # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = pauseTransformFeedback)] #[doc = "The `pauseTransformFeedback()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/pauseTransformFeedback)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn pause_transform_feedback(this: &WebGl2RenderingContext); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = readBuffer)] #[doc = "The `readBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/readBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn read_buffer(this: &WebGl2RenderingContext, src: u32); # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = readPixels)] #[doc = "The `readPixels()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/readPixels)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn read_pixels_with_opt_array_buffer_view( this: &WebGl2RenderingContext, x: i32, y: i32, width: i32, height: i32, format: u32, type_: u32, dst_data: Option<&::js_sys::Object>, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = readPixels)] #[doc = "The `readPixels()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/readPixels)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn read_pixels_with_opt_u8_array( this: &WebGl2RenderingContext, x: i32, y: i32, width: i32, height: i32, format: u32, type_: u32, dst_data: Option<&mut [u8]>, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = readPixels)] #[doc = "The `readPixels()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/readPixels)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn read_pixels_with_i32( this: &WebGl2RenderingContext, x: i32, y: i32, width: i32, height: i32, format: u32, type_: u32, offset: i32, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = readPixels)] #[doc = "The `readPixels()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/readPixels)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn read_pixels_with_f64( this: &WebGl2RenderingContext, x: i32, y: i32, width: i32, height: i32, format: u32, type_: u32, offset: f64, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = readPixels)] #[doc = "The `readPixels()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/readPixels)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn read_pixels_with_array_buffer_view_and_dst_offset( this: &WebGl2RenderingContext, x: i32, y: i32, width: i32, height: i32, format: u32, type_: u32, dst_data: &::js_sys::Object, dst_offset: u32, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = readPixels)] #[doc = "The `readPixels()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/readPixels)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn read_pixels_with_u8_array_and_dst_offset( this: &WebGl2RenderingContext, x: i32, y: i32, width: i32, height: i32, format: u32, type_: u32, dst_data: &mut [u8], dst_offset: u32, ) -> Result<(), JsValue>; # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = renderbufferStorageMultisample)] #[doc = "The `renderbufferStorageMultisample()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/renderbufferStorageMultisample)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn renderbuffer_storage_multisample( this: &WebGl2RenderingContext, target: u32, samples: i32, internalformat: u32, width: i32, height: i32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = resumeTransformFeedback)] #[doc = "The `resumeTransformFeedback()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/resumeTransformFeedback)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn resume_transform_feedback(this: &WebGl2RenderingContext); #[cfg(feature = "WebGlSampler")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = samplerParameterf)] #[doc = "The `samplerParameterf()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/samplerParameterf)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlSampler`*"] pub fn sampler_parameterf( this: &WebGl2RenderingContext, sampler: &WebGlSampler, pname: u32, param: f32, ); #[cfg(feature = "WebGlSampler")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = samplerParameteri)] #[doc = "The `samplerParameteri()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/samplerParameteri)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlSampler`*"] pub fn sampler_parameteri( this: &WebGl2RenderingContext, sampler: &WebGlSampler, pname: u32, param: i32, ); # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage2D)] #[doc = "The `texImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn tex_image_2d_with_i32_and_i32_and_i32_and_format_and_type_and_opt_array_buffer_view( this: &WebGl2RenderingContext, target: u32, level: i32, internalformat: i32, width: i32, height: i32, border: i32, format: u32, type_: u32, pixels: Option<&::js_sys::Object>, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage2D)] #[doc = "The `texImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn tex_image_2d_with_i32_and_i32_and_i32_and_format_and_type_and_opt_u8_array( this: &WebGl2RenderingContext, target: u32, level: i32, internalformat: i32, width: i32, height: i32, border: i32, format: u32, type_: u32, pixels: Option<&[u8]>, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlCanvasElement")] # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage2D)] #[doc = "The `texImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `WebGl2RenderingContext`*"] pub fn tex_image_2d_with_u32_and_u32_and_html_canvas_element( this: &WebGl2RenderingContext, target: u32, level: i32, internalformat: i32, format: u32, type_: u32, source: &HtmlCanvasElement, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlImageElement")] # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage2D)] #[doc = "The `texImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`, `WebGl2RenderingContext`*"] pub fn tex_image_2d_with_u32_and_u32_and_html_image_element( this: &WebGl2RenderingContext, target: u32, level: i32, internalformat: i32, format: u32, type_: u32, source: &HtmlImageElement, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlVideoElement")] # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage2D)] #[doc = "The `texImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`, `WebGl2RenderingContext`*"] pub fn tex_image_2d_with_u32_and_u32_and_html_video_element( this: &WebGl2RenderingContext, target: u32, level: i32, internalformat: i32, format: u32, type_: u32, source: &HtmlVideoElement, ) -> Result<(), JsValue>; #[cfg(feature = "ImageBitmap")] # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage2D)] #[doc = "The `texImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `WebGl2RenderingContext`*"] pub fn tex_image_2d_with_u32_and_u32_and_image_bitmap( this: &WebGl2RenderingContext, target: u32, level: i32, internalformat: i32, format: u32, type_: u32, source: &ImageBitmap, ) -> Result<(), JsValue>; #[cfg(feature = "ImageData")] # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage2D)] #[doc = "The `texImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageData`, `WebGl2RenderingContext`*"] pub fn tex_image_2d_with_u32_and_u32_and_image_data( this: &WebGl2RenderingContext, target: u32, level: i32, internalformat: i32, format: u32, type_: u32, source: &ImageData, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage2D)] #[doc = "The `texImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn tex_image_2d_with_i32_and_i32_and_i32_and_format_and_type_and_i32( this: &WebGl2RenderingContext, target: u32, level: i32, internalformat: i32, width: i32, height: i32, border: i32, format: u32, type_: u32, pbo_offset: i32, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage2D)] #[doc = "The `texImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn tex_image_2d_with_i32_and_i32_and_i32_and_format_and_type_and_f64( this: &WebGl2RenderingContext, target: u32, level: i32, internalformat: i32, width: i32, height: i32, border: i32, format: u32, type_: u32, pbo_offset: f64, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlCanvasElement")] # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage2D)] #[doc = "The `texImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `WebGl2RenderingContext`*"] pub fn tex_image_2d_with_i32_and_i32_and_i32_and_format_and_type_and_html_canvas_element( this: &WebGl2RenderingContext, target: u32, level: i32, internalformat: i32, width: i32, height: i32, border: i32, format: u32, type_: u32, source: &HtmlCanvasElement, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlImageElement")] # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage2D)] #[doc = "The `texImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`, `WebGl2RenderingContext`*"] pub fn tex_image_2d_with_i32_and_i32_and_i32_and_format_and_type_and_html_image_element( this: &WebGl2RenderingContext, target: u32, level: i32, internalformat: i32, width: i32, height: i32, border: i32, format: u32, type_: u32, source: &HtmlImageElement, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlVideoElement")] # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage2D)] #[doc = "The `texImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`, `WebGl2RenderingContext`*"] pub fn tex_image_2d_with_i32_and_i32_and_i32_and_format_and_type_and_html_video_element( this: &WebGl2RenderingContext, target: u32, level: i32, internalformat: i32, width: i32, height: i32, border: i32, format: u32, type_: u32, source: &HtmlVideoElement, ) -> Result<(), JsValue>; #[cfg(feature = "ImageBitmap")] # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage2D)] #[doc = "The `texImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `WebGl2RenderingContext`*"] pub fn tex_image_2d_with_i32_and_i32_and_i32_and_format_and_type_and_image_bitmap( this: &WebGl2RenderingContext, target: u32, level: i32, internalformat: i32, width: i32, height: i32, border: i32, format: u32, type_: u32, source: &ImageBitmap, ) -> Result<(), JsValue>; #[cfg(feature = "ImageData")] # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage2D)] #[doc = "The `texImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageData`, `WebGl2RenderingContext`*"] pub fn tex_image_2d_with_i32_and_i32_and_i32_and_format_and_type_and_image_data( this: &WebGl2RenderingContext, target: u32, level: i32, internalformat: i32, width: i32, height: i32, border: i32, format: u32, type_: u32, source: &ImageData, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage2D)] #[doc = "The `texImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn tex_image_2d_with_i32_and_i32_and_i32_and_format_and_type_and_array_buffer_view_and_src_offset( this: &WebGl2RenderingContext, target: u32, level: i32, internalformat: i32, width: i32, height: i32, border: i32, format: u32, type_: u32, src_data: &::js_sys::Object, src_offset: u32, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage2D)] #[doc = "The `texImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn tex_image_2d_with_i32_and_i32_and_i32_and_format_and_type_and_u8_array_and_src_offset( this: &WebGl2RenderingContext, target: u32, level: i32, internalformat: i32, width: i32, height: i32, border: i32, format: u32, type_: u32, src_data: &[u8], src_offset: u32, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage3D)] #[doc = "The `texImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage3D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn tex_image_3d_with_i32( this: &WebGl2RenderingContext, target: u32, level: i32, internalformat: i32, width: i32, height: i32, depth: i32, border: i32, format: u32, type_: u32, pbo_offset: i32, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage3D)] #[doc = "The `texImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage3D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn tex_image_3d_with_f64( this: &WebGl2RenderingContext, target: u32, level: i32, internalformat: i32, width: i32, height: i32, depth: i32, border: i32, format: u32, type_: u32, pbo_offset: f64, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlCanvasElement")] # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage3D)] #[doc = "The `texImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage3D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `WebGl2RenderingContext`*"] pub fn tex_image_3d_with_html_canvas_element( this: &WebGl2RenderingContext, target: u32, level: i32, internalformat: i32, width: i32, height: i32, depth: i32, border: i32, format: u32, type_: u32, source: &HtmlCanvasElement, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlImageElement")] # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage3D)] #[doc = "The `texImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage3D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`, `WebGl2RenderingContext`*"] pub fn tex_image_3d_with_html_image_element( this: &WebGl2RenderingContext, target: u32, level: i32, internalformat: i32, width: i32, height: i32, depth: i32, border: i32, format: u32, type_: u32, source: &HtmlImageElement, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlVideoElement")] # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage3D)] #[doc = "The `texImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage3D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`, `WebGl2RenderingContext`*"] pub fn tex_image_3d_with_html_video_element( this: &WebGl2RenderingContext, target: u32, level: i32, internalformat: i32, width: i32, height: i32, depth: i32, border: i32, format: u32, type_: u32, source: &HtmlVideoElement, ) -> Result<(), JsValue>; #[cfg(feature = "ImageBitmap")] # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage3D)] #[doc = "The `texImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage3D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `WebGl2RenderingContext`*"] pub fn tex_image_3d_with_image_bitmap( this: &WebGl2RenderingContext, target: u32, level: i32, internalformat: i32, width: i32, height: i32, depth: i32, border: i32, format: u32, type_: u32, source: &ImageBitmap, ) -> Result<(), JsValue>; #[cfg(feature = "ImageData")] # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage3D)] #[doc = "The `texImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage3D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageData`, `WebGl2RenderingContext`*"] pub fn tex_image_3d_with_image_data( this: &WebGl2RenderingContext, target: u32, level: i32, internalformat: i32, width: i32, height: i32, depth: i32, border: i32, format: u32, type_: u32, source: &ImageData, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage3D)] #[doc = "The `texImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage3D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn tex_image_3d_with_opt_array_buffer_view( this: &WebGl2RenderingContext, target: u32, level: i32, internalformat: i32, width: i32, height: i32, depth: i32, border: i32, format: u32, type_: u32, src_data: Option<&::js_sys::Object>, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage3D)] #[doc = "The `texImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage3D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn tex_image_3d_with_opt_u8_array( this: &WebGl2RenderingContext, target: u32, level: i32, internalformat: i32, width: i32, height: i32, depth: i32, border: i32, format: u32, type_: u32, src_data: Option<&[u8]>, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage3D)] #[doc = "The `texImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage3D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn tex_image_3d_with_array_buffer_view_and_src_offset( this: &WebGl2RenderingContext, target: u32, level: i32, internalformat: i32, width: i32, height: i32, depth: i32, border: i32, format: u32, type_: u32, src_data: &::js_sys::Object, src_offset: u32, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage3D)] #[doc = "The `texImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage3D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn tex_image_3d_with_u8_array_and_src_offset( this: &WebGl2RenderingContext, target: u32, level: i32, internalformat: i32, width: i32, height: i32, depth: i32, border: i32, format: u32, type_: u32, src_data: &[u8], src_offset: u32, ) -> Result<(), JsValue>; # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = texStorage2D)] #[doc = "The `texStorage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texStorage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn tex_storage_2d( this: &WebGl2RenderingContext, target: u32, levels: i32, internalformat: u32, width: i32, height: i32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = texStorage3D)] #[doc = "The `texStorage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texStorage3D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn tex_storage_3d( this: &WebGl2RenderingContext, target: u32, levels: i32, internalformat: u32, width: i32, height: i32, depth: i32, ); # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage2D)] #[doc = "The `texSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn tex_sub_image_2d_with_i32_and_i32_and_u32_and_type_and_opt_array_buffer_view( this: &WebGl2RenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, width: i32, height: i32, format: u32, type_: u32, pixels: Option<&::js_sys::Object>, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage2D)] #[doc = "The `texSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn tex_sub_image_2d_with_i32_and_i32_and_u32_and_type_and_opt_u8_array( this: &WebGl2RenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, width: i32, height: i32, format: u32, type_: u32, pixels: Option<&[u8]>, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlCanvasElement")] # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage2D)] #[doc = "The `texSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `WebGl2RenderingContext`*"] pub fn tex_sub_image_2d_with_u32_and_u32_and_html_canvas_element( this: &WebGl2RenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, format: u32, type_: u32, source: &HtmlCanvasElement, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlImageElement")] # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage2D)] #[doc = "The `texSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`, `WebGl2RenderingContext`*"] pub fn tex_sub_image_2d_with_u32_and_u32_and_html_image_element( this: &WebGl2RenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, format: u32, type_: u32, source: &HtmlImageElement, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlVideoElement")] # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage2D)] #[doc = "The `texSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`, `WebGl2RenderingContext`*"] pub fn tex_sub_image_2d_with_u32_and_u32_and_html_video_element( this: &WebGl2RenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, format: u32, type_: u32, source: &HtmlVideoElement, ) -> Result<(), JsValue>; #[cfg(feature = "ImageBitmap")] # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage2D)] #[doc = "The `texSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `WebGl2RenderingContext`*"] pub fn tex_sub_image_2d_with_u32_and_u32_and_image_bitmap( this: &WebGl2RenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, format: u32, type_: u32, source: &ImageBitmap, ) -> Result<(), JsValue>; #[cfg(feature = "ImageData")] # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage2D)] #[doc = "The `texSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageData`, `WebGl2RenderingContext`*"] pub fn tex_sub_image_2d_with_u32_and_u32_and_image_data( this: &WebGl2RenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, format: u32, type_: u32, source: &ImageData, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage2D)] #[doc = "The `texSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn tex_sub_image_2d_with_i32_and_i32_and_u32_and_type_and_i32( this: &WebGl2RenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, width: i32, height: i32, format: u32, type_: u32, pbo_offset: i32, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage2D)] #[doc = "The `texSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn tex_sub_image_2d_with_i32_and_i32_and_u32_and_type_and_f64( this: &WebGl2RenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, width: i32, height: i32, format: u32, type_: u32, pbo_offset: f64, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlCanvasElement")] # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage2D)] #[doc = "The `texSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `WebGl2RenderingContext`*"] pub fn tex_sub_image_2d_with_i32_and_i32_and_u32_and_type_and_html_canvas_element( this: &WebGl2RenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, width: i32, height: i32, format: u32, type_: u32, source: &HtmlCanvasElement, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlImageElement")] # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage2D)] #[doc = "The `texSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`, `WebGl2RenderingContext`*"] pub fn tex_sub_image_2d_with_i32_and_i32_and_u32_and_type_and_html_image_element( this: &WebGl2RenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, width: i32, height: i32, format: u32, type_: u32, source: &HtmlImageElement, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlVideoElement")] # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage2D)] #[doc = "The `texSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`, `WebGl2RenderingContext`*"] pub fn tex_sub_image_2d_with_i32_and_i32_and_u32_and_type_and_html_video_element( this: &WebGl2RenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, width: i32, height: i32, format: u32, type_: u32, source: &HtmlVideoElement, ) -> Result<(), JsValue>; #[cfg(feature = "ImageBitmap")] # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage2D)] #[doc = "The `texSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `WebGl2RenderingContext`*"] pub fn tex_sub_image_2d_with_i32_and_i32_and_u32_and_type_and_image_bitmap( this: &WebGl2RenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, width: i32, height: i32, format: u32, type_: u32, source: &ImageBitmap, ) -> Result<(), JsValue>; #[cfg(feature = "ImageData")] # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage2D)] #[doc = "The `texSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageData`, `WebGl2RenderingContext`*"] pub fn tex_sub_image_2d_with_i32_and_i32_and_u32_and_type_and_image_data( this: &WebGl2RenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, width: i32, height: i32, format: u32, type_: u32, source: &ImageData, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage2D)] #[doc = "The `texSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn tex_sub_image_2d_with_i32_and_i32_and_u32_and_type_and_array_buffer_view_and_src_offset( this: &WebGl2RenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, width: i32, height: i32, format: u32, type_: u32, src_data: &::js_sys::Object, src_offset: u32, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage2D)] #[doc = "The `texSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn tex_sub_image_2d_with_i32_and_i32_and_u32_and_type_and_u8_array_and_src_offset( this: &WebGl2RenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, width: i32, height: i32, format: u32, type_: u32, src_data: &[u8], src_offset: u32, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage3D)] #[doc = "The `texSubImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage3D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn tex_sub_image_3d_with_i32( this: &WebGl2RenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, zoffset: i32, width: i32, height: i32, depth: i32, format: u32, type_: u32, pbo_offset: i32, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage3D)] #[doc = "The `texSubImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage3D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn tex_sub_image_3d_with_f64( this: &WebGl2RenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, zoffset: i32, width: i32, height: i32, depth: i32, format: u32, type_: u32, pbo_offset: f64, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlCanvasElement")] # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage3D)] #[doc = "The `texSubImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage3D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `WebGl2RenderingContext`*"] pub fn tex_sub_image_3d_with_html_canvas_element( this: &WebGl2RenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, zoffset: i32, width: i32, height: i32, depth: i32, format: u32, type_: u32, source: &HtmlCanvasElement, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlImageElement")] # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage3D)] #[doc = "The `texSubImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage3D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`, `WebGl2RenderingContext`*"] pub fn tex_sub_image_3d_with_html_image_element( this: &WebGl2RenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, zoffset: i32, width: i32, height: i32, depth: i32, format: u32, type_: u32, source: &HtmlImageElement, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlVideoElement")] # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage3D)] #[doc = "The `texSubImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage3D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`, `WebGl2RenderingContext`*"] pub fn tex_sub_image_3d_with_html_video_element( this: &WebGl2RenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, zoffset: i32, width: i32, height: i32, depth: i32, format: u32, type_: u32, source: &HtmlVideoElement, ) -> Result<(), JsValue>; #[cfg(feature = "ImageBitmap")] # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage3D)] #[doc = "The `texSubImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage3D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `WebGl2RenderingContext`*"] pub fn tex_sub_image_3d_with_image_bitmap( this: &WebGl2RenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, zoffset: i32, width: i32, height: i32, depth: i32, format: u32, type_: u32, source: &ImageBitmap, ) -> Result<(), JsValue>; #[cfg(feature = "ImageData")] # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage3D)] #[doc = "The `texSubImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage3D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageData`, `WebGl2RenderingContext`*"] pub fn tex_sub_image_3d_with_image_data( this: &WebGl2RenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, zoffset: i32, width: i32, height: i32, depth: i32, format: u32, type_: u32, source: &ImageData, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage3D)] #[doc = "The `texSubImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage3D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn tex_sub_image_3d_with_opt_array_buffer_view( this: &WebGl2RenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, zoffset: i32, width: i32, height: i32, depth: i32, format: u32, type_: u32, src_data: Option<&::js_sys::Object>, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage3D)] #[doc = "The `texSubImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage3D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn tex_sub_image_3d_with_opt_u8_array( this: &WebGl2RenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, zoffset: i32, width: i32, height: i32, depth: i32, format: u32, type_: u32, src_data: Option<&[u8]>, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage3D)] #[doc = "The `texSubImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage3D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn tex_sub_image_3d_with_opt_array_buffer_view_and_src_offset( this: &WebGl2RenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, zoffset: i32, width: i32, height: i32, depth: i32, format: u32, type_: u32, src_data: Option<&::js_sys::Object>, src_offset: u32, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage3D)] #[doc = "The `texSubImage3D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage3D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn tex_sub_image_3d_with_opt_u8_array_and_src_offset( this: &WebGl2RenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, zoffset: i32, width: i32, height: i32, depth: i32, format: u32, type_: u32, src_data: Option<&[u8]>, src_offset: u32, ) -> Result<(), JsValue>; #[cfg(feature = "WebGlProgram")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = transformFeedbackVaryings)] #[doc = "The `transformFeedbackVaryings()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlProgram`*"] pub fn transform_feedback_varyings( this: &WebGl2RenderingContext, program: &WebGlProgram, varyings: &::wasm_bindgen::JsValue, buffer_mode: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1fv)] #[doc = "The `uniform1fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform1fv_with_f32_array( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &[f32], ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1fv)] #[doc = "The `uniform1fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform1fv_with_f32_sequence( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1fv)] #[doc = "The `uniform1fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform1fv_with_f32_array_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &[f32], src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1fv)] #[doc = "The `uniform1fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform1fv_with_f32_sequence_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::wasm_bindgen::JsValue, src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1fv)] #[doc = "The `uniform1fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform1fv_with_f32_array_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &[f32], src_offset: u32, src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1fv)] #[doc = "The `uniform1fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform1fv_with_f32_sequence_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::wasm_bindgen::JsValue, src_offset: u32, src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1iv)] #[doc = "The `uniform1iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1iv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform1iv_with_i32_array( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &[i32], ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1iv)] #[doc = "The `uniform1iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1iv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform1iv_with_i32_sequence( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1iv)] #[doc = "The `uniform1iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1iv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform1iv_with_i32_array_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &[i32], src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1iv)] #[doc = "The `uniform1iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1iv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform1iv_with_i32_sequence_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::wasm_bindgen::JsValue, src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1iv)] #[doc = "The `uniform1iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1iv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform1iv_with_i32_array_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &[i32], src_offset: u32, src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1iv)] #[doc = "The `uniform1iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1iv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform1iv_with_i32_sequence_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::wasm_bindgen::JsValue, src_offset: u32, src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1ui)] #[doc = "The `uniform1ui()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1ui)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform1ui( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, v0: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1uiv)] #[doc = "The `uniform1uiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1uiv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform1uiv_with_u32_array( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &[u32], ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1uiv)] #[doc = "The `uniform1uiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1uiv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform1uiv_with_u32_sequence( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1uiv)] #[doc = "The `uniform1uiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1uiv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform1uiv_with_u32_array_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &[u32], src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1uiv)] #[doc = "The `uniform1uiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1uiv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform1uiv_with_u32_sequence_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::wasm_bindgen::JsValue, src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1uiv)] #[doc = "The `uniform1uiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1uiv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform1uiv_with_u32_array_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &[u32], src_offset: u32, src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1uiv)] #[doc = "The `uniform1uiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1uiv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform1uiv_with_u32_sequence_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::wasm_bindgen::JsValue, src_offset: u32, src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2fv)] #[doc = "The `uniform2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform2fv_with_f32_array( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &[f32], ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2fv)] #[doc = "The `uniform2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform2fv_with_f32_sequence( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2fv)] #[doc = "The `uniform2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform2fv_with_f32_array_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &[f32], src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2fv)] #[doc = "The `uniform2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform2fv_with_f32_sequence_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::wasm_bindgen::JsValue, src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2fv)] #[doc = "The `uniform2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform2fv_with_f32_array_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &[f32], src_offset: u32, src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2fv)] #[doc = "The `uniform2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform2fv_with_f32_sequence_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::wasm_bindgen::JsValue, src_offset: u32, src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2iv)] #[doc = "The `uniform2iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2iv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform2iv_with_i32_array( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &[i32], ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2iv)] #[doc = "The `uniform2iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2iv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform2iv_with_i32_sequence( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2iv)] #[doc = "The `uniform2iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2iv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform2iv_with_i32_array_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &[i32], src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2iv)] #[doc = "The `uniform2iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2iv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform2iv_with_i32_sequence_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::wasm_bindgen::JsValue, src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2iv)] #[doc = "The `uniform2iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2iv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform2iv_with_i32_array_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &[i32], src_offset: u32, src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2iv)] #[doc = "The `uniform2iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2iv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform2iv_with_i32_sequence_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::wasm_bindgen::JsValue, src_offset: u32, src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2ui)] #[doc = "The `uniform2ui()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2ui)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform2ui( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, v0: u32, v1: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2uiv)] #[doc = "The `uniform2uiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2uiv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform2uiv_with_u32_array( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &[u32], ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2uiv)] #[doc = "The `uniform2uiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2uiv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform2uiv_with_u32_sequence( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2uiv)] #[doc = "The `uniform2uiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2uiv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform2uiv_with_u32_array_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &[u32], src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2uiv)] #[doc = "The `uniform2uiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2uiv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform2uiv_with_u32_sequence_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::wasm_bindgen::JsValue, src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2uiv)] #[doc = "The `uniform2uiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2uiv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform2uiv_with_u32_array_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &[u32], src_offset: u32, src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2uiv)] #[doc = "The `uniform2uiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2uiv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform2uiv_with_u32_sequence_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::wasm_bindgen::JsValue, src_offset: u32, src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3fv)] #[doc = "The `uniform3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform3fv_with_f32_array( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &[f32], ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3fv)] #[doc = "The `uniform3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform3fv_with_f32_sequence( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3fv)] #[doc = "The `uniform3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform3fv_with_f32_array_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &[f32], src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3fv)] #[doc = "The `uniform3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform3fv_with_f32_sequence_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::wasm_bindgen::JsValue, src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3fv)] #[doc = "The `uniform3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform3fv_with_f32_array_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &[f32], src_offset: u32, src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3fv)] #[doc = "The `uniform3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform3fv_with_f32_sequence_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::wasm_bindgen::JsValue, src_offset: u32, src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3iv)] #[doc = "The `uniform3iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3iv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform3iv_with_i32_array( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &[i32], ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3iv)] #[doc = "The `uniform3iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3iv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform3iv_with_i32_sequence( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3iv)] #[doc = "The `uniform3iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3iv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform3iv_with_i32_array_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &[i32], src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3iv)] #[doc = "The `uniform3iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3iv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform3iv_with_i32_sequence_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::wasm_bindgen::JsValue, src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3iv)] #[doc = "The `uniform3iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3iv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform3iv_with_i32_array_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &[i32], src_offset: u32, src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3iv)] #[doc = "The `uniform3iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3iv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform3iv_with_i32_sequence_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::wasm_bindgen::JsValue, src_offset: u32, src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3ui)] #[doc = "The `uniform3ui()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3ui)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform3ui( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, v0: u32, v1: u32, v2: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3uiv)] #[doc = "The `uniform3uiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3uiv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform3uiv_with_u32_array( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &[u32], ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3uiv)] #[doc = "The `uniform3uiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3uiv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform3uiv_with_u32_sequence( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3uiv)] #[doc = "The `uniform3uiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3uiv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform3uiv_with_u32_array_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &[u32], src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3uiv)] #[doc = "The `uniform3uiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3uiv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform3uiv_with_u32_sequence_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::wasm_bindgen::JsValue, src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3uiv)] #[doc = "The `uniform3uiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3uiv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform3uiv_with_u32_array_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &[u32], src_offset: u32, src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3uiv)] #[doc = "The `uniform3uiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3uiv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform3uiv_with_u32_sequence_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::wasm_bindgen::JsValue, src_offset: u32, src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4fv)] #[doc = "The `uniform4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform4fv_with_f32_array( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &[f32], ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4fv)] #[doc = "The `uniform4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform4fv_with_f32_sequence( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4fv)] #[doc = "The `uniform4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform4fv_with_f32_array_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &[f32], src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4fv)] #[doc = "The `uniform4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform4fv_with_f32_sequence_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::wasm_bindgen::JsValue, src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4fv)] #[doc = "The `uniform4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform4fv_with_f32_array_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &[f32], src_offset: u32, src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4fv)] #[doc = "The `uniform4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform4fv_with_f32_sequence_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::wasm_bindgen::JsValue, src_offset: u32, src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4iv)] #[doc = "The `uniform4iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4iv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform4iv_with_i32_array( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &[i32], ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4iv)] #[doc = "The `uniform4iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4iv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform4iv_with_i32_sequence( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4iv)] #[doc = "The `uniform4iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4iv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform4iv_with_i32_array_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &[i32], src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4iv)] #[doc = "The `uniform4iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4iv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform4iv_with_i32_sequence_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::wasm_bindgen::JsValue, src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4iv)] #[doc = "The `uniform4iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4iv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform4iv_with_i32_array_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &[i32], src_offset: u32, src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4iv)] #[doc = "The `uniform4iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4iv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform4iv_with_i32_sequence_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::wasm_bindgen::JsValue, src_offset: u32, src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4ui)] #[doc = "The `uniform4ui()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4ui)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform4ui( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, v0: u32, v1: u32, v2: u32, v3: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4uiv)] #[doc = "The `uniform4uiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4uiv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform4uiv_with_u32_array( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &[u32], ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4uiv)] #[doc = "The `uniform4uiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4uiv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform4uiv_with_u32_sequence( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4uiv)] #[doc = "The `uniform4uiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4uiv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform4uiv_with_u32_array_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &[u32], src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4uiv)] #[doc = "The `uniform4uiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4uiv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform4uiv_with_u32_sequence_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::wasm_bindgen::JsValue, src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4uiv)] #[doc = "The `uniform4uiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4uiv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform4uiv_with_u32_array_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &[u32], src_offset: u32, src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4uiv)] #[doc = "The `uniform4uiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4uiv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform4uiv_with_u32_sequence_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::wasm_bindgen::JsValue, src_offset: u32, src_length: u32, ); #[cfg(feature = "WebGlProgram")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformBlockBinding)] #[doc = "The `uniformBlockBinding()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformBlockBinding)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlProgram`*"] pub fn uniform_block_binding( this: &WebGl2RenderingContext, program: &WebGlProgram, uniform_block_index: u32, uniform_block_binding: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix2fv)] #[doc = "The `uniformMatrix2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix2fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix2fv_with_f32_array( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &[f32], ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix2fv)] #[doc = "The `uniformMatrix2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix2fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix2fv_with_f32_sequence( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix2fv)] #[doc = "The `uniformMatrix2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix2fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix2fv_with_f32_array_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &[f32], src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix2fv)] #[doc = "The `uniformMatrix2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix2fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix2fv_with_f32_sequence_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::wasm_bindgen::JsValue, src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix2fv)] #[doc = "The `uniformMatrix2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix2fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix2fv_with_f32_array_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &[f32], src_offset: u32, src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix2fv)] #[doc = "The `uniformMatrix2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix2fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix2fv_with_f32_sequence_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::wasm_bindgen::JsValue, src_offset: u32, src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix2x3fv)] #[doc = "The `uniformMatrix2x3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix2x3fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix2x3fv_with_f32_array( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &[f32], ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix2x3fv)] #[doc = "The `uniformMatrix2x3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix2x3fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix2x3fv_with_f32_sequence( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix2x3fv)] #[doc = "The `uniformMatrix2x3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix2x3fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix2x3fv_with_f32_array_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &[f32], src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix2x3fv)] #[doc = "The `uniformMatrix2x3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix2x3fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix2x3fv_with_f32_sequence_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::wasm_bindgen::JsValue, src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix2x3fv)] #[doc = "The `uniformMatrix2x3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix2x3fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix2x3fv_with_f32_array_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &[f32], src_offset: u32, src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix2x3fv)] #[doc = "The `uniformMatrix2x3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix2x3fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix2x3fv_with_f32_sequence_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::wasm_bindgen::JsValue, src_offset: u32, src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix2x4fv)] #[doc = "The `uniformMatrix2x4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix2x4fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix2x4fv_with_f32_array( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &[f32], ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix2x4fv)] #[doc = "The `uniformMatrix2x4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix2x4fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix2x4fv_with_f32_sequence( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix2x4fv)] #[doc = "The `uniformMatrix2x4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix2x4fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix2x4fv_with_f32_array_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &[f32], src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix2x4fv)] #[doc = "The `uniformMatrix2x4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix2x4fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix2x4fv_with_f32_sequence_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::wasm_bindgen::JsValue, src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix2x4fv)] #[doc = "The `uniformMatrix2x4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix2x4fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix2x4fv_with_f32_array_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &[f32], src_offset: u32, src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix2x4fv)] #[doc = "The `uniformMatrix2x4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix2x4fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix2x4fv_with_f32_sequence_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::wasm_bindgen::JsValue, src_offset: u32, src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix3fv)] #[doc = "The `uniformMatrix3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix3fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix3fv_with_f32_array( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &[f32], ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix3fv)] #[doc = "The `uniformMatrix3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix3fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix3fv_with_f32_sequence( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix3fv)] #[doc = "The `uniformMatrix3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix3fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix3fv_with_f32_array_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &[f32], src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix3fv)] #[doc = "The `uniformMatrix3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix3fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix3fv_with_f32_sequence_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::wasm_bindgen::JsValue, src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix3fv)] #[doc = "The `uniformMatrix3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix3fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix3fv_with_f32_array_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &[f32], src_offset: u32, src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix3fv)] #[doc = "The `uniformMatrix3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix3fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix3fv_with_f32_sequence_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::wasm_bindgen::JsValue, src_offset: u32, src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix3x2fv)] #[doc = "The `uniformMatrix3x2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix3x2fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix3x2fv_with_f32_array( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &[f32], ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix3x2fv)] #[doc = "The `uniformMatrix3x2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix3x2fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix3x2fv_with_f32_sequence( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix3x2fv)] #[doc = "The `uniformMatrix3x2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix3x2fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix3x2fv_with_f32_array_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &[f32], src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix3x2fv)] #[doc = "The `uniformMatrix3x2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix3x2fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix3x2fv_with_f32_sequence_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::wasm_bindgen::JsValue, src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix3x2fv)] #[doc = "The `uniformMatrix3x2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix3x2fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix3x2fv_with_f32_array_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &[f32], src_offset: u32, src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix3x2fv)] #[doc = "The `uniformMatrix3x2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix3x2fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix3x2fv_with_f32_sequence_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::wasm_bindgen::JsValue, src_offset: u32, src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix3x4fv)] #[doc = "The `uniformMatrix3x4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix3x4fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix3x4fv_with_f32_array( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &[f32], ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix3x4fv)] #[doc = "The `uniformMatrix3x4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix3x4fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix3x4fv_with_f32_sequence( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix3x4fv)] #[doc = "The `uniformMatrix3x4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix3x4fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix3x4fv_with_f32_array_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &[f32], src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix3x4fv)] #[doc = "The `uniformMatrix3x4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix3x4fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix3x4fv_with_f32_sequence_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::wasm_bindgen::JsValue, src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix3x4fv)] #[doc = "The `uniformMatrix3x4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix3x4fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix3x4fv_with_f32_array_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &[f32], src_offset: u32, src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix3x4fv)] #[doc = "The `uniformMatrix3x4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix3x4fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix3x4fv_with_f32_sequence_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::wasm_bindgen::JsValue, src_offset: u32, src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix4fv)] #[doc = "The `uniformMatrix4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix4fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix4fv_with_f32_array( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &[f32], ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix4fv)] #[doc = "The `uniformMatrix4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix4fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix4fv_with_f32_sequence( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix4fv)] #[doc = "The `uniformMatrix4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix4fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix4fv_with_f32_array_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &[f32], src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix4fv)] #[doc = "The `uniformMatrix4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix4fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix4fv_with_f32_sequence_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::wasm_bindgen::JsValue, src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix4fv)] #[doc = "The `uniformMatrix4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix4fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix4fv_with_f32_array_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &[f32], src_offset: u32, src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix4fv)] #[doc = "The `uniformMatrix4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix4fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix4fv_with_f32_sequence_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::wasm_bindgen::JsValue, src_offset: u32, src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix4x2fv)] #[doc = "The `uniformMatrix4x2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix4x2fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix4x2fv_with_f32_array( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &[f32], ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix4x2fv)] #[doc = "The `uniformMatrix4x2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix4x2fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix4x2fv_with_f32_sequence( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix4x2fv)] #[doc = "The `uniformMatrix4x2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix4x2fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix4x2fv_with_f32_array_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &[f32], src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix4x2fv)] #[doc = "The `uniformMatrix4x2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix4x2fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix4x2fv_with_f32_sequence_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::wasm_bindgen::JsValue, src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix4x2fv)] #[doc = "The `uniformMatrix4x2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix4x2fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix4x2fv_with_f32_array_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &[f32], src_offset: u32, src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix4x2fv)] #[doc = "The `uniformMatrix4x2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix4x2fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix4x2fv_with_f32_sequence_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::wasm_bindgen::JsValue, src_offset: u32, src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix4x3fv)] #[doc = "The `uniformMatrix4x3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix4x3fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix4x3fv_with_f32_array( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &[f32], ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix4x3fv)] #[doc = "The `uniformMatrix4x3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix4x3fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix4x3fv_with_f32_sequence( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix4x3fv)] #[doc = "The `uniformMatrix4x3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix4x3fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix4x3fv_with_f32_array_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &[f32], src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix4x3fv)] #[doc = "The `uniformMatrix4x3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix4x3fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix4x3fv_with_f32_sequence_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::wasm_bindgen::JsValue, src_offset: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix4x3fv)] #[doc = "The `uniformMatrix4x3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix4x3fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix4x3fv_with_f32_array_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &[f32], src_offset: u32, src_length: u32, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix4x3fv)] #[doc = "The `uniformMatrix4x3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix4x3fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix4x3fv_with_f32_sequence_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::wasm_bindgen::JsValue, src_offset: u32, src_length: u32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttribDivisor)] #[doc = "The `vertexAttribDivisor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttribDivisor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn vertex_attrib_divisor(this: &WebGl2RenderingContext, index: u32, divisor: u32); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttribI4i)] #[doc = "The `vertexAttribI4i()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttribI4i)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn vertex_attrib_i4i( this: &WebGl2RenderingContext, index: u32, x: i32, y: i32, z: i32, w: i32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttribI4iv)] #[doc = "The `vertexAttribI4iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttribI4iv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn vertex_attrib_i4iv_with_i32_array( this: &WebGl2RenderingContext, index: u32, values: &mut [i32], ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttribI4iv)] #[doc = "The `vertexAttribI4iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttribI4iv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn vertex_attrib_i4iv_with_i32_sequence( this: &WebGl2RenderingContext, index: u32, values: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttribI4ui)] #[doc = "The `vertexAttribI4ui()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttribI4ui)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn vertex_attrib_i4ui( this: &WebGl2RenderingContext, index: u32, x: u32, y: u32, z: u32, w: u32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttribI4uiv)] #[doc = "The `vertexAttribI4uiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttribI4uiv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn vertex_attrib_i4uiv_with_u32_array( this: &WebGl2RenderingContext, index: u32, values: &mut [u32], ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttribI4uiv)] #[doc = "The `vertexAttribI4uiv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttribI4uiv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn vertex_attrib_i4uiv_with_u32_sequence( this: &WebGl2RenderingContext, index: u32, values: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttribIPointer)] #[doc = "The `vertexAttribIPointer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttribIPointer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn vertex_attrib_i_pointer_with_i32( this: &WebGl2RenderingContext, index: u32, size: i32, type_: u32, stride: i32, offset: i32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttribIPointer)] #[doc = "The `vertexAttribIPointer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttribIPointer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn vertex_attrib_i_pointer_with_f64( this: &WebGl2RenderingContext, index: u32, size: i32, type_: u32, stride: i32, offset: f64, ); #[cfg(feature = "WebGlSync")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = waitSync)] #[doc = "The `waitSync()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/waitSync)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlSync`*"] pub fn wait_sync_with_i32( this: &WebGl2RenderingContext, sync: &WebGlSync, flags: u32, timeout: i32, ); #[cfg(feature = "WebGlSync")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = waitSync)] #[doc = "The `waitSync()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/waitSync)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlSync`*"] pub fn wait_sync_with_f64( this: &WebGl2RenderingContext, sync: &WebGlSync, flags: u32, timeout: f64, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = activeTexture)] #[doc = "The `activeTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/activeTexture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn active_texture(this: &WebGl2RenderingContext, texture: u32); #[cfg(all(feature = "WebGlProgram", feature = "WebGlShader",))] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = attachShader)] #[doc = "The `attachShader()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/attachShader)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlProgram`, `WebGlShader`*"] pub fn attach_shader( this: &WebGl2RenderingContext, program: &WebGlProgram, shader: &WebGlShader, ); #[cfg(feature = "WebGlProgram")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bindAttribLocation)] #[doc = "The `bindAttribLocation()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bindAttribLocation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlProgram`*"] pub fn bind_attrib_location( this: &WebGl2RenderingContext, program: &WebGlProgram, index: u32, name: &str, ); #[cfg(feature = "WebGlBuffer")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bindBuffer)] #[doc = "The `bindBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bindBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlBuffer`*"] pub fn bind_buffer(this: &WebGl2RenderingContext, target: u32, buffer: Option<&WebGlBuffer>); #[cfg(feature = "WebGlFramebuffer")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bindFramebuffer)] #[doc = "The `bindFramebuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bindFramebuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlFramebuffer`*"] pub fn bind_framebuffer( this: &WebGl2RenderingContext, target: u32, framebuffer: Option<&WebGlFramebuffer>, ); #[cfg(feature = "WebGlRenderbuffer")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bindRenderbuffer)] #[doc = "The `bindRenderbuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bindRenderbuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlRenderbuffer`*"] pub fn bind_renderbuffer( this: &WebGl2RenderingContext, target: u32, renderbuffer: Option<&WebGlRenderbuffer>, ); #[cfg(feature = "WebGlTexture")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = bindTexture)] #[doc = "The `bindTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bindTexture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlTexture`*"] pub fn bind_texture(this: &WebGl2RenderingContext, target: u32, texture: Option<&WebGlTexture>); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = blendColor)] #[doc = "The `blendColor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/blendColor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn blend_color(this: &WebGl2RenderingContext, red: f32, green: f32, blue: f32, alpha: f32); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = blendEquation)] #[doc = "The `blendEquation()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/blendEquation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn blend_equation(this: &WebGl2RenderingContext, mode: u32); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = blendEquationSeparate)] #[doc = "The `blendEquationSeparate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/blendEquationSeparate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn blend_equation_separate(this: &WebGl2RenderingContext, mode_rgb: u32, mode_alpha: u32); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = blendFunc)] #[doc = "The `blendFunc()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/blendFunc)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn blend_func(this: &WebGl2RenderingContext, sfactor: u32, dfactor: u32); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = blendFuncSeparate)] #[doc = "The `blendFuncSeparate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/blendFuncSeparate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn blend_func_separate( this: &WebGl2RenderingContext, src_rgb: u32, dst_rgb: u32, src_alpha: u32, dst_alpha: u32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = checkFramebufferStatus)] #[doc = "The `checkFramebufferStatus()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/checkFramebufferStatus)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn check_framebuffer_status(this: &WebGl2RenderingContext, target: u32) -> u32; # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = clear)] #[doc = "The `clear()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clear)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn clear(this: &WebGl2RenderingContext, mask: u32); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = clearColor)] #[doc = "The `clearColor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clearColor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn clear_color(this: &WebGl2RenderingContext, red: f32, green: f32, blue: f32, alpha: f32); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = clearDepth)] #[doc = "The `clearDepth()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clearDepth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn clear_depth(this: &WebGl2RenderingContext, depth: f32); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = clearStencil)] #[doc = "The `clearStencil()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clearStencil)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn clear_stencil(this: &WebGl2RenderingContext, s: i32); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = colorMask)] #[doc = "The `colorMask()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/colorMask)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn color_mask( this: &WebGl2RenderingContext, red: bool, green: bool, blue: bool, alpha: bool, ); #[cfg(feature = "WebGlShader")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = compileShader)] #[doc = "The `compileShader()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compileShader)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlShader`*"] pub fn compile_shader(this: &WebGl2RenderingContext, shader: &WebGlShader); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = copyTexImage2D)] #[doc = "The `copyTexImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/copyTexImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn copy_tex_image_2d( this: &WebGl2RenderingContext, target: u32, level: i32, internalformat: u32, x: i32, y: i32, width: i32, height: i32, border: i32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = copyTexSubImage2D)] #[doc = "The `copyTexSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/copyTexSubImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn copy_tex_sub_image_2d( this: &WebGl2RenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, x: i32, y: i32, width: i32, height: i32, ); #[cfg(feature = "WebGlBuffer")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = createBuffer)] #[doc = "The `createBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/createBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlBuffer`*"] pub fn create_buffer(this: &WebGl2RenderingContext) -> Option; #[cfg(feature = "WebGlFramebuffer")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = createFramebuffer)] #[doc = "The `createFramebuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/createFramebuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlFramebuffer`*"] pub fn create_framebuffer(this: &WebGl2RenderingContext) -> Option; #[cfg(feature = "WebGlProgram")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = createProgram)] #[doc = "The `createProgram()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/createProgram)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlProgram`*"] pub fn create_program(this: &WebGl2RenderingContext) -> Option; #[cfg(feature = "WebGlRenderbuffer")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = createRenderbuffer)] #[doc = "The `createRenderbuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/createRenderbuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlRenderbuffer`*"] pub fn create_renderbuffer(this: &WebGl2RenderingContext) -> Option; #[cfg(feature = "WebGlShader")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = createShader)] #[doc = "The `createShader()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/createShader)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlShader`*"] pub fn create_shader(this: &WebGl2RenderingContext, type_: u32) -> Option; #[cfg(feature = "WebGlTexture")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = createTexture)] #[doc = "The `createTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/createTexture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlTexture`*"] pub fn create_texture(this: &WebGl2RenderingContext) -> Option; # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = cullFace)] #[doc = "The `cullFace()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/cullFace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn cull_face(this: &WebGl2RenderingContext, mode: u32); #[cfg(feature = "WebGlBuffer")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = deleteBuffer)] #[doc = "The `deleteBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/deleteBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlBuffer`*"] pub fn delete_buffer(this: &WebGl2RenderingContext, buffer: Option<&WebGlBuffer>); #[cfg(feature = "WebGlFramebuffer")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = deleteFramebuffer)] #[doc = "The `deleteFramebuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/deleteFramebuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlFramebuffer`*"] pub fn delete_framebuffer( this: &WebGl2RenderingContext, framebuffer: Option<&WebGlFramebuffer>, ); #[cfg(feature = "WebGlProgram")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = deleteProgram)] #[doc = "The `deleteProgram()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/deleteProgram)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlProgram`*"] pub fn delete_program(this: &WebGl2RenderingContext, program: Option<&WebGlProgram>); #[cfg(feature = "WebGlRenderbuffer")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = deleteRenderbuffer)] #[doc = "The `deleteRenderbuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/deleteRenderbuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlRenderbuffer`*"] pub fn delete_renderbuffer( this: &WebGl2RenderingContext, renderbuffer: Option<&WebGlRenderbuffer>, ); #[cfg(feature = "WebGlShader")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = deleteShader)] #[doc = "The `deleteShader()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/deleteShader)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlShader`*"] pub fn delete_shader(this: &WebGl2RenderingContext, shader: Option<&WebGlShader>); #[cfg(feature = "WebGlTexture")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = deleteTexture)] #[doc = "The `deleteTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/deleteTexture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlTexture`*"] pub fn delete_texture(this: &WebGl2RenderingContext, texture: Option<&WebGlTexture>); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = depthFunc)] #[doc = "The `depthFunc()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/depthFunc)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn depth_func(this: &WebGl2RenderingContext, func: u32); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = depthMask)] #[doc = "The `depthMask()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/depthMask)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn depth_mask(this: &WebGl2RenderingContext, flag: bool); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = depthRange)] #[doc = "The `depthRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/depthRange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn depth_range(this: &WebGl2RenderingContext, z_near: f32, z_far: f32); #[cfg(all(feature = "WebGlProgram", feature = "WebGlShader",))] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = detachShader)] #[doc = "The `detachShader()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/detachShader)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlProgram`, `WebGlShader`*"] pub fn detach_shader( this: &WebGl2RenderingContext, program: &WebGlProgram, shader: &WebGlShader, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = disable)] #[doc = "The `disable()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/disable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn disable(this: &WebGl2RenderingContext, cap: u32); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = disableVertexAttribArray)] #[doc = "The `disableVertexAttribArray()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/disableVertexAttribArray)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn disable_vertex_attrib_array(this: &WebGl2RenderingContext, index: u32); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = drawArrays)] #[doc = "The `drawArrays()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/drawArrays)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn draw_arrays(this: &WebGl2RenderingContext, mode: u32, first: i32, count: i32); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = drawElements)] #[doc = "The `drawElements()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/drawElements)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn draw_elements_with_i32( this: &WebGl2RenderingContext, mode: u32, count: i32, type_: u32, offset: i32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = drawElements)] #[doc = "The `drawElements()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/drawElements)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn draw_elements_with_f64( this: &WebGl2RenderingContext, mode: u32, count: i32, type_: u32, offset: f64, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = enable)] #[doc = "The `enable()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/enable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn enable(this: &WebGl2RenderingContext, cap: u32); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = enableVertexAttribArray)] #[doc = "The `enableVertexAttribArray()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/enableVertexAttribArray)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn enable_vertex_attrib_array(this: &WebGl2RenderingContext, index: u32); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = finish)] #[doc = "The `finish()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/finish)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn finish(this: &WebGl2RenderingContext); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = flush)] #[doc = "The `flush()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/flush)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn flush(this: &WebGl2RenderingContext); #[cfg(feature = "WebGlRenderbuffer")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = framebufferRenderbuffer)] #[doc = "The `framebufferRenderbuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/framebufferRenderbuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlRenderbuffer`*"] pub fn framebuffer_renderbuffer( this: &WebGl2RenderingContext, target: u32, attachment: u32, renderbuffertarget: u32, renderbuffer: Option<&WebGlRenderbuffer>, ); #[cfg(feature = "WebGlTexture")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = framebufferTexture2D)] #[doc = "The `framebufferTexture2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/framebufferTexture2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlTexture`*"] pub fn framebuffer_texture_2d( this: &WebGl2RenderingContext, target: u32, attachment: u32, textarget: u32, texture: Option<&WebGlTexture>, level: i32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = frontFace)] #[doc = "The `frontFace()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/frontFace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn front_face(this: &WebGl2RenderingContext, mode: u32); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = generateMipmap)] #[doc = "The `generateMipmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/generateMipmap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn generate_mipmap(this: &WebGl2RenderingContext, target: u32); #[cfg(all(feature = "WebGlActiveInfo", feature = "WebGlProgram",))] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getActiveAttrib)] #[doc = "The `getActiveAttrib()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getActiveAttrib)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlActiveInfo`, `WebGlProgram`*"] pub fn get_active_attrib( this: &WebGl2RenderingContext, program: &WebGlProgram, index: u32, ) -> Option; #[cfg(all(feature = "WebGlActiveInfo", feature = "WebGlProgram",))] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getActiveUniform)] #[doc = "The `getActiveUniform()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getActiveUniform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlActiveInfo`, `WebGlProgram`*"] pub fn get_active_uniform( this: &WebGl2RenderingContext, program: &WebGlProgram, index: u32, ) -> Option; #[cfg(feature = "WebGlProgram")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getAttachedShaders)] #[doc = "The `getAttachedShaders()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getAttachedShaders)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlProgram`*"] pub fn get_attached_shaders( this: &WebGl2RenderingContext, program: &WebGlProgram, ) -> Option<::js_sys::Array>; #[cfg(feature = "WebGlProgram")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getAttribLocation)] #[doc = "The `getAttribLocation()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getAttribLocation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlProgram`*"] pub fn get_attrib_location( this: &WebGl2RenderingContext, program: &WebGlProgram, name: &str, ) -> i32; # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getBufferParameter)] #[doc = "The `getBufferParameter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getBufferParameter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn get_buffer_parameter( this: &WebGl2RenderingContext, target: u32, pname: u32, ) -> ::wasm_bindgen::JsValue; #[cfg(feature = "WebGlContextAttributes")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getContextAttributes)] #[doc = "The `getContextAttributes()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getContextAttributes)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlContextAttributes`*"] pub fn get_context_attributes(this: &WebGl2RenderingContext) -> Option; # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getError)] #[doc = "The `getError()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getError)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn get_error(this: &WebGl2RenderingContext) -> u32; # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = getExtension)] #[doc = "The `getExtension()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getExtension)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn get_extension( this: &WebGl2RenderingContext, name: &str, ) -> Result, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = getFramebufferAttachmentParameter)] #[doc = "The `getFramebufferAttachmentParameter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getFramebufferAttachmentParameter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn get_framebuffer_attachment_parameter( this: &WebGl2RenderingContext, target: u32, attachment: u32, pname: u32, ) -> Result<::wasm_bindgen::JsValue, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = getParameter)] #[doc = "The `getParameter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getParameter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn get_parameter( this: &WebGl2RenderingContext, pname: u32, ) -> Result<::wasm_bindgen::JsValue, JsValue>; #[cfg(feature = "WebGlProgram")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getProgramInfoLog)] #[doc = "The `getProgramInfoLog()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getProgramInfoLog)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlProgram`*"] pub fn get_program_info_log( this: &WebGl2RenderingContext, program: &WebGlProgram, ) -> Option; #[cfg(feature = "WebGlProgram")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getProgramParameter)] #[doc = "The `getProgramParameter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getProgramParameter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlProgram`*"] pub fn get_program_parameter( this: &WebGl2RenderingContext, program: &WebGlProgram, pname: u32, ) -> ::wasm_bindgen::JsValue; # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getRenderbufferParameter)] #[doc = "The `getRenderbufferParameter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getRenderbufferParameter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn get_renderbuffer_parameter( this: &WebGl2RenderingContext, target: u32, pname: u32, ) -> ::wasm_bindgen::JsValue; #[cfg(feature = "WebGlShader")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getShaderInfoLog)] #[doc = "The `getShaderInfoLog()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getShaderInfoLog)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlShader`*"] pub fn get_shader_info_log( this: &WebGl2RenderingContext, shader: &WebGlShader, ) -> Option; #[cfg(feature = "WebGlShader")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getShaderParameter)] #[doc = "The `getShaderParameter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getShaderParameter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlShader`*"] pub fn get_shader_parameter( this: &WebGl2RenderingContext, shader: &WebGlShader, pname: u32, ) -> ::wasm_bindgen::JsValue; #[cfg(feature = "WebGlShaderPrecisionFormat")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getShaderPrecisionFormat)] #[doc = "The `getShaderPrecisionFormat()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getShaderPrecisionFormat)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlShaderPrecisionFormat`*"] pub fn get_shader_precision_format( this: &WebGl2RenderingContext, shadertype: u32, precisiontype: u32, ) -> Option; #[cfg(feature = "WebGlShader")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getShaderSource)] #[doc = "The `getShaderSource()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getShaderSource)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlShader`*"] pub fn get_shader_source(this: &WebGl2RenderingContext, shader: &WebGlShader) -> Option; # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getSupportedExtensions)] #[doc = "The `getSupportedExtensions()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getSupportedExtensions)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn get_supported_extensions(this: &WebGl2RenderingContext) -> Option<::js_sys::Array>; # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getTexParameter)] #[doc = "The `getTexParameter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getTexParameter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn get_tex_parameter( this: &WebGl2RenderingContext, target: u32, pname: u32, ) -> ::wasm_bindgen::JsValue; #[cfg(all(feature = "WebGlProgram", feature = "WebGlUniformLocation",))] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getUniform)] #[doc = "The `getUniform()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getUniform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlProgram`, `WebGlUniformLocation`*"] pub fn get_uniform( this: &WebGl2RenderingContext, program: &WebGlProgram, location: &WebGlUniformLocation, ) -> ::wasm_bindgen::JsValue; #[cfg(all(feature = "WebGlProgram", feature = "WebGlUniformLocation",))] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getUniformLocation)] #[doc = "The `getUniformLocation()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getUniformLocation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlProgram`, `WebGlUniformLocation`*"] pub fn get_uniform_location( this: &WebGl2RenderingContext, program: &WebGlProgram, name: &str, ) -> Option; # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = getVertexAttrib)] #[doc = "The `getVertexAttrib()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getVertexAttrib)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn get_vertex_attrib( this: &WebGl2RenderingContext, index: u32, pname: u32, ) -> Result<::wasm_bindgen::JsValue, JsValue>; # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getVertexAttribOffset)] #[doc = "The `getVertexAttribOffset()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getVertexAttribOffset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn get_vertex_attrib_offset(this: &WebGl2RenderingContext, index: u32, pname: u32) -> f64; # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = hint)] #[doc = "The `hint()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/hint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn hint(this: &WebGl2RenderingContext, target: u32, mode: u32); #[cfg(feature = "WebGlBuffer")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = isBuffer)] #[doc = "The `isBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/isBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlBuffer`*"] pub fn is_buffer(this: &WebGl2RenderingContext, buffer: Option<&WebGlBuffer>) -> bool; # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = isContextLost)] #[doc = "The `isContextLost()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/isContextLost)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn is_context_lost(this: &WebGl2RenderingContext) -> bool; # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = isEnabled)] #[doc = "The `isEnabled()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/isEnabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn is_enabled(this: &WebGl2RenderingContext, cap: u32) -> bool; #[cfg(feature = "WebGlFramebuffer")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = isFramebuffer)] #[doc = "The `isFramebuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/isFramebuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlFramebuffer`*"] pub fn is_framebuffer( this: &WebGl2RenderingContext, framebuffer: Option<&WebGlFramebuffer>, ) -> bool; #[cfg(feature = "WebGlProgram")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = isProgram)] #[doc = "The `isProgram()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/isProgram)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlProgram`*"] pub fn is_program(this: &WebGl2RenderingContext, program: Option<&WebGlProgram>) -> bool; #[cfg(feature = "WebGlRenderbuffer")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = isRenderbuffer)] #[doc = "The `isRenderbuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/isRenderbuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlRenderbuffer`*"] pub fn is_renderbuffer( this: &WebGl2RenderingContext, renderbuffer: Option<&WebGlRenderbuffer>, ) -> bool; #[cfg(feature = "WebGlShader")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = isShader)] #[doc = "The `isShader()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/isShader)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlShader`*"] pub fn is_shader(this: &WebGl2RenderingContext, shader: Option<&WebGlShader>) -> bool; #[cfg(feature = "WebGlTexture")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = isTexture)] #[doc = "The `isTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/isTexture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlTexture`*"] pub fn is_texture(this: &WebGl2RenderingContext, texture: Option<&WebGlTexture>) -> bool; # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = lineWidth)] #[doc = "The `lineWidth()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/lineWidth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn line_width(this: &WebGl2RenderingContext, width: f32); #[cfg(feature = "WebGlProgram")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = linkProgram)] #[doc = "The `linkProgram()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/linkProgram)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlProgram`*"] pub fn link_program(this: &WebGl2RenderingContext, program: &WebGlProgram); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = 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`*"] 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_f32_sequence( this: &WebGl2RenderingContext, indx: u32, values: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttrib2f)] #[doc = "The `vertexAttrib2f()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttrib2f)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn vertex_attrib2f(this: &WebGl2RenderingContext, indx: u32, x: f32, y: f32); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttrib2fv)] #[doc = "The `vertexAttrib2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttrib2fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn vertex_attrib2fv_with_f32_array( this: &WebGl2RenderingContext, indx: u32, values: &[f32], ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttrib2fv)] #[doc = "The `vertexAttrib2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttrib2fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn vertex_attrib2fv_with_f32_sequence( this: &WebGl2RenderingContext, indx: u32, values: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttrib3f)] #[doc = "The `vertexAttrib3f()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttrib3f)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn vertex_attrib3f(this: &WebGl2RenderingContext, indx: u32, x: f32, y: f32, z: f32); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttrib3fv)] #[doc = "The `vertexAttrib3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttrib3fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn vertex_attrib3fv_with_f32_array( this: &WebGl2RenderingContext, indx: u32, values: &[f32], ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttrib3fv)] #[doc = "The `vertexAttrib3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttrib3fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn vertex_attrib3fv_with_f32_sequence( this: &WebGl2RenderingContext, indx: u32, values: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttrib4f)] #[doc = "The `vertexAttrib4f()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttrib4f)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn vertex_attrib4f( this: &WebGl2RenderingContext, indx: u32, x: f32, y: f32, z: f32, w: f32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttrib4fv)] #[doc = "The `vertexAttrib4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttrib4fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn vertex_attrib4fv_with_f32_array( this: &WebGl2RenderingContext, indx: u32, values: &[f32], ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttrib4fv)] #[doc = "The `vertexAttrib4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttrib4fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn vertex_attrib4fv_with_f32_sequence( this: &WebGl2RenderingContext, indx: u32, values: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttribPointer)] #[doc = "The `vertexAttribPointer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttribPointer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn vertex_attrib_pointer_with_i32( this: &WebGl2RenderingContext, indx: u32, size: i32, type_: u32, normalized: bool, stride: i32, offset: i32, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttribPointer)] #[doc = "The `vertexAttribPointer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttribPointer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn vertex_attrib_pointer_with_f64( this: &WebGl2RenderingContext, indx: u32, size: i32, type_: u32, normalized: bool, stride: i32, offset: f64, ); # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = viewport)] #[doc = "The `viewport()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/viewport)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub fn viewport(this: &WebGl2RenderingContext, x: i32, y: i32, width: i32, height: i32); } impl WebGl2RenderingContext { #[doc = "The `WebGL2RenderingContext.READ_BUFFER` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const READ_BUFFER: u32 = 3074u64 as u32; #[doc = "The `WebGL2RenderingContext.UNPACK_ROW_LENGTH` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const UNPACK_ROW_LENGTH: u32 = 3314u64 as u32; #[doc = "The `WebGL2RenderingContext.UNPACK_SKIP_ROWS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const UNPACK_SKIP_ROWS: u32 = 3315u64 as u32; #[doc = "The `WebGL2RenderingContext.UNPACK_SKIP_PIXELS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const UNPACK_SKIP_PIXELS: u32 = 3316u64 as u32; #[doc = "The `WebGL2RenderingContext.PACK_ROW_LENGTH` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const PACK_ROW_LENGTH: u32 = 3330u64 as u32; #[doc = "The `WebGL2RenderingContext.PACK_SKIP_ROWS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const PACK_SKIP_ROWS: u32 = 3331u64 as u32; #[doc = "The `WebGL2RenderingContext.PACK_SKIP_PIXELS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const PACK_SKIP_PIXELS: u32 = 3332u64 as u32; #[doc = "The `WebGL2RenderingContext.COLOR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const COLOR: u32 = 6144u64 as u32; #[doc = "The `WebGL2RenderingContext.DEPTH` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const DEPTH: u32 = 6145u64 as u32; #[doc = "The `WebGL2RenderingContext.STENCIL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const STENCIL: u32 = 6146u64 as u32; #[doc = "The `WebGL2RenderingContext.RED` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RED: u32 = 6403u64 as u32; #[doc = "The `WebGL2RenderingContext.RGB8` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RGB8: u32 = 32849u64 as u32; #[doc = "The `WebGL2RenderingContext.RGBA8` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RGBA8: u32 = 32856u64 as u32; #[doc = "The `WebGL2RenderingContext.RGB10_A2` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RGB10_A2: u32 = 32857u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE_BINDING_3D` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE_BINDING_3D: u32 = 32874u64 as u32; #[doc = "The `WebGL2RenderingContext.UNPACK_SKIP_IMAGES` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const UNPACK_SKIP_IMAGES: u32 = 32877u64 as u32; #[doc = "The `WebGL2RenderingContext.UNPACK_IMAGE_HEIGHT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const UNPACK_IMAGE_HEIGHT: u32 = 32878u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE_3D` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE_3D: u32 = 32879u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE_WRAP_R` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE_WRAP_R: u32 = 32882u64 as u32; #[doc = "The `WebGL2RenderingContext.MAX_3D_TEXTURE_SIZE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const MAX_3D_TEXTURE_SIZE: u32 = 32883u64 as u32; #[doc = "The `WebGL2RenderingContext.UNSIGNED_INT_2_10_10_10_REV` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const UNSIGNED_INT_2_10_10_10_REV: u32 = 33640u64 as u32; #[doc = "The `WebGL2RenderingContext.MAX_ELEMENTS_VERTICES` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const MAX_ELEMENTS_VERTICES: u32 = 33000u64 as u32; #[doc = "The `WebGL2RenderingContext.MAX_ELEMENTS_INDICES` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const MAX_ELEMENTS_INDICES: u32 = 33001u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE_MIN_LOD` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE_MIN_LOD: u32 = 33082u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE_MAX_LOD` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE_MAX_LOD: u32 = 33083u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE_BASE_LEVEL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE_BASE_LEVEL: u32 = 33084u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE_MAX_LEVEL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE_MAX_LEVEL: u32 = 33085u64 as u32; #[doc = "The `WebGL2RenderingContext.MIN` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const MIN: u32 = 32775u64 as u32; #[doc = "The `WebGL2RenderingContext.MAX` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const MAX: u32 = 32776u64 as u32; #[doc = "The `WebGL2RenderingContext.DEPTH_COMPONENT24` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const DEPTH_COMPONENT24: u32 = 33190u64 as u32; #[doc = "The `WebGL2RenderingContext.MAX_TEXTURE_LOD_BIAS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const MAX_TEXTURE_LOD_BIAS: u32 = 34045u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE_COMPARE_MODE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE_COMPARE_MODE: u32 = 34892u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE_COMPARE_FUNC` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE_COMPARE_FUNC: u32 = 34893u64 as u32; #[doc = "The `WebGL2RenderingContext.CURRENT_QUERY` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const CURRENT_QUERY: u32 = 34917u64 as u32; #[doc = "The `WebGL2RenderingContext.QUERY_RESULT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const QUERY_RESULT: u32 = 34918u64 as u32; #[doc = "The `WebGL2RenderingContext.QUERY_RESULT_AVAILABLE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const QUERY_RESULT_AVAILABLE: u32 = 34919u64 as u32; #[doc = "The `WebGL2RenderingContext.STREAM_READ` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const STREAM_READ: u32 = 35041u64 as u32; #[doc = "The `WebGL2RenderingContext.STREAM_COPY` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const STREAM_COPY: u32 = 35042u64 as u32; #[doc = "The `WebGL2RenderingContext.STATIC_READ` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const STATIC_READ: u32 = 35045u64 as u32; #[doc = "The `WebGL2RenderingContext.STATIC_COPY` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const STATIC_COPY: u32 = 35046u64 as u32; #[doc = "The `WebGL2RenderingContext.DYNAMIC_READ` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const DYNAMIC_READ: u32 = 35049u64 as u32; #[doc = "The `WebGL2RenderingContext.DYNAMIC_COPY` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const DYNAMIC_COPY: u32 = 35050u64 as u32; #[doc = "The `WebGL2RenderingContext.MAX_DRAW_BUFFERS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const MAX_DRAW_BUFFERS: u32 = 34852u64 as u32; #[doc = "The `WebGL2RenderingContext.DRAW_BUFFER0` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const DRAW_BUFFER0: u32 = 34853u64 as u32; #[doc = "The `WebGL2RenderingContext.DRAW_BUFFER1` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const DRAW_BUFFER1: u32 = 34854u64 as u32; #[doc = "The `WebGL2RenderingContext.DRAW_BUFFER2` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const DRAW_BUFFER2: u32 = 34855u64 as u32; #[doc = "The `WebGL2RenderingContext.DRAW_BUFFER3` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const DRAW_BUFFER3: u32 = 34856u64 as u32; #[doc = "The `WebGL2RenderingContext.DRAW_BUFFER4` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const DRAW_BUFFER4: u32 = 34857u64 as u32; #[doc = "The `WebGL2RenderingContext.DRAW_BUFFER5` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const DRAW_BUFFER5: u32 = 34858u64 as u32; #[doc = "The `WebGL2RenderingContext.DRAW_BUFFER6` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const DRAW_BUFFER6: u32 = 34859u64 as u32; #[doc = "The `WebGL2RenderingContext.DRAW_BUFFER7` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const DRAW_BUFFER7: u32 = 34860u64 as u32; #[doc = "The `WebGL2RenderingContext.DRAW_BUFFER8` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const DRAW_BUFFER8: u32 = 34861u64 as u32; #[doc = "The `WebGL2RenderingContext.DRAW_BUFFER9` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const DRAW_BUFFER9: u32 = 34862u64 as u32; #[doc = "The `WebGL2RenderingContext.DRAW_BUFFER10` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const DRAW_BUFFER10: u32 = 34863u64 as u32; #[doc = "The `WebGL2RenderingContext.DRAW_BUFFER11` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const DRAW_BUFFER11: u32 = 34864u64 as u32; #[doc = "The `WebGL2RenderingContext.DRAW_BUFFER12` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const DRAW_BUFFER12: u32 = 34865u64 as u32; #[doc = "The `WebGL2RenderingContext.DRAW_BUFFER13` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const DRAW_BUFFER13: u32 = 34866u64 as u32; #[doc = "The `WebGL2RenderingContext.DRAW_BUFFER14` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const DRAW_BUFFER14: u32 = 34867u64 as u32; #[doc = "The `WebGL2RenderingContext.DRAW_BUFFER15` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const DRAW_BUFFER15: u32 = 34868u64 as u32; #[doc = "The `WebGL2RenderingContext.MAX_FRAGMENT_UNIFORM_COMPONENTS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const MAX_FRAGMENT_UNIFORM_COMPONENTS: u32 = 35657u64 as u32; #[doc = "The `WebGL2RenderingContext.MAX_VERTEX_UNIFORM_COMPONENTS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const MAX_VERTEX_UNIFORM_COMPONENTS: u32 = 35658u64 as u32; #[doc = "The `WebGL2RenderingContext.SAMPLER_3D` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const SAMPLER_3D: u32 = 35679u64 as u32; #[doc = "The `WebGL2RenderingContext.SAMPLER_2D_SHADOW` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const SAMPLER_2D_SHADOW: u32 = 35682u64 as u32; #[doc = "The `WebGL2RenderingContext.FRAGMENT_SHADER_DERIVATIVE_HINT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const FRAGMENT_SHADER_DERIVATIVE_HINT: u32 = 35723u64 as u32; #[doc = "The `WebGL2RenderingContext.PIXEL_PACK_BUFFER` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const PIXEL_PACK_BUFFER: u32 = 35051u64 as u32; #[doc = "The `WebGL2RenderingContext.PIXEL_UNPACK_BUFFER` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const PIXEL_UNPACK_BUFFER: u32 = 35052u64 as u32; #[doc = "The `WebGL2RenderingContext.PIXEL_PACK_BUFFER_BINDING` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const PIXEL_PACK_BUFFER_BINDING: u32 = 35053u64 as u32; #[doc = "The `WebGL2RenderingContext.PIXEL_UNPACK_BUFFER_BINDING` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const PIXEL_UNPACK_BUFFER_BINDING: u32 = 35055u64 as u32; #[doc = "The `WebGL2RenderingContext.FLOAT_MAT2x3` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const FLOAT_MAT2X3: u32 = 35685u64 as u32; #[doc = "The `WebGL2RenderingContext.FLOAT_MAT2x4` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const FLOAT_MAT2X4: u32 = 35686u64 as u32; #[doc = "The `WebGL2RenderingContext.FLOAT_MAT3x2` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const FLOAT_MAT3X2: u32 = 35687u64 as u32; #[doc = "The `WebGL2RenderingContext.FLOAT_MAT3x4` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const FLOAT_MAT3X4: u32 = 35688u64 as u32; #[doc = "The `WebGL2RenderingContext.FLOAT_MAT4x2` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const FLOAT_MAT4X2: u32 = 35689u64 as u32; #[doc = "The `WebGL2RenderingContext.FLOAT_MAT4x3` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const FLOAT_MAT4X3: u32 = 35690u64 as u32; #[doc = "The `WebGL2RenderingContext.SRGB` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const SRGB: u32 = 35904u64 as u32; #[doc = "The `WebGL2RenderingContext.SRGB8` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const SRGB8: u32 = 35905u64 as u32; #[doc = "The `WebGL2RenderingContext.SRGB8_ALPHA8` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const SRGB8_ALPHA8: u32 = 35907u64 as u32; #[doc = "The `WebGL2RenderingContext.COMPARE_REF_TO_TEXTURE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const COMPARE_REF_TO_TEXTURE: u32 = 34894u64 as u32; #[doc = "The `WebGL2RenderingContext.RGBA32F` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RGBA32F: u32 = 34836u64 as u32; #[doc = "The `WebGL2RenderingContext.RGB32F` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RGB32F: u32 = 34837u64 as u32; #[doc = "The `WebGL2RenderingContext.RGBA16F` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RGBA16F: u32 = 34842u64 as u32; #[doc = "The `WebGL2RenderingContext.RGB16F` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RGB16F: u32 = 34843u64 as u32; #[doc = "The `WebGL2RenderingContext.VERTEX_ATTRIB_ARRAY_INTEGER` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const VERTEX_ATTRIB_ARRAY_INTEGER: u32 = 35069u64 as u32; #[doc = "The `WebGL2RenderingContext.MAX_ARRAY_TEXTURE_LAYERS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const MAX_ARRAY_TEXTURE_LAYERS: u32 = 35071u64 as u32; #[doc = "The `WebGL2RenderingContext.MIN_PROGRAM_TEXEL_OFFSET` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const MIN_PROGRAM_TEXEL_OFFSET: u32 = 35076u64 as u32; #[doc = "The `WebGL2RenderingContext.MAX_PROGRAM_TEXEL_OFFSET` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const MAX_PROGRAM_TEXEL_OFFSET: u32 = 35077u64 as u32; #[doc = "The `WebGL2RenderingContext.MAX_VARYING_COMPONENTS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const MAX_VARYING_COMPONENTS: u32 = 35659u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE_2D_ARRAY` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE_2D_ARRAY: u32 = 35866u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE_BINDING_2D_ARRAY` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE_BINDING_2D_ARRAY: u32 = 35869u64 as u32; #[doc = "The `WebGL2RenderingContext.R11F_G11F_B10F` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const R11F_G11F_B10F: u32 = 35898u64 as u32; #[doc = "The `WebGL2RenderingContext.UNSIGNED_INT_10F_11F_11F_REV` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const UNSIGNED_INT_10F_11F_11F_REV: u32 = 35899u64 as u32; #[doc = "The `WebGL2RenderingContext.RGB9_E5` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RGB9_E5: u32 = 35901u64 as u32; #[doc = "The `WebGL2RenderingContext.UNSIGNED_INT_5_9_9_9_REV` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const UNSIGNED_INT_5_9_9_9_REV: u32 = 35902u64 as u32; #[doc = "The `WebGL2RenderingContext.TRANSFORM_FEEDBACK_BUFFER_MODE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TRANSFORM_FEEDBACK_BUFFER_MODE: u32 = 35967u64 as u32; #[doc = "The `WebGL2RenderingContext.MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: u32 = 35968u64 as u32; #[doc = "The `WebGL2RenderingContext.TRANSFORM_FEEDBACK_VARYINGS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TRANSFORM_FEEDBACK_VARYINGS: u32 = 35971u64 as u32; #[doc = "The `WebGL2RenderingContext.TRANSFORM_FEEDBACK_BUFFER_START` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TRANSFORM_FEEDBACK_BUFFER_START: u32 = 35972u64 as u32; #[doc = "The `WebGL2RenderingContext.TRANSFORM_FEEDBACK_BUFFER_SIZE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TRANSFORM_FEEDBACK_BUFFER_SIZE: u32 = 35973u64 as u32; #[doc = "The `WebGL2RenderingContext.TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: u32 = 35976u64 as u32; #[doc = "The `WebGL2RenderingContext.RASTERIZER_DISCARD` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RASTERIZER_DISCARD: u32 = 35977u64 as u32; #[doc = "The `WebGL2RenderingContext.MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: u32 = 35978u64 as u32; #[doc = "The `WebGL2RenderingContext.MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: u32 = 35979u64 as u32; #[doc = "The `WebGL2RenderingContext.INTERLEAVED_ATTRIBS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const INTERLEAVED_ATTRIBS: u32 = 35980u64 as u32; #[doc = "The `WebGL2RenderingContext.SEPARATE_ATTRIBS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const SEPARATE_ATTRIBS: u32 = 35981u64 as u32; #[doc = "The `WebGL2RenderingContext.TRANSFORM_FEEDBACK_BUFFER` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TRANSFORM_FEEDBACK_BUFFER: u32 = 35982u64 as u32; #[doc = "The `WebGL2RenderingContext.TRANSFORM_FEEDBACK_BUFFER_BINDING` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TRANSFORM_FEEDBACK_BUFFER_BINDING: u32 = 35983u64 as u32; #[doc = "The `WebGL2RenderingContext.RGBA32UI` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RGBA32UI: u32 = 36208u64 as u32; #[doc = "The `WebGL2RenderingContext.RGB32UI` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RGB32UI: u32 = 36209u64 as u32; #[doc = "The `WebGL2RenderingContext.RGBA16UI` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RGBA16UI: u32 = 36214u64 as u32; #[doc = "The `WebGL2RenderingContext.RGB16UI` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RGB16UI: u32 = 36215u64 as u32; #[doc = "The `WebGL2RenderingContext.RGBA8UI` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RGBA8UI: u32 = 36220u64 as u32; #[doc = "The `WebGL2RenderingContext.RGB8UI` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RGB8UI: u32 = 36221u64 as u32; #[doc = "The `WebGL2RenderingContext.RGBA32I` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RGBA32I: u32 = 36226u64 as u32; #[doc = "The `WebGL2RenderingContext.RGB32I` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RGB32I: u32 = 36227u64 as u32; #[doc = "The `WebGL2RenderingContext.RGBA16I` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RGBA16I: u32 = 36232u64 as u32; #[doc = "The `WebGL2RenderingContext.RGB16I` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RGB16I: u32 = 36233u64 as u32; #[doc = "The `WebGL2RenderingContext.RGBA8I` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RGBA8I: u32 = 36238u64 as u32; #[doc = "The `WebGL2RenderingContext.RGB8I` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RGB8I: u32 = 36239u64 as u32; #[doc = "The `WebGL2RenderingContext.RED_INTEGER` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RED_INTEGER: u32 = 36244u64 as u32; #[doc = "The `WebGL2RenderingContext.RGB_INTEGER` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RGB_INTEGER: u32 = 36248u64 as u32; #[doc = "The `WebGL2RenderingContext.RGBA_INTEGER` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RGBA_INTEGER: u32 = 36249u64 as u32; #[doc = "The `WebGL2RenderingContext.SAMPLER_2D_ARRAY` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const SAMPLER_2D_ARRAY: u32 = 36289u64 as u32; #[doc = "The `WebGL2RenderingContext.SAMPLER_2D_ARRAY_SHADOW` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const SAMPLER_2D_ARRAY_SHADOW: u32 = 36292u64 as u32; #[doc = "The `WebGL2RenderingContext.SAMPLER_CUBE_SHADOW` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const SAMPLER_CUBE_SHADOW: u32 = 36293u64 as u32; #[doc = "The `WebGL2RenderingContext.UNSIGNED_INT_VEC2` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const UNSIGNED_INT_VEC2: u32 = 36294u64 as u32; #[doc = "The `WebGL2RenderingContext.UNSIGNED_INT_VEC3` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const UNSIGNED_INT_VEC3: u32 = 36295u64 as u32; #[doc = "The `WebGL2RenderingContext.UNSIGNED_INT_VEC4` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const UNSIGNED_INT_VEC4: u32 = 36296u64 as u32; #[doc = "The `WebGL2RenderingContext.INT_SAMPLER_2D` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const INT_SAMPLER_2D: u32 = 36298u64 as u32; #[doc = "The `WebGL2RenderingContext.INT_SAMPLER_3D` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const INT_SAMPLER_3D: u32 = 36299u64 as u32; #[doc = "The `WebGL2RenderingContext.INT_SAMPLER_CUBE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const INT_SAMPLER_CUBE: u32 = 36300u64 as u32; #[doc = "The `WebGL2RenderingContext.INT_SAMPLER_2D_ARRAY` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const INT_SAMPLER_2D_ARRAY: u32 = 36303u64 as u32; #[doc = "The `WebGL2RenderingContext.UNSIGNED_INT_SAMPLER_2D` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const UNSIGNED_INT_SAMPLER_2D: u32 = 36306u64 as u32; #[doc = "The `WebGL2RenderingContext.UNSIGNED_INT_SAMPLER_3D` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const UNSIGNED_INT_SAMPLER_3D: u32 = 36307u64 as u32; #[doc = "The `WebGL2RenderingContext.UNSIGNED_INT_SAMPLER_CUBE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const UNSIGNED_INT_SAMPLER_CUBE: u32 = 36308u64 as u32; #[doc = "The `WebGL2RenderingContext.UNSIGNED_INT_SAMPLER_2D_ARRAY` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const UNSIGNED_INT_SAMPLER_2D_ARRAY: u32 = 36311u64 as u32; #[doc = "The `WebGL2RenderingContext.DEPTH_COMPONENT32F` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const DEPTH_COMPONENT32F: u32 = 36012u64 as u32; #[doc = "The `WebGL2RenderingContext.DEPTH32F_STENCIL8` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const DEPTH32F_STENCIL8: u32 = 36013u64 as u32; #[doc = "The `WebGL2RenderingContext.FLOAT_32_UNSIGNED_INT_24_8_REV` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const FLOAT_32_UNSIGNED_INT_24_8_REV: u32 = 36269u64 as u32; #[doc = "The `WebGL2RenderingContext.FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: u32 = 33296u64 as u32; #[doc = "The `WebGL2RenderingContext.FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: u32 = 33297u64 as u32; #[doc = "The `WebGL2RenderingContext.FRAMEBUFFER_ATTACHMENT_RED_SIZE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const FRAMEBUFFER_ATTACHMENT_RED_SIZE: u32 = 33298u64 as u32; #[doc = "The `WebGL2RenderingContext.FRAMEBUFFER_ATTACHMENT_GREEN_SIZE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: u32 = 33299u64 as u32; #[doc = "The `WebGL2RenderingContext.FRAMEBUFFER_ATTACHMENT_BLUE_SIZE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: u32 = 33300u64 as u32; #[doc = "The `WebGL2RenderingContext.FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: u32 = 33301u64 as u32; #[doc = "The `WebGL2RenderingContext.FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: u32 = 33302u64 as u32; #[doc = "The `WebGL2RenderingContext.FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: u32 = 33303u64 as u32; #[doc = "The `WebGL2RenderingContext.FRAMEBUFFER_DEFAULT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const FRAMEBUFFER_DEFAULT: u32 = 33304u64 as u32; #[doc = "The `WebGL2RenderingContext.UNSIGNED_INT_24_8` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const UNSIGNED_INT_24_8: u32 = 34042u64 as u32; #[doc = "The `WebGL2RenderingContext.DEPTH24_STENCIL8` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const DEPTH24_STENCIL8: u32 = 35056u64 as u32; #[doc = "The `WebGL2RenderingContext.UNSIGNED_NORMALIZED` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const UNSIGNED_NORMALIZED: u32 = 35863u64 as u32; #[doc = "The `WebGL2RenderingContext.DRAW_FRAMEBUFFER_BINDING` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const DRAW_FRAMEBUFFER_BINDING: u32 = 36006u64 as u32; #[doc = "The `WebGL2RenderingContext.READ_FRAMEBUFFER` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const READ_FRAMEBUFFER: u32 = 36008u64 as u32; #[doc = "The `WebGL2RenderingContext.DRAW_FRAMEBUFFER` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const DRAW_FRAMEBUFFER: u32 = 36009u64 as u32; #[doc = "The `WebGL2RenderingContext.READ_FRAMEBUFFER_BINDING` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const READ_FRAMEBUFFER_BINDING: u32 = 36010u64 as u32; #[doc = "The `WebGL2RenderingContext.RENDERBUFFER_SAMPLES` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RENDERBUFFER_SAMPLES: u32 = 36011u64 as u32; #[doc = "The `WebGL2RenderingContext.FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: u32 = 36052u64 as u32; #[doc = "The `WebGL2RenderingContext.MAX_COLOR_ATTACHMENTS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const MAX_COLOR_ATTACHMENTS: u32 = 36063u64 as u32; #[doc = "The `WebGL2RenderingContext.COLOR_ATTACHMENT1` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const COLOR_ATTACHMENT1: u32 = 36065u64 as u32; #[doc = "The `WebGL2RenderingContext.COLOR_ATTACHMENT2` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const COLOR_ATTACHMENT2: u32 = 36066u64 as u32; #[doc = "The `WebGL2RenderingContext.COLOR_ATTACHMENT3` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const COLOR_ATTACHMENT3: u32 = 36067u64 as u32; #[doc = "The `WebGL2RenderingContext.COLOR_ATTACHMENT4` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const COLOR_ATTACHMENT4: u32 = 36068u64 as u32; #[doc = "The `WebGL2RenderingContext.COLOR_ATTACHMENT5` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const COLOR_ATTACHMENT5: u32 = 36069u64 as u32; #[doc = "The `WebGL2RenderingContext.COLOR_ATTACHMENT6` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const COLOR_ATTACHMENT6: u32 = 36070u64 as u32; #[doc = "The `WebGL2RenderingContext.COLOR_ATTACHMENT7` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const COLOR_ATTACHMENT7: u32 = 36071u64 as u32; #[doc = "The `WebGL2RenderingContext.COLOR_ATTACHMENT8` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const COLOR_ATTACHMENT8: u32 = 36072u64 as u32; #[doc = "The `WebGL2RenderingContext.COLOR_ATTACHMENT9` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const COLOR_ATTACHMENT9: u32 = 36073u64 as u32; #[doc = "The `WebGL2RenderingContext.COLOR_ATTACHMENT10` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const COLOR_ATTACHMENT10: u32 = 36074u64 as u32; #[doc = "The `WebGL2RenderingContext.COLOR_ATTACHMENT11` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const COLOR_ATTACHMENT11: u32 = 36075u64 as u32; #[doc = "The `WebGL2RenderingContext.COLOR_ATTACHMENT12` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const COLOR_ATTACHMENT12: u32 = 36076u64 as u32; #[doc = "The `WebGL2RenderingContext.COLOR_ATTACHMENT13` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const COLOR_ATTACHMENT13: u32 = 36077u64 as u32; #[doc = "The `WebGL2RenderingContext.COLOR_ATTACHMENT14` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const COLOR_ATTACHMENT14: u32 = 36078u64 as u32; #[doc = "The `WebGL2RenderingContext.COLOR_ATTACHMENT15` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const COLOR_ATTACHMENT15: u32 = 36079u64 as u32; #[doc = "The `WebGL2RenderingContext.FRAMEBUFFER_INCOMPLETE_MULTISAMPLE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: u32 = 36182u64 as u32; #[doc = "The `WebGL2RenderingContext.MAX_SAMPLES` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const MAX_SAMPLES: u32 = 36183u64 as u32; #[doc = "The `WebGL2RenderingContext.HALF_FLOAT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const HALF_FLOAT: u32 = 5131u64 as u32; #[doc = "The `WebGL2RenderingContext.RG` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RG: u32 = 33319u64 as u32; #[doc = "The `WebGL2RenderingContext.RG_INTEGER` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RG_INTEGER: u32 = 33320u64 as u32; #[doc = "The `WebGL2RenderingContext.R8` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const R8: u32 = 33321u64 as u32; #[doc = "The `WebGL2RenderingContext.RG8` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RG8: u32 = 33323u64 as u32; #[doc = "The `WebGL2RenderingContext.R16F` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const R16F: u32 = 33325u64 as u32; #[doc = "The `WebGL2RenderingContext.R32F` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const R32F: u32 = 33326u64 as u32; #[doc = "The `WebGL2RenderingContext.RG16F` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RG16F: u32 = 33327u64 as u32; #[doc = "The `WebGL2RenderingContext.RG32F` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RG32F: u32 = 33328u64 as u32; #[doc = "The `WebGL2RenderingContext.R8I` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const R8I: u32 = 33329u64 as u32; #[doc = "The `WebGL2RenderingContext.R8UI` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const R8UI: u32 = 33330u64 as u32; #[doc = "The `WebGL2RenderingContext.R16I` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const R16I: u32 = 33331u64 as u32; #[doc = "The `WebGL2RenderingContext.R16UI` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const R16UI: u32 = 33332u64 as u32; #[doc = "The `WebGL2RenderingContext.R32I` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const R32I: u32 = 33333u64 as u32; #[doc = "The `WebGL2RenderingContext.R32UI` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const R32UI: u32 = 33334u64 as u32; #[doc = "The `WebGL2RenderingContext.RG8I` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RG8I: u32 = 33335u64 as u32; #[doc = "The `WebGL2RenderingContext.RG8UI` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RG8UI: u32 = 33336u64 as u32; #[doc = "The `WebGL2RenderingContext.RG16I` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RG16I: u32 = 33337u64 as u32; #[doc = "The `WebGL2RenderingContext.RG16UI` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RG16UI: u32 = 33338u64 as u32; #[doc = "The `WebGL2RenderingContext.RG32I` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RG32I: u32 = 33339u64 as u32; #[doc = "The `WebGL2RenderingContext.RG32UI` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RG32UI: u32 = 33340u64 as u32; #[doc = "The `WebGL2RenderingContext.VERTEX_ARRAY_BINDING` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const VERTEX_ARRAY_BINDING: u32 = 34229u64 as u32; #[doc = "The `WebGL2RenderingContext.R8_SNORM` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const R8_SNORM: u32 = 36756u64 as u32; #[doc = "The `WebGL2RenderingContext.RG8_SNORM` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RG8_SNORM: u32 = 36757u64 as u32; #[doc = "The `WebGL2RenderingContext.RGB8_SNORM` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RGB8_SNORM: u32 = 36758u64 as u32; #[doc = "The `WebGL2RenderingContext.RGBA8_SNORM` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RGBA8_SNORM: u32 = 36759u64 as u32; #[doc = "The `WebGL2RenderingContext.SIGNED_NORMALIZED` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const SIGNED_NORMALIZED: u32 = 36764u64 as u32; #[doc = "The `WebGL2RenderingContext.COPY_READ_BUFFER` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const COPY_READ_BUFFER: u32 = 36662u64 as u32; #[doc = "The `WebGL2RenderingContext.COPY_WRITE_BUFFER` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const COPY_WRITE_BUFFER: u32 = 36663u64 as u32; #[doc = "The `WebGL2RenderingContext.COPY_READ_BUFFER_BINDING` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const COPY_READ_BUFFER_BINDING: u32 = 36662u64 as u32; #[doc = "The `WebGL2RenderingContext.COPY_WRITE_BUFFER_BINDING` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const COPY_WRITE_BUFFER_BINDING: u32 = 36663u64 as u32; #[doc = "The `WebGL2RenderingContext.UNIFORM_BUFFER` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const UNIFORM_BUFFER: u32 = 35345u64 as u32; #[doc = "The `WebGL2RenderingContext.UNIFORM_BUFFER_BINDING` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const UNIFORM_BUFFER_BINDING: u32 = 35368u64 as u32; #[doc = "The `WebGL2RenderingContext.UNIFORM_BUFFER_START` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const UNIFORM_BUFFER_START: u32 = 35369u64 as u32; #[doc = "The `WebGL2RenderingContext.UNIFORM_BUFFER_SIZE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const UNIFORM_BUFFER_SIZE: u32 = 35370u64 as u32; #[doc = "The `WebGL2RenderingContext.MAX_VERTEX_UNIFORM_BLOCKS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const MAX_VERTEX_UNIFORM_BLOCKS: u32 = 35371u64 as u32; #[doc = "The `WebGL2RenderingContext.MAX_FRAGMENT_UNIFORM_BLOCKS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const MAX_FRAGMENT_UNIFORM_BLOCKS: u32 = 35373u64 as u32; #[doc = "The `WebGL2RenderingContext.MAX_COMBINED_UNIFORM_BLOCKS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const MAX_COMBINED_UNIFORM_BLOCKS: u32 = 35374u64 as u32; #[doc = "The `WebGL2RenderingContext.MAX_UNIFORM_BUFFER_BINDINGS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const MAX_UNIFORM_BUFFER_BINDINGS: u32 = 35375u64 as u32; #[doc = "The `WebGL2RenderingContext.MAX_UNIFORM_BLOCK_SIZE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const MAX_UNIFORM_BLOCK_SIZE: u32 = 35376u64 as u32; #[doc = "The `WebGL2RenderingContext.MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: u32 = 35377u64 as u32; #[doc = "The `WebGL2RenderingContext.MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: u32 = 35379u64 as u32; #[doc = "The `WebGL2RenderingContext.UNIFORM_BUFFER_OFFSET_ALIGNMENT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const UNIFORM_BUFFER_OFFSET_ALIGNMENT: u32 = 35380u64 as u32; #[doc = "The `WebGL2RenderingContext.ACTIVE_UNIFORM_BLOCKS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const ACTIVE_UNIFORM_BLOCKS: u32 = 35382u64 as u32; #[doc = "The `WebGL2RenderingContext.UNIFORM_TYPE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const UNIFORM_TYPE: u32 = 35383u64 as u32; #[doc = "The `WebGL2RenderingContext.UNIFORM_SIZE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const UNIFORM_SIZE: u32 = 35384u64 as u32; #[doc = "The `WebGL2RenderingContext.UNIFORM_BLOCK_INDEX` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const UNIFORM_BLOCK_INDEX: u32 = 35386u64 as u32; #[doc = "The `WebGL2RenderingContext.UNIFORM_OFFSET` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const UNIFORM_OFFSET: u32 = 35387u64 as u32; #[doc = "The `WebGL2RenderingContext.UNIFORM_ARRAY_STRIDE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const UNIFORM_ARRAY_STRIDE: u32 = 35388u64 as u32; #[doc = "The `WebGL2RenderingContext.UNIFORM_MATRIX_STRIDE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const UNIFORM_MATRIX_STRIDE: u32 = 35389u64 as u32; #[doc = "The `WebGL2RenderingContext.UNIFORM_IS_ROW_MAJOR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const UNIFORM_IS_ROW_MAJOR: u32 = 35390u64 as u32; #[doc = "The `WebGL2RenderingContext.UNIFORM_BLOCK_BINDING` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const UNIFORM_BLOCK_BINDING: u32 = 35391u64 as u32; #[doc = "The `WebGL2RenderingContext.UNIFORM_BLOCK_DATA_SIZE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const UNIFORM_BLOCK_DATA_SIZE: u32 = 35392u64 as u32; #[doc = "The `WebGL2RenderingContext.UNIFORM_BLOCK_ACTIVE_UNIFORMS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const UNIFORM_BLOCK_ACTIVE_UNIFORMS: u32 = 35394u64 as u32; #[doc = "The `WebGL2RenderingContext.UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: u32 = 35395u64 as u32; #[doc = "The `WebGL2RenderingContext.UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: u32 = 35396u64 as u32; #[doc = "The `WebGL2RenderingContext.UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: u32 = 35398u64 as u32; #[doc = "The `WebGL2RenderingContext.INVALID_INDEX` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const INVALID_INDEX: u32 = 4294967295u64 as u32; #[doc = "The `WebGL2RenderingContext.MAX_VERTEX_OUTPUT_COMPONENTS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const MAX_VERTEX_OUTPUT_COMPONENTS: u32 = 37154u64 as u32; #[doc = "The `WebGL2RenderingContext.MAX_FRAGMENT_INPUT_COMPONENTS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const MAX_FRAGMENT_INPUT_COMPONENTS: u32 = 37157u64 as u32; #[doc = "The `WebGL2RenderingContext.MAX_SERVER_WAIT_TIMEOUT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const MAX_SERVER_WAIT_TIMEOUT: u32 = 37137u64 as u32; #[doc = "The `WebGL2RenderingContext.OBJECT_TYPE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const OBJECT_TYPE: u32 = 37138u64 as u32; #[doc = "The `WebGL2RenderingContext.SYNC_CONDITION` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const SYNC_CONDITION: u32 = 37139u64 as u32; #[doc = "The `WebGL2RenderingContext.SYNC_STATUS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const SYNC_STATUS: u32 = 37140u64 as u32; #[doc = "The `WebGL2RenderingContext.SYNC_FLAGS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const SYNC_FLAGS: u32 = 37141u64 as u32; #[doc = "The `WebGL2RenderingContext.SYNC_FENCE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const SYNC_FENCE: u32 = 37142u64 as u32; #[doc = "The `WebGL2RenderingContext.SYNC_GPU_COMMANDS_COMPLETE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const SYNC_GPU_COMMANDS_COMPLETE: u32 = 37143u64 as u32; #[doc = "The `WebGL2RenderingContext.UNSIGNALED` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const UNSIGNALED: u32 = 37144u64 as u32; #[doc = "The `WebGL2RenderingContext.SIGNALED` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const SIGNALED: u32 = 37145u64 as u32; #[doc = "The `WebGL2RenderingContext.ALREADY_SIGNALED` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const ALREADY_SIGNALED: u32 = 37146u64 as u32; #[doc = "The `WebGL2RenderingContext.TIMEOUT_EXPIRED` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TIMEOUT_EXPIRED: u32 = 37147u64 as u32; #[doc = "The `WebGL2RenderingContext.CONDITION_SATISFIED` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const CONDITION_SATISFIED: u32 = 37148u64 as u32; #[doc = "The `WebGL2RenderingContext.WAIT_FAILED` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const WAIT_FAILED: u32 = 37149u64 as u32; #[doc = "The `WebGL2RenderingContext.SYNC_FLUSH_COMMANDS_BIT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const SYNC_FLUSH_COMMANDS_BIT: u32 = 1u64 as u32; #[doc = "The `WebGL2RenderingContext.VERTEX_ATTRIB_ARRAY_DIVISOR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const VERTEX_ATTRIB_ARRAY_DIVISOR: u32 = 35070u64 as u32; #[doc = "The `WebGL2RenderingContext.ANY_SAMPLES_PASSED` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const ANY_SAMPLES_PASSED: u32 = 35887u64 as u32; #[doc = "The `WebGL2RenderingContext.ANY_SAMPLES_PASSED_CONSERVATIVE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const ANY_SAMPLES_PASSED_CONSERVATIVE: u32 = 36202u64 as u32; #[doc = "The `WebGL2RenderingContext.SAMPLER_BINDING` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const SAMPLER_BINDING: u32 = 35097u64 as u32; #[doc = "The `WebGL2RenderingContext.RGB10_A2UI` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RGB10_A2UI: u32 = 36975u64 as u32; #[doc = "The `WebGL2RenderingContext.INT_2_10_10_10_REV` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const INT_2_10_10_10_REV: u32 = 36255u64 as u32; #[doc = "The `WebGL2RenderingContext.TRANSFORM_FEEDBACK` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TRANSFORM_FEEDBACK: u32 = 36386u64 as u32; #[doc = "The `WebGL2RenderingContext.TRANSFORM_FEEDBACK_PAUSED` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TRANSFORM_FEEDBACK_PAUSED: u32 = 36387u64 as u32; #[doc = "The `WebGL2RenderingContext.TRANSFORM_FEEDBACK_ACTIVE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TRANSFORM_FEEDBACK_ACTIVE: u32 = 36388u64 as u32; #[doc = "The `WebGL2RenderingContext.TRANSFORM_FEEDBACK_BINDING` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TRANSFORM_FEEDBACK_BINDING: u32 = 36389u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE_IMMUTABLE_FORMAT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE_IMMUTABLE_FORMAT: u32 = 37167u64 as u32; #[doc = "The `WebGL2RenderingContext.MAX_ELEMENT_INDEX` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const MAX_ELEMENT_INDEX: u32 = 36203u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE_IMMUTABLE_LEVELS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE_IMMUTABLE_LEVELS: u32 = 33503u64 as u32; #[doc = "The `WebGL2RenderingContext.TIMEOUT_IGNORED` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TIMEOUT_IGNORED: f64 = -1i64 as f64; #[doc = "The `WebGL2RenderingContext.MAX_CLIENT_WAIT_TIMEOUT_WEBGL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const MAX_CLIENT_WAIT_TIMEOUT_WEBGL: u32 = 37447u64 as u32; #[doc = "The `WebGL2RenderingContext.DEPTH_BUFFER_BIT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const DEPTH_BUFFER_BIT: u32 = 256u64 as u32; #[doc = "The `WebGL2RenderingContext.STENCIL_BUFFER_BIT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const STENCIL_BUFFER_BIT: u32 = 1024u64 as u32; #[doc = "The `WebGL2RenderingContext.COLOR_BUFFER_BIT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const COLOR_BUFFER_BIT: u32 = 16384u64 as u32; #[doc = "The `WebGL2RenderingContext.POINTS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const POINTS: u32 = 0u64 as u32; #[doc = "The `WebGL2RenderingContext.LINES` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const LINES: u32 = 1u64 as u32; #[doc = "The `WebGL2RenderingContext.LINE_LOOP` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const LINE_LOOP: u32 = 2u64 as u32; #[doc = "The `WebGL2RenderingContext.LINE_STRIP` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const LINE_STRIP: u32 = 3u64 as u32; #[doc = "The `WebGL2RenderingContext.TRIANGLES` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TRIANGLES: u32 = 4u64 as u32; #[doc = "The `WebGL2RenderingContext.TRIANGLE_STRIP` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TRIANGLE_STRIP: u32 = 5u64 as u32; #[doc = "The `WebGL2RenderingContext.TRIANGLE_FAN` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TRIANGLE_FAN: u32 = 6u64 as u32; #[doc = "The `WebGL2RenderingContext.ZERO` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const ZERO: u32 = 0i64 as u32; #[doc = "The `WebGL2RenderingContext.ONE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const ONE: u32 = 1u64 as u32; #[doc = "The `WebGL2RenderingContext.SRC_COLOR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const SRC_COLOR: u32 = 768u64 as u32; #[doc = "The `WebGL2RenderingContext.ONE_MINUS_SRC_COLOR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const ONE_MINUS_SRC_COLOR: u32 = 769u64 as u32; #[doc = "The `WebGL2RenderingContext.SRC_ALPHA` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const SRC_ALPHA: u32 = 770u64 as u32; #[doc = "The `WebGL2RenderingContext.ONE_MINUS_SRC_ALPHA` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const ONE_MINUS_SRC_ALPHA: u32 = 771u64 as u32; #[doc = "The `WebGL2RenderingContext.DST_ALPHA` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const DST_ALPHA: u32 = 772u64 as u32; #[doc = "The `WebGL2RenderingContext.ONE_MINUS_DST_ALPHA` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const ONE_MINUS_DST_ALPHA: u32 = 773u64 as u32; #[doc = "The `WebGL2RenderingContext.DST_COLOR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const DST_COLOR: u32 = 774u64 as u32; #[doc = "The `WebGL2RenderingContext.ONE_MINUS_DST_COLOR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const ONE_MINUS_DST_COLOR: u32 = 775u64 as u32; #[doc = "The `WebGL2RenderingContext.SRC_ALPHA_SATURATE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const SRC_ALPHA_SATURATE: u32 = 776u64 as u32; #[doc = "The `WebGL2RenderingContext.FUNC_ADD` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const FUNC_ADD: u32 = 32774u64 as u32; #[doc = "The `WebGL2RenderingContext.BLEND_EQUATION` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const BLEND_EQUATION: u32 = 32777u64 as u32; #[doc = "The `WebGL2RenderingContext.BLEND_EQUATION_RGB` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const BLEND_EQUATION_RGB: u32 = 32777u64 as u32; #[doc = "The `WebGL2RenderingContext.BLEND_EQUATION_ALPHA` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const BLEND_EQUATION_ALPHA: u32 = 34877u64 as u32; #[doc = "The `WebGL2RenderingContext.FUNC_SUBTRACT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const FUNC_SUBTRACT: u32 = 32778u64 as u32; #[doc = "The `WebGL2RenderingContext.FUNC_REVERSE_SUBTRACT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const FUNC_REVERSE_SUBTRACT: u32 = 32779u64 as u32; #[doc = "The `WebGL2RenderingContext.BLEND_DST_RGB` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const BLEND_DST_RGB: u32 = 32968u64 as u32; #[doc = "The `WebGL2RenderingContext.BLEND_SRC_RGB` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const BLEND_SRC_RGB: u32 = 32969u64 as u32; #[doc = "The `WebGL2RenderingContext.BLEND_DST_ALPHA` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const BLEND_DST_ALPHA: u32 = 32970u64 as u32; #[doc = "The `WebGL2RenderingContext.BLEND_SRC_ALPHA` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const BLEND_SRC_ALPHA: u32 = 32971u64 as u32; #[doc = "The `WebGL2RenderingContext.CONSTANT_COLOR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const CONSTANT_COLOR: u32 = 32769u64 as u32; #[doc = "The `WebGL2RenderingContext.ONE_MINUS_CONSTANT_COLOR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const ONE_MINUS_CONSTANT_COLOR: u32 = 32770u64 as u32; #[doc = "The `WebGL2RenderingContext.CONSTANT_ALPHA` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const CONSTANT_ALPHA: u32 = 32771u64 as u32; #[doc = "The `WebGL2RenderingContext.ONE_MINUS_CONSTANT_ALPHA` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const ONE_MINUS_CONSTANT_ALPHA: u32 = 32772u64 as u32; #[doc = "The `WebGL2RenderingContext.BLEND_COLOR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const BLEND_COLOR: u32 = 32773u64 as u32; #[doc = "The `WebGL2RenderingContext.ARRAY_BUFFER` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const ARRAY_BUFFER: u32 = 34962u64 as u32; #[doc = "The `WebGL2RenderingContext.ELEMENT_ARRAY_BUFFER` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const ELEMENT_ARRAY_BUFFER: u32 = 34963u64 as u32; #[doc = "The `WebGL2RenderingContext.ARRAY_BUFFER_BINDING` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const ARRAY_BUFFER_BINDING: u32 = 34964u64 as u32; #[doc = "The `WebGL2RenderingContext.ELEMENT_ARRAY_BUFFER_BINDING` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const ELEMENT_ARRAY_BUFFER_BINDING: u32 = 34965u64 as u32; #[doc = "The `WebGL2RenderingContext.STREAM_DRAW` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const STREAM_DRAW: u32 = 35040u64 as u32; #[doc = "The `WebGL2RenderingContext.STATIC_DRAW` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const STATIC_DRAW: u32 = 35044u64 as u32; #[doc = "The `WebGL2RenderingContext.DYNAMIC_DRAW` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const DYNAMIC_DRAW: u32 = 35048u64 as u32; #[doc = "The `WebGL2RenderingContext.BUFFER_SIZE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const BUFFER_SIZE: u32 = 34660u64 as u32; #[doc = "The `WebGL2RenderingContext.BUFFER_USAGE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const BUFFER_USAGE: u32 = 34661u64 as u32; #[doc = "The `WebGL2RenderingContext.CURRENT_VERTEX_ATTRIB` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const CURRENT_VERTEX_ATTRIB: u32 = 34342u64 as u32; #[doc = "The `WebGL2RenderingContext.FRONT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const FRONT: u32 = 1028u64 as u32; #[doc = "The `WebGL2RenderingContext.BACK` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const BACK: u32 = 1029u64 as u32; #[doc = "The `WebGL2RenderingContext.FRONT_AND_BACK` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const FRONT_AND_BACK: u32 = 1032u64 as u32; #[doc = "The `WebGL2RenderingContext.CULL_FACE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const CULL_FACE: u32 = 2884u64 as u32; #[doc = "The `WebGL2RenderingContext.BLEND` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const BLEND: u32 = 3042u64 as u32; #[doc = "The `WebGL2RenderingContext.DITHER` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const DITHER: u32 = 3024u64 as u32; #[doc = "The `WebGL2RenderingContext.STENCIL_TEST` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const STENCIL_TEST: u32 = 2960u64 as u32; #[doc = "The `WebGL2RenderingContext.DEPTH_TEST` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const DEPTH_TEST: u32 = 2929u64 as u32; #[doc = "The `WebGL2RenderingContext.SCISSOR_TEST` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const SCISSOR_TEST: u32 = 3089u64 as u32; #[doc = "The `WebGL2RenderingContext.POLYGON_OFFSET_FILL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const POLYGON_OFFSET_FILL: u32 = 32823u64 as u32; #[doc = "The `WebGL2RenderingContext.SAMPLE_ALPHA_TO_COVERAGE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const SAMPLE_ALPHA_TO_COVERAGE: u32 = 32926u64 as u32; #[doc = "The `WebGL2RenderingContext.SAMPLE_COVERAGE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const SAMPLE_COVERAGE: u32 = 32928u64 as u32; #[doc = "The `WebGL2RenderingContext.NO_ERROR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const NO_ERROR: u32 = 0i64 as u32; #[doc = "The `WebGL2RenderingContext.INVALID_ENUM` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const INVALID_ENUM: u32 = 1280u64 as u32; #[doc = "The `WebGL2RenderingContext.INVALID_VALUE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const INVALID_VALUE: u32 = 1281u64 as u32; #[doc = "The `WebGL2RenderingContext.INVALID_OPERATION` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const INVALID_OPERATION: u32 = 1282u64 as u32; #[doc = "The `WebGL2RenderingContext.OUT_OF_MEMORY` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const OUT_OF_MEMORY: u32 = 1285u64 as u32; #[doc = "The `WebGL2RenderingContext.CW` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const CW: u32 = 2304u64 as u32; #[doc = "The `WebGL2RenderingContext.CCW` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const CCW: u32 = 2305u64 as u32; #[doc = "The `WebGL2RenderingContext.LINE_WIDTH` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const LINE_WIDTH: u32 = 2849u64 as u32; #[doc = "The `WebGL2RenderingContext.ALIASED_POINT_SIZE_RANGE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const ALIASED_POINT_SIZE_RANGE: u32 = 33901u64 as u32; #[doc = "The `WebGL2RenderingContext.ALIASED_LINE_WIDTH_RANGE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const ALIASED_LINE_WIDTH_RANGE: u32 = 33902u64 as u32; #[doc = "The `WebGL2RenderingContext.CULL_FACE_MODE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const CULL_FACE_MODE: u32 = 2885u64 as u32; #[doc = "The `WebGL2RenderingContext.FRONT_FACE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const FRONT_FACE: u32 = 2886u64 as u32; #[doc = "The `WebGL2RenderingContext.DEPTH_RANGE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const DEPTH_RANGE: u32 = 2928u64 as u32; #[doc = "The `WebGL2RenderingContext.DEPTH_WRITEMASK` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const DEPTH_WRITEMASK: u32 = 2930u64 as u32; #[doc = "The `WebGL2RenderingContext.DEPTH_CLEAR_VALUE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const DEPTH_CLEAR_VALUE: u32 = 2931u64 as u32; #[doc = "The `WebGL2RenderingContext.DEPTH_FUNC` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const DEPTH_FUNC: u32 = 2932u64 as u32; #[doc = "The `WebGL2RenderingContext.STENCIL_CLEAR_VALUE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const STENCIL_CLEAR_VALUE: u32 = 2961u64 as u32; #[doc = "The `WebGL2RenderingContext.STENCIL_FUNC` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const STENCIL_FUNC: u32 = 2962u64 as u32; #[doc = "The `WebGL2RenderingContext.STENCIL_FAIL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const STENCIL_FAIL: u32 = 2964u64 as u32; #[doc = "The `WebGL2RenderingContext.STENCIL_PASS_DEPTH_FAIL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const STENCIL_PASS_DEPTH_FAIL: u32 = 2965u64 as u32; #[doc = "The `WebGL2RenderingContext.STENCIL_PASS_DEPTH_PASS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const STENCIL_PASS_DEPTH_PASS: u32 = 2966u64 as u32; #[doc = "The `WebGL2RenderingContext.STENCIL_REF` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const STENCIL_REF: u32 = 2967u64 as u32; #[doc = "The `WebGL2RenderingContext.STENCIL_VALUE_MASK` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const STENCIL_VALUE_MASK: u32 = 2963u64 as u32; #[doc = "The `WebGL2RenderingContext.STENCIL_WRITEMASK` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const STENCIL_WRITEMASK: u32 = 2968u64 as u32; #[doc = "The `WebGL2RenderingContext.STENCIL_BACK_FUNC` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const STENCIL_BACK_FUNC: u32 = 34816u64 as u32; #[doc = "The `WebGL2RenderingContext.STENCIL_BACK_FAIL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const STENCIL_BACK_FAIL: u32 = 34817u64 as u32; #[doc = "The `WebGL2RenderingContext.STENCIL_BACK_PASS_DEPTH_FAIL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const STENCIL_BACK_PASS_DEPTH_FAIL: u32 = 34818u64 as u32; #[doc = "The `WebGL2RenderingContext.STENCIL_BACK_PASS_DEPTH_PASS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const STENCIL_BACK_PASS_DEPTH_PASS: u32 = 34819u64 as u32; #[doc = "The `WebGL2RenderingContext.STENCIL_BACK_REF` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const STENCIL_BACK_REF: u32 = 36003u64 as u32; #[doc = "The `WebGL2RenderingContext.STENCIL_BACK_VALUE_MASK` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const STENCIL_BACK_VALUE_MASK: u32 = 36004u64 as u32; #[doc = "The `WebGL2RenderingContext.STENCIL_BACK_WRITEMASK` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const STENCIL_BACK_WRITEMASK: u32 = 36005u64 as u32; #[doc = "The `WebGL2RenderingContext.VIEWPORT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const VIEWPORT: u32 = 2978u64 as u32; #[doc = "The `WebGL2RenderingContext.SCISSOR_BOX` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const SCISSOR_BOX: u32 = 3088u64 as u32; #[doc = "The `WebGL2RenderingContext.COLOR_CLEAR_VALUE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const COLOR_CLEAR_VALUE: u32 = 3106u64 as u32; #[doc = "The `WebGL2RenderingContext.COLOR_WRITEMASK` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const COLOR_WRITEMASK: u32 = 3107u64 as u32; #[doc = "The `WebGL2RenderingContext.UNPACK_ALIGNMENT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const UNPACK_ALIGNMENT: u32 = 3317u64 as u32; #[doc = "The `WebGL2RenderingContext.PACK_ALIGNMENT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const PACK_ALIGNMENT: u32 = 3333u64 as u32; #[doc = "The `WebGL2RenderingContext.MAX_TEXTURE_SIZE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const MAX_TEXTURE_SIZE: u32 = 3379u64 as u32; #[doc = "The `WebGL2RenderingContext.MAX_VIEWPORT_DIMS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const MAX_VIEWPORT_DIMS: u32 = 3386u64 as u32; #[doc = "The `WebGL2RenderingContext.SUBPIXEL_BITS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const SUBPIXEL_BITS: u32 = 3408u64 as u32; #[doc = "The `WebGL2RenderingContext.RED_BITS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RED_BITS: u32 = 3410u64 as u32; #[doc = "The `WebGL2RenderingContext.GREEN_BITS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const GREEN_BITS: u32 = 3411u64 as u32; #[doc = "The `WebGL2RenderingContext.BLUE_BITS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const BLUE_BITS: u32 = 3412u64 as u32; #[doc = "The `WebGL2RenderingContext.ALPHA_BITS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const ALPHA_BITS: u32 = 3413u64 as u32; #[doc = "The `WebGL2RenderingContext.DEPTH_BITS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const DEPTH_BITS: u32 = 3414u64 as u32; #[doc = "The `WebGL2RenderingContext.STENCIL_BITS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const STENCIL_BITS: u32 = 3415u64 as u32; #[doc = "The `WebGL2RenderingContext.POLYGON_OFFSET_UNITS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const POLYGON_OFFSET_UNITS: u32 = 10752u64 as u32; #[doc = "The `WebGL2RenderingContext.POLYGON_OFFSET_FACTOR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const POLYGON_OFFSET_FACTOR: u32 = 32824u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE_BINDING_2D` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE_BINDING_2D: u32 = 32873u64 as u32; #[doc = "The `WebGL2RenderingContext.SAMPLE_BUFFERS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const SAMPLE_BUFFERS: u32 = 32936u64 as u32; #[doc = "The `WebGL2RenderingContext.SAMPLES` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const SAMPLES: u32 = 32937u64 as u32; #[doc = "The `WebGL2RenderingContext.SAMPLE_COVERAGE_VALUE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const SAMPLE_COVERAGE_VALUE: u32 = 32938u64 as u32; #[doc = "The `WebGL2RenderingContext.SAMPLE_COVERAGE_INVERT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const SAMPLE_COVERAGE_INVERT: u32 = 32939u64 as u32; #[doc = "The `WebGL2RenderingContext.COMPRESSED_TEXTURE_FORMATS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const COMPRESSED_TEXTURE_FORMATS: u32 = 34467u64 as u32; #[doc = "The `WebGL2RenderingContext.DONT_CARE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const DONT_CARE: u32 = 4352u64 as u32; #[doc = "The `WebGL2RenderingContext.FASTEST` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const FASTEST: u32 = 4353u64 as u32; #[doc = "The `WebGL2RenderingContext.NICEST` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const NICEST: u32 = 4354u64 as u32; #[doc = "The `WebGL2RenderingContext.GENERATE_MIPMAP_HINT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const GENERATE_MIPMAP_HINT: u32 = 33170u64 as u32; #[doc = "The `WebGL2RenderingContext.BYTE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const BYTE: u32 = 5120u64 as u32; #[doc = "The `WebGL2RenderingContext.UNSIGNED_BYTE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const UNSIGNED_BYTE: u32 = 5121u64 as u32; #[doc = "The `WebGL2RenderingContext.SHORT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const SHORT: u32 = 5122u64 as u32; #[doc = "The `WebGL2RenderingContext.UNSIGNED_SHORT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const UNSIGNED_SHORT: u32 = 5123u64 as u32; #[doc = "The `WebGL2RenderingContext.INT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const INT: u32 = 5124u64 as u32; #[doc = "The `WebGL2RenderingContext.UNSIGNED_INT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const UNSIGNED_INT: u32 = 5125u64 as u32; #[doc = "The `WebGL2RenderingContext.FLOAT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const FLOAT: u32 = 5126u64 as u32; #[doc = "The `WebGL2RenderingContext.DEPTH_COMPONENT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const DEPTH_COMPONENT: u32 = 6402u64 as u32; #[doc = "The `WebGL2RenderingContext.ALPHA` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const ALPHA: u32 = 6406u64 as u32; #[doc = "The `WebGL2RenderingContext.RGB` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RGB: u32 = 6407u64 as u32; #[doc = "The `WebGL2RenderingContext.RGBA` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RGBA: u32 = 6408u64 as u32; #[doc = "The `WebGL2RenderingContext.LUMINANCE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const LUMINANCE: u32 = 6409u64 as u32; #[doc = "The `WebGL2RenderingContext.LUMINANCE_ALPHA` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const LUMINANCE_ALPHA: u32 = 6410u64 as u32; #[doc = "The `WebGL2RenderingContext.UNSIGNED_SHORT_4_4_4_4` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const UNSIGNED_SHORT_4_4_4_4: u32 = 32819u64 as u32; #[doc = "The `WebGL2RenderingContext.UNSIGNED_SHORT_5_5_5_1` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const UNSIGNED_SHORT_5_5_5_1: u32 = 32820u64 as u32; #[doc = "The `WebGL2RenderingContext.UNSIGNED_SHORT_5_6_5` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const UNSIGNED_SHORT_5_6_5: u32 = 33635u64 as u32; #[doc = "The `WebGL2RenderingContext.FRAGMENT_SHADER` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const FRAGMENT_SHADER: u32 = 35632u64 as u32; #[doc = "The `WebGL2RenderingContext.VERTEX_SHADER` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const VERTEX_SHADER: u32 = 35633u64 as u32; #[doc = "The `WebGL2RenderingContext.MAX_VERTEX_ATTRIBS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const MAX_VERTEX_ATTRIBS: u32 = 34921u64 as u32; #[doc = "The `WebGL2RenderingContext.MAX_VERTEX_UNIFORM_VECTORS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const MAX_VERTEX_UNIFORM_VECTORS: u32 = 36347u64 as u32; #[doc = "The `WebGL2RenderingContext.MAX_VARYING_VECTORS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const MAX_VARYING_VECTORS: u32 = 36348u64 as u32; #[doc = "The `WebGL2RenderingContext.MAX_COMBINED_TEXTURE_IMAGE_UNITS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const MAX_COMBINED_TEXTURE_IMAGE_UNITS: u32 = 35661u64 as u32; #[doc = "The `WebGL2RenderingContext.MAX_VERTEX_TEXTURE_IMAGE_UNITS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const MAX_VERTEX_TEXTURE_IMAGE_UNITS: u32 = 35660u64 as u32; #[doc = "The `WebGL2RenderingContext.MAX_TEXTURE_IMAGE_UNITS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const MAX_TEXTURE_IMAGE_UNITS: u32 = 34930u64 as u32; #[doc = "The `WebGL2RenderingContext.MAX_FRAGMENT_UNIFORM_VECTORS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const MAX_FRAGMENT_UNIFORM_VECTORS: u32 = 36349u64 as u32; #[doc = "The `WebGL2RenderingContext.SHADER_TYPE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const SHADER_TYPE: u32 = 35663u64 as u32; #[doc = "The `WebGL2RenderingContext.DELETE_STATUS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const DELETE_STATUS: u32 = 35712u64 as u32; #[doc = "The `WebGL2RenderingContext.LINK_STATUS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const LINK_STATUS: u32 = 35714u64 as u32; #[doc = "The `WebGL2RenderingContext.VALIDATE_STATUS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const VALIDATE_STATUS: u32 = 35715u64 as u32; #[doc = "The `WebGL2RenderingContext.ATTACHED_SHADERS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const ATTACHED_SHADERS: u32 = 35717u64 as u32; #[doc = "The `WebGL2RenderingContext.ACTIVE_UNIFORMS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const ACTIVE_UNIFORMS: u32 = 35718u64 as u32; #[doc = "The `WebGL2RenderingContext.ACTIVE_ATTRIBUTES` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const ACTIVE_ATTRIBUTES: u32 = 35721u64 as u32; #[doc = "The `WebGL2RenderingContext.SHADING_LANGUAGE_VERSION` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const SHADING_LANGUAGE_VERSION: u32 = 35724u64 as u32; #[doc = "The `WebGL2RenderingContext.CURRENT_PROGRAM` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const CURRENT_PROGRAM: u32 = 35725u64 as u32; #[doc = "The `WebGL2RenderingContext.NEVER` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const NEVER: u32 = 512u64 as u32; #[doc = "The `WebGL2RenderingContext.LESS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const LESS: u32 = 513u64 as u32; #[doc = "The `WebGL2RenderingContext.EQUAL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const EQUAL: u32 = 514u64 as u32; #[doc = "The `WebGL2RenderingContext.LEQUAL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const LEQUAL: u32 = 515u64 as u32; #[doc = "The `WebGL2RenderingContext.GREATER` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const GREATER: u32 = 516u64 as u32; #[doc = "The `WebGL2RenderingContext.NOTEQUAL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const NOTEQUAL: u32 = 517u64 as u32; #[doc = "The `WebGL2RenderingContext.GEQUAL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const GEQUAL: u32 = 518u64 as u32; #[doc = "The `WebGL2RenderingContext.ALWAYS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const ALWAYS: u32 = 519u64 as u32; #[doc = "The `WebGL2RenderingContext.KEEP` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const KEEP: u32 = 7680u64 as u32; #[doc = "The `WebGL2RenderingContext.REPLACE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const REPLACE: u32 = 7681u64 as u32; #[doc = "The `WebGL2RenderingContext.INCR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const INCR: u32 = 7682u64 as u32; #[doc = "The `WebGL2RenderingContext.DECR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const DECR: u32 = 7683u64 as u32; #[doc = "The `WebGL2RenderingContext.INVERT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const INVERT: u32 = 5386u64 as u32; #[doc = "The `WebGL2RenderingContext.INCR_WRAP` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const INCR_WRAP: u32 = 34055u64 as u32; #[doc = "The `WebGL2RenderingContext.DECR_WRAP` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const DECR_WRAP: u32 = 34056u64 as u32; #[doc = "The `WebGL2RenderingContext.VENDOR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const VENDOR: u32 = 7936u64 as u32; #[doc = "The `WebGL2RenderingContext.RENDERER` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RENDERER: u32 = 7937u64 as u32; #[doc = "The `WebGL2RenderingContext.VERSION` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const VERSION: u32 = 7938u64 as u32; #[doc = "The `WebGL2RenderingContext.NEAREST` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const NEAREST: u32 = 9728u64 as u32; #[doc = "The `WebGL2RenderingContext.LINEAR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const LINEAR: u32 = 9729u64 as u32; #[doc = "The `WebGL2RenderingContext.NEAREST_MIPMAP_NEAREST` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const NEAREST_MIPMAP_NEAREST: u32 = 9984u64 as u32; #[doc = "The `WebGL2RenderingContext.LINEAR_MIPMAP_NEAREST` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const LINEAR_MIPMAP_NEAREST: u32 = 9985u64 as u32; #[doc = "The `WebGL2RenderingContext.NEAREST_MIPMAP_LINEAR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const NEAREST_MIPMAP_LINEAR: u32 = 9986u64 as u32; #[doc = "The `WebGL2RenderingContext.LINEAR_MIPMAP_LINEAR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const LINEAR_MIPMAP_LINEAR: u32 = 9987u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE_MAG_FILTER` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE_MAG_FILTER: u32 = 10240u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE_MIN_FILTER` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE_MIN_FILTER: u32 = 10241u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE_WRAP_S` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE_WRAP_S: u32 = 10242u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE_WRAP_T` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE_WRAP_T: u32 = 10243u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE_2D` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE_2D: u32 = 3553u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE: u32 = 5890u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE_CUBE_MAP` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE_CUBE_MAP: u32 = 34067u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE_BINDING_CUBE_MAP` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE_BINDING_CUBE_MAP: u32 = 34068u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE_CUBE_MAP_POSITIVE_X` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE_CUBE_MAP_POSITIVE_X: u32 = 34069u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_X` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE_CUBE_MAP_NEGATIVE_X: u32 = 34070u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE_CUBE_MAP_POSITIVE_Y` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE_CUBE_MAP_POSITIVE_Y: u32 = 34071u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_Y` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE_CUBE_MAP_NEGATIVE_Y: u32 = 34072u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE_CUBE_MAP_POSITIVE_Z` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE_CUBE_MAP_POSITIVE_Z: u32 = 34073u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_Z` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE_CUBE_MAP_NEGATIVE_Z: u32 = 34074u64 as u32; #[doc = "The `WebGL2RenderingContext.MAX_CUBE_MAP_TEXTURE_SIZE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const MAX_CUBE_MAP_TEXTURE_SIZE: u32 = 34076u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE0` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE0: u32 = 33984u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE1` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE1: u32 = 33985u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE2` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE2: u32 = 33986u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE3` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE3: u32 = 33987u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE4` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE4: u32 = 33988u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE5` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE5: u32 = 33989u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE6` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE6: u32 = 33990u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE7` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE7: u32 = 33991u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE8` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE8: u32 = 33992u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE9` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE9: u32 = 33993u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE10` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE10: u32 = 33994u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE11` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE11: u32 = 33995u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE12` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE12: u32 = 33996u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE13` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE13: u32 = 33997u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE14` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE14: u32 = 33998u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE15` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE15: u32 = 33999u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE16` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE16: u32 = 34000u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE17` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE17: u32 = 34001u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE18` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE18: u32 = 34002u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE19` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE19: u32 = 34003u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE20` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE20: u32 = 34004u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE21` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE21: u32 = 34005u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE22` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE22: u32 = 34006u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE23` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE23: u32 = 34007u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE24` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE24: u32 = 34008u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE25` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE25: u32 = 34009u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE26` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE26: u32 = 34010u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE27` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE27: u32 = 34011u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE28` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE28: u32 = 34012u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE29` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE29: u32 = 34013u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE30` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE30: u32 = 34014u64 as u32; #[doc = "The `WebGL2RenderingContext.TEXTURE31` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const TEXTURE31: u32 = 34015u64 as u32; #[doc = "The `WebGL2RenderingContext.ACTIVE_TEXTURE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const ACTIVE_TEXTURE: u32 = 34016u64 as u32; #[doc = "The `WebGL2RenderingContext.REPEAT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const REPEAT: u32 = 10497u64 as u32; #[doc = "The `WebGL2RenderingContext.CLAMP_TO_EDGE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const CLAMP_TO_EDGE: u32 = 33071u64 as u32; #[doc = "The `WebGL2RenderingContext.MIRRORED_REPEAT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const MIRRORED_REPEAT: u32 = 33648u64 as u32; #[doc = "The `WebGL2RenderingContext.FLOAT_VEC2` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const FLOAT_VEC2: u32 = 35664u64 as u32; #[doc = "The `WebGL2RenderingContext.FLOAT_VEC3` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const FLOAT_VEC3: u32 = 35665u64 as u32; #[doc = "The `WebGL2RenderingContext.FLOAT_VEC4` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const FLOAT_VEC4: u32 = 35666u64 as u32; #[doc = "The `WebGL2RenderingContext.INT_VEC2` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const INT_VEC2: u32 = 35667u64 as u32; #[doc = "The `WebGL2RenderingContext.INT_VEC3` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const INT_VEC3: u32 = 35668u64 as u32; #[doc = "The `WebGL2RenderingContext.INT_VEC4` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const INT_VEC4: u32 = 35669u64 as u32; #[doc = "The `WebGL2RenderingContext.BOOL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const BOOL: u32 = 35670u64 as u32; #[doc = "The `WebGL2RenderingContext.BOOL_VEC2` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const BOOL_VEC2: u32 = 35671u64 as u32; #[doc = "The `WebGL2RenderingContext.BOOL_VEC3` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const BOOL_VEC3: u32 = 35672u64 as u32; #[doc = "The `WebGL2RenderingContext.BOOL_VEC4` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const BOOL_VEC4: u32 = 35673u64 as u32; #[doc = "The `WebGL2RenderingContext.FLOAT_MAT2` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const FLOAT_MAT2: u32 = 35674u64 as u32; #[doc = "The `WebGL2RenderingContext.FLOAT_MAT3` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const FLOAT_MAT3: u32 = 35675u64 as u32; #[doc = "The `WebGL2RenderingContext.FLOAT_MAT4` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const FLOAT_MAT4: u32 = 35676u64 as u32; #[doc = "The `WebGL2RenderingContext.SAMPLER_2D` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const SAMPLER_2D: u32 = 35678u64 as u32; #[doc = "The `WebGL2RenderingContext.SAMPLER_CUBE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const SAMPLER_CUBE: u32 = 35680u64 as u32; #[doc = "The `WebGL2RenderingContext.VERTEX_ATTRIB_ARRAY_ENABLED` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const VERTEX_ATTRIB_ARRAY_ENABLED: u32 = 34338u64 as u32; #[doc = "The `WebGL2RenderingContext.VERTEX_ATTRIB_ARRAY_SIZE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const VERTEX_ATTRIB_ARRAY_SIZE: u32 = 34339u64 as u32; #[doc = "The `WebGL2RenderingContext.VERTEX_ATTRIB_ARRAY_STRIDE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const VERTEX_ATTRIB_ARRAY_STRIDE: u32 = 34340u64 as u32; #[doc = "The `WebGL2RenderingContext.VERTEX_ATTRIB_ARRAY_TYPE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const VERTEX_ATTRIB_ARRAY_TYPE: u32 = 34341u64 as u32; #[doc = "The `WebGL2RenderingContext.VERTEX_ATTRIB_ARRAY_NORMALIZED` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const VERTEX_ATTRIB_ARRAY_NORMALIZED: u32 = 34922u64 as u32; #[doc = "The `WebGL2RenderingContext.VERTEX_ATTRIB_ARRAY_POINTER` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const VERTEX_ATTRIB_ARRAY_POINTER: u32 = 34373u64 as u32; #[doc = "The `WebGL2RenderingContext.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: u32 = 34975u64 as u32; #[doc = "The `WebGL2RenderingContext.IMPLEMENTATION_COLOR_READ_TYPE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const IMPLEMENTATION_COLOR_READ_TYPE: u32 = 35738u64 as u32; #[doc = "The `WebGL2RenderingContext.IMPLEMENTATION_COLOR_READ_FORMAT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const IMPLEMENTATION_COLOR_READ_FORMAT: u32 = 35739u64 as u32; #[doc = "The `WebGL2RenderingContext.COMPILE_STATUS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const COMPILE_STATUS: u32 = 35713u64 as u32; #[doc = "The `WebGL2RenderingContext.LOW_FLOAT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const LOW_FLOAT: u32 = 36336u64 as u32; #[doc = "The `WebGL2RenderingContext.MEDIUM_FLOAT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const MEDIUM_FLOAT: u32 = 36337u64 as u32; #[doc = "The `WebGL2RenderingContext.HIGH_FLOAT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const HIGH_FLOAT: u32 = 36338u64 as u32; #[doc = "The `WebGL2RenderingContext.LOW_INT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const LOW_INT: u32 = 36339u64 as u32; #[doc = "The `WebGL2RenderingContext.MEDIUM_INT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const MEDIUM_INT: u32 = 36340u64 as u32; #[doc = "The `WebGL2RenderingContext.HIGH_INT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const HIGH_INT: u32 = 36341u64 as u32; #[doc = "The `WebGL2RenderingContext.FRAMEBUFFER` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const FRAMEBUFFER: u32 = 36160u64 as u32; #[doc = "The `WebGL2RenderingContext.RENDERBUFFER` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RENDERBUFFER: u32 = 36161u64 as u32; #[doc = "The `WebGL2RenderingContext.RGBA4` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RGBA4: u32 = 32854u64 as u32; #[doc = "The `WebGL2RenderingContext.RGB5_A1` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RGB5_A1: u32 = 32855u64 as u32; #[doc = "The `WebGL2RenderingContext.RGB565` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RGB565: u32 = 36194u64 as u32; #[doc = "The `WebGL2RenderingContext.DEPTH_COMPONENT16` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const DEPTH_COMPONENT16: u32 = 33189u64 as u32; #[doc = "The `WebGL2RenderingContext.STENCIL_INDEX8` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const STENCIL_INDEX8: u32 = 36168u64 as u32; #[doc = "The `WebGL2RenderingContext.DEPTH_STENCIL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const DEPTH_STENCIL: u32 = 34041u64 as u32; #[doc = "The `WebGL2RenderingContext.RENDERBUFFER_WIDTH` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RENDERBUFFER_WIDTH: u32 = 36162u64 as u32; #[doc = "The `WebGL2RenderingContext.RENDERBUFFER_HEIGHT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RENDERBUFFER_HEIGHT: u32 = 36163u64 as u32; #[doc = "The `WebGL2RenderingContext.RENDERBUFFER_INTERNAL_FORMAT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RENDERBUFFER_INTERNAL_FORMAT: u32 = 36164u64 as u32; #[doc = "The `WebGL2RenderingContext.RENDERBUFFER_RED_SIZE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RENDERBUFFER_RED_SIZE: u32 = 36176u64 as u32; #[doc = "The `WebGL2RenderingContext.RENDERBUFFER_GREEN_SIZE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RENDERBUFFER_GREEN_SIZE: u32 = 36177u64 as u32; #[doc = "The `WebGL2RenderingContext.RENDERBUFFER_BLUE_SIZE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RENDERBUFFER_BLUE_SIZE: u32 = 36178u64 as u32; #[doc = "The `WebGL2RenderingContext.RENDERBUFFER_ALPHA_SIZE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RENDERBUFFER_ALPHA_SIZE: u32 = 36179u64 as u32; #[doc = "The `WebGL2RenderingContext.RENDERBUFFER_DEPTH_SIZE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RENDERBUFFER_DEPTH_SIZE: u32 = 36180u64 as u32; #[doc = "The `WebGL2RenderingContext.RENDERBUFFER_STENCIL_SIZE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RENDERBUFFER_STENCIL_SIZE: u32 = 36181u64 as u32; #[doc = "The `WebGL2RenderingContext.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: u32 = 36048u64 as u32; #[doc = "The `WebGL2RenderingContext.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: u32 = 36049u64 as u32; #[doc = "The `WebGL2RenderingContext.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: u32 = 36050u64 as u32; #[doc = "The `WebGL2RenderingContext.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: u32 = 36051u64 as u32; #[doc = "The `WebGL2RenderingContext.COLOR_ATTACHMENT0` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const COLOR_ATTACHMENT0: u32 = 36064u64 as u32; #[doc = "The `WebGL2RenderingContext.DEPTH_ATTACHMENT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const DEPTH_ATTACHMENT: u32 = 36096u64 as u32; #[doc = "The `WebGL2RenderingContext.STENCIL_ATTACHMENT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const STENCIL_ATTACHMENT: u32 = 36128u64 as u32; #[doc = "The `WebGL2RenderingContext.DEPTH_STENCIL_ATTACHMENT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const DEPTH_STENCIL_ATTACHMENT: u32 = 33306u64 as u32; #[doc = "The `WebGL2RenderingContext.NONE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const NONE: u32 = 0i64 as u32; #[doc = "The `WebGL2RenderingContext.FRAMEBUFFER_COMPLETE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const FRAMEBUFFER_COMPLETE: u32 = 36053u64 as u32; #[doc = "The `WebGL2RenderingContext.FRAMEBUFFER_INCOMPLETE_ATTACHMENT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const FRAMEBUFFER_INCOMPLETE_ATTACHMENT: u32 = 36054u64 as u32; #[doc = "The `WebGL2RenderingContext.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: u32 = 36055u64 as u32; #[doc = "The `WebGL2RenderingContext.FRAMEBUFFER_INCOMPLETE_DIMENSIONS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const FRAMEBUFFER_INCOMPLETE_DIMENSIONS: u32 = 36057u64 as u32; #[doc = "The `WebGL2RenderingContext.FRAMEBUFFER_UNSUPPORTED` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const FRAMEBUFFER_UNSUPPORTED: u32 = 36061u64 as u32; #[doc = "The `WebGL2RenderingContext.FRAMEBUFFER_BINDING` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const FRAMEBUFFER_BINDING: u32 = 36006u64 as u32; #[doc = "The `WebGL2RenderingContext.RENDERBUFFER_BINDING` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const RENDERBUFFER_BINDING: u32 = 36007u64 as u32; #[doc = "The `WebGL2RenderingContext.MAX_RENDERBUFFER_SIZE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const MAX_RENDERBUFFER_SIZE: u32 = 34024u64 as u32; #[doc = "The `WebGL2RenderingContext.INVALID_FRAMEBUFFER_OPERATION` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const INVALID_FRAMEBUFFER_OPERATION: u32 = 1286u64 as u32; #[doc = "The `WebGL2RenderingContext.UNPACK_FLIP_Y_WEBGL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const UNPACK_FLIP_Y_WEBGL: u32 = 37440u64 as u32; #[doc = "The `WebGL2RenderingContext.UNPACK_PREMULTIPLY_ALPHA_WEBGL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const UNPACK_PREMULTIPLY_ALPHA_WEBGL: u32 = 37441u64 as u32; #[doc = "The `WebGL2RenderingContext.CONTEXT_LOST_WEBGL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const CONTEXT_LOST_WEBGL: u32 = 37442u64 as u32; #[doc = "The `WebGL2RenderingContext.UNPACK_COLORSPACE_CONVERSION_WEBGL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const UNPACK_COLORSPACE_CONVERSION_WEBGL: u32 = 37443u64 as u32; #[doc = "The `WebGL2RenderingContext.BROWSER_DEFAULT_WEBGL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] pub const BROWSER_DEFAULT_WEBGL: u32 = 37444u64 as u32; } web-sys-0.3.55/src/features/gen_WebGlActiveInfo.rs000064400000000000000000000035610072674642500201200ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebGLActiveInfo , typescript_type = "WebGLActiveInfo")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebGlActiveInfo` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLActiveInfo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlActiveInfo`*"] pub type WebGlActiveInfo; # [wasm_bindgen (structural , method , getter , js_class = "WebGLActiveInfo" , js_name = size)] #[doc = "Getter for the `size` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLActiveInfo/size)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlActiveInfo`*"] pub fn size(this: &WebGlActiveInfo) -> i32; # [wasm_bindgen (structural , method , getter , js_class = "WebGLActiveInfo" , js_name = type)] #[doc = "Getter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLActiveInfo/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlActiveInfo`*"] pub fn type_(this: &WebGlActiveInfo) -> u32; # [wasm_bindgen (structural , method , getter , js_class = "WebGLActiveInfo" , js_name = name)] #[doc = "Getter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLActiveInfo/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlActiveInfo`*"] pub fn name(this: &WebGlActiveInfo) -> String; } web-sys-0.3.55/src/features/gen_WebGlBuffer.rs000064400000000000000000000010410072674642500172710ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebGLBuffer , typescript_type = "WebGLBuffer")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebGlBuffer` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlBuffer`*"] pub type WebGlBuffer; } web-sys-0.3.55/src/features/gen_WebGlContextAttributes.rs000064400000000000000000000144360072674642500215670ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebGLContextAttributes)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebGlContextAttributes` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlContextAttributes`*"] pub type WebGlContextAttributes; } impl WebGlContextAttributes { #[doc = "Construct a new `WebGlContextAttributes`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlContextAttributes`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `alpha` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlContextAttributes`*"] pub fn alpha(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("alpha"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `antialias` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlContextAttributes`*"] pub fn antialias(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("antialias"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `depth` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlContextAttributes`*"] pub fn depth(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("depth"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `failIfMajorPerformanceCaveat` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlContextAttributes`*"] pub fn fail_if_major_performance_caveat(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("failIfMajorPerformanceCaveat"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "WebGlPowerPreference")] #[doc = "Change the `powerPreference` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlContextAttributes`, `WebGlPowerPreference`*"] pub fn power_preference(&mut self, val: WebGlPowerPreference) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("powerPreference"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `premultipliedAlpha` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlContextAttributes`*"] pub fn premultiplied_alpha(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("premultipliedAlpha"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `preserveDrawingBuffer` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlContextAttributes`*"] pub fn preserve_drawing_buffer(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("preserveDrawingBuffer"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `stencil` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlContextAttributes`*"] pub fn stencil(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("stencil"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `xrCompatible` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlContextAttributes`*"] pub fn xr_compatible(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("xrCompatible"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for WebGlContextAttributes { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_WebGlContextEvent.rs000064400000000000000000000042770072674642500205240ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = WebGLContextEvent , typescript_type = "WebGLContextEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebGlContextEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLContextEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlContextEvent`*"] pub type WebGlContextEvent; # [wasm_bindgen (structural , method , getter , js_class = "WebGLContextEvent" , js_name = statusMessage)] #[doc = "Getter for the `statusMessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLContextEvent/statusMessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlContextEvent`*"] pub fn status_message(this: &WebGlContextEvent) -> String; #[wasm_bindgen(catch, constructor, js_class = "WebGLContextEvent")] #[doc = "The `new WebGlContextEvent(..)` constructor, creating a new instance of `WebGlContextEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLContextEvent/WebGLContextEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlContextEvent`*"] pub fn new(type_: &str) -> Result; #[cfg(feature = "WebGlContextEventInit")] #[wasm_bindgen(catch, constructor, js_class = "WebGLContextEvent")] #[doc = "The `new WebGlContextEvent(..)` constructor, creating a new instance of `WebGlContextEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLContextEvent/WebGLContextEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlContextEvent`, `WebGlContextEventInit`*"] pub fn new_with_event_init( type_: &str, event_init: &WebGlContextEventInit, ) -> Result; } web-sys-0.3.55/src/features/gen_WebGlContextEventInit.rs000064400000000000000000000063610072674642500213440ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebGLContextEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebGlContextEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlContextEventInit`*"] pub type WebGlContextEventInit; } impl WebGlContextEventInit { #[doc = "Construct a new `WebGlContextEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlContextEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlContextEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlContextEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlContextEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `statusMessage` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlContextEventInit`*"] pub fn status_message(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("statusMessage"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for WebGlContextEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_WebGlFramebuffer.rs000064400000000000000000000010770072674642500203150ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebGLFramebuffer , typescript_type = "WebGLFramebuffer")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebGlFramebuffer` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLFramebuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlFramebuffer`*"] pub type WebGlFramebuffer; } web-sys-0.3.55/src/features/gen_WebGlPowerPreference.rs000064400000000000000000000006220072674642500211570ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `WebGlPowerPreference` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlPowerPreference`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum WebGlPowerPreference { Default = "default", LowPower = "low-power", HighPerformance = "high-performance", } web-sys-0.3.55/src/features/gen_WebGlProgram.rs000064400000000000000000000010470072674642500174750ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebGLProgram , typescript_type = "WebGLProgram")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebGlProgram` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLProgram)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`*"] pub type WebGlProgram; } web-sys-0.3.55/src/features/gen_WebGlQuery.rs000064400000000000000000000010330072674642500171660ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebGLQuery , typescript_type = "WebGLQuery")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebGlQuery` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLQuery)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlQuery`*"] pub type WebGlQuery; } web-sys-0.3.55/src/features/gen_WebGlRenderbuffer.rs000064400000000000000000000011050072674642500204720ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebGLRenderbuffer , typescript_type = "WebGLRenderbuffer")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebGlRenderbuffer` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderbuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderbuffer`*"] pub type WebGlRenderbuffer; } web-sys-0.3.55/src/features/gen_WebGlRenderingContext.rs000064400000000000000000005327650072674642500213700ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebGLRenderingContext , typescript_type = "WebGLRenderingContext")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebGlRenderingContext` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub type WebGlRenderingContext; # [wasm_bindgen (structural , method , getter , js_class = "WebGLRenderingContext" , js_name = canvas)] #[doc = "Getter for the `canvas` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/canvas)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn canvas(this: &WebGlRenderingContext) -> Option<::js_sys::Object>; # [wasm_bindgen (structural , method , getter , js_class = "WebGLRenderingContext" , js_name = drawingBufferWidth)] #[doc = "Getter for the `drawingBufferWidth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/drawingBufferWidth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn drawing_buffer_width(this: &WebGlRenderingContext) -> i32; # [wasm_bindgen (structural , method , getter , js_class = "WebGLRenderingContext" , js_name = drawingBufferHeight)] #[doc = "Getter for the `drawingBufferHeight` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/drawingBufferHeight)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn drawing_buffer_height(this: &WebGlRenderingContext) -> i32; # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = bufferData)] #[doc = "The `bufferData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn buffer_data_with_i32(this: &WebGlRenderingContext, target: u32, size: i32, usage: u32); # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = bufferData)] #[doc = "The `bufferData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn buffer_data_with_f64(this: &WebGlRenderingContext, target: u32, size: f64, usage: u32); # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = bufferData)] #[doc = "The `bufferData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn buffer_data_with_opt_array_buffer( this: &WebGlRenderingContext, target: u32, data: Option<&::js_sys::ArrayBuffer>, usage: u32, ); # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = bufferData)] #[doc = "The `bufferData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn buffer_data_with_array_buffer_view( this: &WebGlRenderingContext, target: u32, data: &::js_sys::Object, usage: u32, ); # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = bufferData)] #[doc = "The `bufferData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn buffer_data_with_u8_array( this: &WebGlRenderingContext, target: u32, data: &[u8], usage: u32, ); # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = bufferSubData)] #[doc = "The `bufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferSubData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn buffer_sub_data_with_i32_and_array_buffer( this: &WebGlRenderingContext, target: u32, offset: i32, data: &::js_sys::ArrayBuffer, ); # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = bufferSubData)] #[doc = "The `bufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferSubData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn buffer_sub_data_with_f64_and_array_buffer( this: &WebGlRenderingContext, target: u32, offset: f64, data: &::js_sys::ArrayBuffer, ); # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = bufferSubData)] #[doc = "The `bufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferSubData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn buffer_sub_data_with_i32_and_array_buffer_view( this: &WebGlRenderingContext, target: u32, offset: i32, data: &::js_sys::Object, ); # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = bufferSubData)] #[doc = "The `bufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferSubData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn buffer_sub_data_with_f64_and_array_buffer_view( this: &WebGlRenderingContext, target: u32, offset: f64, data: &::js_sys::Object, ); # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = bufferSubData)] #[doc = "The `bufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferSubData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn buffer_sub_data_with_i32_and_u8_array( this: &WebGlRenderingContext, target: u32, offset: i32, data: &[u8], ); # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = bufferSubData)] #[doc = "The `bufferSubData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferSubData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn buffer_sub_data_with_f64_and_u8_array( this: &WebGlRenderingContext, target: u32, offset: f64, data: &[u8], ); # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = commit)] #[doc = "The `commit()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/commit)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn commit(this: &WebGlRenderingContext); # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = compressedTexImage2D)] #[doc = "The `compressedTexImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/compressedTexImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn compressed_tex_image_2d_with_array_buffer_view( this: &WebGlRenderingContext, target: u32, level: i32, internalformat: u32, width: i32, height: i32, border: i32, data: &::js_sys::Object, ); # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = compressedTexImage2D)] #[doc = "The `compressedTexImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/compressedTexImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn compressed_tex_image_2d_with_u8_array( this: &WebGlRenderingContext, target: u32, level: i32, internalformat: u32, width: i32, height: i32, border: i32, data: &[u8], ); # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = compressedTexSubImage2D)] #[doc = "The `compressedTexSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/compressedTexSubImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn compressed_tex_sub_image_2d_with_array_buffer_view( this: &WebGlRenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, width: i32, height: i32, format: u32, data: &::js_sys::Object, ); # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = compressedTexSubImage2D)] #[doc = "The `compressedTexSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/compressedTexSubImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn compressed_tex_sub_image_2d_with_u8_array( this: &WebGlRenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, width: i32, height: i32, format: u32, data: &mut [u8], ); # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = readPixels)] #[doc = "The `readPixels()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/readPixels)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn read_pixels_with_opt_array_buffer_view( this: &WebGlRenderingContext, x: i32, y: i32, width: i32, height: i32, format: u32, type_: u32, pixels: Option<&::js_sys::Object>, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = readPixels)] #[doc = "The `readPixels()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/readPixels)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn read_pixels_with_opt_u8_array( this: &WebGlRenderingContext, x: i32, y: i32, width: i32, height: i32, format: u32, type_: u32, pixels: Option<&mut [u8]>, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = texImage2D)] #[doc = "The `texImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn tex_image_2d_with_i32_and_i32_and_i32_and_format_and_type_and_opt_array_buffer_view( this: &WebGlRenderingContext, target: u32, level: i32, internalformat: i32, width: i32, height: i32, border: i32, format: u32, type_: u32, pixels: Option<&::js_sys::Object>, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = texImage2D)] #[doc = "The `texImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn tex_image_2d_with_i32_and_i32_and_i32_and_format_and_type_and_opt_u8_array( this: &WebGlRenderingContext, target: u32, level: i32, internalformat: i32, width: i32, height: i32, border: i32, format: u32, type_: u32, pixels: Option<&[u8]>, ) -> Result<(), JsValue>; #[cfg(feature = "ImageBitmap")] # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = texImage2D)] #[doc = "The `texImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `WebGlRenderingContext`*"] pub fn tex_image_2d_with_u32_and_u32_and_image_bitmap( this: &WebGlRenderingContext, target: u32, level: i32, internalformat: i32, format: u32, type_: u32, pixels: &ImageBitmap, ) -> Result<(), JsValue>; #[cfg(feature = "ImageData")] # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = texImage2D)] #[doc = "The `texImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageData`, `WebGlRenderingContext`*"] pub fn tex_image_2d_with_u32_and_u32_and_image_data( this: &WebGlRenderingContext, target: u32, level: i32, internalformat: i32, format: u32, type_: u32, pixels: &ImageData, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlImageElement")] # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = texImage2D)] #[doc = "The `texImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`, `WebGlRenderingContext`*"] pub fn tex_image_2d_with_u32_and_u32_and_image( this: &WebGlRenderingContext, target: u32, level: i32, internalformat: i32, format: u32, type_: u32, image: &HtmlImageElement, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlCanvasElement")] # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = texImage2D)] #[doc = "The `texImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `WebGlRenderingContext`*"] pub fn tex_image_2d_with_u32_and_u32_and_canvas( this: &WebGlRenderingContext, target: u32, level: i32, internalformat: i32, format: u32, type_: u32, canvas: &HtmlCanvasElement, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlVideoElement")] # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = texImage2D)] #[doc = "The `texImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`, `WebGlRenderingContext`*"] pub fn tex_image_2d_with_u32_and_u32_and_video( this: &WebGlRenderingContext, target: u32, level: i32, internalformat: i32, format: u32, type_: u32, video: &HtmlVideoElement, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = texSubImage2D)] #[doc = "The `texSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texSubImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn tex_sub_image_2d_with_i32_and_i32_and_u32_and_type_and_opt_array_buffer_view( this: &WebGlRenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, width: i32, height: i32, format: u32, type_: u32, pixels: Option<&::js_sys::Object>, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = texSubImage2D)] #[doc = "The `texSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texSubImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn tex_sub_image_2d_with_i32_and_i32_and_u32_and_type_and_opt_u8_array( this: &WebGlRenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, width: i32, height: i32, format: u32, type_: u32, pixels: Option<&[u8]>, ) -> Result<(), JsValue>; #[cfg(feature = "ImageBitmap")] # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = texSubImage2D)] #[doc = "The `texSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texSubImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `WebGlRenderingContext`*"] pub fn tex_sub_image_2d_with_u32_and_u32_and_image_bitmap( this: &WebGlRenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, format: u32, type_: u32, pixels: &ImageBitmap, ) -> Result<(), JsValue>; #[cfg(feature = "ImageData")] # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = texSubImage2D)] #[doc = "The `texSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texSubImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageData`, `WebGlRenderingContext`*"] pub fn tex_sub_image_2d_with_u32_and_u32_and_image_data( this: &WebGlRenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, format: u32, type_: u32, pixels: &ImageData, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlImageElement")] # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = texSubImage2D)] #[doc = "The `texSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texSubImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`, `WebGlRenderingContext`*"] pub fn tex_sub_image_2d_with_u32_and_u32_and_image( this: &WebGlRenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, format: u32, type_: u32, image: &HtmlImageElement, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlCanvasElement")] # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = texSubImage2D)] #[doc = "The `texSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texSubImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `WebGlRenderingContext`*"] pub fn tex_sub_image_2d_with_u32_and_u32_and_canvas( this: &WebGlRenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, format: u32, type_: u32, canvas: &HtmlCanvasElement, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlVideoElement")] # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = texSubImage2D)] #[doc = "The `texSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texSubImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`, `WebGlRenderingContext`*"] pub fn tex_sub_image_2d_with_u32_and_u32_and_video( this: &WebGlRenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, format: u32, type_: u32, video: &HtmlVideoElement, ) -> Result<(), JsValue>; #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform1fv)] #[doc = "The `uniform1fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform1fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] pub fn uniform1fv_with_f32_array( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, data: &[f32], ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform1fv)] #[doc = "The `uniform1fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform1fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] pub fn uniform1fv_with_f32_sequence( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform1iv)] #[doc = "The `uniform1iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform1iv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] pub fn uniform1iv_with_i32_array( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, data: &[i32], ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform1iv)] #[doc = "The `uniform1iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform1iv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] pub fn uniform1iv_with_i32_sequence( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform2fv)] #[doc = "The `uniform2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform2fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] pub fn uniform2fv_with_f32_array( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, data: &[f32], ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform2fv)] #[doc = "The `uniform2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform2fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] pub fn uniform2fv_with_f32_sequence( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform2iv)] #[doc = "The `uniform2iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform2iv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] pub fn uniform2iv_with_i32_array( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, data: &[i32], ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform2iv)] #[doc = "The `uniform2iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform2iv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] pub fn uniform2iv_with_i32_sequence( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform3fv)] #[doc = "The `uniform3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform3fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] pub fn uniform3fv_with_f32_array( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, data: &[f32], ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform3fv)] #[doc = "The `uniform3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform3fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] pub fn uniform3fv_with_f32_sequence( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform3iv)] #[doc = "The `uniform3iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform3iv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] pub fn uniform3iv_with_i32_array( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, data: &[i32], ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform3iv)] #[doc = "The `uniform3iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform3iv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] pub fn uniform3iv_with_i32_sequence( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform4fv)] #[doc = "The `uniform4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform4fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] pub fn uniform4fv_with_f32_array( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, data: &[f32], ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform4fv)] #[doc = "The `uniform4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform4fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] pub fn uniform4fv_with_f32_sequence( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform4iv)] #[doc = "The `uniform4iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform4iv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] pub fn uniform4iv_with_i32_array( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, data: &[i32], ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform4iv)] #[doc = "The `uniform4iv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform4iv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] pub fn uniform4iv_with_i32_sequence( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniformMatrix2fv)] #[doc = "The `uniformMatrix2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniformMatrix2fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix2fv_with_f32_array( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &[f32], ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniformMatrix2fv)] #[doc = "The `uniformMatrix2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniformMatrix2fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix2fv_with_f32_sequence( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniformMatrix3fv)] #[doc = "The `uniformMatrix3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniformMatrix3fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix3fv_with_f32_array( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &[f32], ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniformMatrix3fv)] #[doc = "The `uniformMatrix3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniformMatrix3fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix3fv_with_f32_sequence( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::wasm_bindgen::JsValue, ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniformMatrix4fv)] #[doc = "The `uniformMatrix4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniformMatrix4fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix4fv_with_f32_array( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &[f32], ); #[cfg(feature = "WebGlUniformLocation")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniformMatrix4fv)] #[doc = "The `uniformMatrix4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniformMatrix4fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] pub fn uniform_matrix4fv_with_f32_sequence( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = activeTexture)] #[doc = "The `activeTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/activeTexture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn active_texture(this: &WebGlRenderingContext, texture: u32); #[cfg(all(feature = "WebGlProgram", feature = "WebGlShader",))] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = attachShader)] #[doc = "The `attachShader()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/attachShader)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`, `WebGlShader`*"] pub fn attach_shader( this: &WebGlRenderingContext, program: &WebGlProgram, shader: &WebGlShader, ); #[cfg(feature = "WebGlProgram")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = bindAttribLocation)] #[doc = "The `bindAttribLocation()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bindAttribLocation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`*"] pub fn bind_attrib_location( this: &WebGlRenderingContext, program: &WebGlProgram, index: u32, name: &str, ); #[cfg(feature = "WebGlBuffer")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = bindBuffer)] #[doc = "The `bindBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bindBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlBuffer`, `WebGlRenderingContext`*"] pub fn bind_buffer(this: &WebGlRenderingContext, target: u32, buffer: Option<&WebGlBuffer>); #[cfg(feature = "WebGlFramebuffer")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = bindFramebuffer)] #[doc = "The `bindFramebuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bindFramebuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlFramebuffer`, `WebGlRenderingContext`*"] pub fn bind_framebuffer( this: &WebGlRenderingContext, target: u32, framebuffer: Option<&WebGlFramebuffer>, ); #[cfg(feature = "WebGlRenderbuffer")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = bindRenderbuffer)] #[doc = "The `bindRenderbuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bindRenderbuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderbuffer`, `WebGlRenderingContext`*"] pub fn bind_renderbuffer( this: &WebGlRenderingContext, target: u32, renderbuffer: Option<&WebGlRenderbuffer>, ); #[cfg(feature = "WebGlTexture")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = bindTexture)] #[doc = "The `bindTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bindTexture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlTexture`*"] pub fn bind_texture(this: &WebGlRenderingContext, target: u32, texture: Option<&WebGlTexture>); # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = blendColor)] #[doc = "The `blendColor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/blendColor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn blend_color(this: &WebGlRenderingContext, red: f32, green: f32, blue: f32, alpha: f32); # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = blendEquation)] #[doc = "The `blendEquation()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/blendEquation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn blend_equation(this: &WebGlRenderingContext, mode: u32); # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = blendEquationSeparate)] #[doc = "The `blendEquationSeparate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/blendEquationSeparate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn blend_equation_separate(this: &WebGlRenderingContext, mode_rgb: u32, mode_alpha: u32); # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = blendFunc)] #[doc = "The `blendFunc()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/blendFunc)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn blend_func(this: &WebGlRenderingContext, sfactor: u32, dfactor: u32); # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = blendFuncSeparate)] #[doc = "The `blendFuncSeparate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/blendFuncSeparate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn blend_func_separate( this: &WebGlRenderingContext, src_rgb: u32, dst_rgb: u32, src_alpha: u32, dst_alpha: u32, ); # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = checkFramebufferStatus)] #[doc = "The `checkFramebufferStatus()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/checkFramebufferStatus)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn check_framebuffer_status(this: &WebGlRenderingContext, target: u32) -> u32; # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = clear)] #[doc = "The `clear()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/clear)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn clear(this: &WebGlRenderingContext, mask: u32); # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = clearColor)] #[doc = "The `clearColor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/clearColor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn clear_color(this: &WebGlRenderingContext, red: f32, green: f32, blue: f32, alpha: f32); # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = clearDepth)] #[doc = "The `clearDepth()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/clearDepth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn clear_depth(this: &WebGlRenderingContext, depth: f32); # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = clearStencil)] #[doc = "The `clearStencil()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/clearStencil)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn clear_stencil(this: &WebGlRenderingContext, s: i32); # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = colorMask)] #[doc = "The `colorMask()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/colorMask)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn color_mask( this: &WebGlRenderingContext, red: bool, green: bool, blue: bool, alpha: bool, ); #[cfg(feature = "WebGlShader")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = compileShader)] #[doc = "The `compileShader()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/compileShader)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlShader`*"] pub fn compile_shader(this: &WebGlRenderingContext, shader: &WebGlShader); # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = copyTexImage2D)] #[doc = "The `copyTexImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/copyTexImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn copy_tex_image_2d( this: &WebGlRenderingContext, target: u32, level: i32, internalformat: u32, x: i32, y: i32, width: i32, height: i32, border: i32, ); # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = copyTexSubImage2D)] #[doc = "The `copyTexSubImage2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/copyTexSubImage2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn copy_tex_sub_image_2d( this: &WebGlRenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, x: i32, y: i32, width: i32, height: i32, ); #[cfg(feature = "WebGlBuffer")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = createBuffer)] #[doc = "The `createBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/createBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlBuffer`, `WebGlRenderingContext`*"] pub fn create_buffer(this: &WebGlRenderingContext) -> Option; #[cfg(feature = "WebGlFramebuffer")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = createFramebuffer)] #[doc = "The `createFramebuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/createFramebuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlFramebuffer`, `WebGlRenderingContext`*"] pub fn create_framebuffer(this: &WebGlRenderingContext) -> Option; #[cfg(feature = "WebGlProgram")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = createProgram)] #[doc = "The `createProgram()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/createProgram)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`*"] pub fn create_program(this: &WebGlRenderingContext) -> Option; #[cfg(feature = "WebGlRenderbuffer")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = createRenderbuffer)] #[doc = "The `createRenderbuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/createRenderbuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderbuffer`, `WebGlRenderingContext`*"] pub fn create_renderbuffer(this: &WebGlRenderingContext) -> Option; #[cfg(feature = "WebGlShader")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = createShader)] #[doc = "The `createShader()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/createShader)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlShader`*"] pub fn create_shader(this: &WebGlRenderingContext, type_: u32) -> Option; #[cfg(feature = "WebGlTexture")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = createTexture)] #[doc = "The `createTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/createTexture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlTexture`*"] pub fn create_texture(this: &WebGlRenderingContext) -> Option; # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = cullFace)] #[doc = "The `cullFace()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/cullFace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn cull_face(this: &WebGlRenderingContext, mode: u32); #[cfg(feature = "WebGlBuffer")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = deleteBuffer)] #[doc = "The `deleteBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/deleteBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlBuffer`, `WebGlRenderingContext`*"] pub fn delete_buffer(this: &WebGlRenderingContext, buffer: Option<&WebGlBuffer>); #[cfg(feature = "WebGlFramebuffer")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = deleteFramebuffer)] #[doc = "The `deleteFramebuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/deleteFramebuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlFramebuffer`, `WebGlRenderingContext`*"] pub fn delete_framebuffer(this: &WebGlRenderingContext, framebuffer: Option<&WebGlFramebuffer>); #[cfg(feature = "WebGlProgram")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = deleteProgram)] #[doc = "The `deleteProgram()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/deleteProgram)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`*"] pub fn delete_program(this: &WebGlRenderingContext, program: Option<&WebGlProgram>); #[cfg(feature = "WebGlRenderbuffer")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = deleteRenderbuffer)] #[doc = "The `deleteRenderbuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/deleteRenderbuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderbuffer`, `WebGlRenderingContext`*"] pub fn delete_renderbuffer( this: &WebGlRenderingContext, renderbuffer: Option<&WebGlRenderbuffer>, ); #[cfg(feature = "WebGlShader")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = deleteShader)] #[doc = "The `deleteShader()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/deleteShader)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlShader`*"] pub fn delete_shader(this: &WebGlRenderingContext, shader: Option<&WebGlShader>); #[cfg(feature = "WebGlTexture")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = deleteTexture)] #[doc = "The `deleteTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/deleteTexture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlTexture`*"] pub fn delete_texture(this: &WebGlRenderingContext, texture: Option<&WebGlTexture>); # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = depthFunc)] #[doc = "The `depthFunc()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/depthFunc)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn depth_func(this: &WebGlRenderingContext, func: u32); # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = depthMask)] #[doc = "The `depthMask()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/depthMask)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn depth_mask(this: &WebGlRenderingContext, flag: bool); # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = depthRange)] #[doc = "The `depthRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/depthRange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn depth_range(this: &WebGlRenderingContext, z_near: f32, z_far: f32); #[cfg(all(feature = "WebGlProgram", feature = "WebGlShader",))] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = detachShader)] #[doc = "The `detachShader()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/detachShader)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`, `WebGlShader`*"] pub fn detach_shader( this: &WebGlRenderingContext, program: &WebGlProgram, shader: &WebGlShader, ); # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = disable)] #[doc = "The `disable()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/disable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn disable(this: &WebGlRenderingContext, cap: u32); # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = disableVertexAttribArray)] #[doc = "The `disableVertexAttribArray()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/disableVertexAttribArray)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn disable_vertex_attrib_array(this: &WebGlRenderingContext, index: u32); # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = drawArrays)] #[doc = "The `drawArrays()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/drawArrays)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn draw_arrays(this: &WebGlRenderingContext, mode: u32, first: i32, count: i32); # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = drawElements)] #[doc = "The `drawElements()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/drawElements)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn draw_elements_with_i32( this: &WebGlRenderingContext, mode: u32, count: i32, type_: u32, offset: i32, ); # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = drawElements)] #[doc = "The `drawElements()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/drawElements)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn draw_elements_with_f64( this: &WebGlRenderingContext, mode: u32, count: i32, type_: u32, offset: f64, ); # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = enable)] #[doc = "The `enable()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/enable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn enable(this: &WebGlRenderingContext, cap: u32); # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = enableVertexAttribArray)] #[doc = "The `enableVertexAttribArray()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/enableVertexAttribArray)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn enable_vertex_attrib_array(this: &WebGlRenderingContext, index: u32); # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = finish)] #[doc = "The `finish()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/finish)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn finish(this: &WebGlRenderingContext); # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = flush)] #[doc = "The `flush()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/flush)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn flush(this: &WebGlRenderingContext); #[cfg(feature = "WebGlRenderbuffer")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = framebufferRenderbuffer)] #[doc = "The `framebufferRenderbuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/framebufferRenderbuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderbuffer`, `WebGlRenderingContext`*"] pub fn framebuffer_renderbuffer( this: &WebGlRenderingContext, target: u32, attachment: u32, renderbuffertarget: u32, renderbuffer: Option<&WebGlRenderbuffer>, ); #[cfg(feature = "WebGlTexture")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = framebufferTexture2D)] #[doc = "The `framebufferTexture2D()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/framebufferTexture2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlTexture`*"] pub fn framebuffer_texture_2d( this: &WebGlRenderingContext, target: u32, attachment: u32, textarget: u32, texture: Option<&WebGlTexture>, level: i32, ); # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = frontFace)] #[doc = "The `frontFace()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/frontFace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn front_face(this: &WebGlRenderingContext, mode: u32); # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = generateMipmap)] #[doc = "The `generateMipmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/generateMipmap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn generate_mipmap(this: &WebGlRenderingContext, target: u32); #[cfg(all(feature = "WebGlActiveInfo", feature = "WebGlProgram",))] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getActiveAttrib)] #[doc = "The `getActiveAttrib()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getActiveAttrib)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlActiveInfo`, `WebGlProgram`, `WebGlRenderingContext`*"] pub fn get_active_attrib( this: &WebGlRenderingContext, program: &WebGlProgram, index: u32, ) -> Option; #[cfg(all(feature = "WebGlActiveInfo", feature = "WebGlProgram",))] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getActiveUniform)] #[doc = "The `getActiveUniform()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getActiveUniform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlActiveInfo`, `WebGlProgram`, `WebGlRenderingContext`*"] pub fn get_active_uniform( this: &WebGlRenderingContext, program: &WebGlProgram, index: u32, ) -> Option; #[cfg(feature = "WebGlProgram")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getAttachedShaders)] #[doc = "The `getAttachedShaders()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getAttachedShaders)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`*"] pub fn get_attached_shaders( this: &WebGlRenderingContext, program: &WebGlProgram, ) -> Option<::js_sys::Array>; #[cfg(feature = "WebGlProgram")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getAttribLocation)] #[doc = "The `getAttribLocation()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getAttribLocation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`*"] pub fn get_attrib_location( this: &WebGlRenderingContext, program: &WebGlProgram, name: &str, ) -> i32; # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getBufferParameter)] #[doc = "The `getBufferParameter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getBufferParameter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn get_buffer_parameter( this: &WebGlRenderingContext, target: u32, pname: u32, ) -> ::wasm_bindgen::JsValue; #[cfg(feature = "WebGlContextAttributes")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getContextAttributes)] #[doc = "The `getContextAttributes()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getContextAttributes)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlContextAttributes`, `WebGlRenderingContext`*"] pub fn get_context_attributes(this: &WebGlRenderingContext) -> Option; # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getError)] #[doc = "The `getError()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getError)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn get_error(this: &WebGlRenderingContext) -> u32; # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = getExtension)] #[doc = "The `getExtension()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getExtension)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn get_extension( this: &WebGlRenderingContext, name: &str, ) -> Result, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = getFramebufferAttachmentParameter)] #[doc = "The `getFramebufferAttachmentParameter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getFramebufferAttachmentParameter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn get_framebuffer_attachment_parameter( this: &WebGlRenderingContext, target: u32, attachment: u32, pname: u32, ) -> Result<::wasm_bindgen::JsValue, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = getParameter)] #[doc = "The `getParameter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getParameter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn get_parameter( this: &WebGlRenderingContext, pname: u32, ) -> Result<::wasm_bindgen::JsValue, JsValue>; #[cfg(feature = "WebGlProgram")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getProgramInfoLog)] #[doc = "The `getProgramInfoLog()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getProgramInfoLog)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`*"] pub fn get_program_info_log( this: &WebGlRenderingContext, program: &WebGlProgram, ) -> Option; #[cfg(feature = "WebGlProgram")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getProgramParameter)] #[doc = "The `getProgramParameter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getProgramParameter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`*"] pub fn get_program_parameter( this: &WebGlRenderingContext, program: &WebGlProgram, pname: u32, ) -> ::wasm_bindgen::JsValue; # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getRenderbufferParameter)] #[doc = "The `getRenderbufferParameter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getRenderbufferParameter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn get_renderbuffer_parameter( this: &WebGlRenderingContext, target: u32, pname: u32, ) -> ::wasm_bindgen::JsValue; #[cfg(feature = "WebGlShader")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getShaderInfoLog)] #[doc = "The `getShaderInfoLog()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getShaderInfoLog)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlShader`*"] pub fn get_shader_info_log( this: &WebGlRenderingContext, shader: &WebGlShader, ) -> Option; #[cfg(feature = "WebGlShader")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getShaderParameter)] #[doc = "The `getShaderParameter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getShaderParameter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlShader`*"] pub fn get_shader_parameter( this: &WebGlRenderingContext, shader: &WebGlShader, pname: u32, ) -> ::wasm_bindgen::JsValue; #[cfg(feature = "WebGlShaderPrecisionFormat")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getShaderPrecisionFormat)] #[doc = "The `getShaderPrecisionFormat()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getShaderPrecisionFormat)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlShaderPrecisionFormat`*"] pub fn get_shader_precision_format( this: &WebGlRenderingContext, shadertype: u32, precisiontype: u32, ) -> Option; #[cfg(feature = "WebGlShader")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getShaderSource)] #[doc = "The `getShaderSource()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getShaderSource)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlShader`*"] pub fn get_shader_source(this: &WebGlRenderingContext, shader: &WebGlShader) -> Option; # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getSupportedExtensions)] #[doc = "The `getSupportedExtensions()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getSupportedExtensions)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn get_supported_extensions(this: &WebGlRenderingContext) -> Option<::js_sys::Array>; # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getTexParameter)] #[doc = "The `getTexParameter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getTexParameter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn get_tex_parameter( this: &WebGlRenderingContext, target: u32, pname: u32, ) -> ::wasm_bindgen::JsValue; #[cfg(all(feature = "WebGlProgram", feature = "WebGlUniformLocation",))] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getUniform)] #[doc = "The `getUniform()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getUniform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`, `WebGlUniformLocation`*"] pub fn get_uniform( this: &WebGlRenderingContext, program: &WebGlProgram, location: &WebGlUniformLocation, ) -> ::wasm_bindgen::JsValue; #[cfg(all(feature = "WebGlProgram", feature = "WebGlUniformLocation",))] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getUniformLocation)] #[doc = "The `getUniformLocation()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getUniformLocation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`, `WebGlUniformLocation`*"] pub fn get_uniform_location( this: &WebGlRenderingContext, program: &WebGlProgram, name: &str, ) -> Option; # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = getVertexAttrib)] #[doc = "The `getVertexAttrib()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getVertexAttrib)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn get_vertex_attrib( this: &WebGlRenderingContext, index: u32, pname: u32, ) -> Result<::wasm_bindgen::JsValue, JsValue>; # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getVertexAttribOffset)] #[doc = "The `getVertexAttribOffset()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getVertexAttribOffset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn get_vertex_attrib_offset(this: &WebGlRenderingContext, index: u32, pname: u32) -> f64; # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = hint)] #[doc = "The `hint()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/hint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn hint(this: &WebGlRenderingContext, target: u32, mode: u32); #[cfg(feature = "WebGlBuffer")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = isBuffer)] #[doc = "The `isBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlBuffer`, `WebGlRenderingContext`*"] pub fn is_buffer(this: &WebGlRenderingContext, buffer: Option<&WebGlBuffer>) -> bool; # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = isContextLost)] #[doc = "The `isContextLost()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isContextLost)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn is_context_lost(this: &WebGlRenderingContext) -> bool; # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = isEnabled)] #[doc = "The `isEnabled()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isEnabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn is_enabled(this: &WebGlRenderingContext, cap: u32) -> bool; #[cfg(feature = "WebGlFramebuffer")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = isFramebuffer)] #[doc = "The `isFramebuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isFramebuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlFramebuffer`, `WebGlRenderingContext`*"] pub fn is_framebuffer( this: &WebGlRenderingContext, framebuffer: Option<&WebGlFramebuffer>, ) -> bool; #[cfg(feature = "WebGlProgram")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = isProgram)] #[doc = "The `isProgram()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isProgram)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`*"] pub fn is_program(this: &WebGlRenderingContext, program: Option<&WebGlProgram>) -> bool; #[cfg(feature = "WebGlRenderbuffer")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = isRenderbuffer)] #[doc = "The `isRenderbuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isRenderbuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderbuffer`, `WebGlRenderingContext`*"] pub fn is_renderbuffer( this: &WebGlRenderingContext, renderbuffer: Option<&WebGlRenderbuffer>, ) -> bool; #[cfg(feature = "WebGlShader")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = isShader)] #[doc = "The `isShader()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isShader)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlShader`*"] pub fn is_shader(this: &WebGlRenderingContext, shader: Option<&WebGlShader>) -> bool; #[cfg(feature = "WebGlTexture")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = isTexture)] #[doc = "The `isTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isTexture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlTexture`*"] pub fn is_texture(this: &WebGlRenderingContext, texture: Option<&WebGlTexture>) -> bool; # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = lineWidth)] #[doc = "The `lineWidth()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/lineWidth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn line_width(this: &WebGlRenderingContext, width: f32); #[cfg(feature = "WebGlProgram")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = linkProgram)] #[doc = "The `linkProgram()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/linkProgram)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`*"] pub fn link_program(this: &WebGlRenderingContext, program: &WebGlProgram); # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = 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`*"] 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_f32_sequence( this: &WebGlRenderingContext, indx: u32, values: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = vertexAttrib2f)] #[doc = "The `vertexAttrib2f()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib2f)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn vertex_attrib2f(this: &WebGlRenderingContext, indx: u32, x: f32, y: f32); # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = vertexAttrib2fv)] #[doc = "The `vertexAttrib2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib2fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn vertex_attrib2fv_with_f32_array(this: &WebGlRenderingContext, indx: u32, values: &[f32]); # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = vertexAttrib2fv)] #[doc = "The `vertexAttrib2fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib2fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn vertex_attrib2fv_with_f32_sequence( this: &WebGlRenderingContext, indx: u32, values: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = vertexAttrib3f)] #[doc = "The `vertexAttrib3f()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib3f)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn vertex_attrib3f(this: &WebGlRenderingContext, indx: u32, x: f32, y: f32, z: f32); # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = vertexAttrib3fv)] #[doc = "The `vertexAttrib3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib3fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn vertex_attrib3fv_with_f32_array(this: &WebGlRenderingContext, indx: u32, values: &[f32]); # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = vertexAttrib3fv)] #[doc = "The `vertexAttrib3fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib3fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn vertex_attrib3fv_with_f32_sequence( this: &WebGlRenderingContext, indx: u32, values: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = vertexAttrib4f)] #[doc = "The `vertexAttrib4f()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib4f)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn vertex_attrib4f(this: &WebGlRenderingContext, indx: u32, x: f32, y: f32, z: f32, w: f32); # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = vertexAttrib4fv)] #[doc = "The `vertexAttrib4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib4fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn vertex_attrib4fv_with_f32_array(this: &WebGlRenderingContext, indx: u32, values: &[f32]); # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = vertexAttrib4fv)] #[doc = "The `vertexAttrib4fv()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib4fv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn vertex_attrib4fv_with_f32_sequence( this: &WebGlRenderingContext, indx: u32, values: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = vertexAttribPointer)] #[doc = "The `vertexAttribPointer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttribPointer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn vertex_attrib_pointer_with_i32( this: &WebGlRenderingContext, indx: u32, size: i32, type_: u32, normalized: bool, stride: i32, offset: i32, ); # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = vertexAttribPointer)] #[doc = "The `vertexAttribPointer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttribPointer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn vertex_attrib_pointer_with_f64( this: &WebGlRenderingContext, indx: u32, size: i32, type_: u32, normalized: bool, stride: i32, offset: f64, ); # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = viewport)] #[doc = "The `viewport()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/viewport)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub fn viewport(this: &WebGlRenderingContext, x: i32, y: i32, width: i32, height: i32); } impl WebGlRenderingContext { #[doc = "The `WebGLRenderingContext.DEPTH_BUFFER_BIT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const DEPTH_BUFFER_BIT: u32 = 256u64 as u32; #[doc = "The `WebGLRenderingContext.STENCIL_BUFFER_BIT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const STENCIL_BUFFER_BIT: u32 = 1024u64 as u32; #[doc = "The `WebGLRenderingContext.COLOR_BUFFER_BIT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const COLOR_BUFFER_BIT: u32 = 16384u64 as u32; #[doc = "The `WebGLRenderingContext.POINTS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const POINTS: u32 = 0u64 as u32; #[doc = "The `WebGLRenderingContext.LINES` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const LINES: u32 = 1u64 as u32; #[doc = "The `WebGLRenderingContext.LINE_LOOP` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const LINE_LOOP: u32 = 2u64 as u32; #[doc = "The `WebGLRenderingContext.LINE_STRIP` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const LINE_STRIP: u32 = 3u64 as u32; #[doc = "The `WebGLRenderingContext.TRIANGLES` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const TRIANGLES: u32 = 4u64 as u32; #[doc = "The `WebGLRenderingContext.TRIANGLE_STRIP` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const TRIANGLE_STRIP: u32 = 5u64 as u32; #[doc = "The `WebGLRenderingContext.TRIANGLE_FAN` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const TRIANGLE_FAN: u32 = 6u64 as u32; #[doc = "The `WebGLRenderingContext.ZERO` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const ZERO: u32 = 0i64 as u32; #[doc = "The `WebGLRenderingContext.ONE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const ONE: u32 = 1u64 as u32; #[doc = "The `WebGLRenderingContext.SRC_COLOR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const SRC_COLOR: u32 = 768u64 as u32; #[doc = "The `WebGLRenderingContext.ONE_MINUS_SRC_COLOR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const ONE_MINUS_SRC_COLOR: u32 = 769u64 as u32; #[doc = "The `WebGLRenderingContext.SRC_ALPHA` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const SRC_ALPHA: u32 = 770u64 as u32; #[doc = "The `WebGLRenderingContext.ONE_MINUS_SRC_ALPHA` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const ONE_MINUS_SRC_ALPHA: u32 = 771u64 as u32; #[doc = "The `WebGLRenderingContext.DST_ALPHA` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const DST_ALPHA: u32 = 772u64 as u32; #[doc = "The `WebGLRenderingContext.ONE_MINUS_DST_ALPHA` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const ONE_MINUS_DST_ALPHA: u32 = 773u64 as u32; #[doc = "The `WebGLRenderingContext.DST_COLOR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const DST_COLOR: u32 = 774u64 as u32; #[doc = "The `WebGLRenderingContext.ONE_MINUS_DST_COLOR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const ONE_MINUS_DST_COLOR: u32 = 775u64 as u32; #[doc = "The `WebGLRenderingContext.SRC_ALPHA_SATURATE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const SRC_ALPHA_SATURATE: u32 = 776u64 as u32; #[doc = "The `WebGLRenderingContext.FUNC_ADD` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const FUNC_ADD: u32 = 32774u64 as u32; #[doc = "The `WebGLRenderingContext.BLEND_EQUATION` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const BLEND_EQUATION: u32 = 32777u64 as u32; #[doc = "The `WebGLRenderingContext.BLEND_EQUATION_RGB` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const BLEND_EQUATION_RGB: u32 = 32777u64 as u32; #[doc = "The `WebGLRenderingContext.BLEND_EQUATION_ALPHA` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const BLEND_EQUATION_ALPHA: u32 = 34877u64 as u32; #[doc = "The `WebGLRenderingContext.FUNC_SUBTRACT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const FUNC_SUBTRACT: u32 = 32778u64 as u32; #[doc = "The `WebGLRenderingContext.FUNC_REVERSE_SUBTRACT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const FUNC_REVERSE_SUBTRACT: u32 = 32779u64 as u32; #[doc = "The `WebGLRenderingContext.BLEND_DST_RGB` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const BLEND_DST_RGB: u32 = 32968u64 as u32; #[doc = "The `WebGLRenderingContext.BLEND_SRC_RGB` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const BLEND_SRC_RGB: u32 = 32969u64 as u32; #[doc = "The `WebGLRenderingContext.BLEND_DST_ALPHA` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const BLEND_DST_ALPHA: u32 = 32970u64 as u32; #[doc = "The `WebGLRenderingContext.BLEND_SRC_ALPHA` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const BLEND_SRC_ALPHA: u32 = 32971u64 as u32; #[doc = "The `WebGLRenderingContext.CONSTANT_COLOR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const CONSTANT_COLOR: u32 = 32769u64 as u32; #[doc = "The `WebGLRenderingContext.ONE_MINUS_CONSTANT_COLOR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const ONE_MINUS_CONSTANT_COLOR: u32 = 32770u64 as u32; #[doc = "The `WebGLRenderingContext.CONSTANT_ALPHA` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const CONSTANT_ALPHA: u32 = 32771u64 as u32; #[doc = "The `WebGLRenderingContext.ONE_MINUS_CONSTANT_ALPHA` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const ONE_MINUS_CONSTANT_ALPHA: u32 = 32772u64 as u32; #[doc = "The `WebGLRenderingContext.BLEND_COLOR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const BLEND_COLOR: u32 = 32773u64 as u32; #[doc = "The `WebGLRenderingContext.ARRAY_BUFFER` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const ARRAY_BUFFER: u32 = 34962u64 as u32; #[doc = "The `WebGLRenderingContext.ELEMENT_ARRAY_BUFFER` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const ELEMENT_ARRAY_BUFFER: u32 = 34963u64 as u32; #[doc = "The `WebGLRenderingContext.ARRAY_BUFFER_BINDING` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const ARRAY_BUFFER_BINDING: u32 = 34964u64 as u32; #[doc = "The `WebGLRenderingContext.ELEMENT_ARRAY_BUFFER_BINDING` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const ELEMENT_ARRAY_BUFFER_BINDING: u32 = 34965u64 as u32; #[doc = "The `WebGLRenderingContext.STREAM_DRAW` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const STREAM_DRAW: u32 = 35040u64 as u32; #[doc = "The `WebGLRenderingContext.STATIC_DRAW` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const STATIC_DRAW: u32 = 35044u64 as u32; #[doc = "The `WebGLRenderingContext.DYNAMIC_DRAW` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const DYNAMIC_DRAW: u32 = 35048u64 as u32; #[doc = "The `WebGLRenderingContext.BUFFER_SIZE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const BUFFER_SIZE: u32 = 34660u64 as u32; #[doc = "The `WebGLRenderingContext.BUFFER_USAGE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const BUFFER_USAGE: u32 = 34661u64 as u32; #[doc = "The `WebGLRenderingContext.CURRENT_VERTEX_ATTRIB` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const CURRENT_VERTEX_ATTRIB: u32 = 34342u64 as u32; #[doc = "The `WebGLRenderingContext.FRONT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const FRONT: u32 = 1028u64 as u32; #[doc = "The `WebGLRenderingContext.BACK` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const BACK: u32 = 1029u64 as u32; #[doc = "The `WebGLRenderingContext.FRONT_AND_BACK` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const FRONT_AND_BACK: u32 = 1032u64 as u32; #[doc = "The `WebGLRenderingContext.CULL_FACE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const CULL_FACE: u32 = 2884u64 as u32; #[doc = "The `WebGLRenderingContext.BLEND` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const BLEND: u32 = 3042u64 as u32; #[doc = "The `WebGLRenderingContext.DITHER` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const DITHER: u32 = 3024u64 as u32; #[doc = "The `WebGLRenderingContext.STENCIL_TEST` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const STENCIL_TEST: u32 = 2960u64 as u32; #[doc = "The `WebGLRenderingContext.DEPTH_TEST` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const DEPTH_TEST: u32 = 2929u64 as u32; #[doc = "The `WebGLRenderingContext.SCISSOR_TEST` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const SCISSOR_TEST: u32 = 3089u64 as u32; #[doc = "The `WebGLRenderingContext.POLYGON_OFFSET_FILL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const POLYGON_OFFSET_FILL: u32 = 32823u64 as u32; #[doc = "The `WebGLRenderingContext.SAMPLE_ALPHA_TO_COVERAGE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const SAMPLE_ALPHA_TO_COVERAGE: u32 = 32926u64 as u32; #[doc = "The `WebGLRenderingContext.SAMPLE_COVERAGE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const SAMPLE_COVERAGE: u32 = 32928u64 as u32; #[doc = "The `WebGLRenderingContext.NO_ERROR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const NO_ERROR: u32 = 0i64 as u32; #[doc = "The `WebGLRenderingContext.INVALID_ENUM` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const INVALID_ENUM: u32 = 1280u64 as u32; #[doc = "The `WebGLRenderingContext.INVALID_VALUE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const INVALID_VALUE: u32 = 1281u64 as u32; #[doc = "The `WebGLRenderingContext.INVALID_OPERATION` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const INVALID_OPERATION: u32 = 1282u64 as u32; #[doc = "The `WebGLRenderingContext.OUT_OF_MEMORY` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const OUT_OF_MEMORY: u32 = 1285u64 as u32; #[doc = "The `WebGLRenderingContext.CW` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const CW: u32 = 2304u64 as u32; #[doc = "The `WebGLRenderingContext.CCW` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const CCW: u32 = 2305u64 as u32; #[doc = "The `WebGLRenderingContext.LINE_WIDTH` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const LINE_WIDTH: u32 = 2849u64 as u32; #[doc = "The `WebGLRenderingContext.ALIASED_POINT_SIZE_RANGE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const ALIASED_POINT_SIZE_RANGE: u32 = 33901u64 as u32; #[doc = "The `WebGLRenderingContext.ALIASED_LINE_WIDTH_RANGE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const ALIASED_LINE_WIDTH_RANGE: u32 = 33902u64 as u32; #[doc = "The `WebGLRenderingContext.CULL_FACE_MODE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const CULL_FACE_MODE: u32 = 2885u64 as u32; #[doc = "The `WebGLRenderingContext.FRONT_FACE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const FRONT_FACE: u32 = 2886u64 as u32; #[doc = "The `WebGLRenderingContext.DEPTH_RANGE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const DEPTH_RANGE: u32 = 2928u64 as u32; #[doc = "The `WebGLRenderingContext.DEPTH_WRITEMASK` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const DEPTH_WRITEMASK: u32 = 2930u64 as u32; #[doc = "The `WebGLRenderingContext.DEPTH_CLEAR_VALUE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const DEPTH_CLEAR_VALUE: u32 = 2931u64 as u32; #[doc = "The `WebGLRenderingContext.DEPTH_FUNC` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const DEPTH_FUNC: u32 = 2932u64 as u32; #[doc = "The `WebGLRenderingContext.STENCIL_CLEAR_VALUE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const STENCIL_CLEAR_VALUE: u32 = 2961u64 as u32; #[doc = "The `WebGLRenderingContext.STENCIL_FUNC` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const STENCIL_FUNC: u32 = 2962u64 as u32; #[doc = "The `WebGLRenderingContext.STENCIL_FAIL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const STENCIL_FAIL: u32 = 2964u64 as u32; #[doc = "The `WebGLRenderingContext.STENCIL_PASS_DEPTH_FAIL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const STENCIL_PASS_DEPTH_FAIL: u32 = 2965u64 as u32; #[doc = "The `WebGLRenderingContext.STENCIL_PASS_DEPTH_PASS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const STENCIL_PASS_DEPTH_PASS: u32 = 2966u64 as u32; #[doc = "The `WebGLRenderingContext.STENCIL_REF` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const STENCIL_REF: u32 = 2967u64 as u32; #[doc = "The `WebGLRenderingContext.STENCIL_VALUE_MASK` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const STENCIL_VALUE_MASK: u32 = 2963u64 as u32; #[doc = "The `WebGLRenderingContext.STENCIL_WRITEMASK` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const STENCIL_WRITEMASK: u32 = 2968u64 as u32; #[doc = "The `WebGLRenderingContext.STENCIL_BACK_FUNC` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const STENCIL_BACK_FUNC: u32 = 34816u64 as u32; #[doc = "The `WebGLRenderingContext.STENCIL_BACK_FAIL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const STENCIL_BACK_FAIL: u32 = 34817u64 as u32; #[doc = "The `WebGLRenderingContext.STENCIL_BACK_PASS_DEPTH_FAIL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const STENCIL_BACK_PASS_DEPTH_FAIL: u32 = 34818u64 as u32; #[doc = "The `WebGLRenderingContext.STENCIL_BACK_PASS_DEPTH_PASS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const STENCIL_BACK_PASS_DEPTH_PASS: u32 = 34819u64 as u32; #[doc = "The `WebGLRenderingContext.STENCIL_BACK_REF` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const STENCIL_BACK_REF: u32 = 36003u64 as u32; #[doc = "The `WebGLRenderingContext.STENCIL_BACK_VALUE_MASK` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const STENCIL_BACK_VALUE_MASK: u32 = 36004u64 as u32; #[doc = "The `WebGLRenderingContext.STENCIL_BACK_WRITEMASK` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const STENCIL_BACK_WRITEMASK: u32 = 36005u64 as u32; #[doc = "The `WebGLRenderingContext.VIEWPORT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const VIEWPORT: u32 = 2978u64 as u32; #[doc = "The `WebGLRenderingContext.SCISSOR_BOX` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const SCISSOR_BOX: u32 = 3088u64 as u32; #[doc = "The `WebGLRenderingContext.COLOR_CLEAR_VALUE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const COLOR_CLEAR_VALUE: u32 = 3106u64 as u32; #[doc = "The `WebGLRenderingContext.COLOR_WRITEMASK` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const COLOR_WRITEMASK: u32 = 3107u64 as u32; #[doc = "The `WebGLRenderingContext.UNPACK_ALIGNMENT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const UNPACK_ALIGNMENT: u32 = 3317u64 as u32; #[doc = "The `WebGLRenderingContext.PACK_ALIGNMENT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const PACK_ALIGNMENT: u32 = 3333u64 as u32; #[doc = "The `WebGLRenderingContext.MAX_TEXTURE_SIZE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const MAX_TEXTURE_SIZE: u32 = 3379u64 as u32; #[doc = "The `WebGLRenderingContext.MAX_VIEWPORT_DIMS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const MAX_VIEWPORT_DIMS: u32 = 3386u64 as u32; #[doc = "The `WebGLRenderingContext.SUBPIXEL_BITS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const SUBPIXEL_BITS: u32 = 3408u64 as u32; #[doc = "The `WebGLRenderingContext.RED_BITS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const RED_BITS: u32 = 3410u64 as u32; #[doc = "The `WebGLRenderingContext.GREEN_BITS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const GREEN_BITS: u32 = 3411u64 as u32; #[doc = "The `WebGLRenderingContext.BLUE_BITS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const BLUE_BITS: u32 = 3412u64 as u32; #[doc = "The `WebGLRenderingContext.ALPHA_BITS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const ALPHA_BITS: u32 = 3413u64 as u32; #[doc = "The `WebGLRenderingContext.DEPTH_BITS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const DEPTH_BITS: u32 = 3414u64 as u32; #[doc = "The `WebGLRenderingContext.STENCIL_BITS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const STENCIL_BITS: u32 = 3415u64 as u32; #[doc = "The `WebGLRenderingContext.POLYGON_OFFSET_UNITS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const POLYGON_OFFSET_UNITS: u32 = 10752u64 as u32; #[doc = "The `WebGLRenderingContext.POLYGON_OFFSET_FACTOR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const POLYGON_OFFSET_FACTOR: u32 = 32824u64 as u32; #[doc = "The `WebGLRenderingContext.TEXTURE_BINDING_2D` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const TEXTURE_BINDING_2D: u32 = 32873u64 as u32; #[doc = "The `WebGLRenderingContext.SAMPLE_BUFFERS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const SAMPLE_BUFFERS: u32 = 32936u64 as u32; #[doc = "The `WebGLRenderingContext.SAMPLES` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const SAMPLES: u32 = 32937u64 as u32; #[doc = "The `WebGLRenderingContext.SAMPLE_COVERAGE_VALUE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const SAMPLE_COVERAGE_VALUE: u32 = 32938u64 as u32; #[doc = "The `WebGLRenderingContext.SAMPLE_COVERAGE_INVERT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const SAMPLE_COVERAGE_INVERT: u32 = 32939u64 as u32; #[doc = "The `WebGLRenderingContext.COMPRESSED_TEXTURE_FORMATS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const COMPRESSED_TEXTURE_FORMATS: u32 = 34467u64 as u32; #[doc = "The `WebGLRenderingContext.DONT_CARE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const DONT_CARE: u32 = 4352u64 as u32; #[doc = "The `WebGLRenderingContext.FASTEST` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const FASTEST: u32 = 4353u64 as u32; #[doc = "The `WebGLRenderingContext.NICEST` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const NICEST: u32 = 4354u64 as u32; #[doc = "The `WebGLRenderingContext.GENERATE_MIPMAP_HINT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const GENERATE_MIPMAP_HINT: u32 = 33170u64 as u32; #[doc = "The `WebGLRenderingContext.BYTE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const BYTE: u32 = 5120u64 as u32; #[doc = "The `WebGLRenderingContext.UNSIGNED_BYTE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const UNSIGNED_BYTE: u32 = 5121u64 as u32; #[doc = "The `WebGLRenderingContext.SHORT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const SHORT: u32 = 5122u64 as u32; #[doc = "The `WebGLRenderingContext.UNSIGNED_SHORT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const UNSIGNED_SHORT: u32 = 5123u64 as u32; #[doc = "The `WebGLRenderingContext.INT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const INT: u32 = 5124u64 as u32; #[doc = "The `WebGLRenderingContext.UNSIGNED_INT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const UNSIGNED_INT: u32 = 5125u64 as u32; #[doc = "The `WebGLRenderingContext.FLOAT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const FLOAT: u32 = 5126u64 as u32; #[doc = "The `WebGLRenderingContext.DEPTH_COMPONENT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const DEPTH_COMPONENT: u32 = 6402u64 as u32; #[doc = "The `WebGLRenderingContext.ALPHA` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const ALPHA: u32 = 6406u64 as u32; #[doc = "The `WebGLRenderingContext.RGB` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const RGB: u32 = 6407u64 as u32; #[doc = "The `WebGLRenderingContext.RGBA` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const RGBA: u32 = 6408u64 as u32; #[doc = "The `WebGLRenderingContext.LUMINANCE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const LUMINANCE: u32 = 6409u64 as u32; #[doc = "The `WebGLRenderingContext.LUMINANCE_ALPHA` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const LUMINANCE_ALPHA: u32 = 6410u64 as u32; #[doc = "The `WebGLRenderingContext.UNSIGNED_SHORT_4_4_4_4` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const UNSIGNED_SHORT_4_4_4_4: u32 = 32819u64 as u32; #[doc = "The `WebGLRenderingContext.UNSIGNED_SHORT_5_5_5_1` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const UNSIGNED_SHORT_5_5_5_1: u32 = 32820u64 as u32; #[doc = "The `WebGLRenderingContext.UNSIGNED_SHORT_5_6_5` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const UNSIGNED_SHORT_5_6_5: u32 = 33635u64 as u32; #[doc = "The `WebGLRenderingContext.FRAGMENT_SHADER` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const FRAGMENT_SHADER: u32 = 35632u64 as u32; #[doc = "The `WebGLRenderingContext.VERTEX_SHADER` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const VERTEX_SHADER: u32 = 35633u64 as u32; #[doc = "The `WebGLRenderingContext.MAX_VERTEX_ATTRIBS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const MAX_VERTEX_ATTRIBS: u32 = 34921u64 as u32; #[doc = "The `WebGLRenderingContext.MAX_VERTEX_UNIFORM_VECTORS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const MAX_VERTEX_UNIFORM_VECTORS: u32 = 36347u64 as u32; #[doc = "The `WebGLRenderingContext.MAX_VARYING_VECTORS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const MAX_VARYING_VECTORS: u32 = 36348u64 as u32; #[doc = "The `WebGLRenderingContext.MAX_COMBINED_TEXTURE_IMAGE_UNITS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const MAX_COMBINED_TEXTURE_IMAGE_UNITS: u32 = 35661u64 as u32; #[doc = "The `WebGLRenderingContext.MAX_VERTEX_TEXTURE_IMAGE_UNITS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const MAX_VERTEX_TEXTURE_IMAGE_UNITS: u32 = 35660u64 as u32; #[doc = "The `WebGLRenderingContext.MAX_TEXTURE_IMAGE_UNITS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const MAX_TEXTURE_IMAGE_UNITS: u32 = 34930u64 as u32; #[doc = "The `WebGLRenderingContext.MAX_FRAGMENT_UNIFORM_VECTORS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const MAX_FRAGMENT_UNIFORM_VECTORS: u32 = 36349u64 as u32; #[doc = "The `WebGLRenderingContext.SHADER_TYPE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const SHADER_TYPE: u32 = 35663u64 as u32; #[doc = "The `WebGLRenderingContext.DELETE_STATUS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const DELETE_STATUS: u32 = 35712u64 as u32; #[doc = "The `WebGLRenderingContext.LINK_STATUS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const LINK_STATUS: u32 = 35714u64 as u32; #[doc = "The `WebGLRenderingContext.VALIDATE_STATUS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const VALIDATE_STATUS: u32 = 35715u64 as u32; #[doc = "The `WebGLRenderingContext.ATTACHED_SHADERS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const ATTACHED_SHADERS: u32 = 35717u64 as u32; #[doc = "The `WebGLRenderingContext.ACTIVE_UNIFORMS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const ACTIVE_UNIFORMS: u32 = 35718u64 as u32; #[doc = "The `WebGLRenderingContext.ACTIVE_ATTRIBUTES` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const ACTIVE_ATTRIBUTES: u32 = 35721u64 as u32; #[doc = "The `WebGLRenderingContext.SHADING_LANGUAGE_VERSION` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const SHADING_LANGUAGE_VERSION: u32 = 35724u64 as u32; #[doc = "The `WebGLRenderingContext.CURRENT_PROGRAM` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const CURRENT_PROGRAM: u32 = 35725u64 as u32; #[doc = "The `WebGLRenderingContext.NEVER` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const NEVER: u32 = 512u64 as u32; #[doc = "The `WebGLRenderingContext.LESS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const LESS: u32 = 513u64 as u32; #[doc = "The `WebGLRenderingContext.EQUAL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const EQUAL: u32 = 514u64 as u32; #[doc = "The `WebGLRenderingContext.LEQUAL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const LEQUAL: u32 = 515u64 as u32; #[doc = "The `WebGLRenderingContext.GREATER` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const GREATER: u32 = 516u64 as u32; #[doc = "The `WebGLRenderingContext.NOTEQUAL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const NOTEQUAL: u32 = 517u64 as u32; #[doc = "The `WebGLRenderingContext.GEQUAL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const GEQUAL: u32 = 518u64 as u32; #[doc = "The `WebGLRenderingContext.ALWAYS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const ALWAYS: u32 = 519u64 as u32; #[doc = "The `WebGLRenderingContext.KEEP` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const KEEP: u32 = 7680u64 as u32; #[doc = "The `WebGLRenderingContext.REPLACE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const REPLACE: u32 = 7681u64 as u32; #[doc = "The `WebGLRenderingContext.INCR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const INCR: u32 = 7682u64 as u32; #[doc = "The `WebGLRenderingContext.DECR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const DECR: u32 = 7683u64 as u32; #[doc = "The `WebGLRenderingContext.INVERT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const INVERT: u32 = 5386u64 as u32; #[doc = "The `WebGLRenderingContext.INCR_WRAP` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const INCR_WRAP: u32 = 34055u64 as u32; #[doc = "The `WebGLRenderingContext.DECR_WRAP` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const DECR_WRAP: u32 = 34056u64 as u32; #[doc = "The `WebGLRenderingContext.VENDOR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const VENDOR: u32 = 7936u64 as u32; #[doc = "The `WebGLRenderingContext.RENDERER` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const RENDERER: u32 = 7937u64 as u32; #[doc = "The `WebGLRenderingContext.VERSION` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const VERSION: u32 = 7938u64 as u32; #[doc = "The `WebGLRenderingContext.NEAREST` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const NEAREST: u32 = 9728u64 as u32; #[doc = "The `WebGLRenderingContext.LINEAR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const LINEAR: u32 = 9729u64 as u32; #[doc = "The `WebGLRenderingContext.NEAREST_MIPMAP_NEAREST` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const NEAREST_MIPMAP_NEAREST: u32 = 9984u64 as u32; #[doc = "The `WebGLRenderingContext.LINEAR_MIPMAP_NEAREST` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const LINEAR_MIPMAP_NEAREST: u32 = 9985u64 as u32; #[doc = "The `WebGLRenderingContext.NEAREST_MIPMAP_LINEAR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const NEAREST_MIPMAP_LINEAR: u32 = 9986u64 as u32; #[doc = "The `WebGLRenderingContext.LINEAR_MIPMAP_LINEAR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const LINEAR_MIPMAP_LINEAR: u32 = 9987u64 as u32; #[doc = "The `WebGLRenderingContext.TEXTURE_MAG_FILTER` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const TEXTURE_MAG_FILTER: u32 = 10240u64 as u32; #[doc = "The `WebGLRenderingContext.TEXTURE_MIN_FILTER` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const TEXTURE_MIN_FILTER: u32 = 10241u64 as u32; #[doc = "The `WebGLRenderingContext.TEXTURE_WRAP_S` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const TEXTURE_WRAP_S: u32 = 10242u64 as u32; #[doc = "The `WebGLRenderingContext.TEXTURE_WRAP_T` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const TEXTURE_WRAP_T: u32 = 10243u64 as u32; #[doc = "The `WebGLRenderingContext.TEXTURE_2D` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const TEXTURE_2D: u32 = 3553u64 as u32; #[doc = "The `WebGLRenderingContext.TEXTURE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const TEXTURE: u32 = 5890u64 as u32; #[doc = "The `WebGLRenderingContext.TEXTURE_CUBE_MAP` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const TEXTURE_CUBE_MAP: u32 = 34067u64 as u32; #[doc = "The `WebGLRenderingContext.TEXTURE_BINDING_CUBE_MAP` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const TEXTURE_BINDING_CUBE_MAP: u32 = 34068u64 as u32; #[doc = "The `WebGLRenderingContext.TEXTURE_CUBE_MAP_POSITIVE_X` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const TEXTURE_CUBE_MAP_POSITIVE_X: u32 = 34069u64 as u32; #[doc = "The `WebGLRenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_X` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const TEXTURE_CUBE_MAP_NEGATIVE_X: u32 = 34070u64 as u32; #[doc = "The `WebGLRenderingContext.TEXTURE_CUBE_MAP_POSITIVE_Y` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const TEXTURE_CUBE_MAP_POSITIVE_Y: u32 = 34071u64 as u32; #[doc = "The `WebGLRenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_Y` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const TEXTURE_CUBE_MAP_NEGATIVE_Y: u32 = 34072u64 as u32; #[doc = "The `WebGLRenderingContext.TEXTURE_CUBE_MAP_POSITIVE_Z` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const TEXTURE_CUBE_MAP_POSITIVE_Z: u32 = 34073u64 as u32; #[doc = "The `WebGLRenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_Z` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const TEXTURE_CUBE_MAP_NEGATIVE_Z: u32 = 34074u64 as u32; #[doc = "The `WebGLRenderingContext.MAX_CUBE_MAP_TEXTURE_SIZE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const MAX_CUBE_MAP_TEXTURE_SIZE: u32 = 34076u64 as u32; #[doc = "The `WebGLRenderingContext.TEXTURE0` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const TEXTURE0: u32 = 33984u64 as u32; #[doc = "The `WebGLRenderingContext.TEXTURE1` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const TEXTURE1: u32 = 33985u64 as u32; #[doc = "The `WebGLRenderingContext.TEXTURE2` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const TEXTURE2: u32 = 33986u64 as u32; #[doc = "The `WebGLRenderingContext.TEXTURE3` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const TEXTURE3: u32 = 33987u64 as u32; #[doc = "The `WebGLRenderingContext.TEXTURE4` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const TEXTURE4: u32 = 33988u64 as u32; #[doc = "The `WebGLRenderingContext.TEXTURE5` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const TEXTURE5: u32 = 33989u64 as u32; #[doc = "The `WebGLRenderingContext.TEXTURE6` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const TEXTURE6: u32 = 33990u64 as u32; #[doc = "The `WebGLRenderingContext.TEXTURE7` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const TEXTURE7: u32 = 33991u64 as u32; #[doc = "The `WebGLRenderingContext.TEXTURE8` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const TEXTURE8: u32 = 33992u64 as u32; #[doc = "The `WebGLRenderingContext.TEXTURE9` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const TEXTURE9: u32 = 33993u64 as u32; #[doc = "The `WebGLRenderingContext.TEXTURE10` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const TEXTURE10: u32 = 33994u64 as u32; #[doc = "The `WebGLRenderingContext.TEXTURE11` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const TEXTURE11: u32 = 33995u64 as u32; #[doc = "The `WebGLRenderingContext.TEXTURE12` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const TEXTURE12: u32 = 33996u64 as u32; #[doc = "The `WebGLRenderingContext.TEXTURE13` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const TEXTURE13: u32 = 33997u64 as u32; #[doc = "The `WebGLRenderingContext.TEXTURE14` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const TEXTURE14: u32 = 33998u64 as u32; #[doc = "The `WebGLRenderingContext.TEXTURE15` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const TEXTURE15: u32 = 33999u64 as u32; #[doc = "The `WebGLRenderingContext.TEXTURE16` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const TEXTURE16: u32 = 34000u64 as u32; #[doc = "The `WebGLRenderingContext.TEXTURE17` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const TEXTURE17: u32 = 34001u64 as u32; #[doc = "The `WebGLRenderingContext.TEXTURE18` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const TEXTURE18: u32 = 34002u64 as u32; #[doc = "The `WebGLRenderingContext.TEXTURE19` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const TEXTURE19: u32 = 34003u64 as u32; #[doc = "The `WebGLRenderingContext.TEXTURE20` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const TEXTURE20: u32 = 34004u64 as u32; #[doc = "The `WebGLRenderingContext.TEXTURE21` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const TEXTURE21: u32 = 34005u64 as u32; #[doc = "The `WebGLRenderingContext.TEXTURE22` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const TEXTURE22: u32 = 34006u64 as u32; #[doc = "The `WebGLRenderingContext.TEXTURE23` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const TEXTURE23: u32 = 34007u64 as u32; #[doc = "The `WebGLRenderingContext.TEXTURE24` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const TEXTURE24: u32 = 34008u64 as u32; #[doc = "The `WebGLRenderingContext.TEXTURE25` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const TEXTURE25: u32 = 34009u64 as u32; #[doc = "The `WebGLRenderingContext.TEXTURE26` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const TEXTURE26: u32 = 34010u64 as u32; #[doc = "The `WebGLRenderingContext.TEXTURE27` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const TEXTURE27: u32 = 34011u64 as u32; #[doc = "The `WebGLRenderingContext.TEXTURE28` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const TEXTURE28: u32 = 34012u64 as u32; #[doc = "The `WebGLRenderingContext.TEXTURE29` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const TEXTURE29: u32 = 34013u64 as u32; #[doc = "The `WebGLRenderingContext.TEXTURE30` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const TEXTURE30: u32 = 34014u64 as u32; #[doc = "The `WebGLRenderingContext.TEXTURE31` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const TEXTURE31: u32 = 34015u64 as u32; #[doc = "The `WebGLRenderingContext.ACTIVE_TEXTURE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const ACTIVE_TEXTURE: u32 = 34016u64 as u32; #[doc = "The `WebGLRenderingContext.REPEAT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const REPEAT: u32 = 10497u64 as u32; #[doc = "The `WebGLRenderingContext.CLAMP_TO_EDGE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const CLAMP_TO_EDGE: u32 = 33071u64 as u32; #[doc = "The `WebGLRenderingContext.MIRRORED_REPEAT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const MIRRORED_REPEAT: u32 = 33648u64 as u32; #[doc = "The `WebGLRenderingContext.FLOAT_VEC2` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const FLOAT_VEC2: u32 = 35664u64 as u32; #[doc = "The `WebGLRenderingContext.FLOAT_VEC3` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const FLOAT_VEC3: u32 = 35665u64 as u32; #[doc = "The `WebGLRenderingContext.FLOAT_VEC4` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const FLOAT_VEC4: u32 = 35666u64 as u32; #[doc = "The `WebGLRenderingContext.INT_VEC2` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const INT_VEC2: u32 = 35667u64 as u32; #[doc = "The `WebGLRenderingContext.INT_VEC3` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const INT_VEC3: u32 = 35668u64 as u32; #[doc = "The `WebGLRenderingContext.INT_VEC4` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const INT_VEC4: u32 = 35669u64 as u32; #[doc = "The `WebGLRenderingContext.BOOL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const BOOL: u32 = 35670u64 as u32; #[doc = "The `WebGLRenderingContext.BOOL_VEC2` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const BOOL_VEC2: u32 = 35671u64 as u32; #[doc = "The `WebGLRenderingContext.BOOL_VEC3` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const BOOL_VEC3: u32 = 35672u64 as u32; #[doc = "The `WebGLRenderingContext.BOOL_VEC4` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const BOOL_VEC4: u32 = 35673u64 as u32; #[doc = "The `WebGLRenderingContext.FLOAT_MAT2` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const FLOAT_MAT2: u32 = 35674u64 as u32; #[doc = "The `WebGLRenderingContext.FLOAT_MAT3` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const FLOAT_MAT3: u32 = 35675u64 as u32; #[doc = "The `WebGLRenderingContext.FLOAT_MAT4` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const FLOAT_MAT4: u32 = 35676u64 as u32; #[doc = "The `WebGLRenderingContext.SAMPLER_2D` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const SAMPLER_2D: u32 = 35678u64 as u32; #[doc = "The `WebGLRenderingContext.SAMPLER_CUBE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const SAMPLER_CUBE: u32 = 35680u64 as u32; #[doc = "The `WebGLRenderingContext.VERTEX_ATTRIB_ARRAY_ENABLED` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const VERTEX_ATTRIB_ARRAY_ENABLED: u32 = 34338u64 as u32; #[doc = "The `WebGLRenderingContext.VERTEX_ATTRIB_ARRAY_SIZE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const VERTEX_ATTRIB_ARRAY_SIZE: u32 = 34339u64 as u32; #[doc = "The `WebGLRenderingContext.VERTEX_ATTRIB_ARRAY_STRIDE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const VERTEX_ATTRIB_ARRAY_STRIDE: u32 = 34340u64 as u32; #[doc = "The `WebGLRenderingContext.VERTEX_ATTRIB_ARRAY_TYPE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const VERTEX_ATTRIB_ARRAY_TYPE: u32 = 34341u64 as u32; #[doc = "The `WebGLRenderingContext.VERTEX_ATTRIB_ARRAY_NORMALIZED` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const VERTEX_ATTRIB_ARRAY_NORMALIZED: u32 = 34922u64 as u32; #[doc = "The `WebGLRenderingContext.VERTEX_ATTRIB_ARRAY_POINTER` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const VERTEX_ATTRIB_ARRAY_POINTER: u32 = 34373u64 as u32; #[doc = "The `WebGLRenderingContext.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: u32 = 34975u64 as u32; #[doc = "The `WebGLRenderingContext.IMPLEMENTATION_COLOR_READ_TYPE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const IMPLEMENTATION_COLOR_READ_TYPE: u32 = 35738u64 as u32; #[doc = "The `WebGLRenderingContext.IMPLEMENTATION_COLOR_READ_FORMAT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const IMPLEMENTATION_COLOR_READ_FORMAT: u32 = 35739u64 as u32; #[doc = "The `WebGLRenderingContext.COMPILE_STATUS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const COMPILE_STATUS: u32 = 35713u64 as u32; #[doc = "The `WebGLRenderingContext.LOW_FLOAT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const LOW_FLOAT: u32 = 36336u64 as u32; #[doc = "The `WebGLRenderingContext.MEDIUM_FLOAT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const MEDIUM_FLOAT: u32 = 36337u64 as u32; #[doc = "The `WebGLRenderingContext.HIGH_FLOAT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const HIGH_FLOAT: u32 = 36338u64 as u32; #[doc = "The `WebGLRenderingContext.LOW_INT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const LOW_INT: u32 = 36339u64 as u32; #[doc = "The `WebGLRenderingContext.MEDIUM_INT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const MEDIUM_INT: u32 = 36340u64 as u32; #[doc = "The `WebGLRenderingContext.HIGH_INT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const HIGH_INT: u32 = 36341u64 as u32; #[doc = "The `WebGLRenderingContext.FRAMEBUFFER` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const FRAMEBUFFER: u32 = 36160u64 as u32; #[doc = "The `WebGLRenderingContext.RENDERBUFFER` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const RENDERBUFFER: u32 = 36161u64 as u32; #[doc = "The `WebGLRenderingContext.RGBA4` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const RGBA4: u32 = 32854u64 as u32; #[doc = "The `WebGLRenderingContext.RGB5_A1` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const RGB5_A1: u32 = 32855u64 as u32; #[doc = "The `WebGLRenderingContext.RGB565` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const RGB565: u32 = 36194u64 as u32; #[doc = "The `WebGLRenderingContext.DEPTH_COMPONENT16` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const DEPTH_COMPONENT16: u32 = 33189u64 as u32; #[doc = "The `WebGLRenderingContext.STENCIL_INDEX8` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const STENCIL_INDEX8: u32 = 36168u64 as u32; #[doc = "The `WebGLRenderingContext.DEPTH_STENCIL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const DEPTH_STENCIL: u32 = 34041u64 as u32; #[doc = "The `WebGLRenderingContext.RENDERBUFFER_WIDTH` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const RENDERBUFFER_WIDTH: u32 = 36162u64 as u32; #[doc = "The `WebGLRenderingContext.RENDERBUFFER_HEIGHT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const RENDERBUFFER_HEIGHT: u32 = 36163u64 as u32; #[doc = "The `WebGLRenderingContext.RENDERBUFFER_INTERNAL_FORMAT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const RENDERBUFFER_INTERNAL_FORMAT: u32 = 36164u64 as u32; #[doc = "The `WebGLRenderingContext.RENDERBUFFER_RED_SIZE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const RENDERBUFFER_RED_SIZE: u32 = 36176u64 as u32; #[doc = "The `WebGLRenderingContext.RENDERBUFFER_GREEN_SIZE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const RENDERBUFFER_GREEN_SIZE: u32 = 36177u64 as u32; #[doc = "The `WebGLRenderingContext.RENDERBUFFER_BLUE_SIZE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const RENDERBUFFER_BLUE_SIZE: u32 = 36178u64 as u32; #[doc = "The `WebGLRenderingContext.RENDERBUFFER_ALPHA_SIZE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const RENDERBUFFER_ALPHA_SIZE: u32 = 36179u64 as u32; #[doc = "The `WebGLRenderingContext.RENDERBUFFER_DEPTH_SIZE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const RENDERBUFFER_DEPTH_SIZE: u32 = 36180u64 as u32; #[doc = "The `WebGLRenderingContext.RENDERBUFFER_STENCIL_SIZE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const RENDERBUFFER_STENCIL_SIZE: u32 = 36181u64 as u32; #[doc = "The `WebGLRenderingContext.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: u32 = 36048u64 as u32; #[doc = "The `WebGLRenderingContext.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: u32 = 36049u64 as u32; #[doc = "The `WebGLRenderingContext.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: u32 = 36050u64 as u32; #[doc = "The `WebGLRenderingContext.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: u32 = 36051u64 as u32; #[doc = "The `WebGLRenderingContext.COLOR_ATTACHMENT0` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const COLOR_ATTACHMENT0: u32 = 36064u64 as u32; #[doc = "The `WebGLRenderingContext.DEPTH_ATTACHMENT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const DEPTH_ATTACHMENT: u32 = 36096u64 as u32; #[doc = "The `WebGLRenderingContext.STENCIL_ATTACHMENT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const STENCIL_ATTACHMENT: u32 = 36128u64 as u32; #[doc = "The `WebGLRenderingContext.DEPTH_STENCIL_ATTACHMENT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const DEPTH_STENCIL_ATTACHMENT: u32 = 33306u64 as u32; #[doc = "The `WebGLRenderingContext.NONE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const NONE: u32 = 0i64 as u32; #[doc = "The `WebGLRenderingContext.FRAMEBUFFER_COMPLETE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const FRAMEBUFFER_COMPLETE: u32 = 36053u64 as u32; #[doc = "The `WebGLRenderingContext.FRAMEBUFFER_INCOMPLETE_ATTACHMENT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const FRAMEBUFFER_INCOMPLETE_ATTACHMENT: u32 = 36054u64 as u32; #[doc = "The `WebGLRenderingContext.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: u32 = 36055u64 as u32; #[doc = "The `WebGLRenderingContext.FRAMEBUFFER_INCOMPLETE_DIMENSIONS` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const FRAMEBUFFER_INCOMPLETE_DIMENSIONS: u32 = 36057u64 as u32; #[doc = "The `WebGLRenderingContext.FRAMEBUFFER_UNSUPPORTED` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const FRAMEBUFFER_UNSUPPORTED: u32 = 36061u64 as u32; #[doc = "The `WebGLRenderingContext.FRAMEBUFFER_BINDING` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const FRAMEBUFFER_BINDING: u32 = 36006u64 as u32; #[doc = "The `WebGLRenderingContext.RENDERBUFFER_BINDING` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const RENDERBUFFER_BINDING: u32 = 36007u64 as u32; #[doc = "The `WebGLRenderingContext.MAX_RENDERBUFFER_SIZE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const MAX_RENDERBUFFER_SIZE: u32 = 34024u64 as u32; #[doc = "The `WebGLRenderingContext.INVALID_FRAMEBUFFER_OPERATION` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const INVALID_FRAMEBUFFER_OPERATION: u32 = 1286u64 as u32; #[doc = "The `WebGLRenderingContext.UNPACK_FLIP_Y_WEBGL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const UNPACK_FLIP_Y_WEBGL: u32 = 37440u64 as u32; #[doc = "The `WebGLRenderingContext.UNPACK_PREMULTIPLY_ALPHA_WEBGL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const UNPACK_PREMULTIPLY_ALPHA_WEBGL: u32 = 37441u64 as u32; #[doc = "The `WebGLRenderingContext.CONTEXT_LOST_WEBGL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const CONTEXT_LOST_WEBGL: u32 = 37442u64 as u32; #[doc = "The `WebGLRenderingContext.UNPACK_COLORSPACE_CONVERSION_WEBGL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const UNPACK_COLORSPACE_CONVERSION_WEBGL: u32 = 37443u64 as u32; #[doc = "The `WebGLRenderingContext.BROWSER_DEFAULT_WEBGL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pub const BROWSER_DEFAULT_WEBGL: u32 = 37444u64 as u32; } web-sys-0.3.55/src/features/gen_WebGlSampler.rs000064400000000000000000000010470072674642500174710ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebGLSampler , typescript_type = "WebGLSampler")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebGlSampler` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLSampler)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlSampler`*"] pub type WebGlSampler; } web-sys-0.3.55/src/features/gen_WebGlShader.rs000064400000000000000000000010410072674642500172660ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebGLShader , typescript_type = "WebGLShader")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebGlShader` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLShader)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlShader`*"] pub type WebGlShader; } web-sys-0.3.55/src/features/gen_WebGlShaderPrecisionFormat.rs000064400000000000000000000041510072674642500223200ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebGLShaderPrecisionFormat , typescript_type = "WebGLShaderPrecisionFormat")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebGlShaderPrecisionFormat` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLShaderPrecisionFormat)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlShaderPrecisionFormat`*"] pub type WebGlShaderPrecisionFormat; # [wasm_bindgen (structural , method , getter , js_class = "WebGLShaderPrecisionFormat" , js_name = rangeMin)] #[doc = "Getter for the `rangeMin` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLShaderPrecisionFormat/rangeMin)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlShaderPrecisionFormat`*"] pub fn range_min(this: &WebGlShaderPrecisionFormat) -> i32; # [wasm_bindgen (structural , method , getter , js_class = "WebGLShaderPrecisionFormat" , js_name = rangeMax)] #[doc = "Getter for the `rangeMax` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLShaderPrecisionFormat/rangeMax)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlShaderPrecisionFormat`*"] pub fn range_max(this: &WebGlShaderPrecisionFormat) -> i32; # [wasm_bindgen (structural , method , getter , js_class = "WebGLShaderPrecisionFormat" , js_name = precision)] #[doc = "Getter for the `precision` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLShaderPrecisionFormat/precision)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlShaderPrecisionFormat`*"] pub fn precision(this: &WebGlShaderPrecisionFormat) -> i32; } web-sys-0.3.55/src/features/gen_WebGlSync.rs000064400000000000000000000010250072674642500167760ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebGLSync , typescript_type = "WebGLSync")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebGlSync` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLSync)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlSync`*"] pub type WebGlSync; } web-sys-0.3.55/src/features/gen_WebGlTexture.rs000064400000000000000000000010470072674642500175260ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebGLTexture , typescript_type = "WebGLTexture")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebGlTexture` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLTexture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlTexture`*"] pub type WebGlTexture; } web-sys-0.3.55/src/features/gen_WebGlTransformFeedback.rs000064400000000000000000000011430072674642500214430ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebGLTransformFeedback , typescript_type = "WebGLTransformFeedback")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebGlTransformFeedback` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLTransformFeedback)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlTransformFeedback`*"] pub type WebGlTransformFeedback; } web-sys-0.3.55/src/features/gen_WebGlUniformLocation.rs000064400000000000000000000011270072674642500211750ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebGLUniformLocation , typescript_type = "WebGLUniformLocation")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebGlUniformLocation` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLUniformLocation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlUniformLocation`*"] pub type WebGlUniformLocation; } web-sys-0.3.55/src/features/gen_WebGlVertexArrayObject.rs000064400000000000000000000011430072674642500214660ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebGLVertexArrayObject , typescript_type = "WebGLVertexArrayObject")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebGlVertexArrayObject` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLVertexArrayObject)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlVertexArrayObject`*"] pub type WebGlVertexArrayObject; } web-sys-0.3.55/src/features/gen_WebKitCssMatrix.rs000064400000000000000000000326560072674642500202020ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = DomMatrix , extends = DomMatrixReadOnly , extends = :: js_sys :: Object , js_name = WebKitCSSMatrix , typescript_type = "WebKitCSSMatrix")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebKitCssMatrix` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] pub type WebKitCssMatrix; #[wasm_bindgen(catch, constructor, js_class = "WebKitCSSMatrix")] #[doc = "The `new WebKitCssMatrix(..)` constructor, creating a new instance of `WebKitCssMatrix`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/WebKitCSSMatrix)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] pub fn new() -> Result; #[wasm_bindgen(catch, constructor, js_class = "WebKitCSSMatrix")] #[doc = "The `new WebKitCssMatrix(..)` constructor, creating a new instance of `WebKitCssMatrix`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/WebKitCSSMatrix)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] pub fn new_with_transform_list(transform_list: &str) -> Result; #[wasm_bindgen(catch, constructor, js_class = "WebKitCSSMatrix")] #[doc = "The `new WebKitCssMatrix(..)` constructor, creating a new instance of `WebKitCssMatrix`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/WebKitCSSMatrix)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] pub fn new_with_other(other: &WebKitCssMatrix) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "WebKitCSSMatrix" , js_name = inverse)] #[doc = "The `inverse()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/inverse)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] pub fn inverse(this: &WebKitCssMatrix) -> Result; # [wasm_bindgen (method , structural , js_class = "WebKitCSSMatrix" , js_name = multiply)] #[doc = "The `multiply()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/multiply)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] pub fn multiply(this: &WebKitCssMatrix, other: &WebKitCssMatrix) -> WebKitCssMatrix; # [wasm_bindgen (method , structural , js_class = "WebKitCSSMatrix" , js_name = rotate)] #[doc = "The `rotate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/rotate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] pub fn rotate(this: &WebKitCssMatrix) -> WebKitCssMatrix; # [wasm_bindgen (method , structural , js_class = "WebKitCSSMatrix" , js_name = rotate)] #[doc = "The `rotate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/rotate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] pub fn rotate_with_rot_x(this: &WebKitCssMatrix, rot_x: f64) -> WebKitCssMatrix; # [wasm_bindgen (method , structural , js_class = "WebKitCSSMatrix" , js_name = rotate)] #[doc = "The `rotate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/rotate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] pub fn rotate_with_rot_x_and_rot_y( this: &WebKitCssMatrix, rot_x: f64, rot_y: f64, ) -> WebKitCssMatrix; # [wasm_bindgen (method , structural , js_class = "WebKitCSSMatrix" , js_name = rotate)] #[doc = "The `rotate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/rotate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] pub fn rotate_with_rot_x_and_rot_y_and_rot_z( this: &WebKitCssMatrix, rot_x: f64, rot_y: f64, rot_z: f64, ) -> WebKitCssMatrix; # [wasm_bindgen (method , structural , js_class = "WebKitCSSMatrix" , js_name = rotateAxisAngle)] #[doc = "The `rotateAxisAngle()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/rotateAxisAngle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] pub fn rotate_axis_angle(this: &WebKitCssMatrix) -> WebKitCssMatrix; # [wasm_bindgen (method , structural , js_class = "WebKitCSSMatrix" , js_name = rotateAxisAngle)] #[doc = "The `rotateAxisAngle()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/rotateAxisAngle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] pub fn rotate_axis_angle_with_x(this: &WebKitCssMatrix, x: f64) -> WebKitCssMatrix; # [wasm_bindgen (method , structural , js_class = "WebKitCSSMatrix" , js_name = rotateAxisAngle)] #[doc = "The `rotateAxisAngle()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/rotateAxisAngle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] pub fn rotate_axis_angle_with_x_and_y( this: &WebKitCssMatrix, x: f64, y: f64, ) -> WebKitCssMatrix; # [wasm_bindgen (method , structural , js_class = "WebKitCSSMatrix" , js_name = rotateAxisAngle)] #[doc = "The `rotateAxisAngle()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/rotateAxisAngle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] pub fn rotate_axis_angle_with_x_and_y_and_z( this: &WebKitCssMatrix, x: f64, y: f64, z: f64, ) -> WebKitCssMatrix; # [wasm_bindgen (method , structural , js_class = "WebKitCSSMatrix" , js_name = rotateAxisAngle)] #[doc = "The `rotateAxisAngle()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/rotateAxisAngle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] pub fn rotate_axis_angle_with_x_and_y_and_z_and_angle( this: &WebKitCssMatrix, x: f64, y: f64, z: f64, angle: f64, ) -> WebKitCssMatrix; # [wasm_bindgen (method , structural , js_class = "WebKitCSSMatrix" , js_name = scale)] #[doc = "The `scale()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/scale)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] pub fn scale(this: &WebKitCssMatrix) -> WebKitCssMatrix; # [wasm_bindgen (method , structural , js_class = "WebKitCSSMatrix" , js_name = scale)] #[doc = "The `scale()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/scale)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] pub fn scale_with_scale_x(this: &WebKitCssMatrix, scale_x: f64) -> WebKitCssMatrix; # [wasm_bindgen (method , structural , js_class = "WebKitCSSMatrix" , js_name = scale)] #[doc = "The `scale()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/scale)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] pub fn scale_with_scale_x_and_scale_y( this: &WebKitCssMatrix, scale_x: f64, scale_y: f64, ) -> WebKitCssMatrix; # [wasm_bindgen (method , structural , js_class = "WebKitCSSMatrix" , js_name = scale)] #[doc = "The `scale()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/scale)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] pub fn scale_with_scale_x_and_scale_y_and_scale_z( this: &WebKitCssMatrix, scale_x: f64, scale_y: f64, scale_z: f64, ) -> WebKitCssMatrix; # [wasm_bindgen (catch , method , structural , js_class = "WebKitCSSMatrix" , js_name = setMatrixValue)] #[doc = "The `setMatrixValue()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/setMatrixValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] pub fn set_matrix_value( this: &WebKitCssMatrix, transform_list: &str, ) -> Result; # [wasm_bindgen (method , structural , js_class = "WebKitCSSMatrix" , js_name = skewX)] #[doc = "The `skewX()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/skewX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] pub fn skew_x(this: &WebKitCssMatrix) -> WebKitCssMatrix; # [wasm_bindgen (method , structural , js_class = "WebKitCSSMatrix" , js_name = skewX)] #[doc = "The `skewX()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/skewX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] pub fn skew_x_with_sx(this: &WebKitCssMatrix, sx: f64) -> WebKitCssMatrix; # [wasm_bindgen (method , structural , js_class = "WebKitCSSMatrix" , js_name = skewY)] #[doc = "The `skewY()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/skewY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] pub fn skew_y(this: &WebKitCssMatrix) -> WebKitCssMatrix; # [wasm_bindgen (method , structural , js_class = "WebKitCSSMatrix" , js_name = skewY)] #[doc = "The `skewY()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/skewY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] pub fn skew_y_with_sy(this: &WebKitCssMatrix, sy: f64) -> WebKitCssMatrix; # [wasm_bindgen (method , structural , js_class = "WebKitCSSMatrix" , js_name = translate)] #[doc = "The `translate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/translate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] pub fn translate(this: &WebKitCssMatrix) -> WebKitCssMatrix; # [wasm_bindgen (method , structural , js_class = "WebKitCSSMatrix" , js_name = translate)] #[doc = "The `translate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/translate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] pub fn translate_with_tx(this: &WebKitCssMatrix, tx: f64) -> WebKitCssMatrix; # [wasm_bindgen (method , structural , js_class = "WebKitCSSMatrix" , js_name = translate)] #[doc = "The `translate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/translate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] pub fn translate_with_tx_and_ty(this: &WebKitCssMatrix, tx: f64, ty: f64) -> WebKitCssMatrix; # [wasm_bindgen (method , structural , js_class = "WebKitCSSMatrix" , js_name = translate)] #[doc = "The `translate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/translate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] pub fn translate_with_tx_and_ty_and_tz( this: &WebKitCssMatrix, tx: f64, ty: f64, tz: f64, ) -> WebKitCssMatrix; } web-sys-0.3.55/src/features/gen_WebSocket.rs000064400000000000000000000320610072674642500170330ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = WebSocket , typescript_type = "WebSocket")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebSocket` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] pub type WebSocket; # [wasm_bindgen (structural , method , getter , js_class = "WebSocket" , js_name = url)] #[doc = "Getter for the `url` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/url)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] pub fn url(this: &WebSocket) -> String; # [wasm_bindgen (structural , method , getter , js_class = "WebSocket" , js_name = readyState)] #[doc = "Getter for the `readyState` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/readyState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] pub fn ready_state(this: &WebSocket) -> u16; # [wasm_bindgen (structural , method , getter , js_class = "WebSocket" , js_name = bufferedAmount)] #[doc = "Getter for the `bufferedAmount` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/bufferedAmount)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] pub fn buffered_amount(this: &WebSocket) -> u32; # [wasm_bindgen (structural , method , getter , js_class = "WebSocket" , js_name = onopen)] #[doc = "Getter for the `onopen` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/onopen)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] pub fn onopen(this: &WebSocket) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "WebSocket" , js_name = onopen)] #[doc = "Setter for the `onopen` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/onopen)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] pub fn set_onopen(this: &WebSocket, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "WebSocket" , js_name = onerror)] #[doc = "Getter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] pub fn onerror(this: &WebSocket) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "WebSocket" , js_name = onerror)] #[doc = "Setter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] pub fn set_onerror(this: &WebSocket, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "WebSocket" , js_name = onclose)] #[doc = "Getter for the `onclose` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/onclose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] pub fn onclose(this: &WebSocket) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "WebSocket" , js_name = onclose)] #[doc = "Setter for the `onclose` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/onclose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] pub fn set_onclose(this: &WebSocket, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "WebSocket" , js_name = extensions)] #[doc = "Getter for the `extensions` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/extensions)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] pub fn extensions(this: &WebSocket) -> String; # [wasm_bindgen (structural , method , getter , js_class = "WebSocket" , js_name = protocol)] #[doc = "Getter for the `protocol` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/protocol)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] pub fn protocol(this: &WebSocket) -> String; # [wasm_bindgen (structural , method , getter , js_class = "WebSocket" , js_name = onmessage)] #[doc = "Getter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] pub fn onmessage(this: &WebSocket) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "WebSocket" , js_name = onmessage)] #[doc = "Setter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] pub fn set_onmessage(this: &WebSocket, value: Option<&::js_sys::Function>); #[cfg(feature = "BinaryType")] # [wasm_bindgen (structural , method , getter , js_class = "WebSocket" , js_name = binaryType)] #[doc = "Getter for the `binaryType` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/binaryType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BinaryType`, `WebSocket`*"] pub fn binary_type(this: &WebSocket) -> BinaryType; #[cfg(feature = "BinaryType")] # [wasm_bindgen (structural , method , setter , js_class = "WebSocket" , js_name = binaryType)] #[doc = "Setter for the `binaryType` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/binaryType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BinaryType`, `WebSocket`*"] pub fn set_binary_type(this: &WebSocket, value: BinaryType); #[wasm_bindgen(catch, constructor, js_class = "WebSocket")] #[doc = "The `new WebSocket(..)` constructor, creating a new instance of `WebSocket`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/WebSocket)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] pub fn new(url: &str) -> Result; #[wasm_bindgen(catch, constructor, js_class = "WebSocket")] #[doc = "The `new WebSocket(..)` constructor, creating a new instance of `WebSocket`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/WebSocket)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] pub fn new_with_str(url: &str, protocols: &str) -> Result; #[wasm_bindgen(catch, constructor, js_class = "WebSocket")] #[doc = "The `new WebSocket(..)` constructor, creating a new instance of `WebSocket`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/WebSocket)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] pub fn new_with_str_sequence( url: &str, protocols: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "WebSocket" , js_name = close)] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] pub fn close(this: &WebSocket) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WebSocket" , js_name = close)] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] pub fn close_with_code(this: &WebSocket, code: u16) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WebSocket" , js_name = close)] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] pub fn close_with_code_and_reason( this: &WebSocket, code: u16, reason: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WebSocket" , js_name = send)] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/send)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] pub fn send_with_str(this: &WebSocket, data: &str) -> Result<(), JsValue>; #[cfg(feature = "Blob")] # [wasm_bindgen (catch , method , structural , js_class = "WebSocket" , js_name = send)] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/send)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`, `WebSocket`*"] pub fn send_with_blob(this: &WebSocket, data: &Blob) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WebSocket" , js_name = send)] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/send)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] pub fn send_with_array_buffer( this: &WebSocket, data: &::js_sys::ArrayBuffer, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WebSocket" , js_name = send)] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/send)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] pub fn send_with_array_buffer_view( this: &WebSocket, data: &::js_sys::Object, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WebSocket" , js_name = send)] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/send)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] pub fn send_with_u8_array(this: &WebSocket, data: &[u8]) -> Result<(), JsValue>; } impl WebSocket { #[doc = "The `WebSocket.CONNECTING` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] pub const CONNECTING: u16 = 0i64 as u16; #[doc = "The `WebSocket.OPEN` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] pub const OPEN: u16 = 1u64 as u16; #[doc = "The `WebSocket.CLOSING` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] pub const CLOSING: u16 = 2u64 as u16; #[doc = "The `WebSocket.CLOSED` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] pub const CLOSED: u16 = 3u64 as u16; } web-sys-0.3.55/src/features/gen_WebSocketDict.rs000064400000000000000000000026670072674642500176500ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebSocketDict)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebSocketDict` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocketDict`*"] pub type WebSocketDict; } impl WebSocketDict { #[doc = "Construct a new `WebSocketDict`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocketDict`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `websockets` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocketDict`*"] pub fn websockets(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("websockets"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for WebSocketDict { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_WebSocketElement.rs000064400000000000000000000105170072674642500203470ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebSocketElement)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebSocketElement` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocketElement`*"] pub type WebSocketElement; } impl WebSocketElement { #[doc = "Construct a new `WebSocketElement`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocketElement`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `encrypted` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocketElement`*"] pub fn encrypted(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("encrypted"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `hostport` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocketElement`*"] pub fn hostport(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("hostport"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `msgreceived` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocketElement`*"] pub fn msgreceived(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("msgreceived"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `msgsent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocketElement`*"] pub fn msgsent(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("msgsent"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `receivedsize` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocketElement`*"] pub fn receivedsize(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("receivedsize"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `sentsize` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocketElement`*"] pub fn sentsize(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("sentsize"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for WebSocketElement { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_WebglColorBufferFloat.rs000064400000000000000000000032420072674642500213230ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = WEBGL_color_buffer_float , typescript_type = "WEBGL_color_buffer_float")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebglColorBufferFloat` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_color_buffer_float)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglColorBufferFloat`*"] pub type WebglColorBufferFloat; } impl WebglColorBufferFloat { #[doc = "The `WEBGL_color_buffer_float.RGBA32F_EXT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglColorBufferFloat`*"] pub const RGBA32F_EXT: u32 = 34836u64 as u32; #[doc = "The `WEBGL_color_buffer_float.RGB32F_EXT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglColorBufferFloat`*"] pub const RGB32F_EXT: u32 = 34837u64 as u32; #[doc = "The `WEBGL_color_buffer_float.FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglColorBufferFloat`*"] pub const FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: u32 = 33297u64 as u32; #[doc = "The `WEBGL_color_buffer_float.UNSIGNED_NORMALIZED_EXT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglColorBufferFloat`*"] pub const UNSIGNED_NORMALIZED_EXT: u32 = 35863u64 as u32; } web-sys-0.3.55/src/features/gen_WebglCompressedTextureAstc.rs000064400000000000000000000222130072674642500224240ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = WEBGL_compressed_texture_astc , typescript_type = "WEBGL_compressed_texture_astc")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebglCompressedTextureAstc` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_compressed_texture_astc)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] pub type WebglCompressedTextureAstc; # [wasm_bindgen (method , structural , js_class = "WEBGL_compressed_texture_astc" , js_name = getSupportedProfiles)] #[doc = "The `getSupportedProfiles()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_compressed_texture_astc/getSupportedProfiles)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] pub fn get_supported_profiles(this: &WebglCompressedTextureAstc) -> Option<::js_sys::Array>; } impl WebglCompressedTextureAstc { #[doc = "The `WEBGL_compressed_texture_astc.COMPRESSED_RGBA_ASTC_4x4_KHR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] pub const COMPRESSED_RGBA_ASTC_4X4_KHR: u32 = 37808u64 as u32; #[doc = "The `WEBGL_compressed_texture_astc.COMPRESSED_RGBA_ASTC_5x4_KHR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] pub const COMPRESSED_RGBA_ASTC_5X4_KHR: u32 = 37809u64 as u32; #[doc = "The `WEBGL_compressed_texture_astc.COMPRESSED_RGBA_ASTC_5x5_KHR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] pub const COMPRESSED_RGBA_ASTC_5X5_KHR: u32 = 37810u64 as u32; #[doc = "The `WEBGL_compressed_texture_astc.COMPRESSED_RGBA_ASTC_6x5_KHR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] pub const COMPRESSED_RGBA_ASTC_6X5_KHR: u32 = 37811u64 as u32; #[doc = "The `WEBGL_compressed_texture_astc.COMPRESSED_RGBA_ASTC_6x6_KHR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] pub const COMPRESSED_RGBA_ASTC_6X6_KHR: u32 = 37812u64 as u32; #[doc = "The `WEBGL_compressed_texture_astc.COMPRESSED_RGBA_ASTC_8x5_KHR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] pub const COMPRESSED_RGBA_ASTC_8X5_KHR: u32 = 37813u64 as u32; #[doc = "The `WEBGL_compressed_texture_astc.COMPRESSED_RGBA_ASTC_8x6_KHR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] pub const COMPRESSED_RGBA_ASTC_8X6_KHR: u32 = 37814u64 as u32; #[doc = "The `WEBGL_compressed_texture_astc.COMPRESSED_RGBA_ASTC_8x8_KHR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] pub const COMPRESSED_RGBA_ASTC_8X8_KHR: u32 = 37815u64 as u32; #[doc = "The `WEBGL_compressed_texture_astc.COMPRESSED_RGBA_ASTC_10x5_KHR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] pub const COMPRESSED_RGBA_ASTC_10X5_KHR: u32 = 37816u64 as u32; #[doc = "The `WEBGL_compressed_texture_astc.COMPRESSED_RGBA_ASTC_10x6_KHR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] pub const COMPRESSED_RGBA_ASTC_10X6_KHR: u32 = 37817u64 as u32; #[doc = "The `WEBGL_compressed_texture_astc.COMPRESSED_RGBA_ASTC_10x8_KHR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] pub const COMPRESSED_RGBA_ASTC_10X8_KHR: u32 = 37818u64 as u32; #[doc = "The `WEBGL_compressed_texture_astc.COMPRESSED_RGBA_ASTC_10x10_KHR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] pub const COMPRESSED_RGBA_ASTC_10X10_KHR: u32 = 37819u64 as u32; #[doc = "The `WEBGL_compressed_texture_astc.COMPRESSED_RGBA_ASTC_12x10_KHR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] pub const COMPRESSED_RGBA_ASTC_12X10_KHR: u32 = 37820u64 as u32; #[doc = "The `WEBGL_compressed_texture_astc.COMPRESSED_RGBA_ASTC_12x12_KHR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] pub const COMPRESSED_RGBA_ASTC_12X12_KHR: u32 = 37821u64 as u32; #[doc = "The `WEBGL_compressed_texture_astc.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] pub const COMPRESSED_SRGB8_ALPHA8_ASTC_4X4_KHR: u32 = 37840u64 as u32; #[doc = "The `WEBGL_compressed_texture_astc.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] pub const COMPRESSED_SRGB8_ALPHA8_ASTC_5X4_KHR: u32 = 37841u64 as u32; #[doc = "The `WEBGL_compressed_texture_astc.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] pub const COMPRESSED_SRGB8_ALPHA8_ASTC_5X5_KHR: u32 = 37842u64 as u32; #[doc = "The `WEBGL_compressed_texture_astc.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] pub const COMPRESSED_SRGB8_ALPHA8_ASTC_6X5_KHR: u32 = 37843u64 as u32; #[doc = "The `WEBGL_compressed_texture_astc.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] pub const COMPRESSED_SRGB8_ALPHA8_ASTC_6X6_KHR: u32 = 37844u64 as u32; #[doc = "The `WEBGL_compressed_texture_astc.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] pub const COMPRESSED_SRGB8_ALPHA8_ASTC_8X5_KHR: u32 = 37845u64 as u32; #[doc = "The `WEBGL_compressed_texture_astc.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] pub const COMPRESSED_SRGB8_ALPHA8_ASTC_8X6_KHR: u32 = 37846u64 as u32; #[doc = "The `WEBGL_compressed_texture_astc.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] pub const COMPRESSED_SRGB8_ALPHA8_ASTC_8X8_KHR: u32 = 37847u64 as u32; #[doc = "The `WEBGL_compressed_texture_astc.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] pub const COMPRESSED_SRGB8_ALPHA8_ASTC_10X5_KHR: u32 = 37848u64 as u32; #[doc = "The `WEBGL_compressed_texture_astc.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] pub const COMPRESSED_SRGB8_ALPHA8_ASTC_10X6_KHR: u32 = 37849u64 as u32; #[doc = "The `WEBGL_compressed_texture_astc.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] pub const COMPRESSED_SRGB8_ALPHA8_ASTC_10X8_KHR: u32 = 37850u64 as u32; #[doc = "The `WEBGL_compressed_texture_astc.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] pub const COMPRESSED_SRGB8_ALPHA8_ASTC_10X10_KHR: u32 = 37851u64 as u32; #[doc = "The `WEBGL_compressed_texture_astc.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] pub const COMPRESSED_SRGB8_ALPHA8_ASTC_12X10_KHR: u32 = 37852u64 as u32; #[doc = "The `WEBGL_compressed_texture_astc.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] pub const COMPRESSED_SRGB8_ALPHA8_ASTC_12X12_KHR: u32 = 37853u64 as u32; } web-sys-0.3.55/src/features/gen_WebglCompressedTextureAtc.rs000064400000000000000000000030560072674642500222450ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = WEBGL_compressed_texture_atc , typescript_type = "WEBGL_compressed_texture_atc")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebglCompressedTextureAtc` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_compressed_texture_atc)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAtc`*"] pub type WebglCompressedTextureAtc; } impl WebglCompressedTextureAtc { #[doc = "The `WEBGL_compressed_texture_atc.COMPRESSED_RGB_ATC_WEBGL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAtc`*"] pub const COMPRESSED_RGB_ATC_WEBGL: u32 = 35986u64 as u32; #[doc = "The `WEBGL_compressed_texture_atc.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAtc`*"] pub const COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL: u32 = 35987u64 as u32; #[doc = "The `WEBGL_compressed_texture_atc.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAtc`*"] pub const COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL: u32 = 34798u64 as u32; } web-sys-0.3.55/src/features/gen_WebglCompressedTextureEtc.rs000064400000000000000000000065760072674642500222630ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = WEBGL_compressed_texture_etc , typescript_type = "WEBGL_compressed_texture_etc")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebglCompressedTextureEtc` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_compressed_texture_etc)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureEtc`*"] pub type WebglCompressedTextureEtc; } impl WebglCompressedTextureEtc { #[doc = "The `WEBGL_compressed_texture_etc.COMPRESSED_R11_EAC` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureEtc`*"] pub const COMPRESSED_R11_EAC: u32 = 37488u64 as u32; #[doc = "The `WEBGL_compressed_texture_etc.COMPRESSED_SIGNED_R11_EAC` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureEtc`*"] pub const COMPRESSED_SIGNED_R11_EAC: u32 = 37489u64 as u32; #[doc = "The `WEBGL_compressed_texture_etc.COMPRESSED_RG11_EAC` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureEtc`*"] pub const COMPRESSED_RG11_EAC: u32 = 37490u64 as u32; #[doc = "The `WEBGL_compressed_texture_etc.COMPRESSED_SIGNED_RG11_EAC` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureEtc`*"] pub const COMPRESSED_SIGNED_RG11_EAC: u32 = 37491u64 as u32; #[doc = "The `WEBGL_compressed_texture_etc.COMPRESSED_RGB8_ETC2` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureEtc`*"] pub const COMPRESSED_RGB8_ETC2: u32 = 37492u64 as u32; #[doc = "The `WEBGL_compressed_texture_etc.COMPRESSED_SRGB8_ETC2` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureEtc`*"] pub const COMPRESSED_SRGB8_ETC2: u32 = 37493u64 as u32; #[doc = "The `WEBGL_compressed_texture_etc.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureEtc`*"] pub const COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: u32 = 37494u64 as u32; #[doc = "The `WEBGL_compressed_texture_etc.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureEtc`*"] pub const COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: u32 = 37495u64 as u32; #[doc = "The `WEBGL_compressed_texture_etc.COMPRESSED_RGBA8_ETC2_EAC` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureEtc`*"] pub const COMPRESSED_RGBA8_ETC2_EAC: u32 = 37496u64 as u32; #[doc = "The `WEBGL_compressed_texture_etc.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureEtc`*"] pub const COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: u32 = 37497u64 as u32; } web-sys-0.3.55/src/features/gen_WebglCompressedTextureEtc1.rs000064400000000000000000000017250072674642500223330ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = WEBGL_compressed_texture_etc1 , typescript_type = "WEBGL_compressed_texture_etc1")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebglCompressedTextureEtc1` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_compressed_texture_etc1)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureEtc1`*"] pub type WebglCompressedTextureEtc1; } impl WebglCompressedTextureEtc1 { #[doc = "The `WEBGL_compressed_texture_etc1.COMPRESSED_RGB_ETC1_WEBGL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureEtc1`*"] pub const COMPRESSED_RGB_ETC1_WEBGL: u32 = 36196u64 as u32; } web-sys-0.3.55/src/features/gen_WebglCompressedTexturePvrtc.rs000064400000000000000000000035160072674642500226350ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = WEBGL_compressed_texture_pvrtc , typescript_type = "WEBGL_compressed_texture_pvrtc")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebglCompressedTexturePvrtc` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_compressed_texture_pvrtc)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTexturePvrtc`*"] pub type WebglCompressedTexturePvrtc; } impl WebglCompressedTexturePvrtc { #[doc = "The `WEBGL_compressed_texture_pvrtc.COMPRESSED_RGB_PVRTC_4BPPV1_IMG` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTexturePvrtc`*"] pub const COMPRESSED_RGB_PVRTC_4BPPV1_IMG: u32 = 35840u64 as u32; #[doc = "The `WEBGL_compressed_texture_pvrtc.COMPRESSED_RGB_PVRTC_2BPPV1_IMG` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTexturePvrtc`*"] pub const COMPRESSED_RGB_PVRTC_2BPPV1_IMG: u32 = 35841u64 as u32; #[doc = "The `WEBGL_compressed_texture_pvrtc.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTexturePvrtc`*"] pub const COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: u32 = 35842u64 as u32; #[doc = "The `WEBGL_compressed_texture_pvrtc.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTexturePvrtc`*"] pub const COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: u32 = 35843u64 as u32; } web-sys-0.3.55/src/features/gen_WebglCompressedTextureS3tc.rs000064400000000000000000000034510072674642500223510ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = WEBGL_compressed_texture_s3tc , typescript_type = "WEBGL_compressed_texture_s3tc")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebglCompressedTextureS3tc` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_compressed_texture_s3tc)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureS3tc`*"] pub type WebglCompressedTextureS3tc; } impl WebglCompressedTextureS3tc { #[doc = "The `WEBGL_compressed_texture_s3tc.COMPRESSED_RGB_S3TC_DXT1_EXT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureS3tc`*"] pub const COMPRESSED_RGB_S3TC_DXT1_EXT: u32 = 33776u64 as u32; #[doc = "The `WEBGL_compressed_texture_s3tc.COMPRESSED_RGBA_S3TC_DXT1_EXT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureS3tc`*"] pub const COMPRESSED_RGBA_S3TC_DXT1_EXT: u32 = 33777u64 as u32; #[doc = "The `WEBGL_compressed_texture_s3tc.COMPRESSED_RGBA_S3TC_DXT3_EXT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureS3tc`*"] pub const COMPRESSED_RGBA_S3TC_DXT3_EXT: u32 = 33778u64 as u32; #[doc = "The `WEBGL_compressed_texture_s3tc.COMPRESSED_RGBA_S3TC_DXT5_EXT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureS3tc`*"] pub const COMPRESSED_RGBA_S3TC_DXT5_EXT: u32 = 33779u64 as u32; } web-sys-0.3.55/src/features/gen_WebglCompressedTextureS3tcSrgb.rs000064400000000000000000000036220072674642500231670ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = WEBGL_compressed_texture_s3tc_srgb , typescript_type = "WEBGL_compressed_texture_s3tc_srgb")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebglCompressedTextureS3tcSrgb` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_compressed_texture_s3tc_srgb)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureS3tcSrgb`*"] pub type WebglCompressedTextureS3tcSrgb; } impl WebglCompressedTextureS3tcSrgb { #[doc = "The `WEBGL_compressed_texture_s3tc_srgb.COMPRESSED_SRGB_S3TC_DXT1_EXT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureS3tcSrgb`*"] pub const COMPRESSED_SRGB_S3TC_DXT1_EXT: u32 = 35916u64 as u32; #[doc = "The `WEBGL_compressed_texture_s3tc_srgb.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureS3tcSrgb`*"] pub const COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: u32 = 35917u64 as u32; #[doc = "The `WEBGL_compressed_texture_s3tc_srgb.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureS3tcSrgb`*"] pub const COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: u32 = 35918u64 as u32; #[doc = "The `WEBGL_compressed_texture_s3tc_srgb.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureS3tcSrgb`*"] pub const COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: u32 = 35919u64 as u32; } web-sys-0.3.55/src/features/gen_WebglDebugRendererInfo.rs000064400000000000000000000022570072674642500214630ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = WEBGL_debug_renderer_info , typescript_type = "WEBGL_debug_renderer_info")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebglDebugRendererInfo` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_debug_renderer_info)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglDebugRendererInfo`*"] pub type WebglDebugRendererInfo; } impl WebglDebugRendererInfo { #[doc = "The `WEBGL_debug_renderer_info.UNMASKED_VENDOR_WEBGL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglDebugRendererInfo`*"] pub const UNMASKED_VENDOR_WEBGL: u32 = 37445u64 as u32; #[doc = "The `WEBGL_debug_renderer_info.UNMASKED_RENDERER_WEBGL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglDebugRendererInfo`*"] pub const UNMASKED_RENDERER_WEBGL: u32 = 37446u64 as u32; } web-sys-0.3.55/src/features/gen_WebglDebugShaders.rs000064400000000000000000000022610072674642500204650ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = WEBGL_debug_shaders , typescript_type = "WEBGL_debug_shaders")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebglDebugShaders` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_debug_shaders)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglDebugShaders`*"] pub type WebglDebugShaders; #[cfg(feature = "WebGlShader")] # [wasm_bindgen (method , structural , js_class = "WEBGL_debug_shaders" , js_name = getTranslatedShaderSource)] #[doc = "The `getTranslatedShaderSource()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_debug_shaders/getTranslatedShaderSource)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlShader`, `WebglDebugShaders`*"] pub fn get_translated_shader_source(this: &WebglDebugShaders, shader: &WebGlShader) -> String; } web-sys-0.3.55/src/features/gen_WebglDepthTexture.rs000064400000000000000000000015740072674642500205600ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = WEBGL_depth_texture , typescript_type = "WEBGL_depth_texture")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebglDepthTexture` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_depth_texture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglDepthTexture`*"] pub type WebglDepthTexture; } impl WebglDepthTexture { #[doc = "The `WEBGL_depth_texture.UNSIGNED_INT_24_8_WEBGL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglDepthTexture`*"] pub const UNSIGNED_INT_24_8_WEBGL: u32 = 34042u64 as u32; } web-sys-0.3.55/src/features/gen_WebglDrawBuffers.rs000064400000000000000000000223740072674642500203460ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = WEBGL_draw_buffers , typescript_type = "WEBGL_draw_buffers")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebglDrawBuffers` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_draw_buffers)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] pub type WebglDrawBuffers; # [wasm_bindgen (method , structural , js_class = "WEBGL_draw_buffers" , js_name = drawBuffersWEBGL)] #[doc = "The `drawBuffersWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] pub fn draw_buffers_webgl(this: &WebglDrawBuffers, buffers: &::wasm_bindgen::JsValue); } impl WebglDrawBuffers { #[doc = "The `WEBGL_draw_buffers.COLOR_ATTACHMENT0_WEBGL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] pub const COLOR_ATTACHMENT0_WEBGL: u32 = 36064u64 as u32; #[doc = "The `WEBGL_draw_buffers.COLOR_ATTACHMENT1_WEBGL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] pub const COLOR_ATTACHMENT1_WEBGL: u32 = 36065u64 as u32; #[doc = "The `WEBGL_draw_buffers.COLOR_ATTACHMENT2_WEBGL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] pub const COLOR_ATTACHMENT2_WEBGL: u32 = 36066u64 as u32; #[doc = "The `WEBGL_draw_buffers.COLOR_ATTACHMENT3_WEBGL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] pub const COLOR_ATTACHMENT3_WEBGL: u32 = 36067u64 as u32; #[doc = "The `WEBGL_draw_buffers.COLOR_ATTACHMENT4_WEBGL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] pub const COLOR_ATTACHMENT4_WEBGL: u32 = 36068u64 as u32; #[doc = "The `WEBGL_draw_buffers.COLOR_ATTACHMENT5_WEBGL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] pub const COLOR_ATTACHMENT5_WEBGL: u32 = 36069u64 as u32; #[doc = "The `WEBGL_draw_buffers.COLOR_ATTACHMENT6_WEBGL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] pub const COLOR_ATTACHMENT6_WEBGL: u32 = 36070u64 as u32; #[doc = "The `WEBGL_draw_buffers.COLOR_ATTACHMENT7_WEBGL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] pub const COLOR_ATTACHMENT7_WEBGL: u32 = 36071u64 as u32; #[doc = "The `WEBGL_draw_buffers.COLOR_ATTACHMENT8_WEBGL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] pub const COLOR_ATTACHMENT8_WEBGL: u32 = 36072u64 as u32; #[doc = "The `WEBGL_draw_buffers.COLOR_ATTACHMENT9_WEBGL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] pub const COLOR_ATTACHMENT9_WEBGL: u32 = 36073u64 as u32; #[doc = "The `WEBGL_draw_buffers.COLOR_ATTACHMENT10_WEBGL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] pub const COLOR_ATTACHMENT10_WEBGL: u32 = 36074u64 as u32; #[doc = "The `WEBGL_draw_buffers.COLOR_ATTACHMENT11_WEBGL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] pub const COLOR_ATTACHMENT11_WEBGL: u32 = 36075u64 as u32; #[doc = "The `WEBGL_draw_buffers.COLOR_ATTACHMENT12_WEBGL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] pub const COLOR_ATTACHMENT12_WEBGL: u32 = 36076u64 as u32; #[doc = "The `WEBGL_draw_buffers.COLOR_ATTACHMENT13_WEBGL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] pub const COLOR_ATTACHMENT13_WEBGL: u32 = 36077u64 as u32; #[doc = "The `WEBGL_draw_buffers.COLOR_ATTACHMENT14_WEBGL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] pub const COLOR_ATTACHMENT14_WEBGL: u32 = 36078u64 as u32; #[doc = "The `WEBGL_draw_buffers.COLOR_ATTACHMENT15_WEBGL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] pub const COLOR_ATTACHMENT15_WEBGL: u32 = 36079u64 as u32; #[doc = "The `WEBGL_draw_buffers.DRAW_BUFFER0_WEBGL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] pub const DRAW_BUFFER0_WEBGL: u32 = 34853u64 as u32; #[doc = "The `WEBGL_draw_buffers.DRAW_BUFFER1_WEBGL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] pub const DRAW_BUFFER1_WEBGL: u32 = 34854u64 as u32; #[doc = "The `WEBGL_draw_buffers.DRAW_BUFFER2_WEBGL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] pub const DRAW_BUFFER2_WEBGL: u32 = 34855u64 as u32; #[doc = "The `WEBGL_draw_buffers.DRAW_BUFFER3_WEBGL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] pub const DRAW_BUFFER3_WEBGL: u32 = 34856u64 as u32; #[doc = "The `WEBGL_draw_buffers.DRAW_BUFFER4_WEBGL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] pub const DRAW_BUFFER4_WEBGL: u32 = 34857u64 as u32; #[doc = "The `WEBGL_draw_buffers.DRAW_BUFFER5_WEBGL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] pub const DRAW_BUFFER5_WEBGL: u32 = 34858u64 as u32; #[doc = "The `WEBGL_draw_buffers.DRAW_BUFFER6_WEBGL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] pub const DRAW_BUFFER6_WEBGL: u32 = 34859u64 as u32; #[doc = "The `WEBGL_draw_buffers.DRAW_BUFFER7_WEBGL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] pub const DRAW_BUFFER7_WEBGL: u32 = 34860u64 as u32; #[doc = "The `WEBGL_draw_buffers.DRAW_BUFFER8_WEBGL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] pub const DRAW_BUFFER8_WEBGL: u32 = 34861u64 as u32; #[doc = "The `WEBGL_draw_buffers.DRAW_BUFFER9_WEBGL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] pub const DRAW_BUFFER9_WEBGL: u32 = 34862u64 as u32; #[doc = "The `WEBGL_draw_buffers.DRAW_BUFFER10_WEBGL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] pub const DRAW_BUFFER10_WEBGL: u32 = 34863u64 as u32; #[doc = "The `WEBGL_draw_buffers.DRAW_BUFFER11_WEBGL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] pub const DRAW_BUFFER11_WEBGL: u32 = 34864u64 as u32; #[doc = "The `WEBGL_draw_buffers.DRAW_BUFFER12_WEBGL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] pub const DRAW_BUFFER12_WEBGL: u32 = 34865u64 as u32; #[doc = "The `WEBGL_draw_buffers.DRAW_BUFFER13_WEBGL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] pub const DRAW_BUFFER13_WEBGL: u32 = 34866u64 as u32; #[doc = "The `WEBGL_draw_buffers.DRAW_BUFFER14_WEBGL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] pub const DRAW_BUFFER14_WEBGL: u32 = 34867u64 as u32; #[doc = "The `WEBGL_draw_buffers.DRAW_BUFFER15_WEBGL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] pub const DRAW_BUFFER15_WEBGL: u32 = 34868u64 as u32; #[doc = "The `WEBGL_draw_buffers.MAX_COLOR_ATTACHMENTS_WEBGL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] pub const MAX_COLOR_ATTACHMENTS_WEBGL: u32 = 36063u64 as u32; #[doc = "The `WEBGL_draw_buffers.MAX_DRAW_BUFFERS_WEBGL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] pub const MAX_DRAW_BUFFERS_WEBGL: u32 = 34852u64 as u32; } web-sys-0.3.55/src/features/gen_WebglLoseContext.rs000064400000000000000000000027400072674642500203760ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = WEBGL_lose_context , typescript_type = "WEBGL_lose_context")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebglLoseContext` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_lose_context)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglLoseContext`*"] pub type WebglLoseContext; # [wasm_bindgen (method , structural , js_class = "WEBGL_lose_context" , js_name = loseContext)] #[doc = "The `loseContext()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_lose_context/loseContext)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglLoseContext`*"] pub fn lose_context(this: &WebglLoseContext); # [wasm_bindgen (method , structural , js_class = "WEBGL_lose_context" , js_name = restoreContext)] #[doc = "The `restoreContext()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_lose_context/restoreContext)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglLoseContext`*"] pub fn restore_context(this: &WebglLoseContext); } web-sys-0.3.55/src/features/gen_WebrtcGlobalStatisticsReport.rs000064400000000000000000000030650072674642500227650ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebrtcGlobalStatisticsReport)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebrtcGlobalStatisticsReport` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebrtcGlobalStatisticsReport`*"] pub type WebrtcGlobalStatisticsReport; } impl WebrtcGlobalStatisticsReport { #[doc = "Construct a new `WebrtcGlobalStatisticsReport`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebrtcGlobalStatisticsReport`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `reports` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebrtcGlobalStatisticsReport`*"] pub fn reports(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("reports"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for WebrtcGlobalStatisticsReport { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_WheelEvent.rs000064400000000000000000000077140072674642500172220ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = MouseEvent , extends = UiEvent , extends = Event , extends = :: js_sys :: Object , js_name = WheelEvent , typescript_type = "WheelEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WheelEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEvent`*"] pub type WheelEvent; # [wasm_bindgen (structural , method , getter , js_class = "WheelEvent" , js_name = deltaX)] #[doc = "Getter for the `deltaX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent/deltaX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEvent`*"] pub fn delta_x(this: &WheelEvent) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "WheelEvent" , js_name = deltaY)] #[doc = "Getter for the `deltaY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent/deltaY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEvent`*"] pub fn delta_y(this: &WheelEvent) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "WheelEvent" , js_name = deltaZ)] #[doc = "Getter for the `deltaZ` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent/deltaZ)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEvent`*"] pub fn delta_z(this: &WheelEvent) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "WheelEvent" , js_name = deltaMode)] #[doc = "Getter for the `deltaMode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent/deltaMode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEvent`*"] pub fn delta_mode(this: &WheelEvent) -> u32; #[wasm_bindgen(catch, constructor, js_class = "WheelEvent")] #[doc = "The `new WheelEvent(..)` constructor, creating a new instance of `WheelEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent/WheelEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEvent`*"] pub fn new(type_: &str) -> Result; #[cfg(feature = "WheelEventInit")] #[wasm_bindgen(catch, constructor, js_class = "WheelEvent")] #[doc = "The `new WheelEvent(..)` constructor, creating a new instance of `WheelEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent/WheelEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEvent`, `WheelEventInit`*"] pub fn new_with_event_init_dict( type_: &str, event_init_dict: &WheelEventInit, ) -> Result; } impl WheelEvent { #[doc = "The `WheelEvent.DOM_DELTA_PIXEL` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEvent`*"] pub const DOM_DELTA_PIXEL: u32 = 0u64 as u32; #[doc = "The `WheelEvent.DOM_DELTA_LINE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEvent`*"] pub const DOM_DELTA_LINE: u32 = 1u64 as u32; #[doc = "The `WheelEvent.DOM_DELTA_PAGE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEvent`*"] pub const DOM_DELTA_PAGE: u32 = 2u64 as u32; } web-sys-0.3.55/src/features/gen_WheelEventInit.rs000064400000000000000000000452340072674642500200450ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WheelEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WheelEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] pub type WheelEventInit; } impl WheelEventInit { #[doc = "Construct a new `WheelEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `detail` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] pub fn detail(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("detail"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "Window")] #[doc = "Change the `view` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`, `Window`*"] pub fn view(&mut self, val: Option<&Window>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("view"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `altKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] pub fn alt_key(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("altKey"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `ctrlKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] pub fn ctrl_key(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("ctrlKey"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `metaKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] pub fn meta_key(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("metaKey"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierAltGraph` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] pub fn modifier_alt_graph(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierAltGraph"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierCapsLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] pub fn modifier_caps_lock(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierCapsLock"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierFn` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] pub fn modifier_fn(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierFn"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierFnLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] pub fn modifier_fn_lock(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierFnLock"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierNumLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] pub fn modifier_num_lock(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierNumLock"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierOS` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] pub fn modifier_os(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierOS"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierScrollLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] pub fn modifier_scroll_lock(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierScrollLock"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierSymbol` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] pub fn modifier_symbol(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierSymbol"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `modifierSymbolLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] pub fn modifier_symbol_lock(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("modifierSymbolLock"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `shiftKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] pub fn shift_key(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("shiftKey"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `button` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] pub fn button(&mut self, val: i16) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("button"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `buttons` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] pub fn buttons(&mut self, val: u16) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("buttons"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `clientX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] pub fn client_x(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("clientX"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `clientY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] pub fn client_y(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("clientY"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `movementX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] pub fn movement_x(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("movementX"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `movementY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] pub fn movement_y(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("movementY"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(feature = "EventTarget")] #[doc = "Change the `relatedTarget` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventTarget`, `WheelEventInit`*"] pub fn related_target(&mut self, val: Option<&EventTarget>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("relatedTarget"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `screenX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] pub fn screen_x(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("screenX"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `screenY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] pub fn screen_y(&mut self, val: i32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("screenY"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `deltaMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] pub fn delta_mode(&mut self, val: u32) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("deltaMode"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `deltaX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] pub fn delta_x(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("deltaX"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `deltaY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] pub fn delta_y(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("deltaY"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `deltaZ` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] pub fn delta_z(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("deltaZ"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for WheelEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_WidevineCdmManifest.rs000064400000000000000000000126650072674642500210420ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WidevineCDMManifest)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WidevineCdmManifest` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WidevineCdmManifest`*"] pub type WidevineCdmManifest; } impl WidevineCdmManifest { #[doc = "Construct a new `WidevineCdmManifest`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WidevineCdmManifest`*"] pub fn new( description: &str, name: &str, version: &str, x_cdm_codecs: &str, x_cdm_host_versions: &str, x_cdm_interface_versions: &str, x_cdm_module_versions: &str, ) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.description(description); ret.name(name); ret.version(version); ret.x_cdm_codecs(x_cdm_codecs); ret.x_cdm_host_versions(x_cdm_host_versions); ret.x_cdm_interface_versions(x_cdm_interface_versions); ret.x_cdm_module_versions(x_cdm_module_versions); ret } #[doc = "Change the `description` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WidevineCdmManifest`*"] pub fn description(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("description"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WidevineCdmManifest`*"] pub fn name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `version` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WidevineCdmManifest`*"] pub fn version(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("version"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `x-cdm-codecs` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WidevineCdmManifest`*"] pub fn x_cdm_codecs(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("x-cdm-codecs"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `x-cdm-host-versions` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WidevineCdmManifest`*"] pub fn x_cdm_host_versions(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("x-cdm-host-versions"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `x-cdm-interface-versions` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WidevineCdmManifest`*"] pub fn x_cdm_interface_versions(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("x-cdm-interface-versions"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `x-cdm-module-versions` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WidevineCdmManifest`*"] pub fn x_cdm_module_versions(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("x-cdm-module-versions"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_Window.rs000064400000000000000000005640730072674642500164310ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = Window , typescript_type = "Window")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Window` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub type Window; # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = window)] #[doc = "Getter for the `window` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/window)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn window(this: &Window) -> Window; # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = self)] #[doc = "Getter for the `self` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/self)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn self_(this: &Window) -> Window; #[cfg(feature = "Document")] # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = document)] #[doc = "Getter for the `document` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/document)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `Window`*"] pub fn document(this: &Window) -> Option; # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = name)] #[doc = "Getter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn name(this: &Window) -> Result; # [wasm_bindgen (structural , catch , method , setter , js_class = "Window" , js_name = name)] #[doc = "Setter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_name(this: &Window, value: &str) -> Result<(), JsValue>; #[cfg(feature = "Location")] # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = location)] #[doc = "Getter for the `location` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/location)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Location`, `Window`*"] pub fn location(this: &Window) -> Location; #[cfg(feature = "History")] # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = history)] #[doc = "Getter for the `history` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/history)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `History`, `Window`*"] pub fn history(this: &Window) -> Result; #[cfg(feature = "CustomElementRegistry")] # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = customElements)] #[doc = "Getter for the `customElements` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/customElements)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CustomElementRegistry`, `Window`*"] pub fn custom_elements(this: &Window) -> CustomElementRegistry; #[cfg(feature = "BarProp")] # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = locationbar)] #[doc = "Getter for the `locationbar` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/locationbar)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BarProp`, `Window`*"] pub fn locationbar(this: &Window) -> Result; #[cfg(feature = "BarProp")] # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = menubar)] #[doc = "Getter for the `menubar` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/menubar)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BarProp`, `Window`*"] pub fn menubar(this: &Window) -> Result; #[cfg(feature = "BarProp")] # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = personalbar)] #[doc = "Getter for the `personalbar` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/personalbar)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BarProp`, `Window`*"] pub fn personalbar(this: &Window) -> Result; #[cfg(feature = "BarProp")] # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = scrollbars)] #[doc = "Getter for the `scrollbars` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollbars)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BarProp`, `Window`*"] pub fn scrollbars(this: &Window) -> Result; #[cfg(feature = "BarProp")] # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = statusbar)] #[doc = "Getter for the `statusbar` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/statusbar)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BarProp`, `Window`*"] pub fn statusbar(this: &Window) -> Result; #[cfg(feature = "BarProp")] # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = toolbar)] #[doc = "Getter for the `toolbar` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/toolbar)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BarProp`, `Window`*"] pub fn toolbar(this: &Window) -> Result; # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = status)] #[doc = "Getter for the `status` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/status)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn status(this: &Window) -> Result; # [wasm_bindgen (structural , catch , method , setter , js_class = "Window" , js_name = status)] #[doc = "Setter for the `status` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/status)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_status(this: &Window, value: &str) -> Result<(), JsValue>; # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = closed)] #[doc = "Getter for the `closed` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/closed)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn closed(this: &Window) -> Result; # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = event)] #[doc = "Getter for the `event` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/event)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn event(this: &Window) -> ::wasm_bindgen::JsValue; # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = frames)] #[doc = "Getter for the `frames` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/frames)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn frames(this: &Window) -> Result; # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = length)] #[doc = "Getter for the `length` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn length(this: &Window) -> u32; # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = top)] #[doc = "Getter for the `top` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/top)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn top(this: &Window) -> Result, JsValue>; # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = opener)] #[doc = "Getter for the `opener` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/opener)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn opener(this: &Window) -> Result<::wasm_bindgen::JsValue, JsValue>; # [wasm_bindgen (structural , catch , method , setter , js_class = "Window" , js_name = opener)] #[doc = "Setter for the `opener` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/opener)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_opener(this: &Window, value: &::wasm_bindgen::JsValue) -> Result<(), JsValue>; # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = parent)] #[doc = "Getter for the `parent` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/parent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn parent(this: &Window) -> Result, JsValue>; #[cfg(feature = "Element")] # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = frameElement)] #[doc = "Getter for the `frameElement` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/frameElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `Window`*"] pub fn frame_element(this: &Window) -> Result, JsValue>; #[cfg(feature = "Navigator")] # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = navigator)] #[doc = "Getter for the `navigator` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/navigator)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`, `Window`*"] pub fn navigator(this: &Window) -> Navigator; #[cfg(feature = "External")] # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = external)] #[doc = "Getter for the `external` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/external)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `External`, `Window`*"] pub fn external(this: &Window) -> Result; # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onappinstalled)] #[doc = "Getter for the `onappinstalled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onappinstalled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onappinstalled(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onappinstalled)] #[doc = "Setter for the `onappinstalled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onappinstalled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onappinstalled(this: &Window, value: Option<&::js_sys::Function>); #[cfg(feature = "Screen")] # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = screen)] #[doc = "Getter for the `screen` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/screen)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Screen`, `Window`*"] pub fn screen(this: &Window) -> Result; # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = innerWidth)] #[doc = "Getter for the `innerWidth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/innerWidth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn inner_width(this: &Window) -> Result<::wasm_bindgen::JsValue, JsValue>; # [wasm_bindgen (structural , catch , method , setter , js_class = "Window" , js_name = innerWidth)] #[doc = "Setter for the `innerWidth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/innerWidth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_inner_width(this: &Window, value: &::wasm_bindgen::JsValue) -> Result<(), JsValue>; # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = innerHeight)] #[doc = "Getter for the `innerHeight` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/innerHeight)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn inner_height(this: &Window) -> Result<::wasm_bindgen::JsValue, JsValue>; # [wasm_bindgen (structural , catch , method , setter , js_class = "Window" , js_name = innerHeight)] #[doc = "Setter for the `innerHeight` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/innerHeight)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_inner_height(this: &Window, value: &::wasm_bindgen::JsValue) -> Result<(), JsValue>; # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = scrollX)] #[doc = "Getter for the `scrollX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn scroll_x(this: &Window) -> Result; # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = pageXOffset)] #[doc = "Getter for the `pageXOffset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/pageXOffset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn page_x_offset(this: &Window) -> Result; # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = scrollY)] #[doc = "Getter for the `scrollY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn scroll_y(this: &Window) -> Result; # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = pageYOffset)] #[doc = "Getter for the `pageYOffset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/pageYOffset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn page_y_offset(this: &Window) -> Result; # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = screenX)] #[doc = "Getter for the `screenX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/screenX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn screen_x(this: &Window) -> Result<::wasm_bindgen::JsValue, JsValue>; # [wasm_bindgen (structural , catch , method , setter , js_class = "Window" , js_name = screenX)] #[doc = "Setter for the `screenX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/screenX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_screen_x(this: &Window, value: &::wasm_bindgen::JsValue) -> Result<(), JsValue>; # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = screenY)] #[doc = "Getter for the `screenY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/screenY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn screen_y(this: &Window) -> Result<::wasm_bindgen::JsValue, JsValue>; # [wasm_bindgen (structural , catch , method , setter , js_class = "Window" , js_name = screenY)] #[doc = "Setter for the `screenY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/screenY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_screen_y(this: &Window, value: &::wasm_bindgen::JsValue) -> Result<(), JsValue>; # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = outerWidth)] #[doc = "Getter for the `outerWidth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/outerWidth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn outer_width(this: &Window) -> Result<::wasm_bindgen::JsValue, JsValue>; # [wasm_bindgen (structural , catch , method , setter , js_class = "Window" , js_name = outerWidth)] #[doc = "Setter for the `outerWidth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/outerWidth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_outer_width(this: &Window, value: &::wasm_bindgen::JsValue) -> Result<(), JsValue>; # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = outerHeight)] #[doc = "Getter for the `outerHeight` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/outerHeight)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn outer_height(this: &Window) -> Result<::wasm_bindgen::JsValue, JsValue>; # [wasm_bindgen (structural , catch , method , setter , js_class = "Window" , js_name = outerHeight)] #[doc = "Setter for the `outerHeight` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/outerHeight)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_outer_height(this: &Window, value: &::wasm_bindgen::JsValue) -> Result<(), JsValue>; # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = devicePixelRatio)] #[doc = "Getter for the `devicePixelRatio` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/devicePixelRatio)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn device_pixel_ratio(this: &Window) -> f64; #[cfg(feature = "Performance")] # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = performance)] #[doc = "Getter for the `performance` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/performance)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Performance`, `Window`*"] pub fn performance(this: &Window) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = orientation)] #[doc = "Getter for the `orientation` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/orientation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn orientation(this: &Window) -> i16; # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onorientationchange)] #[doc = "Getter for the `onorientationchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onorientationchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onorientationchange(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onorientationchange)] #[doc = "Setter for the `onorientationchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onorientationchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onorientationchange(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onvrdisplayconnect)] #[doc = "Getter for the `onvrdisplayconnect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onvrdisplayconnect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onvrdisplayconnect(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onvrdisplayconnect)] #[doc = "Setter for the `onvrdisplayconnect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onvrdisplayconnect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onvrdisplayconnect(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onvrdisplaydisconnect)] #[doc = "Getter for the `onvrdisplaydisconnect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onvrdisplaydisconnect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onvrdisplaydisconnect(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onvrdisplaydisconnect)] #[doc = "Setter for the `onvrdisplaydisconnect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onvrdisplaydisconnect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onvrdisplaydisconnect(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onvrdisplayactivate)] #[doc = "Getter for the `onvrdisplayactivate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onvrdisplayactivate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onvrdisplayactivate(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onvrdisplayactivate)] #[doc = "Setter for the `onvrdisplayactivate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onvrdisplayactivate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onvrdisplayactivate(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onvrdisplaydeactivate)] #[doc = "Getter for the `onvrdisplaydeactivate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onvrdisplaydeactivate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onvrdisplaydeactivate(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onvrdisplaydeactivate)] #[doc = "Setter for the `onvrdisplaydeactivate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onvrdisplaydeactivate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onvrdisplaydeactivate(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onvrdisplaypresentchange)] #[doc = "Getter for the `onvrdisplaypresentchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onvrdisplaypresentchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onvrdisplaypresentchange(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onvrdisplaypresentchange)] #[doc = "Setter for the `onvrdisplaypresentchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onvrdisplaypresentchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onvrdisplaypresentchange(this: &Window, value: Option<&::js_sys::Function>); #[cfg(feature = "Worklet")] # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = paintWorklet)] #[doc = "Getter for the `paintWorklet` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/paintWorklet)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`, `Worklet`*"] pub fn paint_worklet(this: &Window) -> Result; #[cfg(feature = "Crypto")] # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = crypto)] #[doc = "Getter for the `crypto` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/crypto)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Crypto`, `Window`*"] pub fn crypto(this: &Window) -> Result; # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onabort)] #[doc = "Getter for the `onabort` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onabort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onabort(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onabort)] #[doc = "Setter for the `onabort` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onabort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onabort(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onblur)] #[doc = "Getter for the `onblur` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onblur)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onblur(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onblur)] #[doc = "Setter for the `onblur` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onblur)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onblur(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onfocus)] #[doc = "Getter for the `onfocus` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onfocus)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onfocus(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onfocus)] #[doc = "Setter for the `onfocus` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onfocus)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onfocus(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onauxclick)] #[doc = "Getter for the `onauxclick` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onauxclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onauxclick(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onauxclick)] #[doc = "Setter for the `onauxclick` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onauxclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onauxclick(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = oncanplay)] #[doc = "Getter for the `oncanplay` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/oncanplay)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn oncanplay(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = oncanplay)] #[doc = "Setter for the `oncanplay` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/oncanplay)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_oncanplay(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = oncanplaythrough)] #[doc = "Getter for the `oncanplaythrough` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/oncanplaythrough)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn oncanplaythrough(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = oncanplaythrough)] #[doc = "Setter for the `oncanplaythrough` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/oncanplaythrough)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_oncanplaythrough(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onchange)] #[doc = "Getter for the `onchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onchange(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onchange)] #[doc = "Setter for the `onchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onchange(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onclick)] #[doc = "Getter for the `onclick` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onclick(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onclick)] #[doc = "Setter for the `onclick` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onclick(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onclose)] #[doc = "Getter for the `onclose` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onclose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onclose(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onclose)] #[doc = "Setter for the `onclose` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onclose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onclose(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = oncontextmenu)] #[doc = "Getter for the `oncontextmenu` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/oncontextmenu)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn oncontextmenu(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = oncontextmenu)] #[doc = "Setter for the `oncontextmenu` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/oncontextmenu)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_oncontextmenu(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = ondblclick)] #[doc = "Getter for the `ondblclick` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondblclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn ondblclick(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = ondblclick)] #[doc = "Setter for the `ondblclick` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondblclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_ondblclick(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = ondrag)] #[doc = "Getter for the `ondrag` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondrag)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn ondrag(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = ondrag)] #[doc = "Setter for the `ondrag` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondrag)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_ondrag(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = ondragend)] #[doc = "Getter for the `ondragend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondragend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn ondragend(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = ondragend)] #[doc = "Setter for the `ondragend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondragend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_ondragend(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = ondragenter)] #[doc = "Getter for the `ondragenter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondragenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn ondragenter(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = ondragenter)] #[doc = "Setter for the `ondragenter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondragenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_ondragenter(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = ondragexit)] #[doc = "Getter for the `ondragexit` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondragexit)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn ondragexit(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = ondragexit)] #[doc = "Setter for the `ondragexit` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondragexit)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_ondragexit(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = ondragleave)] #[doc = "Getter for the `ondragleave` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondragleave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn ondragleave(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = ondragleave)] #[doc = "Setter for the `ondragleave` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondragleave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_ondragleave(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = ondragover)] #[doc = "Getter for the `ondragover` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondragover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn ondragover(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = ondragover)] #[doc = "Setter for the `ondragover` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondragover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_ondragover(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = ondragstart)] #[doc = "Getter for the `ondragstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondragstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn ondragstart(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = ondragstart)] #[doc = "Setter for the `ondragstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondragstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_ondragstart(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = ondrop)] #[doc = "Getter for the `ondrop` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondrop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn ondrop(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = ondrop)] #[doc = "Setter for the `ondrop` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondrop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_ondrop(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = ondurationchange)] #[doc = "Getter for the `ondurationchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondurationchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn ondurationchange(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = ondurationchange)] #[doc = "Setter for the `ondurationchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondurationchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_ondurationchange(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onemptied)] #[doc = "Getter for the `onemptied` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onemptied)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onemptied(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onemptied)] #[doc = "Setter for the `onemptied` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onemptied)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onemptied(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onended)] #[doc = "Getter for the `onended` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onended)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onended(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onended)] #[doc = "Setter for the `onended` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onended)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onended(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = oninput)] #[doc = "Getter for the `oninput` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/oninput)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn oninput(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = oninput)] #[doc = "Setter for the `oninput` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/oninput)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_oninput(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = oninvalid)] #[doc = "Getter for the `oninvalid` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/oninvalid)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn oninvalid(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = oninvalid)] #[doc = "Setter for the `oninvalid` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/oninvalid)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_oninvalid(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onkeydown)] #[doc = "Getter for the `onkeydown` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onkeydown)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onkeydown(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onkeydown)] #[doc = "Setter for the `onkeydown` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onkeydown)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onkeydown(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onkeypress)] #[doc = "Getter for the `onkeypress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onkeypress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onkeypress(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onkeypress)] #[doc = "Setter for the `onkeypress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onkeypress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onkeypress(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onkeyup)] #[doc = "Getter for the `onkeyup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onkeyup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onkeyup(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onkeyup)] #[doc = "Setter for the `onkeyup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onkeyup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onkeyup(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onload)] #[doc = "Getter for the `onload` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onload(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onload)] #[doc = "Setter for the `onload` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onload(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onloadeddata)] #[doc = "Getter for the `onloadeddata` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onloadeddata)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onloadeddata(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onloadeddata)] #[doc = "Setter for the `onloadeddata` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onloadeddata)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onloadeddata(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onloadedmetadata)] #[doc = "Getter for the `onloadedmetadata` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onloadedmetadata)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onloadedmetadata(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onloadedmetadata)] #[doc = "Setter for the `onloadedmetadata` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onloadedmetadata)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onloadedmetadata(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onloadend)] #[doc = "Getter for the `onloadend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onloadend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onloadend(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onloadend)] #[doc = "Setter for the `onloadend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onloadend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onloadend(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onloadstart)] #[doc = "Getter for the `onloadstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onloadstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onloadstart(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onloadstart)] #[doc = "Setter for the `onloadstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onloadstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onloadstart(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onmousedown)] #[doc = "Getter for the `onmousedown` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onmousedown)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onmousedown(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onmousedown)] #[doc = "Setter for the `onmousedown` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onmousedown)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onmousedown(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onmouseenter)] #[doc = "Getter for the `onmouseenter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onmouseenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onmouseenter(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onmouseenter)] #[doc = "Setter for the `onmouseenter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onmouseenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onmouseenter(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onmouseleave)] #[doc = "Getter for the `onmouseleave` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onmouseleave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onmouseleave(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onmouseleave)] #[doc = "Setter for the `onmouseleave` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onmouseleave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onmouseleave(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onmousemove)] #[doc = "Getter for the `onmousemove` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onmousemove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onmousemove(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onmousemove)] #[doc = "Setter for the `onmousemove` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onmousemove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onmousemove(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onmouseout)] #[doc = "Getter for the `onmouseout` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onmouseout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onmouseout(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onmouseout)] #[doc = "Setter for the `onmouseout` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onmouseout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onmouseout(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onmouseover)] #[doc = "Getter for the `onmouseover` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onmouseover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onmouseover(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onmouseover)] #[doc = "Setter for the `onmouseover` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onmouseover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onmouseover(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onmouseup)] #[doc = "Getter for the `onmouseup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onmouseup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onmouseup(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onmouseup)] #[doc = "Setter for the `onmouseup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onmouseup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onmouseup(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onwheel)] #[doc = "Getter for the `onwheel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onwheel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onwheel(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onwheel)] #[doc = "Setter for the `onwheel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onwheel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onwheel(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onpause)] #[doc = "Getter for the `onpause` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpause)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onpause(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onpause)] #[doc = "Setter for the `onpause` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpause)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onpause(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onplay)] #[doc = "Getter for the `onplay` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onplay)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onplay(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onplay)] #[doc = "Setter for the `onplay` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onplay)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onplay(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onplaying)] #[doc = "Getter for the `onplaying` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onplaying)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onplaying(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onplaying)] #[doc = "Setter for the `onplaying` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onplaying)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onplaying(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onprogress)] #[doc = "Getter for the `onprogress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onprogress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onprogress(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onprogress)] #[doc = "Setter for the `onprogress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onprogress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onprogress(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onratechange)] #[doc = "Getter for the `onratechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onratechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onratechange(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onratechange)] #[doc = "Setter for the `onratechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onratechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onratechange(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onreset)] #[doc = "Getter for the `onreset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onreset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onreset(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onreset)] #[doc = "Setter for the `onreset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onreset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onreset(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onresize)] #[doc = "Getter for the `onresize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onresize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onresize(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onresize)] #[doc = "Setter for the `onresize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onresize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onresize(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onscroll)] #[doc = "Getter for the `onscroll` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onscroll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onscroll(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onscroll)] #[doc = "Setter for the `onscroll` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onscroll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onscroll(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onseeked)] #[doc = "Getter for the `onseeked` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onseeked)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onseeked(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onseeked)] #[doc = "Setter for the `onseeked` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onseeked)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onseeked(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onseeking)] #[doc = "Getter for the `onseeking` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onseeking)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onseeking(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onseeking)] #[doc = "Setter for the `onseeking` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onseeking)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onseeking(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onselect)] #[doc = "Getter for the `onselect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onselect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onselect(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onselect)] #[doc = "Setter for the `onselect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onselect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onselect(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onshow)] #[doc = "Getter for the `onshow` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onshow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onshow(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onshow)] #[doc = "Setter for the `onshow` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onshow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onshow(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onstalled)] #[doc = "Getter for the `onstalled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onstalled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onstalled(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onstalled)] #[doc = "Setter for the `onstalled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onstalled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onstalled(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onsubmit)] #[doc = "Getter for the `onsubmit` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onsubmit)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onsubmit(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onsubmit)] #[doc = "Setter for the `onsubmit` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onsubmit)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onsubmit(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onsuspend)] #[doc = "Getter for the `onsuspend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onsuspend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onsuspend(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onsuspend)] #[doc = "Setter for the `onsuspend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onsuspend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onsuspend(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = ontimeupdate)] #[doc = "Getter for the `ontimeupdate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontimeupdate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn ontimeupdate(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = ontimeupdate)] #[doc = "Setter for the `ontimeupdate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontimeupdate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_ontimeupdate(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onvolumechange)] #[doc = "Getter for the `onvolumechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onvolumechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onvolumechange(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onvolumechange)] #[doc = "Setter for the `onvolumechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onvolumechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onvolumechange(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onwaiting)] #[doc = "Getter for the `onwaiting` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onwaiting)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onwaiting(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onwaiting)] #[doc = "Setter for the `onwaiting` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onwaiting)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onwaiting(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onselectstart)] #[doc = "Getter for the `onselectstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onselectstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onselectstart(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onselectstart)] #[doc = "Setter for the `onselectstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onselectstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onselectstart(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = ontoggle)] #[doc = "Getter for the `ontoggle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontoggle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn ontoggle(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = ontoggle)] #[doc = "Setter for the `ontoggle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontoggle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_ontoggle(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onpointercancel)] #[doc = "Getter for the `onpointercancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpointercancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onpointercancel(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onpointercancel)] #[doc = "Setter for the `onpointercancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpointercancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onpointercancel(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onpointerdown)] #[doc = "Getter for the `onpointerdown` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpointerdown)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onpointerdown(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onpointerdown)] #[doc = "Setter for the `onpointerdown` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpointerdown)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onpointerdown(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onpointerup)] #[doc = "Getter for the `onpointerup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpointerup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onpointerup(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onpointerup)] #[doc = "Setter for the `onpointerup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpointerup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onpointerup(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onpointermove)] #[doc = "Getter for the `onpointermove` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpointermove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onpointermove(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onpointermove)] #[doc = "Setter for the `onpointermove` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpointermove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onpointermove(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onpointerout)] #[doc = "Getter for the `onpointerout` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpointerout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onpointerout(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onpointerout)] #[doc = "Setter for the `onpointerout` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpointerout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onpointerout(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onpointerover)] #[doc = "Getter for the `onpointerover` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpointerover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onpointerover(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onpointerover)] #[doc = "Setter for the `onpointerover` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpointerover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onpointerover(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onpointerenter)] #[doc = "Getter for the `onpointerenter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpointerenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onpointerenter(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onpointerenter)] #[doc = "Setter for the `onpointerenter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpointerenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onpointerenter(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onpointerleave)] #[doc = "Getter for the `onpointerleave` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpointerleave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onpointerleave(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onpointerleave)] #[doc = "Setter for the `onpointerleave` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpointerleave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onpointerleave(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = ongotpointercapture)] #[doc = "Getter for the `ongotpointercapture` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ongotpointercapture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn ongotpointercapture(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = ongotpointercapture)] #[doc = "Setter for the `ongotpointercapture` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ongotpointercapture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_ongotpointercapture(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onlostpointercapture)] #[doc = "Getter for the `onlostpointercapture` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onlostpointercapture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onlostpointercapture(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onlostpointercapture)] #[doc = "Setter for the `onlostpointercapture` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onlostpointercapture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onlostpointercapture(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onanimationcancel)] #[doc = "Getter for the `onanimationcancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onanimationcancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onanimationcancel(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onanimationcancel)] #[doc = "Setter for the `onanimationcancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onanimationcancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onanimationcancel(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onanimationend)] #[doc = "Getter for the `onanimationend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onanimationend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onanimationend(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onanimationend)] #[doc = "Setter for the `onanimationend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onanimationend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onanimationend(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onanimationiteration)] #[doc = "Getter for the `onanimationiteration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onanimationiteration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onanimationiteration(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onanimationiteration)] #[doc = "Setter for the `onanimationiteration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onanimationiteration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onanimationiteration(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onanimationstart)] #[doc = "Getter for the `onanimationstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onanimationstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onanimationstart(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onanimationstart)] #[doc = "Setter for the `onanimationstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onanimationstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onanimationstart(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = ontransitioncancel)] #[doc = "Getter for the `ontransitioncancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontransitioncancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn ontransitioncancel(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = ontransitioncancel)] #[doc = "Setter for the `ontransitioncancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontransitioncancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_ontransitioncancel(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = ontransitionend)] #[doc = "Getter for the `ontransitionend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontransitionend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn ontransitionend(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = ontransitionend)] #[doc = "Setter for the `ontransitionend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontransitionend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_ontransitionend(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = ontransitionrun)] #[doc = "Getter for the `ontransitionrun` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontransitionrun)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn ontransitionrun(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = ontransitionrun)] #[doc = "Setter for the `ontransitionrun` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontransitionrun)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_ontransitionrun(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = ontransitionstart)] #[doc = "Getter for the `ontransitionstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontransitionstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn ontransitionstart(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = ontransitionstart)] #[doc = "Setter for the `ontransitionstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontransitionstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_ontransitionstart(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onwebkitanimationend)] #[doc = "Getter for the `onwebkitanimationend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onwebkitanimationend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onwebkitanimationend(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onwebkitanimationend)] #[doc = "Setter for the `onwebkitanimationend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onwebkitanimationend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onwebkitanimationend(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onwebkitanimationiteration)] #[doc = "Getter for the `onwebkitanimationiteration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onwebkitanimationiteration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onwebkitanimationiteration(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onwebkitanimationiteration)] #[doc = "Setter for the `onwebkitanimationiteration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onwebkitanimationiteration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onwebkitanimationiteration(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onwebkitanimationstart)] #[doc = "Getter for the `onwebkitanimationstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onwebkitanimationstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onwebkitanimationstart(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onwebkitanimationstart)] #[doc = "Setter for the `onwebkitanimationstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onwebkitanimationstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onwebkitanimationstart(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onwebkittransitionend)] #[doc = "Getter for the `onwebkittransitionend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onwebkittransitionend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onwebkittransitionend(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onwebkittransitionend)] #[doc = "Setter for the `onwebkittransitionend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onwebkittransitionend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onwebkittransitionend(this: &Window, value: Option<&::js_sys::Function>); #[cfg(feature = "U2f")] # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = u2f)] #[doc = "Getter for the `u2f` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/u2f)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `U2f`, `Window`*"] pub fn u2f(this: &Window) -> Result; # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onerror)] #[doc = "Getter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onerror(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onerror)] #[doc = "Setter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onerror(this: &Window, value: Option<&::js_sys::Function>); #[cfg(feature = "SpeechSynthesis")] # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = speechSynthesis)] #[doc = "Getter for the `speechSynthesis` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/speechSynthesis)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesis`, `Window`*"] pub fn speech_synthesis(this: &Window) -> Result; # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = ontouchstart)] #[doc = "Getter for the `ontouchstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontouchstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn ontouchstart(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = ontouchstart)] #[doc = "Setter for the `ontouchstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontouchstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_ontouchstart(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = ontouchend)] #[doc = "Getter for the `ontouchend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontouchend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn ontouchend(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = ontouchend)] #[doc = "Setter for the `ontouchend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontouchend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_ontouchend(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = ontouchmove)] #[doc = "Getter for the `ontouchmove` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontouchmove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn ontouchmove(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = ontouchmove)] #[doc = "Setter for the `ontouchmove` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontouchmove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_ontouchmove(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = ontouchcancel)] #[doc = "Getter for the `ontouchcancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontouchcancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn ontouchcancel(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = ontouchcancel)] #[doc = "Setter for the `ontouchcancel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontouchcancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_ontouchcancel(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onafterprint)] #[doc = "Getter for the `onafterprint` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onafterprint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onafterprint(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onafterprint)] #[doc = "Setter for the `onafterprint` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onafterprint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onafterprint(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onbeforeprint)] #[doc = "Getter for the `onbeforeprint` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onbeforeprint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onbeforeprint(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onbeforeprint)] #[doc = "Setter for the `onbeforeprint` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onbeforeprint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onbeforeprint(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onbeforeunload)] #[doc = "Getter for the `onbeforeunload` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onbeforeunload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onbeforeunload(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onbeforeunload)] #[doc = "Setter for the `onbeforeunload` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onbeforeunload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onbeforeunload(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onhashchange)] #[doc = "Getter for the `onhashchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onhashchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onhashchange(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onhashchange)] #[doc = "Setter for the `onhashchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onhashchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onhashchange(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onlanguagechange)] #[doc = "Getter for the `onlanguagechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onlanguagechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onlanguagechange(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onlanguagechange)] #[doc = "Setter for the `onlanguagechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onlanguagechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onlanguagechange(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onmessage)] #[doc = "Getter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onmessage(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onmessage)] #[doc = "Setter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onmessage(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onmessageerror)] #[doc = "Getter for the `onmessageerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onmessageerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onmessageerror(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onmessageerror)] #[doc = "Setter for the `onmessageerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onmessageerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onmessageerror(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onoffline)] #[doc = "Getter for the `onoffline` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onoffline)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onoffline(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onoffline)] #[doc = "Setter for the `onoffline` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onoffline)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onoffline(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = ononline)] #[doc = "Getter for the `ononline` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ononline)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn ononline(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = ononline)] #[doc = "Setter for the `ononline` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ononline)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_ononline(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onpagehide)] #[doc = "Getter for the `onpagehide` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpagehide)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onpagehide(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onpagehide)] #[doc = "Setter for the `onpagehide` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpagehide)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onpagehide(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onpageshow)] #[doc = "Getter for the `onpageshow` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpageshow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onpageshow(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onpageshow)] #[doc = "Setter for the `onpageshow` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpageshow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onpageshow(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onpopstate)] #[doc = "Getter for the `onpopstate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpopstate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onpopstate(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onpopstate)] #[doc = "Setter for the `onpopstate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpopstate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onpopstate(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onstorage)] #[doc = "Getter for the `onstorage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onstorage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onstorage(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onstorage)] #[doc = "Setter for the `onstorage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onstorage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onstorage(this: &Window, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = onunload)] #[doc = "Getter for the `onunload` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onunload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onunload(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onunload)] #[doc = "Setter for the `onunload` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onunload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onunload(this: &Window, value: Option<&::js_sys::Function>); #[cfg(feature = "Storage")] # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = localStorage)] #[doc = "Getter for the `localStorage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Storage`, `Window`*"] pub fn local_storage(this: &Window) -> Result, JsValue>; # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = origin)] #[doc = "Getter for the `origin` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/origin)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn origin(this: &Window) -> String; # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = isSecureContext)] #[doc = "Getter for the `isSecureContext` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/isSecureContext)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn is_secure_context(this: &Window) -> bool; #[cfg(feature = "IdbFactory")] # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = indexedDB)] #[doc = "Getter for the `indexedDB` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/indexedDB)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFactory`, `Window`*"] pub fn indexed_db(this: &Window) -> Result, JsValue>; #[cfg(feature = "CacheStorage")] # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = caches)] #[doc = "Getter for the `caches` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/caches)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CacheStorage`, `Window`*"] pub fn caches(this: &Window) -> Result; #[cfg(feature = "Storage")] # [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = sessionStorage)] #[doc = "Getter for the `sessionStorage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/sessionStorage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Storage`, `Window`*"] pub fn session_storage(this: &Window) -> Result, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = alert)] #[doc = "The `alert()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/alert)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn alert(this: &Window) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = alert)] #[doc = "The `alert()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/alert)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn alert_with_message(this: &Window, message: &str) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = blur)] #[doc = "The `blur()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/blur)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn blur(this: &Window) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = cancelAnimationFrame)] #[doc = "The `cancelAnimationFrame()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/cancelAnimationFrame)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn cancel_animation_frame(this: &Window, handle: i32) -> Result<(), JsValue>; # [wasm_bindgen (method , structural , js_class = "Window" , js_name = cancelIdleCallback)] #[doc = "The `cancelIdleCallback()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/cancelIdleCallback)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn cancel_idle_callback(this: &Window, handle: u32); # [wasm_bindgen (method , structural , js_class = "Window" , js_name = captureEvents)] #[doc = "The `captureEvents()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/captureEvents)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn capture_events(this: &Window); # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = close)] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn close(this: &Window) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = confirm)] #[doc = "The `confirm()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/confirm)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn confirm(this: &Window) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = confirm)] #[doc = "The `confirm()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/confirm)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn confirm_with_message(this: &Window, message: &str) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = focus)] #[doc = "The `focus()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/focus)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn focus(this: &Window) -> Result<(), JsValue>; #[cfg(all(feature = "CssStyleDeclaration", feature = "Element",))] # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = getComputedStyle)] #[doc = "The `getComputedStyle()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssStyleDeclaration`, `Element`, `Window`*"] pub fn get_computed_style( this: &Window, elt: &Element, ) -> Result, JsValue>; #[cfg(all(feature = "CssStyleDeclaration", feature = "Element",))] # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = getComputedStyle)] #[doc = "The `getComputedStyle()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssStyleDeclaration`, `Element`, `Window`*"] pub fn get_computed_style_with_pseudo_elt( this: &Window, elt: &Element, pseudo_elt: &str, ) -> Result, JsValue>; #[cfg(feature = "Selection")] # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = getSelection)] #[doc = "The `getSelection()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/getSelection)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Selection`, `Window`*"] pub fn get_selection(this: &Window) -> Result, JsValue>; #[cfg(feature = "MediaQueryList")] # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = matchMedia)] #[doc = "The `matchMedia()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/matchMedia)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaQueryList`, `Window`*"] pub fn match_media(this: &Window, query: &str) -> Result, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = moveBy)] #[doc = "The `moveBy()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/moveBy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn move_by(this: &Window, x: i32, y: i32) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = moveTo)] #[doc = "The `moveTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/moveTo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn move_to(this: &Window, x: i32, y: i32) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = open)] #[doc = "The `open()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/open)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn open(this: &Window) -> Result, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = open)] #[doc = "The `open()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/open)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn open_with_url(this: &Window, url: &str) -> Result, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = open)] #[doc = "The `open()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/open)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn open_with_url_and_target( this: &Window, url: &str, target: &str, ) -> Result, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = open)] #[doc = "The `open()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/open)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn open_with_url_and_target_and_features( this: &Window, url: &str, target: &str, features: &str, ) -> Result, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = postMessage)] #[doc = "The `postMessage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn post_message( this: &Window, message: &::wasm_bindgen::JsValue, target_origin: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = postMessage)] #[doc = "The `postMessage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn post_message_with_transfer( this: &Window, message: &::wasm_bindgen::JsValue, target_origin: &str, transfer: &::wasm_bindgen::JsValue, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = print)] #[doc = "The `print()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/print)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn print(this: &Window) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = prompt)] #[doc = "The `prompt()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/prompt)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn prompt(this: &Window) -> Result, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = prompt)] #[doc = "The `prompt()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/prompt)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn prompt_with_message(this: &Window, message: &str) -> Result, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = prompt)] #[doc = "The `prompt()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/prompt)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn prompt_with_message_and_default( this: &Window, message: &str, default: &str, ) -> Result, JsValue>; # [wasm_bindgen (method , structural , js_class = "Window" , js_name = releaseEvents)] #[doc = "The `releaseEvents()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/releaseEvents)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn release_events(this: &Window); # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = requestAnimationFrame)] #[doc = "The `requestAnimationFrame()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/requestAnimationFrame)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn request_animation_frame( this: &Window, callback: &::js_sys::Function, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = requestIdleCallback)] #[doc = "The `requestIdleCallback()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/requestIdleCallback)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn request_idle_callback( this: &Window, callback: &::js_sys::Function, ) -> Result; #[cfg(feature = "IdleRequestOptions")] # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = requestIdleCallback)] #[doc = "The `requestIdleCallback()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/requestIdleCallback)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdleRequestOptions`, `Window`*"] pub fn request_idle_callback_with_options( this: &Window, callback: &::js_sys::Function, options: &IdleRequestOptions, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = resizeBy)] #[doc = "The `resizeBy()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/resizeBy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn resize_by(this: &Window, x: i32, y: i32) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = resizeTo)] #[doc = "The `resizeTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/resizeTo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn resize_to(this: &Window, x: i32, y: i32) -> Result<(), JsValue>; # [wasm_bindgen (method , structural , js_class = "Window" , js_name = scroll)] #[doc = "The `scroll()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/scroll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn scroll_with_x_and_y(this: &Window, x: f64, y: f64); # [wasm_bindgen (method , structural , js_class = "Window" , js_name = scroll)] #[doc = "The `scroll()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/scroll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn scroll(this: &Window); #[cfg(feature = "ScrollToOptions")] # [wasm_bindgen (method , structural , js_class = "Window" , js_name = scroll)] #[doc = "The `scroll()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/scroll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollToOptions`, `Window`*"] pub fn scroll_with_scroll_to_options(this: &Window, options: &ScrollToOptions); # [wasm_bindgen (method , structural , js_class = "Window" , js_name = scrollBy)] #[doc = "The `scrollBy()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollBy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn scroll_by_with_x_and_y(this: &Window, x: f64, y: f64); # [wasm_bindgen (method , structural , js_class = "Window" , js_name = scrollBy)] #[doc = "The `scrollBy()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollBy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn scroll_by(this: &Window); #[cfg(feature = "ScrollToOptions")] # [wasm_bindgen (method , structural , js_class = "Window" , js_name = scrollBy)] #[doc = "The `scrollBy()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollBy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollToOptions`, `Window`*"] pub fn scroll_by_with_scroll_to_options(this: &Window, options: &ScrollToOptions); # [wasm_bindgen (method , structural , js_class = "Window" , js_name = scrollTo)] #[doc = "The `scrollTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollTo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn scroll_to_with_x_and_y(this: &Window, x: f64, y: f64); # [wasm_bindgen (method , structural , js_class = "Window" , js_name = scrollTo)] #[doc = "The `scrollTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollTo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn scroll_to(this: &Window); #[cfg(feature = "ScrollToOptions")] # [wasm_bindgen (method , structural , js_class = "Window" , js_name = scrollTo)] #[doc = "The `scrollTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollTo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollToOptions`, `Window`*"] pub fn scroll_to_with_scroll_to_options(this: &Window, options: &ScrollToOptions); # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = stop)] #[doc = "The `stop()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/stop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn stop(this: &Window) -> Result<(), JsValue>; #[wasm_bindgen(method, structural, js_class = "Window", indexing_getter)] #[doc = "Indexing getter."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn get(this: &Window, name: &str) -> Option<::js_sys::Object>; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = atob)] #[doc = "The `atob()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/atob)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn atob(this: &Window, atob: &str) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = btoa)] #[doc = "The `btoa()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/btoa)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn btoa(this: &Window, btoa: &str) -> Result; # [wasm_bindgen (method , structural , js_class = "Window" , js_name = clearInterval)] #[doc = "The `clearInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/clearInterval)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn clear_interval(this: &Window); # [wasm_bindgen (method , structural , js_class = "Window" , js_name = clearInterval)] #[doc = "The `clearInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/clearInterval)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn clear_interval_with_handle(this: &Window, handle: i32); # [wasm_bindgen (method , structural , js_class = "Window" , js_name = clearTimeout)] #[doc = "The `clearTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/clearTimeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn clear_timeout(this: &Window); # [wasm_bindgen (method , structural , js_class = "Window" , js_name = clearTimeout)] #[doc = "The `clearTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/clearTimeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn clear_timeout_with_handle(this: &Window, handle: i32); #[cfg(feature = "HtmlImageElement")] # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = createImageBitmap)] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`, `Window`*"] pub fn create_image_bitmap_with_html_image_element( this: &Window, a_image: &HtmlImageElement, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "HtmlVideoElement")] # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = createImageBitmap)] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`, `Window`*"] pub fn create_image_bitmap_with_html_video_element( this: &Window, a_image: &HtmlVideoElement, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "HtmlCanvasElement")] # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = createImageBitmap)] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `Window`*"] pub fn create_image_bitmap_with_html_canvas_element( this: &Window, a_image: &HtmlCanvasElement, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "Blob")] # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = createImageBitmap)] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`, `Window`*"] pub fn create_image_bitmap_with_blob( this: &Window, a_image: &Blob, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "ImageData")] # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = createImageBitmap)] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageData`, `Window`*"] pub fn create_image_bitmap_with_image_data( this: &Window, a_image: &ImageData, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CanvasRenderingContext2d")] # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = createImageBitmap)] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `Window`*"] pub fn create_image_bitmap_with_canvas_rendering_context_2d( this: &Window, a_image: &CanvasRenderingContext2d, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "ImageBitmap")] # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = createImageBitmap)] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `Window`*"] pub fn create_image_bitmap_with_image_bitmap( this: &Window, a_image: &ImageBitmap, ) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = createImageBitmap)] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn create_image_bitmap_with_buffer_source( this: &Window, a_image: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = createImageBitmap)] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn create_image_bitmap_with_u8_array( this: &Window, a_image: &mut [u8], ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "HtmlImageElement")] # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = createImageBitmap)] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`, `Window`*"] pub fn create_image_bitmap_with_html_image_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh( this: &Window, a_image: &HtmlImageElement, a_sx: i32, a_sy: i32, a_sw: i32, a_sh: i32, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "HtmlVideoElement")] # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = createImageBitmap)] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`, `Window`*"] pub fn create_image_bitmap_with_html_video_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh( this: &Window, a_image: &HtmlVideoElement, a_sx: i32, a_sy: i32, a_sw: i32, a_sh: i32, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "HtmlCanvasElement")] # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = createImageBitmap)] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `Window`*"] pub fn create_image_bitmap_with_html_canvas_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh( this: &Window, a_image: &HtmlCanvasElement, a_sx: i32, a_sy: i32, a_sw: i32, a_sh: i32, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "Blob")] # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = createImageBitmap)] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`, `Window`*"] pub fn create_image_bitmap_with_blob_and_a_sx_and_a_sy_and_a_sw_and_a_sh( this: &Window, a_image: &Blob, a_sx: i32, a_sy: i32, a_sw: i32, a_sh: i32, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "ImageData")] # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = createImageBitmap)] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageData`, `Window`*"] pub fn create_image_bitmap_with_image_data_and_a_sx_and_a_sy_and_a_sw_and_a_sh( this: &Window, a_image: &ImageData, a_sx: i32, a_sy: i32, a_sw: i32, a_sh: i32, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CanvasRenderingContext2d")] # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = createImageBitmap)] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `Window`*"] pub fn create_image_bitmap_with_canvas_rendering_context_2d_and_a_sx_and_a_sy_and_a_sw_and_a_sh( this: &Window, a_image: &CanvasRenderingContext2d, a_sx: i32, a_sy: i32, a_sw: i32, a_sh: i32, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "ImageBitmap")] # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = createImageBitmap)] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `Window`*"] pub fn create_image_bitmap_with_image_bitmap_and_a_sx_and_a_sy_and_a_sw_and_a_sh( this: &Window, a_image: &ImageBitmap, a_sx: i32, a_sy: i32, a_sw: i32, a_sh: i32, ) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = createImageBitmap)] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn create_image_bitmap_with_buffer_source_and_a_sx_and_a_sy_and_a_sw_and_a_sh( this: &Window, a_image: &::js_sys::Object, a_sx: i32, a_sy: i32, a_sw: i32, a_sh: i32, ) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = createImageBitmap)] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn create_image_bitmap_with_u8_array_and_a_sx_and_a_sy_and_a_sw_and_a_sh( this: &Window, a_image: &mut [u8], a_sx: i32, a_sy: i32, a_sw: i32, a_sh: i32, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "Request")] # [wasm_bindgen (method , structural , js_class = "Window" , js_name = fetch)] #[doc = "The `fetch()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/fetch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Request`, `Window`*"] pub fn fetch_with_request(this: &Window, input: &Request) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "Window" , js_name = fetch)] #[doc = "The `fetch()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/fetch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn fetch_with_str(this: &Window, input: &str) -> ::js_sys::Promise; #[cfg(all(feature = "Request", feature = "RequestInit",))] # [wasm_bindgen (method , structural , js_class = "Window" , js_name = fetch)] #[doc = "The `fetch()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/fetch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Request`, `RequestInit`, `Window`*"] pub fn fetch_with_request_and_init( this: &Window, input: &Request, init: &RequestInit, ) -> ::js_sys::Promise; #[cfg(feature = "RequestInit")] # [wasm_bindgen (method , structural , js_class = "Window" , js_name = fetch)] #[doc = "The `fetch()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/fetch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RequestInit`, `Window`*"] pub fn fetch_with_str_and_init( this: &Window, input: &str, init: &RequestInit, ) -> ::js_sys::Promise; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setInterval)] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_interval_with_callback( this: &Window, handler: &::js_sys::Function, ) -> Result; # [wasm_bindgen (catch , method , structural , variadic , js_class = "Window" , js_name = setInterval)] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_interval_with_callback_and_timeout_and_arguments( this: &Window, handler: &::js_sys::Function, timeout: i32, arguments: &::js_sys::Array, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setInterval)] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_interval_with_callback_and_timeout_and_arguments_0( this: &Window, handler: &::js_sys::Function, timeout: i32, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setInterval)] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_interval_with_callback_and_timeout_and_arguments_1( this: &Window, handler: &::js_sys::Function, timeout: i32, arguments_1: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setInterval)] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_interval_with_callback_and_timeout_and_arguments_2( this: &Window, handler: &::js_sys::Function, timeout: i32, arguments_1: &::wasm_bindgen::JsValue, arguments_2: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setInterval)] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_interval_with_callback_and_timeout_and_arguments_3( this: &Window, handler: &::js_sys::Function, timeout: i32, arguments_1: &::wasm_bindgen::JsValue, arguments_2: &::wasm_bindgen::JsValue, arguments_3: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setInterval)] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_interval_with_callback_and_timeout_and_arguments_4( this: &Window, handler: &::js_sys::Function, timeout: i32, arguments_1: &::wasm_bindgen::JsValue, arguments_2: &::wasm_bindgen::JsValue, arguments_3: &::wasm_bindgen::JsValue, arguments_4: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setInterval)] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_interval_with_callback_and_timeout_and_arguments_5( this: &Window, handler: &::js_sys::Function, timeout: i32, arguments_1: &::wasm_bindgen::JsValue, arguments_2: &::wasm_bindgen::JsValue, arguments_3: &::wasm_bindgen::JsValue, arguments_4: &::wasm_bindgen::JsValue, arguments_5: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setInterval)] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_interval_with_callback_and_timeout_and_arguments_6( this: &Window, handler: &::js_sys::Function, timeout: i32, arguments_1: &::wasm_bindgen::JsValue, arguments_2: &::wasm_bindgen::JsValue, arguments_3: &::wasm_bindgen::JsValue, arguments_4: &::wasm_bindgen::JsValue, arguments_5: &::wasm_bindgen::JsValue, arguments_6: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setInterval)] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_interval_with_callback_and_timeout_and_arguments_7( this: &Window, handler: &::js_sys::Function, timeout: i32, arguments_1: &::wasm_bindgen::JsValue, arguments_2: &::wasm_bindgen::JsValue, arguments_3: &::wasm_bindgen::JsValue, arguments_4: &::wasm_bindgen::JsValue, arguments_5: &::wasm_bindgen::JsValue, arguments_6: &::wasm_bindgen::JsValue, arguments_7: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setInterval)] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_interval_with_str(this: &Window, handler: &str) -> Result; # [wasm_bindgen (catch , method , structural , variadic , js_class = "Window" , js_name = setInterval)] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_interval_with_str_and_timeout_and_unused( this: &Window, handler: &str, timeout: i32, unused: &::js_sys::Array, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setInterval)] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_interval_with_str_and_timeout_and_unused_0( this: &Window, handler: &str, timeout: i32, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setInterval)] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_interval_with_str_and_timeout_and_unused_1( this: &Window, handler: &str, timeout: i32, unused_1: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setInterval)] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_interval_with_str_and_timeout_and_unused_2( this: &Window, handler: &str, timeout: i32, unused_1: &::wasm_bindgen::JsValue, unused_2: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setInterval)] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_interval_with_str_and_timeout_and_unused_3( this: &Window, handler: &str, timeout: i32, unused_1: &::wasm_bindgen::JsValue, unused_2: &::wasm_bindgen::JsValue, unused_3: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setInterval)] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_interval_with_str_and_timeout_and_unused_4( this: &Window, handler: &str, timeout: i32, unused_1: &::wasm_bindgen::JsValue, unused_2: &::wasm_bindgen::JsValue, unused_3: &::wasm_bindgen::JsValue, unused_4: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setInterval)] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_interval_with_str_and_timeout_and_unused_5( this: &Window, handler: &str, timeout: i32, unused_1: &::wasm_bindgen::JsValue, unused_2: &::wasm_bindgen::JsValue, unused_3: &::wasm_bindgen::JsValue, unused_4: &::wasm_bindgen::JsValue, unused_5: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setInterval)] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_interval_with_str_and_timeout_and_unused_6( this: &Window, handler: &str, timeout: i32, unused_1: &::wasm_bindgen::JsValue, unused_2: &::wasm_bindgen::JsValue, unused_3: &::wasm_bindgen::JsValue, unused_4: &::wasm_bindgen::JsValue, unused_5: &::wasm_bindgen::JsValue, unused_6: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setInterval)] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_interval_with_str_and_timeout_and_unused_7( this: &Window, handler: &str, timeout: i32, unused_1: &::wasm_bindgen::JsValue, unused_2: &::wasm_bindgen::JsValue, unused_3: &::wasm_bindgen::JsValue, unused_4: &::wasm_bindgen::JsValue, unused_5: &::wasm_bindgen::JsValue, unused_6: &::wasm_bindgen::JsValue, unused_7: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setTimeout)] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_timeout_with_callback( this: &Window, handler: &::js_sys::Function, ) -> Result; # [wasm_bindgen (catch , method , structural , variadic , js_class = "Window" , js_name = setTimeout)] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_timeout_with_callback_and_timeout_and_arguments( this: &Window, handler: &::js_sys::Function, timeout: i32, arguments: &::js_sys::Array, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setTimeout)] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_timeout_with_callback_and_timeout_and_arguments_0( this: &Window, handler: &::js_sys::Function, timeout: i32, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setTimeout)] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_timeout_with_callback_and_timeout_and_arguments_1( this: &Window, handler: &::js_sys::Function, timeout: i32, arguments_1: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setTimeout)] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_timeout_with_callback_and_timeout_and_arguments_2( this: &Window, handler: &::js_sys::Function, timeout: i32, arguments_1: &::wasm_bindgen::JsValue, arguments_2: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setTimeout)] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_timeout_with_callback_and_timeout_and_arguments_3( this: &Window, handler: &::js_sys::Function, timeout: i32, arguments_1: &::wasm_bindgen::JsValue, arguments_2: &::wasm_bindgen::JsValue, arguments_3: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setTimeout)] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_timeout_with_callback_and_timeout_and_arguments_4( this: &Window, handler: &::js_sys::Function, timeout: i32, arguments_1: &::wasm_bindgen::JsValue, arguments_2: &::wasm_bindgen::JsValue, arguments_3: &::wasm_bindgen::JsValue, arguments_4: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setTimeout)] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_timeout_with_callback_and_timeout_and_arguments_5( this: &Window, handler: &::js_sys::Function, timeout: i32, arguments_1: &::wasm_bindgen::JsValue, arguments_2: &::wasm_bindgen::JsValue, arguments_3: &::wasm_bindgen::JsValue, arguments_4: &::wasm_bindgen::JsValue, arguments_5: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setTimeout)] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_timeout_with_callback_and_timeout_and_arguments_6( this: &Window, handler: &::js_sys::Function, timeout: i32, arguments_1: &::wasm_bindgen::JsValue, arguments_2: &::wasm_bindgen::JsValue, arguments_3: &::wasm_bindgen::JsValue, arguments_4: &::wasm_bindgen::JsValue, arguments_5: &::wasm_bindgen::JsValue, arguments_6: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setTimeout)] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_timeout_with_callback_and_timeout_and_arguments_7( this: &Window, handler: &::js_sys::Function, timeout: i32, arguments_1: &::wasm_bindgen::JsValue, arguments_2: &::wasm_bindgen::JsValue, arguments_3: &::wasm_bindgen::JsValue, arguments_4: &::wasm_bindgen::JsValue, arguments_5: &::wasm_bindgen::JsValue, arguments_6: &::wasm_bindgen::JsValue, arguments_7: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setTimeout)] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_timeout_with_str(this: &Window, handler: &str) -> Result; # [wasm_bindgen (catch , method , structural , variadic , js_class = "Window" , js_name = setTimeout)] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_timeout_with_str_and_timeout_and_unused( this: &Window, handler: &str, timeout: i32, unused: &::js_sys::Array, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setTimeout)] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_timeout_with_str_and_timeout_and_unused_0( this: &Window, handler: &str, timeout: i32, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setTimeout)] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_timeout_with_str_and_timeout_and_unused_1( this: &Window, handler: &str, timeout: i32, unused_1: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setTimeout)] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_timeout_with_str_and_timeout_and_unused_2( this: &Window, handler: &str, timeout: i32, unused_1: &::wasm_bindgen::JsValue, unused_2: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setTimeout)] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_timeout_with_str_and_timeout_and_unused_3( this: &Window, handler: &str, timeout: i32, unused_1: &::wasm_bindgen::JsValue, unused_2: &::wasm_bindgen::JsValue, unused_3: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setTimeout)] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_timeout_with_str_and_timeout_and_unused_4( this: &Window, handler: &str, timeout: i32, unused_1: &::wasm_bindgen::JsValue, unused_2: &::wasm_bindgen::JsValue, unused_3: &::wasm_bindgen::JsValue, unused_4: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setTimeout)] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_timeout_with_str_and_timeout_and_unused_5( this: &Window, handler: &str, timeout: i32, unused_1: &::wasm_bindgen::JsValue, unused_2: &::wasm_bindgen::JsValue, unused_3: &::wasm_bindgen::JsValue, unused_4: &::wasm_bindgen::JsValue, unused_5: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setTimeout)] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_timeout_with_str_and_timeout_and_unused_6( this: &Window, handler: &str, timeout: i32, unused_1: &::wasm_bindgen::JsValue, unused_2: &::wasm_bindgen::JsValue, unused_3: &::wasm_bindgen::JsValue, unused_4: &::wasm_bindgen::JsValue, unused_5: &::wasm_bindgen::JsValue, unused_6: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = setTimeout)] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_timeout_with_str_and_timeout_and_unused_7( this: &Window, handler: &str, timeout: i32, unused_1: &::wasm_bindgen::JsValue, unused_2: &::wasm_bindgen::JsValue, unused_3: &::wasm_bindgen::JsValue, unused_4: &::wasm_bindgen::JsValue, unused_5: &::wasm_bindgen::JsValue, unused_6: &::wasm_bindgen::JsValue, unused_7: &::wasm_bindgen::JsValue, ) -> Result; } web-sys-0.3.55/src/features/gen_WindowClient.rs000064400000000000000000000046500072674642500175560ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Client , extends = :: js_sys :: Object , js_name = WindowClient , typescript_type = "WindowClient")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WindowClient` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WindowClient)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WindowClient`*"] pub type WindowClient; #[cfg(feature = "VisibilityState")] # [wasm_bindgen (structural , method , getter , js_class = "WindowClient" , js_name = visibilityState)] #[doc = "Getter for the `visibilityState` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WindowClient/visibilityState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VisibilityState`, `WindowClient`*"] pub fn visibility_state(this: &WindowClient) -> VisibilityState; # [wasm_bindgen (structural , method , getter , js_class = "WindowClient" , js_name = focused)] #[doc = "Getter for the `focused` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WindowClient/focused)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WindowClient`*"] pub fn focused(this: &WindowClient) -> bool; # [wasm_bindgen (catch , method , structural , js_class = "WindowClient" , js_name = focus)] #[doc = "The `focus()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WindowClient/focus)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WindowClient`*"] pub fn focus(this: &WindowClient) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WindowClient" , js_name = navigate)] #[doc = "The `navigate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WindowClient/navigate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WindowClient`*"] pub fn navigate(this: &WindowClient, url: &str) -> Result<::js_sys::Promise, JsValue>; } web-sys-0.3.55/src/features/gen_Worker.rs000064400000000000000000000130200072674642500164100ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = Worker , typescript_type = "Worker")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Worker` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Worker)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Worker`*"] pub type Worker; # [wasm_bindgen (structural , method , getter , js_class = "Worker" , js_name = onmessage)] #[doc = "Getter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Worker/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Worker`*"] pub fn onmessage(this: &Worker) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Worker" , js_name = onmessage)] #[doc = "Setter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Worker/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Worker`*"] pub fn set_onmessage(this: &Worker, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Worker" , js_name = onmessageerror)] #[doc = "Getter for the `onmessageerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Worker/onmessageerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Worker`*"] pub fn onmessageerror(this: &Worker) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Worker" , js_name = onmessageerror)] #[doc = "Setter for the `onmessageerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Worker/onmessageerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Worker`*"] pub fn set_onmessageerror(this: &Worker, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "Worker" , js_name = onerror)] #[doc = "Getter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Worker/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Worker`*"] pub fn onerror(this: &Worker) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Worker" , js_name = onerror)] #[doc = "Setter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Worker/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Worker`*"] pub fn set_onerror(this: &Worker, value: Option<&::js_sys::Function>); #[wasm_bindgen(catch, constructor, js_class = "Worker")] #[doc = "The `new Worker(..)` constructor, creating a new instance of `Worker`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Worker/Worker)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Worker`*"] pub fn new(script_url: &str) -> Result; #[cfg(feature = "WorkerOptions")] #[wasm_bindgen(catch, constructor, js_class = "Worker")] #[doc = "The `new Worker(..)` constructor, creating a new instance of `Worker`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Worker/Worker)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Worker`, `WorkerOptions`*"] pub fn new_with_options(script_url: &str, options: &WorkerOptions) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "Worker" , js_name = postMessage)] #[doc = "The `postMessage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Worker/postMessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Worker`*"] pub fn post_message(this: &Worker, message: &::wasm_bindgen::JsValue) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Worker" , js_name = postMessage)] #[doc = "The `postMessage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Worker/postMessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Worker`*"] pub fn post_message_with_transfer( this: &Worker, message: &::wasm_bindgen::JsValue, transfer: &::wasm_bindgen::JsValue, ) -> Result<(), JsValue>; # [wasm_bindgen (method , structural , js_class = "Worker" , js_name = terminate)] #[doc = "The `terminate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Worker/terminate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Worker`*"] pub fn terminate(this: &Worker); } web-sys-0.3.55/src/features/gen_WorkerDebuggerGlobalScope.rs000064400000000000000000000206110072674642500221740ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = WorkerDebuggerGlobalScope , typescript_type = "WorkerDebuggerGlobalScope")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WorkerDebuggerGlobalScope` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"] pub type WorkerDebuggerGlobalScope; # [wasm_bindgen (structural , catch , method , getter , js_class = "WorkerDebuggerGlobalScope" , js_name = global)] #[doc = "Getter for the `global` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/global)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"] pub fn global(this: &WorkerDebuggerGlobalScope) -> Result<::js_sys::Object, JsValue>; # [wasm_bindgen (structural , method , getter , js_class = "WorkerDebuggerGlobalScope" , js_name = onmessage)] #[doc = "Getter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"] pub fn onmessage(this: &WorkerDebuggerGlobalScope) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "WorkerDebuggerGlobalScope" , js_name = onmessage)] #[doc = "Setter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"] pub fn set_onmessage(this: &WorkerDebuggerGlobalScope, value: Option<&::js_sys::Function>); # [wasm_bindgen (catch , method , structural , js_class = "WorkerDebuggerGlobalScope" , js_name = createSandbox)] #[doc = "The `createSandbox()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/createSandbox)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"] pub fn create_sandbox( this: &WorkerDebuggerGlobalScope, name: &str, prototype: &::js_sys::Object, ) -> Result<::js_sys::Object, JsValue>; # [wasm_bindgen (method , structural , js_class = "WorkerDebuggerGlobalScope" , js_name = dump)] #[doc = "The `dump()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/dump)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"] pub fn dump(this: &WorkerDebuggerGlobalScope); # [wasm_bindgen (method , structural , js_class = "WorkerDebuggerGlobalScope" , js_name = dump)] #[doc = "The `dump()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/dump)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"] pub fn dump_with_string(this: &WorkerDebuggerGlobalScope, string: &str); # [wasm_bindgen (method , structural , js_class = "WorkerDebuggerGlobalScope" , js_name = enterEventLoop)] #[doc = "The `enterEventLoop()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/enterEventLoop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"] pub fn enter_event_loop(this: &WorkerDebuggerGlobalScope); # [wasm_bindgen (method , structural , js_class = "WorkerDebuggerGlobalScope" , js_name = leaveEventLoop)] #[doc = "The `leaveEventLoop()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/leaveEventLoop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"] pub fn leave_event_loop(this: &WorkerDebuggerGlobalScope); # [wasm_bindgen (catch , method , structural , js_class = "WorkerDebuggerGlobalScope" , js_name = loadSubScript)] #[doc = "The `loadSubScript()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/loadSubScript)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"] pub fn load_sub_script(this: &WorkerDebuggerGlobalScope, url: &str) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WorkerDebuggerGlobalScope" , js_name = loadSubScript)] #[doc = "The `loadSubScript()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/loadSubScript)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"] pub fn load_sub_script_with_sandbox( this: &WorkerDebuggerGlobalScope, url: &str, sandbox: &::js_sys::Object, ) -> Result<(), JsValue>; # [wasm_bindgen (method , structural , js_class = "WorkerDebuggerGlobalScope" , js_name = postMessage)] #[doc = "The `postMessage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/postMessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"] pub fn post_message(this: &WorkerDebuggerGlobalScope, message: &str); # [wasm_bindgen (method , structural , js_class = "WorkerDebuggerGlobalScope" , js_name = reportError)] #[doc = "The `reportError()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/reportError)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"] pub fn report_error(this: &WorkerDebuggerGlobalScope, message: &str); # [wasm_bindgen (catch , method , structural , js_class = "WorkerDebuggerGlobalScope" , js_name = retrieveConsoleEvents)] #[doc = "The `retrieveConsoleEvents()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/retrieveConsoleEvents)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"] pub fn retrieve_console_events( this: &WorkerDebuggerGlobalScope, ) -> Result<::js_sys::Array, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WorkerDebuggerGlobalScope" , js_name = setConsoleEventHandler)] #[doc = "The `setConsoleEventHandler()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/setConsoleEventHandler)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"] pub fn set_console_event_handler( this: &WorkerDebuggerGlobalScope, handler: Option<&::js_sys::Function>, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WorkerDebuggerGlobalScope" , js_name = setImmediate)] #[doc = "The `setImmediate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/setImmediate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"] pub fn set_immediate( this: &WorkerDebuggerGlobalScope, handler: &::js_sys::Function, ) -> Result<(), JsValue>; } web-sys-0.3.55/src/features/gen_WorkerGlobalScope.rs000064400000000000000000001614260072674642500205410ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = WorkerGlobalScope , typescript_type = "WorkerGlobalScope")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WorkerGlobalScope` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub type WorkerGlobalScope; # [wasm_bindgen (structural , method , getter , js_class = "WorkerGlobalScope" , js_name = self)] #[doc = "Getter for the `self` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/self)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn self_(this: &WorkerGlobalScope) -> WorkerGlobalScope; #[cfg(feature = "WorkerLocation")] # [wasm_bindgen (structural , method , getter , js_class = "WorkerGlobalScope" , js_name = location)] #[doc = "Getter for the `location` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/location)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`, `WorkerLocation`*"] pub fn location(this: &WorkerGlobalScope) -> WorkerLocation; #[cfg(feature = "WorkerNavigator")] # [wasm_bindgen (structural , method , getter , js_class = "WorkerGlobalScope" , js_name = navigator)] #[doc = "Getter for the `navigator` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/navigator)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`, `WorkerNavigator`*"] pub fn navigator(this: &WorkerGlobalScope) -> WorkerNavigator; # [wasm_bindgen (structural , method , getter , js_class = "WorkerGlobalScope" , js_name = onerror)] #[doc = "Getter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn onerror(this: &WorkerGlobalScope) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "WorkerGlobalScope" , js_name = onerror)] #[doc = "Setter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn set_onerror(this: &WorkerGlobalScope, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "WorkerGlobalScope" , js_name = onoffline)] #[doc = "Getter for the `onoffline` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/onoffline)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn onoffline(this: &WorkerGlobalScope) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "WorkerGlobalScope" , js_name = onoffline)] #[doc = "Setter for the `onoffline` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/onoffline)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn set_onoffline(this: &WorkerGlobalScope, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "WorkerGlobalScope" , js_name = ononline)] #[doc = "Getter for the `ononline` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/ononline)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn ononline(this: &WorkerGlobalScope) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "WorkerGlobalScope" , js_name = ononline)] #[doc = "Setter for the `ononline` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/ononline)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn set_ononline(this: &WorkerGlobalScope, value: Option<&::js_sys::Function>); #[cfg(feature = "Crypto")] # [wasm_bindgen (structural , catch , method , getter , js_class = "WorkerGlobalScope" , js_name = crypto)] #[doc = "Getter for the `crypto` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/crypto)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Crypto`, `WorkerGlobalScope`*"] pub fn crypto(this: &WorkerGlobalScope) -> Result; # [wasm_bindgen (structural , method , getter , js_class = "WorkerGlobalScope" , js_name = origin)] #[doc = "Getter for the `origin` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/origin)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn origin(this: &WorkerGlobalScope) -> String; # [wasm_bindgen (structural , method , getter , js_class = "WorkerGlobalScope" , js_name = isSecureContext)] #[doc = "Getter for the `isSecureContext` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/isSecureContext)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn is_secure_context(this: &WorkerGlobalScope) -> bool; #[cfg(feature = "IdbFactory")] # [wasm_bindgen (structural , catch , method , getter , js_class = "WorkerGlobalScope" , js_name = indexedDB)] #[doc = "Getter for the `indexedDB` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/indexedDB)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFactory`, `WorkerGlobalScope`*"] pub fn indexed_db(this: &WorkerGlobalScope) -> Result, JsValue>; #[cfg(feature = "CacheStorage")] # [wasm_bindgen (structural , catch , method , getter , js_class = "WorkerGlobalScope" , js_name = caches)] #[doc = "Getter for the `caches` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/caches)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CacheStorage`, `WorkerGlobalScope`*"] pub fn caches(this: &WorkerGlobalScope) -> Result; # [wasm_bindgen (catch , method , structural , variadic , js_class = "WorkerGlobalScope" , js_name = importScripts)] #[doc = "The `importScripts()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/importScripts)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn import_scripts(this: &WorkerGlobalScope, urls: &::js_sys::Array) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = importScripts)] #[doc = "The `importScripts()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/importScripts)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn import_scripts_0(this: &WorkerGlobalScope) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = importScripts)] #[doc = "The `importScripts()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/importScripts)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn import_scripts_1(this: &WorkerGlobalScope, urls_1: &str) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = importScripts)] #[doc = "The `importScripts()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/importScripts)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn import_scripts_2( this: &WorkerGlobalScope, urls_1: &str, urls_2: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = importScripts)] #[doc = "The `importScripts()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/importScripts)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn import_scripts_3( this: &WorkerGlobalScope, urls_1: &str, urls_2: &str, urls_3: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = importScripts)] #[doc = "The `importScripts()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/importScripts)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn import_scripts_4( this: &WorkerGlobalScope, urls_1: &str, urls_2: &str, urls_3: &str, urls_4: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = importScripts)] #[doc = "The `importScripts()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/importScripts)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn import_scripts_5( this: &WorkerGlobalScope, urls_1: &str, urls_2: &str, urls_3: &str, urls_4: &str, urls_5: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = importScripts)] #[doc = "The `importScripts()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/importScripts)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn import_scripts_6( this: &WorkerGlobalScope, urls_1: &str, urls_2: &str, urls_3: &str, urls_4: &str, urls_5: &str, urls_6: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = importScripts)] #[doc = "The `importScripts()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/importScripts)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn import_scripts_7( this: &WorkerGlobalScope, urls_1: &str, urls_2: &str, urls_3: &str, urls_4: &str, urls_5: &str, urls_6: &str, urls_7: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = atob)] #[doc = "The `atob()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/atob)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn atob(this: &WorkerGlobalScope, atob: &str) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = btoa)] #[doc = "The `btoa()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/btoa)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn btoa(this: &WorkerGlobalScope, btoa: &str) -> Result; # [wasm_bindgen (method , structural , js_class = "WorkerGlobalScope" , js_name = clearInterval)] #[doc = "The `clearInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/clearInterval)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn clear_interval(this: &WorkerGlobalScope); # [wasm_bindgen (method , structural , js_class = "WorkerGlobalScope" , js_name = clearInterval)] #[doc = "The `clearInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/clearInterval)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn clear_interval_with_handle(this: &WorkerGlobalScope, handle: i32); # [wasm_bindgen (method , structural , js_class = "WorkerGlobalScope" , js_name = clearTimeout)] #[doc = "The `clearTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/clearTimeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn clear_timeout(this: &WorkerGlobalScope); # [wasm_bindgen (method , structural , js_class = "WorkerGlobalScope" , js_name = clearTimeout)] #[doc = "The `clearTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/clearTimeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn clear_timeout_with_handle(this: &WorkerGlobalScope, handle: i32); #[cfg(feature = "HtmlImageElement")] # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`, `WorkerGlobalScope`*"] pub fn create_image_bitmap_with_html_image_element( this: &WorkerGlobalScope, a_image: &HtmlImageElement, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "HtmlVideoElement")] # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`, `WorkerGlobalScope`*"] pub fn create_image_bitmap_with_html_video_element( this: &WorkerGlobalScope, a_image: &HtmlVideoElement, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "HtmlCanvasElement")] # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `WorkerGlobalScope`*"] pub fn create_image_bitmap_with_html_canvas_element( this: &WorkerGlobalScope, a_image: &HtmlCanvasElement, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "Blob")] # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`, `WorkerGlobalScope`*"] pub fn create_image_bitmap_with_blob( this: &WorkerGlobalScope, a_image: &Blob, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "ImageData")] # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageData`, `WorkerGlobalScope`*"] pub fn create_image_bitmap_with_image_data( this: &WorkerGlobalScope, a_image: &ImageData, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CanvasRenderingContext2d")] # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `WorkerGlobalScope`*"] pub fn create_image_bitmap_with_canvas_rendering_context_2d( this: &WorkerGlobalScope, a_image: &CanvasRenderingContext2d, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "ImageBitmap")] # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `WorkerGlobalScope`*"] pub fn create_image_bitmap_with_image_bitmap( this: &WorkerGlobalScope, a_image: &ImageBitmap, ) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn create_image_bitmap_with_buffer_source( this: &WorkerGlobalScope, a_image: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn create_image_bitmap_with_u8_array( this: &WorkerGlobalScope, a_image: &mut [u8], ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "HtmlImageElement")] # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`, `WorkerGlobalScope`*"] pub fn create_image_bitmap_with_html_image_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh( this: &WorkerGlobalScope, a_image: &HtmlImageElement, a_sx: i32, a_sy: i32, a_sw: i32, a_sh: i32, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "HtmlVideoElement")] # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`, `WorkerGlobalScope`*"] pub fn create_image_bitmap_with_html_video_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh( this: &WorkerGlobalScope, a_image: &HtmlVideoElement, a_sx: i32, a_sy: i32, a_sw: i32, a_sh: i32, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "HtmlCanvasElement")] # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `WorkerGlobalScope`*"] pub fn create_image_bitmap_with_html_canvas_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh( this: &WorkerGlobalScope, a_image: &HtmlCanvasElement, a_sx: i32, a_sy: i32, a_sw: i32, a_sh: i32, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "Blob")] # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`, `WorkerGlobalScope`*"] pub fn create_image_bitmap_with_blob_and_a_sx_and_a_sy_and_a_sw_and_a_sh( this: &WorkerGlobalScope, a_image: &Blob, a_sx: i32, a_sy: i32, a_sw: i32, a_sh: i32, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "ImageData")] # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageData`, `WorkerGlobalScope`*"] pub fn create_image_bitmap_with_image_data_and_a_sx_and_a_sy_and_a_sw_and_a_sh( this: &WorkerGlobalScope, a_image: &ImageData, a_sx: i32, a_sy: i32, a_sw: i32, a_sh: i32, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "CanvasRenderingContext2d")] # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `WorkerGlobalScope`*"] pub fn create_image_bitmap_with_canvas_rendering_context_2d_and_a_sx_and_a_sy_and_a_sw_and_a_sh( this: &WorkerGlobalScope, a_image: &CanvasRenderingContext2d, a_sx: i32, a_sy: i32, a_sw: i32, a_sh: i32, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "ImageBitmap")] # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `WorkerGlobalScope`*"] pub fn create_image_bitmap_with_image_bitmap_and_a_sx_and_a_sy_and_a_sw_and_a_sh( this: &WorkerGlobalScope, a_image: &ImageBitmap, a_sx: i32, a_sy: i32, a_sw: i32, a_sh: i32, ) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn create_image_bitmap_with_buffer_source_and_a_sx_and_a_sy_and_a_sw_and_a_sh( this: &WorkerGlobalScope, a_image: &::js_sys::Object, a_sx: i32, a_sy: i32, a_sw: i32, a_sh: i32, ) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap)] #[doc = "The `createImageBitmap()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn create_image_bitmap_with_u8_array_and_a_sx_and_a_sy_and_a_sw_and_a_sh( this: &WorkerGlobalScope, a_image: &mut [u8], a_sx: i32, a_sy: i32, a_sw: i32, a_sh: i32, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "Request")] # [wasm_bindgen (method , structural , js_class = "WorkerGlobalScope" , js_name = fetch)] #[doc = "The `fetch()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/fetch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Request`, `WorkerGlobalScope`*"] pub fn fetch_with_request(this: &WorkerGlobalScope, input: &Request) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "WorkerGlobalScope" , js_name = fetch)] #[doc = "The `fetch()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/fetch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn fetch_with_str(this: &WorkerGlobalScope, input: &str) -> ::js_sys::Promise; #[cfg(all(feature = "Request", feature = "RequestInit",))] # [wasm_bindgen (method , structural , js_class = "WorkerGlobalScope" , js_name = fetch)] #[doc = "The `fetch()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/fetch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Request`, `RequestInit`, `WorkerGlobalScope`*"] pub fn fetch_with_request_and_init( this: &WorkerGlobalScope, input: &Request, init: &RequestInit, ) -> ::js_sys::Promise; #[cfg(feature = "RequestInit")] # [wasm_bindgen (method , structural , js_class = "WorkerGlobalScope" , js_name = fetch)] #[doc = "The `fetch()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/fetch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RequestInit`, `WorkerGlobalScope`*"] pub fn fetch_with_str_and_init( this: &WorkerGlobalScope, input: &str, init: &RequestInit, ) -> ::js_sys::Promise; # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn set_interval_with_callback( this: &WorkerGlobalScope, handler: &::js_sys::Function, ) -> Result; # [wasm_bindgen (catch , method , structural , variadic , js_class = "WorkerGlobalScope" , js_name = setInterval)] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn set_interval_with_callback_and_timeout_and_arguments( this: &WorkerGlobalScope, handler: &::js_sys::Function, timeout: i32, arguments: &::js_sys::Array, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn set_interval_with_callback_and_timeout_and_arguments_0( this: &WorkerGlobalScope, handler: &::js_sys::Function, timeout: i32, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn set_interval_with_callback_and_timeout_and_arguments_1( this: &WorkerGlobalScope, handler: &::js_sys::Function, timeout: i32, arguments_1: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn set_interval_with_callback_and_timeout_and_arguments_2( this: &WorkerGlobalScope, handler: &::js_sys::Function, timeout: i32, arguments_1: &::wasm_bindgen::JsValue, arguments_2: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn set_interval_with_callback_and_timeout_and_arguments_3( this: &WorkerGlobalScope, handler: &::js_sys::Function, timeout: i32, arguments_1: &::wasm_bindgen::JsValue, arguments_2: &::wasm_bindgen::JsValue, arguments_3: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn set_interval_with_callback_and_timeout_and_arguments_4( this: &WorkerGlobalScope, handler: &::js_sys::Function, timeout: i32, arguments_1: &::wasm_bindgen::JsValue, arguments_2: &::wasm_bindgen::JsValue, arguments_3: &::wasm_bindgen::JsValue, arguments_4: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn set_interval_with_callback_and_timeout_and_arguments_5( this: &WorkerGlobalScope, handler: &::js_sys::Function, timeout: i32, arguments_1: &::wasm_bindgen::JsValue, arguments_2: &::wasm_bindgen::JsValue, arguments_3: &::wasm_bindgen::JsValue, arguments_4: &::wasm_bindgen::JsValue, arguments_5: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn set_interval_with_callback_and_timeout_and_arguments_6( this: &WorkerGlobalScope, handler: &::js_sys::Function, timeout: i32, arguments_1: &::wasm_bindgen::JsValue, arguments_2: &::wasm_bindgen::JsValue, arguments_3: &::wasm_bindgen::JsValue, arguments_4: &::wasm_bindgen::JsValue, arguments_5: &::wasm_bindgen::JsValue, arguments_6: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn set_interval_with_callback_and_timeout_and_arguments_7( this: &WorkerGlobalScope, handler: &::js_sys::Function, timeout: i32, arguments_1: &::wasm_bindgen::JsValue, arguments_2: &::wasm_bindgen::JsValue, arguments_3: &::wasm_bindgen::JsValue, arguments_4: &::wasm_bindgen::JsValue, arguments_5: &::wasm_bindgen::JsValue, arguments_6: &::wasm_bindgen::JsValue, arguments_7: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn set_interval_with_str(this: &WorkerGlobalScope, handler: &str) -> Result; # [wasm_bindgen (catch , method , structural , variadic , js_class = "WorkerGlobalScope" , js_name = setInterval)] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn set_interval_with_str_and_timeout_and_unused( this: &WorkerGlobalScope, handler: &str, timeout: i32, unused: &::js_sys::Array, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn set_interval_with_str_and_timeout_and_unused_0( this: &WorkerGlobalScope, handler: &str, timeout: i32, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn set_interval_with_str_and_timeout_and_unused_1( this: &WorkerGlobalScope, handler: &str, timeout: i32, unused_1: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn set_interval_with_str_and_timeout_and_unused_2( this: &WorkerGlobalScope, handler: &str, timeout: i32, unused_1: &::wasm_bindgen::JsValue, unused_2: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn set_interval_with_str_and_timeout_and_unused_3( this: &WorkerGlobalScope, handler: &str, timeout: i32, unused_1: &::wasm_bindgen::JsValue, unused_2: &::wasm_bindgen::JsValue, unused_3: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn set_interval_with_str_and_timeout_and_unused_4( this: &WorkerGlobalScope, handler: &str, timeout: i32, unused_1: &::wasm_bindgen::JsValue, unused_2: &::wasm_bindgen::JsValue, unused_3: &::wasm_bindgen::JsValue, unused_4: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn set_interval_with_str_and_timeout_and_unused_5( this: &WorkerGlobalScope, handler: &str, timeout: i32, unused_1: &::wasm_bindgen::JsValue, unused_2: &::wasm_bindgen::JsValue, unused_3: &::wasm_bindgen::JsValue, unused_4: &::wasm_bindgen::JsValue, unused_5: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn set_interval_with_str_and_timeout_and_unused_6( this: &WorkerGlobalScope, handler: &str, timeout: i32, unused_1: &::wasm_bindgen::JsValue, unused_2: &::wasm_bindgen::JsValue, unused_3: &::wasm_bindgen::JsValue, unused_4: &::wasm_bindgen::JsValue, unused_5: &::wasm_bindgen::JsValue, unused_6: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval)] #[doc = "The `setInterval()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn set_interval_with_str_and_timeout_and_unused_7( this: &WorkerGlobalScope, handler: &str, timeout: i32, unused_1: &::wasm_bindgen::JsValue, unused_2: &::wasm_bindgen::JsValue, unused_3: &::wasm_bindgen::JsValue, unused_4: &::wasm_bindgen::JsValue, unused_5: &::wasm_bindgen::JsValue, unused_6: &::wasm_bindgen::JsValue, unused_7: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn set_timeout_with_callback( this: &WorkerGlobalScope, handler: &::js_sys::Function, ) -> Result; # [wasm_bindgen (catch , method , structural , variadic , js_class = "WorkerGlobalScope" , js_name = setTimeout)] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn set_timeout_with_callback_and_timeout_and_arguments( this: &WorkerGlobalScope, handler: &::js_sys::Function, timeout: i32, arguments: &::js_sys::Array, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn set_timeout_with_callback_and_timeout_and_arguments_0( this: &WorkerGlobalScope, handler: &::js_sys::Function, timeout: i32, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn set_timeout_with_callback_and_timeout_and_arguments_1( this: &WorkerGlobalScope, handler: &::js_sys::Function, timeout: i32, arguments_1: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn set_timeout_with_callback_and_timeout_and_arguments_2( this: &WorkerGlobalScope, handler: &::js_sys::Function, timeout: i32, arguments_1: &::wasm_bindgen::JsValue, arguments_2: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn set_timeout_with_callback_and_timeout_and_arguments_3( this: &WorkerGlobalScope, handler: &::js_sys::Function, timeout: i32, arguments_1: &::wasm_bindgen::JsValue, arguments_2: &::wasm_bindgen::JsValue, arguments_3: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn set_timeout_with_callback_and_timeout_and_arguments_4( this: &WorkerGlobalScope, handler: &::js_sys::Function, timeout: i32, arguments_1: &::wasm_bindgen::JsValue, arguments_2: &::wasm_bindgen::JsValue, arguments_3: &::wasm_bindgen::JsValue, arguments_4: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn set_timeout_with_callback_and_timeout_and_arguments_5( this: &WorkerGlobalScope, handler: &::js_sys::Function, timeout: i32, arguments_1: &::wasm_bindgen::JsValue, arguments_2: &::wasm_bindgen::JsValue, arguments_3: &::wasm_bindgen::JsValue, arguments_4: &::wasm_bindgen::JsValue, arguments_5: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn set_timeout_with_callback_and_timeout_and_arguments_6( this: &WorkerGlobalScope, handler: &::js_sys::Function, timeout: i32, arguments_1: &::wasm_bindgen::JsValue, arguments_2: &::wasm_bindgen::JsValue, arguments_3: &::wasm_bindgen::JsValue, arguments_4: &::wasm_bindgen::JsValue, arguments_5: &::wasm_bindgen::JsValue, arguments_6: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn set_timeout_with_callback_and_timeout_and_arguments_7( this: &WorkerGlobalScope, handler: &::js_sys::Function, timeout: i32, arguments_1: &::wasm_bindgen::JsValue, arguments_2: &::wasm_bindgen::JsValue, arguments_3: &::wasm_bindgen::JsValue, arguments_4: &::wasm_bindgen::JsValue, arguments_5: &::wasm_bindgen::JsValue, arguments_6: &::wasm_bindgen::JsValue, arguments_7: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn set_timeout_with_str(this: &WorkerGlobalScope, handler: &str) -> Result; # [wasm_bindgen (catch , method , structural , variadic , js_class = "WorkerGlobalScope" , js_name = setTimeout)] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn set_timeout_with_str_and_timeout_and_unused( this: &WorkerGlobalScope, handler: &str, timeout: i32, unused: &::js_sys::Array, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn set_timeout_with_str_and_timeout_and_unused_0( this: &WorkerGlobalScope, handler: &str, timeout: i32, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn set_timeout_with_str_and_timeout_and_unused_1( this: &WorkerGlobalScope, handler: &str, timeout: i32, unused_1: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn set_timeout_with_str_and_timeout_and_unused_2( this: &WorkerGlobalScope, handler: &str, timeout: i32, unused_1: &::wasm_bindgen::JsValue, unused_2: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn set_timeout_with_str_and_timeout_and_unused_3( this: &WorkerGlobalScope, handler: &str, timeout: i32, unused_1: &::wasm_bindgen::JsValue, unused_2: &::wasm_bindgen::JsValue, unused_3: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn set_timeout_with_str_and_timeout_and_unused_4( this: &WorkerGlobalScope, handler: &str, timeout: i32, unused_1: &::wasm_bindgen::JsValue, unused_2: &::wasm_bindgen::JsValue, unused_3: &::wasm_bindgen::JsValue, unused_4: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn set_timeout_with_str_and_timeout_and_unused_5( this: &WorkerGlobalScope, handler: &str, timeout: i32, unused_1: &::wasm_bindgen::JsValue, unused_2: &::wasm_bindgen::JsValue, unused_3: &::wasm_bindgen::JsValue, unused_4: &::wasm_bindgen::JsValue, unused_5: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn set_timeout_with_str_and_timeout_and_unused_6( this: &WorkerGlobalScope, handler: &str, timeout: i32, unused_1: &::wasm_bindgen::JsValue, unused_2: &::wasm_bindgen::JsValue, unused_3: &::wasm_bindgen::JsValue, unused_4: &::wasm_bindgen::JsValue, unused_5: &::wasm_bindgen::JsValue, unused_6: &::wasm_bindgen::JsValue, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout)] #[doc = "The `setTimeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn set_timeout_with_str_and_timeout_and_unused_7( this: &WorkerGlobalScope, handler: &str, timeout: i32, unused_1: &::wasm_bindgen::JsValue, unused_2: &::wasm_bindgen::JsValue, unused_3: &::wasm_bindgen::JsValue, unused_4: &::wasm_bindgen::JsValue, unused_5: &::wasm_bindgen::JsValue, unused_6: &::wasm_bindgen::JsValue, unused_7: &::wasm_bindgen::JsValue, ) -> Result; } web-sys-0.3.55/src/features/gen_WorkerLocation.rs000064400000000000000000000110060072674642500201030ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WorkerLocation , typescript_type = "WorkerLocation")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WorkerLocation` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerLocation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerLocation`*"] pub type WorkerLocation; # [wasm_bindgen (structural , method , getter , js_class = "WorkerLocation" , js_name = href)] #[doc = "Getter for the `href` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerLocation/href)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerLocation`*"] pub fn href(this: &WorkerLocation) -> String; # [wasm_bindgen (structural , method , getter , js_class = "WorkerLocation" , js_name = origin)] #[doc = "Getter for the `origin` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerLocation/origin)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerLocation`*"] pub fn origin(this: &WorkerLocation) -> String; # [wasm_bindgen (structural , method , getter , js_class = "WorkerLocation" , js_name = protocol)] #[doc = "Getter for the `protocol` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerLocation/protocol)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerLocation`*"] pub fn protocol(this: &WorkerLocation) -> String; # [wasm_bindgen (structural , method , getter , js_class = "WorkerLocation" , js_name = host)] #[doc = "Getter for the `host` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerLocation/host)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerLocation`*"] pub fn host(this: &WorkerLocation) -> String; # [wasm_bindgen (structural , method , getter , js_class = "WorkerLocation" , js_name = hostname)] #[doc = "Getter for the `hostname` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerLocation/hostname)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerLocation`*"] pub fn hostname(this: &WorkerLocation) -> String; # [wasm_bindgen (structural , method , getter , js_class = "WorkerLocation" , js_name = port)] #[doc = "Getter for the `port` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerLocation/port)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerLocation`*"] pub fn port(this: &WorkerLocation) -> String; # [wasm_bindgen (structural , method , getter , js_class = "WorkerLocation" , js_name = pathname)] #[doc = "Getter for the `pathname` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerLocation/pathname)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerLocation`*"] pub fn pathname(this: &WorkerLocation) -> String; # [wasm_bindgen (structural , method , getter , js_class = "WorkerLocation" , js_name = search)] #[doc = "Getter for the `search` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerLocation/search)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerLocation`*"] pub fn search(this: &WorkerLocation) -> String; # [wasm_bindgen (structural , method , getter , js_class = "WorkerLocation" , js_name = hash)] #[doc = "Getter for the `hash` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerLocation/hash)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerLocation`*"] pub fn hash(this: &WorkerLocation) -> String; } web-sys-0.3.55/src/features/gen_WorkerNavigator.rs000064400000000000000000000214470072674642500202770ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WorkerNavigator , typescript_type = "WorkerNavigator")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WorkerNavigator` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerNavigator`*"] pub type WorkerNavigator; #[cfg(feature = "NetworkInformation")] # [wasm_bindgen (structural , catch , method , getter , js_class = "WorkerNavigator" , js_name = connection)] #[doc = "Getter for the `connection` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator/connection)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkInformation`, `WorkerNavigator`*"] pub fn connection(this: &WorkerNavigator) -> Result; #[cfg(feature = "MediaCapabilities")] # [wasm_bindgen (structural , method , getter , js_class = "WorkerNavigator" , js_name = mediaCapabilities)] #[doc = "Getter for the `mediaCapabilities` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator/mediaCapabilities)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaCapabilities`, `WorkerNavigator`*"] pub fn media_capabilities(this: &WorkerNavigator) -> MediaCapabilities; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "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://rustwasm.github.io/docs/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)] #[cfg(feature = "Gpu")] # [wasm_bindgen (structural , method , getter , js_class = "WorkerNavigator" , js_name = gpu)] #[doc = "Getter for the `gpu` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator/gpu)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Gpu`, `WorkerNavigator`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn gpu(this: &WorkerNavigator) -> Gpu; # [wasm_bindgen (structural , catch , method , getter , js_class = "WorkerNavigator" , js_name = appCodeName)] #[doc = "Getter for the `appCodeName` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator/appCodeName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerNavigator`*"] pub fn app_code_name(this: &WorkerNavigator) -> Result; # [wasm_bindgen (structural , method , getter , js_class = "WorkerNavigator" , js_name = appName)] #[doc = "Getter for the `appName` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator/appName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerNavigator`*"] pub fn app_name(this: &WorkerNavigator) -> String; # [wasm_bindgen (structural , catch , method , getter , js_class = "WorkerNavigator" , js_name = appVersion)] #[doc = "Getter for the `appVersion` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator/appVersion)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerNavigator`*"] pub fn app_version(this: &WorkerNavigator) -> Result; # [wasm_bindgen (structural , catch , method , getter , js_class = "WorkerNavigator" , js_name = platform)] #[doc = "Getter for the `platform` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator/platform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerNavigator`*"] pub fn platform(this: &WorkerNavigator) -> Result; # [wasm_bindgen (structural , catch , method , getter , js_class = "WorkerNavigator" , js_name = userAgent)] #[doc = "Getter for the `userAgent` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator/userAgent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerNavigator`*"] pub fn user_agent(this: &WorkerNavigator) -> Result; # [wasm_bindgen (structural , method , getter , js_class = "WorkerNavigator" , js_name = product)] #[doc = "Getter for the `product` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator/product)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerNavigator`*"] pub fn product(this: &WorkerNavigator) -> String; # [wasm_bindgen (structural , method , getter , js_class = "WorkerNavigator" , js_name = language)] #[doc = "Getter for the `language` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator/language)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerNavigator`*"] pub fn language(this: &WorkerNavigator) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "WorkerNavigator" , js_name = languages)] #[doc = "Getter for the `languages` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator/languages)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerNavigator`*"] pub fn languages(this: &WorkerNavigator) -> ::js_sys::Array; # [wasm_bindgen (structural , method , getter , js_class = "WorkerNavigator" , js_name = onLine)] #[doc = "Getter for the `onLine` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator/onLine)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerNavigator`*"] pub fn on_line(this: &WorkerNavigator) -> bool; #[cfg(feature = "StorageManager")] # [wasm_bindgen (structural , method , getter , js_class = "WorkerNavigator" , js_name = storage)] #[doc = "Getter for the `storage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator/storage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageManager`, `WorkerNavigator`*"] pub fn storage(this: &WorkerNavigator) -> StorageManager; # [wasm_bindgen (method , structural , js_class = "WorkerNavigator" , js_name = taintEnabled)] #[doc = "The `taintEnabled()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator/taintEnabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerNavigator`*"] pub fn taint_enabled(this: &WorkerNavigator) -> bool; } web-sys-0.3.55/src/features/gen_WorkerOptions.rs000064400000000000000000000051150072674642500177720ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WorkerOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WorkerOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerOptions`*"] pub type WorkerOptions; } impl WorkerOptions { #[doc = "Construct a new `WorkerOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[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`*"] pub fn credentials(&mut self, val: RequestCredentials) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("credentials"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerOptions`*"] pub fn name(&mut self, val: &str) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[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`*"] pub fn type_(&mut self, val: WorkerType) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for WorkerOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_WorkerType.rs000064400000000000000000000005050072674642500172560ustar 00000000000000#![allow(unused_imports)] 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.55/src/features/gen_Worklet.rs000064400000000000000000000030340072674642500165720ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Worklet , typescript_type = "Worklet")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Worklet` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Worklet)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Worklet`*"] pub type Worklet; # [wasm_bindgen (catch , method , structural , js_class = "Worklet" , js_name = addModule)] #[doc = "The `addModule()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Worklet/addModule)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Worklet`*"] pub fn add_module(this: &Worklet, module_url: &str) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "WorkletOptions")] # [wasm_bindgen (catch , method , structural , js_class = "Worklet" , js_name = addModule)] #[doc = "The `addModule()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Worklet/addModule)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Worklet`, `WorkletOptions`*"] pub fn add_module_with_options( this: &Worklet, module_url: &str, options: &WorkletOptions, ) -> Result<::js_sys::Promise, JsValue>; } web-sys-0.3.55/src/features/gen_WorkletGlobalScope.rs000064400000000000000000000011130072674642500207010ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WorkletGlobalScope , typescript_type = "WorkletGlobalScope")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WorkletGlobalScope` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkletGlobalScope)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkletGlobalScope`*"] pub type WorkletGlobalScope; } web-sys-0.3.55/src/features/gen_WorkletOptions.rs000064400000000000000000000027760072674642500201620ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WorkletOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WorkletOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkletOptions`*"] pub type WorkletOptions; } impl WorkletOptions { #[doc = "Construct a new `WorkletOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkletOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(feature = "RequestCredentials")] #[doc = "Change the `credentials` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RequestCredentials`, `WorkletOptions`*"] pub fn credentials(&mut self, val: RequestCredentials) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("credentials"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for WorkletOptions { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_WritableStream.rs000064400000000000000000000107250072674642500200750ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type WritableStream; #[cfg(web_sys_unstable_apis)] # [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`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn locked(this: &WritableStream) -> bool; #[cfg(web_sys_unstable_apis)] # [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`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn abort(this: &WritableStream) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [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`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn abort_with_reason( this: &WritableStream, reason: &::wasm_bindgen::JsValue, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [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`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn close(this: &WritableStream) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "WritableStreamDefaultWriter")] # [wasm_bindgen (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`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_writer(this: &WritableStream) -> WritableStreamDefaultWriter; } web-sys-0.3.55/src/features/gen_WritableStreamDefaultWriter.rs000064400000000000000000000174640072674642500226060ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type WritableStreamDefaultWriter; #[cfg(web_sys_unstable_apis)] # [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`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn closed(this: &WritableStreamDefaultWriter) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , 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`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn desired_size(this: &WritableStreamDefaultWriter) -> Option; #[cfg(web_sys_unstable_apis)] # [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`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn ready(this: &WritableStreamDefaultWriter) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [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`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn abort(this: &WritableStreamDefaultWriter) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [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`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn abort_with_reason( this: &WritableStreamDefaultWriter, reason: &::wasm_bindgen::JsValue, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [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`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn close(this: &WritableStreamDefaultWriter) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [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`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn release_lock(this: &WritableStreamDefaultWriter); #[cfg(web_sys_unstable_apis)] # [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`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write(this: &WritableStreamDefaultWriter) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [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`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_with_chunk( this: &WritableStreamDefaultWriter, chunk: &::wasm_bindgen::JsValue, ) -> ::js_sys::Promise; } web-sys-0.3.55/src/features/gen_XPathExpression.rs000064400000000000000000000045700072674642500202550ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = XPathExpression , typescript_type = "XPathExpression")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XPathExpression` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XPathExpression)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XPathExpression`*"] pub type XPathExpression; #[cfg(all(feature = "Node", feature = "XPathResult",))] # [wasm_bindgen (catch , method , structural , js_class = "XPathExpression" , js_name = evaluate)] #[doc = "The `evaluate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XPathExpression/evaluate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `XPathExpression`, `XPathResult`*"] pub fn evaluate(this: &XPathExpression, context_node: &Node) -> Result; #[cfg(all(feature = "Node", feature = "XPathResult",))] # [wasm_bindgen (catch , method , structural , js_class = "XPathExpression" , js_name = evaluate)] #[doc = "The `evaluate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XPathExpression/evaluate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `XPathExpression`, `XPathResult`*"] pub fn evaluate_with_type( this: &XPathExpression, context_node: &Node, type_: u16, ) -> Result; #[cfg(all(feature = "Node", feature = "XPathResult",))] # [wasm_bindgen (catch , method , structural , js_class = "XPathExpression" , js_name = evaluate)] #[doc = "The `evaluate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XPathExpression/evaluate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `XPathExpression`, `XPathResult`*"] pub fn evaluate_with_type_and_result( this: &XPathExpression, context_node: &Node, type_: u16, result: Option<&::js_sys::Object>, ) -> Result; } web-sys-0.3.55/src/features/gen_XPathNsResolver.rs000064400000000000000000000027360072674642500202220ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = XPathNSResolver)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XPathNsResolver` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XPathNsResolver`*"] pub type XPathNsResolver; } impl XPathNsResolver { #[doc = "Construct a new `XPathNsResolver`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XPathNsResolver`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[doc = "Change the `lookupNamespaceURI` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XPathNsResolver`*"] pub fn lookup_namespace_uri(&mut self, val: &::js_sys::Function) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("lookupNamespaceURI"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } impl Default for XPathNsResolver { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_XPathResult.rs000064400000000000000000000161550072674642500173760ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = XPathResult , typescript_type = "XPathResult")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XPathResult` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XPathResult)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XPathResult`*"] pub type XPathResult; # [wasm_bindgen (structural , method , getter , js_class = "XPathResult" , js_name = resultType)] #[doc = "Getter for the `resultType` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XPathResult/resultType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XPathResult`*"] pub fn result_type(this: &XPathResult) -> u16; # [wasm_bindgen (structural , catch , method , getter , js_class = "XPathResult" , js_name = numberValue)] #[doc = "Getter for the `numberValue` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XPathResult/numberValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XPathResult`*"] pub fn number_value(this: &XPathResult) -> Result; # [wasm_bindgen (structural , catch , method , getter , js_class = "XPathResult" , js_name = stringValue)] #[doc = "Getter for the `stringValue` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XPathResult/stringValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XPathResult`*"] pub fn string_value(this: &XPathResult) -> Result; # [wasm_bindgen (structural , catch , method , getter , js_class = "XPathResult" , js_name = booleanValue)] #[doc = "Getter for the `booleanValue` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XPathResult/booleanValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XPathResult`*"] pub fn boolean_value(this: &XPathResult) -> Result; #[cfg(feature = "Node")] # [wasm_bindgen (structural , catch , method , getter , js_class = "XPathResult" , js_name = singleNodeValue)] #[doc = "Getter for the `singleNodeValue` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XPathResult/singleNodeValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `XPathResult`*"] pub fn single_node_value(this: &XPathResult) -> Result, JsValue>; # [wasm_bindgen (structural , method , getter , js_class = "XPathResult" , js_name = invalidIteratorState)] #[doc = "Getter for the `invalidIteratorState` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XPathResult/invalidIteratorState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XPathResult`*"] pub fn invalid_iterator_state(this: &XPathResult) -> bool; # [wasm_bindgen (structural , catch , method , getter , js_class = "XPathResult" , js_name = snapshotLength)] #[doc = "Getter for the `snapshotLength` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XPathResult/snapshotLength)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XPathResult`*"] pub fn snapshot_length(this: &XPathResult) -> Result; #[cfg(feature = "Node")] # [wasm_bindgen (catch , method , structural , js_class = "XPathResult" , js_name = iterateNext)] #[doc = "The `iterateNext()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XPathResult/iterateNext)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `XPathResult`*"] pub fn iterate_next(this: &XPathResult) -> Result, JsValue>; #[cfg(feature = "Node")] # [wasm_bindgen (catch , method , structural , js_class = "XPathResult" , js_name = snapshotItem)] #[doc = "The `snapshotItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XPathResult/snapshotItem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `XPathResult`*"] pub fn snapshot_item(this: &XPathResult, index: u32) -> Result, JsValue>; } impl XPathResult { #[doc = "The `XPathResult.ANY_TYPE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XPathResult`*"] pub const ANY_TYPE: u16 = 0i64 as u16; #[doc = "The `XPathResult.NUMBER_TYPE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XPathResult`*"] pub const NUMBER_TYPE: u16 = 1u64 as u16; #[doc = "The `XPathResult.STRING_TYPE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XPathResult`*"] pub const STRING_TYPE: u16 = 2u64 as u16; #[doc = "The `XPathResult.BOOLEAN_TYPE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XPathResult`*"] pub const BOOLEAN_TYPE: u16 = 3u64 as u16; #[doc = "The `XPathResult.UNORDERED_NODE_ITERATOR_TYPE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XPathResult`*"] pub const UNORDERED_NODE_ITERATOR_TYPE: u16 = 4u64 as u16; #[doc = "The `XPathResult.ORDERED_NODE_ITERATOR_TYPE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XPathResult`*"] pub const ORDERED_NODE_ITERATOR_TYPE: u16 = 5u64 as u16; #[doc = "The `XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XPathResult`*"] pub const UNORDERED_NODE_SNAPSHOT_TYPE: u16 = 6u64 as u16; #[doc = "The `XPathResult.ORDERED_NODE_SNAPSHOT_TYPE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XPathResult`*"] pub const ORDERED_NODE_SNAPSHOT_TYPE: u16 = 7u64 as u16; #[doc = "The `XPathResult.ANY_UNORDERED_NODE_TYPE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XPathResult`*"] pub const ANY_UNORDERED_NODE_TYPE: u16 = 8u64 as u16; #[doc = "The `XPathResult.FIRST_ORDERED_NODE_TYPE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XPathResult`*"] pub const FIRST_ORDERED_NODE_TYPE: u16 = 9u64 as u16; } web-sys-0.3.55/src/features/gen_XmlDocument.rs000064400000000000000000000035750072674642500174140ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Document , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = XMLDocument , typescript_type = "XMLDocument")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XmlDocument` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLDocument)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlDocument`*"] pub type XmlDocument; # [wasm_bindgen (structural , method , getter , js_class = "XMLDocument" , js_name = async)] #[doc = "Getter for the `async` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLDocument/async)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlDocument`*"] pub fn r#async(this: &XmlDocument) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "XMLDocument" , js_name = async)] #[doc = "Setter for the `async` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLDocument/async)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlDocument`*"] pub fn set_async(this: &XmlDocument, value: bool); # [wasm_bindgen (catch , method , structural , js_class = "XMLDocument" , js_name = load)] #[doc = "The `load()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLDocument/load)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlDocument`*"] pub fn load(this: &XmlDocument, url: &str) -> Result; } web-sys-0.3.55/src/features/gen_XmlHttpRequest.rs000064400000000000000000000471510072674642500201240ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = XmlHttpRequestEventTarget , extends = EventTarget , extends = :: js_sys :: Object , js_name = XMLHttpRequest , typescript_type = "XMLHttpRequest")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XmlHttpRequest` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] pub type XmlHttpRequest; # [wasm_bindgen (structural , method , getter , js_class = "XMLHttpRequest" , js_name = onreadystatechange)] #[doc = "Getter for the `onreadystatechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/onreadystatechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] pub fn onreadystatechange(this: &XmlHttpRequest) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "XMLHttpRequest" , js_name = onreadystatechange)] #[doc = "Setter for the `onreadystatechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/onreadystatechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] pub fn set_onreadystatechange(this: &XmlHttpRequest, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "XMLHttpRequest" , js_name = readyState)] #[doc = "Getter for the `readyState` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/readyState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] pub fn ready_state(this: &XmlHttpRequest) -> u16; # [wasm_bindgen (structural , method , getter , js_class = "XMLHttpRequest" , js_name = timeout)] #[doc = "Getter for the `timeout` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/timeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] pub fn timeout(this: &XmlHttpRequest) -> u32; # [wasm_bindgen (structural , method , setter , js_class = "XMLHttpRequest" , js_name = timeout)] #[doc = "Setter for the `timeout` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/timeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] pub fn set_timeout(this: &XmlHttpRequest, value: u32); # [wasm_bindgen (structural , method , getter , js_class = "XMLHttpRequest" , js_name = withCredentials)] #[doc = "Getter for the `withCredentials` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/withCredentials)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] pub fn with_credentials(this: &XmlHttpRequest) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "XMLHttpRequest" , js_name = withCredentials)] #[doc = "Setter for the `withCredentials` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/withCredentials)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] pub fn set_with_credentials(this: &XmlHttpRequest, value: bool); #[cfg(feature = "XmlHttpRequestUpload")] # [wasm_bindgen (structural , catch , method , getter , js_class = "XMLHttpRequest" , js_name = upload)] #[doc = "Getter for the `upload` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/upload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`, `XmlHttpRequestUpload`*"] pub fn upload(this: &XmlHttpRequest) -> Result; # [wasm_bindgen (structural , method , getter , js_class = "XMLHttpRequest" , js_name = responseURL)] #[doc = "Getter for the `responseURL` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/responseURL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] pub fn response_url(this: &XmlHttpRequest) -> String; # [wasm_bindgen (structural , catch , method , getter , js_class = "XMLHttpRequest" , js_name = status)] #[doc = "Getter for the `status` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/status)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] pub fn status(this: &XmlHttpRequest) -> Result; # [wasm_bindgen (structural , catch , method , getter , js_class = "XMLHttpRequest" , js_name = statusText)] #[doc = "Getter for the `statusText` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/statusText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] pub fn status_text(this: &XmlHttpRequest) -> Result; #[cfg(feature = "XmlHttpRequestResponseType")] # [wasm_bindgen (structural , method , getter , js_class = "XMLHttpRequest" , js_name = responseType)] #[doc = "Getter for the `responseType` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/responseType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`, `XmlHttpRequestResponseType`*"] pub fn response_type(this: &XmlHttpRequest) -> XmlHttpRequestResponseType; #[cfg(feature = "XmlHttpRequestResponseType")] # [wasm_bindgen (structural , method , setter , js_class = "XMLHttpRequest" , js_name = responseType)] #[doc = "Setter for the `responseType` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/responseType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`, `XmlHttpRequestResponseType`*"] pub fn set_response_type(this: &XmlHttpRequest, value: XmlHttpRequestResponseType); # [wasm_bindgen (structural , catch , method , getter , js_class = "XMLHttpRequest" , js_name = response)] #[doc = "Getter for the `response` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/response)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] pub fn response(this: &XmlHttpRequest) -> Result<::wasm_bindgen::JsValue, JsValue>; # [wasm_bindgen (structural , catch , method , getter , js_class = "XMLHttpRequest" , js_name = responseText)] #[doc = "Getter for the `responseText` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/responseText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] pub fn response_text(this: &XmlHttpRequest) -> Result, JsValue>; #[cfg(feature = "Document")] # [wasm_bindgen (structural , catch , method , getter , js_class = "XMLHttpRequest" , js_name = responseXML)] #[doc = "Getter for the `responseXML` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/responseXML)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `XmlHttpRequest`*"] pub fn response_xml(this: &XmlHttpRequest) -> Result, JsValue>; #[wasm_bindgen(catch, constructor, js_class = "XMLHttpRequest")] #[doc = "The `new XmlHttpRequest(..)` constructor, creating a new instance of `XmlHttpRequest`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/XMLHttpRequest)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] pub fn new() -> Result; #[wasm_bindgen(catch, constructor, js_class = "XMLHttpRequest")] #[doc = "The `new XmlHttpRequest(..)` constructor, creating a new instance of `XmlHttpRequest`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/XMLHttpRequest)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] pub fn new_with_ignored(ignored: &str) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "XMLHttpRequest" , js_name = abort)] #[doc = "The `abort()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/abort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] pub fn abort(this: &XmlHttpRequest) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "XMLHttpRequest" , js_name = getAllResponseHeaders)] #[doc = "The `getAllResponseHeaders()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/getAllResponseHeaders)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] pub fn get_all_response_headers(this: &XmlHttpRequest) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "XMLHttpRequest" , js_name = getResponseHeader)] #[doc = "The `getResponseHeader()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/getResponseHeader)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] pub fn get_response_header( this: &XmlHttpRequest, header: &str, ) -> Result, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "XMLHttpRequest" , js_name = open)] #[doc = "The `open()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/open)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] pub fn open(this: &XmlHttpRequest, method: &str, url: &str) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "XMLHttpRequest" , js_name = open)] #[doc = "The `open()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/open)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] pub fn open_with_async( this: &XmlHttpRequest, method: &str, url: &str, r#async: bool, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "XMLHttpRequest" , js_name = open)] #[doc = "The `open()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/open)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] pub fn open_with_async_and_user( this: &XmlHttpRequest, method: &str, url: &str, r#async: bool, user: Option<&str>, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "XMLHttpRequest" , js_name = open)] #[doc = "The `open()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/open)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] pub fn open_with_async_and_user_and_password( this: &XmlHttpRequest, method: &str, url: &str, r#async: bool, user: Option<&str>, password: Option<&str>, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "XMLHttpRequest" , js_name = overrideMimeType)] #[doc = "The `overrideMimeType()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/overrideMimeType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] pub fn override_mime_type(this: &XmlHttpRequest, mime: &str) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "XMLHttpRequest" , js_name = send)] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/send)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] pub fn send(this: &XmlHttpRequest) -> Result<(), JsValue>; #[cfg(feature = "Document")] # [wasm_bindgen (catch , method , structural , js_class = "XMLHttpRequest" , js_name = send)] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/send)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `XmlHttpRequest`*"] pub fn send_with_opt_document( this: &XmlHttpRequest, body: Option<&Document>, ) -> Result<(), JsValue>; #[cfg(feature = "Blob")] # [wasm_bindgen (catch , method , structural , js_class = "XMLHttpRequest" , js_name = send)] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/send)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`, `XmlHttpRequest`*"] pub fn send_with_opt_blob(this: &XmlHttpRequest, body: Option<&Blob>) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "XMLHttpRequest" , js_name = send)] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/send)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] pub fn send_with_opt_buffer_source( this: &XmlHttpRequest, body: Option<&::js_sys::Object>, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "XMLHttpRequest" , js_name = send)] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/send)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] pub fn send_with_opt_u8_array( this: &XmlHttpRequest, body: Option<&[u8]>, ) -> Result<(), JsValue>; #[cfg(feature = "FormData")] # [wasm_bindgen (catch , method , structural , js_class = "XMLHttpRequest" , js_name = send)] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/send)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FormData`, `XmlHttpRequest`*"] pub fn send_with_opt_form_data( this: &XmlHttpRequest, body: Option<&FormData>, ) -> Result<(), JsValue>; #[cfg(feature = "UrlSearchParams")] # [wasm_bindgen (catch , method , structural , js_class = "XMLHttpRequest" , js_name = send)] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/send)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`, `XmlHttpRequest`*"] pub fn send_with_opt_url_search_params( this: &XmlHttpRequest, body: Option<&UrlSearchParams>, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "XMLHttpRequest" , js_name = send)] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/send)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] pub fn send_with_opt_str(this: &XmlHttpRequest, body: Option<&str>) -> Result<(), JsValue>; #[cfg(feature = "ReadableStream")] # [wasm_bindgen (catch , method , structural , js_class = "XMLHttpRequest" , js_name = send)] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/send)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStream`, `XmlHttpRequest`*"] pub fn send_with_opt_readable_stream( this: &XmlHttpRequest, body: Option<&ReadableStream>, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "XMLHttpRequest" , js_name = setRequestHeader)] #[doc = "The `setRequestHeader()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/setRequestHeader)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] pub fn set_request_header( this: &XmlHttpRequest, header: &str, value: &str, ) -> Result<(), JsValue>; } impl XmlHttpRequest { #[doc = "The `XMLHttpRequest.UNSENT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] pub const UNSENT: u16 = 0i64 as u16; #[doc = "The `XMLHttpRequest.OPENED` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] pub const OPENED: u16 = 1u64 as u16; #[doc = "The `XMLHttpRequest.HEADERS_RECEIVED` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] pub const HEADERS_RECEIVED: u16 = 2u64 as u16; #[doc = "The `XMLHttpRequest.LOADING` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] pub const LOADING: u16 = 3u64 as u16; #[doc = "The `XMLHttpRequest.DONE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] pub const DONE: u16 = 4u64 as u16; } web-sys-0.3.55/src/features/gen_XmlHttpRequestEventTarget.rs000064400000000000000000000176050072674642500222760ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = XMLHttpRequestEventTarget , typescript_type = "XMLHttpRequestEventTarget")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XmlHttpRequestEventTarget` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"] pub type XmlHttpRequestEventTarget; # [wasm_bindgen (structural , method , getter , js_class = "XMLHttpRequestEventTarget" , js_name = onloadstart)] #[doc = "Getter for the `onloadstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onloadstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"] pub fn onloadstart(this: &XmlHttpRequestEventTarget) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "XMLHttpRequestEventTarget" , js_name = onloadstart)] #[doc = "Setter for the `onloadstart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onloadstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"] pub fn set_onloadstart(this: &XmlHttpRequestEventTarget, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "XMLHttpRequestEventTarget" , js_name = onprogress)] #[doc = "Getter for the `onprogress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onprogress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"] pub fn onprogress(this: &XmlHttpRequestEventTarget) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "XMLHttpRequestEventTarget" , js_name = onprogress)] #[doc = "Setter for the `onprogress` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onprogress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"] pub fn set_onprogress(this: &XmlHttpRequestEventTarget, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "XMLHttpRequestEventTarget" , js_name = onabort)] #[doc = "Getter for the `onabort` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onabort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"] pub fn onabort(this: &XmlHttpRequestEventTarget) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "XMLHttpRequestEventTarget" , js_name = onabort)] #[doc = "Setter for the `onabort` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onabort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"] pub fn set_onabort(this: &XmlHttpRequestEventTarget, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "XMLHttpRequestEventTarget" , js_name = onerror)] #[doc = "Getter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"] pub fn onerror(this: &XmlHttpRequestEventTarget) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "XMLHttpRequestEventTarget" , js_name = onerror)] #[doc = "Setter for the `onerror` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"] pub fn set_onerror(this: &XmlHttpRequestEventTarget, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "XMLHttpRequestEventTarget" , js_name = onload)] #[doc = "Getter for the `onload` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"] pub fn onload(this: &XmlHttpRequestEventTarget) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "XMLHttpRequestEventTarget" , js_name = onload)] #[doc = "Setter for the `onload` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"] pub fn set_onload(this: &XmlHttpRequestEventTarget, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "XMLHttpRequestEventTarget" , js_name = ontimeout)] #[doc = "Getter for the `ontimeout` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/ontimeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"] pub fn ontimeout(this: &XmlHttpRequestEventTarget) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "XMLHttpRequestEventTarget" , js_name = ontimeout)] #[doc = "Setter for the `ontimeout` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/ontimeout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"] pub fn set_ontimeout(this: &XmlHttpRequestEventTarget, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "XMLHttpRequestEventTarget" , js_name = onloadend)] #[doc = "Getter for the `onloadend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onloadend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"] pub fn onloadend(this: &XmlHttpRequestEventTarget) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "XMLHttpRequestEventTarget" , js_name = onloadend)] #[doc = "Setter for the `onloadend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onloadend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"] pub fn set_onloadend(this: &XmlHttpRequestEventTarget, value: Option<&::js_sys::Function>); } web-sys-0.3.55/src/features/gen_XmlHttpRequestResponseType.rs000064400000000000000000000007110072674642500224740ustar 00000000000000#![allow(unused_imports)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `XmlHttpRequestResponseType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestResponseType`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum XmlHttpRequestResponseType { None = "", Arraybuffer = "arraybuffer", Blob = "blob", Document = "document", Json = "json", Text = "text", } web-sys-0.3.55/src/features/gen_XmlHttpRequestUpload.rs000064400000000000000000000012250072674642500212610ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = XmlHttpRequestEventTarget , extends = EventTarget , extends = :: js_sys :: Object , js_name = XMLHttpRequestUpload , typescript_type = "XMLHttpRequestUpload")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XmlHttpRequestUpload` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestUpload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestUpload`*"] pub type XmlHttpRequestUpload; } web-sys-0.3.55/src/features/gen_XmlSerializer.rs000064400000000000000000000030230072674642500177330ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = XMLSerializer , typescript_type = "XMLSerializer")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XmlSerializer` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLSerializer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlSerializer`*"] pub type XmlSerializer; #[wasm_bindgen(catch, constructor, js_class = "XMLSerializer")] #[doc = "The `new XmlSerializer(..)` constructor, creating a new instance of `XmlSerializer`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLSerializer/XMLSerializer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlSerializer`*"] pub fn new() -> Result; #[cfg(feature = "Node")] # [wasm_bindgen (catch , method , structural , js_class = "XMLSerializer" , js_name = serializeToString)] #[doc = "The `serializeToString()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLSerializer/serializeToString)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `XmlSerializer`*"] pub fn serialize_to_string(this: &XmlSerializer, root: &Node) -> Result; } web-sys-0.3.55/src/features/gen_Xr.rs000064400000000000000000000111520072674642500155340ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = XR , typescript_type = "XR")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Xr` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XR)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Xr`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type Xr; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "XR" , 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/XR/ondevicechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Xr`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn ondevicechange(this: &Xr) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "XR" , 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/XR/ondevicechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Xr`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_ondevicechange(this: &Xr, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrSessionMode")] # [wasm_bindgen (method , structural , js_class = "XR" , js_name = isSessionSupported)] #[doc = "The `isSessionSupported()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XR/isSessionSupported)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Xr`, `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn is_session_supported(this: &Xr, mode: XrSessionMode) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrSessionMode")] # [wasm_bindgen (method , structural , js_class = "XR" , js_name = requestSession)] #[doc = "The `requestSession()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XR/requestSession)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Xr`, `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn request_session(this: &Xr, mode: XrSessionMode) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "XrSessionInit", feature = "XrSessionMode",))] # [wasm_bindgen (method , structural , js_class = "XR" , js_name = requestSession)] #[doc = "The `requestSession()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XR/requestSession)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Xr`, `XrSessionInit`, `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn request_session_with_options( this: &Xr, mode: XrSessionMode, options: &XrSessionInit, ) -> ::js_sys::Promise; } web-sys-0.3.55/src/features/gen_XrBoundedReferenceSpace.rs000064400000000000000000000033550072674642500216360ustar 00000000000000#![allow(unused_imports)] 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn bounds_geometry(this: &XrBoundedReferenceSpace) -> ::js_sys::Array; } web-sys-0.3.55/src/features/gen_XrEye.rs000064400000000000000000000011100072674642500161700ustar 00000000000000#![allow(unused_imports)] 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://rustwasm.github.io/docs/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.55/src/features/gen_XrFrame.rs000064400000000000000000000062430072674642500165140ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn session(this: &XrFrame) -> XrSession; #[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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_viewer_pose( this: &XrFrame, reference_space: &XrReferenceSpace, ) -> Option; } web-sys-0.3.55/src/features/gen_XrHandedness.rs000064400000000000000000000011350072674642500175310ustar 00000000000000#![allow(unused_imports)] 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://rustwasm.github.io/docs/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.55/src/features/gen_XrInputSource.rs000064400000000000000000000112730072674642500177410ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn profiles(this: &XrInputSource) -> ::js_sys::Array; } web-sys-0.3.55/src/features/gen_XrInputSourceArray.rs000064400000000000000000000043630072674642500207420ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn length(this: &XrInputSourceArray) -> u32; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrInputSource")] #[wasm_bindgen(method, structural, js_class = "XRInputSourceArray", indexing_getter)] #[doc = "Indexing getter."] #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get(this: &XrInputSourceArray, index: u32) -> Option; } web-sys-0.3.55/src/features/gen_XrInputSourceEvent.rs000064400000000000000000000046770072674642500207550ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn input_source(this: &XrInputSourceEvent) -> XrInputSource; } web-sys-0.3.55/src/features/gen_XrInputSourceEventInit.rs000064400000000000000000000136070072674642500215720ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type XrInputSourceEventInit; } #[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://rustwasm.github.io/docs/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.frame(frame); ret.input_source(input_source); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn frame(&mut self, val: &XrFrame) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("frame"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn input_source(&mut self, val: &XrInputSource) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("inputSource"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_XrInputSourcesChangeEvent.rs000064400000000000000000000063640072674642500222410ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn removed(this: &XrInputSourcesChangeEvent) -> ::js_sys::Array; } web-sys-0.3.55/src/features/gen_XrInputSourcesChangeEventInit.rs000064400000000000000000000155310072674642500230610ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type XrInputSourcesChangeEventInit; } #[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://rustwasm.github.io/docs/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.added(added); ret.removed(removed); ret.session(session); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn added(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("added"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn removed(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("removed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn session(&mut self, val: &XrSession) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("session"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_XrPose.rs000064400000000000000000000044040072674642500163650ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn transform(this: &XrPose) -> XrRigidTransform; #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn emulated_position(this: &XrPose) -> bool; } web-sys-0.3.55/src/features/gen_XrReferenceSpace.rs000064400000000000000000000064050072674642500203340ustar 00000000000000#![allow(unused_imports)] 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_offset_reference_space( this: &XrReferenceSpace, origin_offset: &XrRigidTransform, ) -> XrReferenceSpace; } web-sys-0.3.55/src/features/gen_XrReferenceSpaceEvent.rs000064400000000000000000000050610072674642500213330ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn transform(this: &XrReferenceSpaceEvent) -> Option; } web-sys-0.3.55/src/features/gen_XrReferenceSpaceEventInit.rs000064400000000000000000000137240072674642500221640ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type XrReferenceSpaceEventInit; } #[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://rustwasm.github.io/docs/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.reference_space(reference_space); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn reference_space(&mut self, val: &XrReferenceSpace) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("referenceSpace"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn transform(&mut self, val: &XrRigidTransform) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("transform"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_XrReferenceSpaceType.rs000064400000000000000000000013070072674642500211720ustar 00000000000000#![allow(unused_imports)] 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://rustwasm.github.io/docs/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.55/src/features/gen_XrRenderState.rs000064400000000000000000000075150072674642500177050ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn base_layer(this: &XrRenderState) -> Option; } web-sys-0.3.55/src/features/gen_XrRenderStateInit.rs000064400000000000000000000117210072674642500205230ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type XrRenderStateInit; } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn base_layer(&mut self, val: Option<&XrWebGlLayer>) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("baseLayer"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn depth_far(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("depthFar"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn depth_near(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("depthNear"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn inline_vertical_field_of_view(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("inlineVerticalFieldOfView"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } #[cfg(web_sys_unstable_apis)] impl Default for XrRenderStateInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_XrRigidTransform.rs000064400000000000000000000076240072674642500204200ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn matrix(this: &XrRigidTransform) -> 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn inverse(this: &XrRigidTransform) -> XrRigidTransform; } web-sys-0.3.55/src/features/gen_XrSession.rs000064400000000000000000000411170072674642500171040ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn visibility_state(this: &XrSession) -> XrVisibilityState; #[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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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 = 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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 = 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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 = 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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 = 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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 (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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn cancel_animation_frame(this: &XrSession, handle: i32); #[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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn request_animation_frame(this: &XrSession, callback: &::js_sys::Function) -> i32; #[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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn update_render_state_with_state(this: &XrSession, state: &XrRenderStateInit); } web-sys-0.3.55/src/features/gen_XrSessionEvent.rs000064400000000000000000000031500072674642500201010ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn session(this: &XrSessionEvent) -> XrSession; } web-sys-0.3.55/src/features/gen_XrSessionEventInit.rs000064400000000000000000000115640072674642500207350ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type XrSessionEventInit; } #[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://rustwasm.github.io/docs/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.session(session); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn bubbles(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("bubbles"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn cancelable(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("cancelable"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn composed(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("composed"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn session(&mut self, val: &XrSession) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("session"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } web-sys-0.3.55/src/features/gen_XrSessionInit.rs000064400000000000000000000062640072674642500177340ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type XrSessionInit; } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn optional_features(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("optionalFeatures"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn required_features(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("requiredFeatures"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } #[cfg(web_sys_unstable_apis)] impl Default for XrSessionInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_XrSessionMode.rs000064400000000000000000000011360072674642500177060ustar 00000000000000#![allow(unused_imports)] 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum XrSessionMode { Inline = "inline", ImmersiveVr = "immersive-vr", } web-sys-0.3.55/src/features/gen_XrSpace.rs000064400000000000000000000014640072674642500165150ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type XrSpace; } web-sys-0.3.55/src/features/gen_XrTargetRayMode.rs000064400000000000000000000011750072674642500201700ustar 00000000000000#![allow(unused_imports)] 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://rustwasm.github.io/docs/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.55/src/features/gen_XrView.rs000064400000000000000000000057340072674642500164000ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn projection_matrix(this: &XrView) -> 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn transform(this: &XrView) -> XrRigidTransform; } web-sys-0.3.55/src/features/gen_XrViewerPose.rs000064400000000000000000000030440072674642500175460ustar 00000000000000#![allow(unused_imports)] 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn views(this: &XrViewerPose) -> ::js_sys::Array; } web-sys-0.3.55/src/features/gen_XrViewport.rs000064400000000000000000000070360072674642500173020ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn height(this: &XrViewport) -> i32; } web-sys-0.3.55/src/features/gen_XrVisibilityState.rs000064400000000000000000000012110072674642500206000ustar 00000000000000#![allow(unused_imports)] 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://rustwasm.github.io/docs/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.55/src/features/gen_XrWebGlLayer.rs000064400000000000000000000242620072674642500174600ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn ignore_depth_values(this: &XrWebGlLayer) -> bool; #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn framebuffer(this: &XrWebGlLayer) -> WebGlFramebuffer; #[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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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)"] #[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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_viewport(this: &XrWebGlLayer, view: &XrView) -> Option; } web-sys-0.3.55/src/features/gen_XrWebGlLayerInit.rs000064400000000000000000000147440072674642500203100ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type XrWebGlLayerInit; } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn alpha(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("alpha"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn antialias(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("antialias"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn depth(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("depth"), &JsValue::from(val)); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn framebuffer_scale_factor(&mut self, val: f64) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("framebufferScaleFactor"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn ignore_depth_values(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("ignoreDepthValues"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } #[cfg(web_sys_unstable_apis)] #[doc = "Change the `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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn stencil(&mut self, val: bool) -> &mut Self { use wasm_bindgen::JsValue; let r = ::js_sys::Reflect::set( self.as_ref(), &JsValue::from("stencil"), &JsValue::from(val), ); debug_assert!( r.is_ok(), "setting properties should never fail on our dictionary objects" ); let _ = r; self } } #[cfg(web_sys_unstable_apis)] impl Default for XrWebGlLayerInit { fn default() -> Self { Self::new() } } web-sys-0.3.55/src/features/gen_XsltProcessor.rs000064400000000000000000000112650072674642500200020ustar 00000000000000#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = XSLTProcessor , typescript_type = "XSLTProcessor")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XsltProcessor` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XSLTProcessor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XsltProcessor`*"] pub type XsltProcessor; #[wasm_bindgen(catch, constructor, js_class = "XSLTProcessor")] #[doc = "The `new XsltProcessor(..)` constructor, creating a new instance of `XsltProcessor`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XSLTProcessor/XSLTProcessor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XsltProcessor`*"] pub fn new() -> Result; # [wasm_bindgen (method , structural , js_class = "XSLTProcessor" , js_name = clearParameters)] #[doc = "The `clearParameters()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XSLTProcessor/clearParameters)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XsltProcessor`*"] pub fn clear_parameters(this: &XsltProcessor); #[cfg(feature = "Node")] # [wasm_bindgen (catch , method , structural , js_class = "XSLTProcessor" , js_name = importStylesheet)] #[doc = "The `importStylesheet()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XSLTProcessor/importStylesheet)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `XsltProcessor`*"] pub fn import_stylesheet(this: &XsltProcessor, style: &Node) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "XSLTProcessor" , js_name = removeParameter)] #[doc = "The `removeParameter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XSLTProcessor/removeParameter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XsltProcessor`*"] pub fn remove_parameter( this: &XsltProcessor, namespace_uri: &str, local_name: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (method , structural , js_class = "XSLTProcessor" , js_name = reset)] #[doc = "The `reset()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XSLTProcessor/reset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XsltProcessor`*"] pub fn reset(this: &XsltProcessor); # [wasm_bindgen (catch , method , structural , js_class = "XSLTProcessor" , js_name = setParameter)] #[doc = "The `setParameter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XSLTProcessor/setParameter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XsltProcessor`*"] pub fn set_parameter( this: &XsltProcessor, namespace_uri: &str, local_name: &str, value: &::wasm_bindgen::JsValue, ) -> Result<(), JsValue>; #[cfg(all(feature = "Document", feature = "Node",))] # [wasm_bindgen (catch , method , structural , js_class = "XSLTProcessor" , js_name = transformToDocument)] #[doc = "The `transformToDocument()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XSLTProcessor/transformToDocument)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `Node`, `XsltProcessor`*"] pub fn transform_to_document(this: &XsltProcessor, source: &Node) -> Result; #[cfg(all(feature = "Document", feature = "DocumentFragment", feature = "Node",))] # [wasm_bindgen (catch , method , structural , js_class = "XSLTProcessor" , js_name = transformToFragment)] #[doc = "The `transformToFragment()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XSLTProcessor/transformToFragment)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `DocumentFragment`, `Node`, `XsltProcessor`*"] pub fn transform_to_fragment( this: &XsltProcessor, source: &Node, output: &Document, ) -> Result; } web-sys-0.3.55/src/features/gen_console.rs000064400000000000000000002433000072674642500166070ustar 00000000000000pub mod console { #![allow(unused_imports)] use super::super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (js_namespace = console , js_name = assert)] #[doc = "The `console.assert()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/assert)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn assert(); # [wasm_bindgen (variadic , js_namespace = console , js_name = assert)] #[doc = "The `console.assert()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/assert)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn assert_with_condition_and_data(condition: bool, data: &::js_sys::Array); # [wasm_bindgen (js_namespace = console , js_name = assert)] #[doc = "The `console.assert()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/assert)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn assert_with_condition_and_data_0(condition: bool); # [wasm_bindgen (js_namespace = console , js_name = assert)] #[doc = "The `console.assert()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/assert)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn assert_with_condition_and_data_1(condition: bool, data_1: &::wasm_bindgen::JsValue); # [wasm_bindgen (js_namespace = console , js_name = assert)] #[doc = "The `console.assert()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/assert)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn assert_with_condition_and_data_2( condition: bool, data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = assert)] #[doc = "The `console.assert()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/assert)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn assert_with_condition_and_data_3( condition: bool, data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = assert)] #[doc = "The `console.assert()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/assert)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn assert_with_condition_and_data_4( condition: bool, data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = assert)] #[doc = "The `console.assert()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/assert)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn assert_with_condition_and_data_5( condition: bool, data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = assert)] #[doc = "The `console.assert()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/assert)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn assert_with_condition_and_data_6( condition: bool, data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, data_6: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = assert)] #[doc = "The `console.assert()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/assert)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn assert_with_condition_and_data_7( condition: bool, data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, data_6: &::wasm_bindgen::JsValue, data_7: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = clear)] #[doc = "The `console.clear()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/clear)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn clear(); # [wasm_bindgen (js_namespace = console , js_name = count)] #[doc = "The `console.count()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/count)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn count(); # [wasm_bindgen (js_namespace = console , js_name = count)] #[doc = "The `console.count()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/count)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn count_with_label(label: &str); # [wasm_bindgen (js_namespace = console , js_name = countReset)] #[doc = "The `console.countReset()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/countReset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn count_reset(); # [wasm_bindgen (js_namespace = console , js_name = countReset)] #[doc = "The `console.countReset()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/countReset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn count_reset_with_label(label: &str); # [wasm_bindgen (variadic , js_namespace = console , js_name = debug)] #[doc = "The `console.debug()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/debug)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn debug(data: &::js_sys::Array); # [wasm_bindgen (js_namespace = console , js_name = debug)] #[doc = "The `console.debug()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/debug)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn debug_0(); # [wasm_bindgen (js_namespace = console , js_name = debug)] #[doc = "The `console.debug()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/debug)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn debug_1(data_1: &::wasm_bindgen::JsValue); # [wasm_bindgen (js_namespace = console , js_name = debug)] #[doc = "The `console.debug()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/debug)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn debug_2(data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue); # [wasm_bindgen (js_namespace = console , js_name = debug)] #[doc = "The `console.debug()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/debug)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn debug_3( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = debug)] #[doc = "The `console.debug()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/debug)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn debug_4( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = debug)] #[doc = "The `console.debug()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/debug)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn debug_5( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = debug)] #[doc = "The `console.debug()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/debug)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn debug_6( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, data_6: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = debug)] #[doc = "The `console.debug()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/debug)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn debug_7( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, data_6: &::wasm_bindgen::JsValue, data_7: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (variadic , js_namespace = console , js_name = dir)] #[doc = "The `console.dir()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/dir)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn dir(data: &::js_sys::Array); # [wasm_bindgen (js_namespace = console , js_name = dir)] #[doc = "The `console.dir()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/dir)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn dir_0(); # [wasm_bindgen (js_namespace = console , js_name = dir)] #[doc = "The `console.dir()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/dir)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn dir_1(data_1: &::wasm_bindgen::JsValue); # [wasm_bindgen (js_namespace = console , js_name = dir)] #[doc = "The `console.dir()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/dir)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn dir_2(data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue); # [wasm_bindgen (js_namespace = console , js_name = dir)] #[doc = "The `console.dir()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/dir)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn dir_3( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = dir)] #[doc = "The `console.dir()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/dir)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn dir_4( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = dir)] #[doc = "The `console.dir()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/dir)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn dir_5( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = dir)] #[doc = "The `console.dir()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/dir)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn dir_6( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, data_6: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = dir)] #[doc = "The `console.dir()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/dir)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn dir_7( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, data_6: &::wasm_bindgen::JsValue, data_7: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (variadic , js_namespace = console , js_name = dirxml)] #[doc = "The `console.dirxml()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/dirxml)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn dirxml(data: &::js_sys::Array); # [wasm_bindgen (js_namespace = console , js_name = dirxml)] #[doc = "The `console.dirxml()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/dirxml)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn dirxml_0(); # [wasm_bindgen (js_namespace = console , js_name = dirxml)] #[doc = "The `console.dirxml()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/dirxml)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn dirxml_1(data_1: &::wasm_bindgen::JsValue); # [wasm_bindgen (js_namespace = console , js_name = dirxml)] #[doc = "The `console.dirxml()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/dirxml)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn dirxml_2(data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue); # [wasm_bindgen (js_namespace = console , js_name = dirxml)] #[doc = "The `console.dirxml()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/dirxml)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn dirxml_3( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = dirxml)] #[doc = "The `console.dirxml()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/dirxml)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn dirxml_4( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = dirxml)] #[doc = "The `console.dirxml()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/dirxml)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn dirxml_5( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = dirxml)] #[doc = "The `console.dirxml()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/dirxml)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn dirxml_6( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, data_6: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = dirxml)] #[doc = "The `console.dirxml()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/dirxml)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn dirxml_7( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, data_6: &::wasm_bindgen::JsValue, data_7: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (variadic , js_namespace = console , js_name = error)] #[doc = "The `console.error()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/error)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn error(data: &::js_sys::Array); # [wasm_bindgen (js_namespace = console , js_name = error)] #[doc = "The `console.error()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/error)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn error_0(); # [wasm_bindgen (js_namespace = console , js_name = error)] #[doc = "The `console.error()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/error)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn error_1(data_1: &::wasm_bindgen::JsValue); # [wasm_bindgen (js_namespace = console , js_name = error)] #[doc = "The `console.error()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/error)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn error_2(data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue); # [wasm_bindgen (js_namespace = console , js_name = error)] #[doc = "The `console.error()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/error)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn error_3( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = error)] #[doc = "The `console.error()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/error)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn error_4( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = error)] #[doc = "The `console.error()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/error)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn error_5( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = error)] #[doc = "The `console.error()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/error)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn error_6( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, data_6: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = error)] #[doc = "The `console.error()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/error)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn error_7( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, data_6: &::wasm_bindgen::JsValue, data_7: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (variadic , js_namespace = console , js_name = exception)] #[doc = "The `console.exception()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/exception)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn exception(data: &::js_sys::Array); # [wasm_bindgen (js_namespace = console , js_name = exception)] #[doc = "The `console.exception()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/exception)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn exception_0(); # [wasm_bindgen (js_namespace = console , js_name = exception)] #[doc = "The `console.exception()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/exception)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn exception_1(data_1: &::wasm_bindgen::JsValue); # [wasm_bindgen (js_namespace = console , js_name = exception)] #[doc = "The `console.exception()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/exception)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn exception_2(data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue); # [wasm_bindgen (js_namespace = console , js_name = exception)] #[doc = "The `console.exception()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/exception)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn exception_3( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = exception)] #[doc = "The `console.exception()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/exception)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn exception_4( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = exception)] #[doc = "The `console.exception()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/exception)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn exception_5( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = exception)] #[doc = "The `console.exception()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/exception)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn exception_6( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, data_6: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = exception)] #[doc = "The `console.exception()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/exception)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn exception_7( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, data_6: &::wasm_bindgen::JsValue, data_7: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (variadic , js_namespace = console , js_name = group)] #[doc = "The `console.group()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/group)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn group(data: &::js_sys::Array); # [wasm_bindgen (js_namespace = console , js_name = group)] #[doc = "The `console.group()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/group)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn group_0(); # [wasm_bindgen (js_namespace = console , js_name = group)] #[doc = "The `console.group()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/group)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn group_1(data_1: &::wasm_bindgen::JsValue); # [wasm_bindgen (js_namespace = console , js_name = group)] #[doc = "The `console.group()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/group)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn group_2(data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue); # [wasm_bindgen (js_namespace = console , js_name = group)] #[doc = "The `console.group()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/group)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn group_3( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = group)] #[doc = "The `console.group()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/group)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn group_4( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = group)] #[doc = "The `console.group()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/group)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn group_5( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = group)] #[doc = "The `console.group()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/group)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn group_6( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, data_6: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = group)] #[doc = "The `console.group()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/group)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn group_7( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, data_6: &::wasm_bindgen::JsValue, data_7: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (variadic , js_namespace = console , js_name = groupCollapsed)] #[doc = "The `console.groupCollapsed()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/groupCollapsed)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn group_collapsed(data: &::js_sys::Array); # [wasm_bindgen (js_namespace = console , js_name = groupCollapsed)] #[doc = "The `console.groupCollapsed()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/groupCollapsed)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn group_collapsed_0(); # [wasm_bindgen (js_namespace = console , js_name = groupCollapsed)] #[doc = "The `console.groupCollapsed()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/groupCollapsed)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn group_collapsed_1(data_1: &::wasm_bindgen::JsValue); # [wasm_bindgen (js_namespace = console , js_name = groupCollapsed)] #[doc = "The `console.groupCollapsed()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/groupCollapsed)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn group_collapsed_2( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = groupCollapsed)] #[doc = "The `console.groupCollapsed()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/groupCollapsed)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn group_collapsed_3( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = groupCollapsed)] #[doc = "The `console.groupCollapsed()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/groupCollapsed)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn group_collapsed_4( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = groupCollapsed)] #[doc = "The `console.groupCollapsed()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/groupCollapsed)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn group_collapsed_5( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = groupCollapsed)] #[doc = "The `console.groupCollapsed()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/groupCollapsed)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn group_collapsed_6( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, data_6: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = groupCollapsed)] #[doc = "The `console.groupCollapsed()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/groupCollapsed)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn group_collapsed_7( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, data_6: &::wasm_bindgen::JsValue, data_7: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = groupEnd)] #[doc = "The `console.groupEnd()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/groupEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn group_end(); # [wasm_bindgen (variadic , js_namespace = console , js_name = info)] #[doc = "The `console.info()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/info)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn info(data: &::js_sys::Array); # [wasm_bindgen (js_namespace = console , js_name = info)] #[doc = "The `console.info()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/info)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn info_0(); # [wasm_bindgen (js_namespace = console , js_name = info)] #[doc = "The `console.info()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/info)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn info_1(data_1: &::wasm_bindgen::JsValue); # [wasm_bindgen (js_namespace = console , js_name = info)] #[doc = "The `console.info()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/info)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn info_2(data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue); # [wasm_bindgen (js_namespace = console , js_name = info)] #[doc = "The `console.info()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/info)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn info_3( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = info)] #[doc = "The `console.info()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/info)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn info_4( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = info)] #[doc = "The `console.info()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/info)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn info_5( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = info)] #[doc = "The `console.info()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/info)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn info_6( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, data_6: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = info)] #[doc = "The `console.info()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/info)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn info_7( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, data_6: &::wasm_bindgen::JsValue, data_7: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (variadic , js_namespace = console , js_name = log)] #[doc = "The `console.log()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/log)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn log(data: &::js_sys::Array); # [wasm_bindgen (js_namespace = console , js_name = log)] #[doc = "The `console.log()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/log)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn log_0(); # [wasm_bindgen (js_namespace = console , js_name = log)] #[doc = "The `console.log()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/log)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn log_1(data_1: &::wasm_bindgen::JsValue); # [wasm_bindgen (js_namespace = console , js_name = log)] #[doc = "The `console.log()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/log)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn log_2(data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue); # [wasm_bindgen (js_namespace = console , js_name = log)] #[doc = "The `console.log()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/log)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn log_3( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = log)] #[doc = "The `console.log()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/log)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn log_4( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = log)] #[doc = "The `console.log()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/log)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn log_5( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = log)] #[doc = "The `console.log()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/log)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn log_6( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, data_6: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = log)] #[doc = "The `console.log()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/log)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn log_7( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, data_6: &::wasm_bindgen::JsValue, data_7: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (variadic , js_namespace = console , js_name = profile)] #[doc = "The `console.profile()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/profile)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn profile(data: &::js_sys::Array); # [wasm_bindgen (js_namespace = console , js_name = profile)] #[doc = "The `console.profile()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/profile)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn profile_0(); # [wasm_bindgen (js_namespace = console , js_name = profile)] #[doc = "The `console.profile()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/profile)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn profile_1(data_1: &::wasm_bindgen::JsValue); # [wasm_bindgen (js_namespace = console , js_name = profile)] #[doc = "The `console.profile()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/profile)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn profile_2(data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue); # [wasm_bindgen (js_namespace = console , js_name = profile)] #[doc = "The `console.profile()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/profile)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn profile_3( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = profile)] #[doc = "The `console.profile()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/profile)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn profile_4( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = profile)] #[doc = "The `console.profile()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/profile)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn profile_5( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = profile)] #[doc = "The `console.profile()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/profile)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn profile_6( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, data_6: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = profile)] #[doc = "The `console.profile()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/profile)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn profile_7( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, data_6: &::wasm_bindgen::JsValue, data_7: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (variadic , js_namespace = console , js_name = profileEnd)] #[doc = "The `console.profileEnd()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/profileEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn profile_end(data: &::js_sys::Array); # [wasm_bindgen (js_namespace = console , js_name = profileEnd)] #[doc = "The `console.profileEnd()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/profileEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn profile_end_0(); # [wasm_bindgen (js_namespace = console , js_name = profileEnd)] #[doc = "The `console.profileEnd()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/profileEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn profile_end_1(data_1: &::wasm_bindgen::JsValue); # [wasm_bindgen (js_namespace = console , js_name = profileEnd)] #[doc = "The `console.profileEnd()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/profileEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn profile_end_2(data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue); # [wasm_bindgen (js_namespace = console , js_name = profileEnd)] #[doc = "The `console.profileEnd()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/profileEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn profile_end_3( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = profileEnd)] #[doc = "The `console.profileEnd()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/profileEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn profile_end_4( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = profileEnd)] #[doc = "The `console.profileEnd()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/profileEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn profile_end_5( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = profileEnd)] #[doc = "The `console.profileEnd()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/profileEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn profile_end_6( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, data_6: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = profileEnd)] #[doc = "The `console.profileEnd()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/profileEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn profile_end_7( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, data_6: &::wasm_bindgen::JsValue, data_7: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (variadic , js_namespace = console , js_name = table)] #[doc = "The `console.table()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/table)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn table(data: &::js_sys::Array); # [wasm_bindgen (js_namespace = console , js_name = table)] #[doc = "The `console.table()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/table)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn table_0(); # [wasm_bindgen (js_namespace = console , js_name = table)] #[doc = "The `console.table()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/table)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn table_1(data_1: &::wasm_bindgen::JsValue); # [wasm_bindgen (js_namespace = console , js_name = table)] #[doc = "The `console.table()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/table)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn table_2(data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue); # [wasm_bindgen (js_namespace = console , js_name = table)] #[doc = "The `console.table()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/table)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn table_3( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = table)] #[doc = "The `console.table()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/table)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn table_4( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = table)] #[doc = "The `console.table()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/table)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn table_5( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = table)] #[doc = "The `console.table()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/table)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn table_6( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, data_6: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = table)] #[doc = "The `console.table()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/table)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn table_7( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, data_6: &::wasm_bindgen::JsValue, data_7: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = time)] #[doc = "The `console.time()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/time)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn time(); # [wasm_bindgen (js_namespace = console , js_name = time)] #[doc = "The `console.time()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/time)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn time_with_label(label: &str); # [wasm_bindgen (js_namespace = console , js_name = timeEnd)] #[doc = "The `console.timeEnd()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/timeEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn time_end(); # [wasm_bindgen (js_namespace = console , js_name = timeEnd)] #[doc = "The `console.timeEnd()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/timeEnd)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn time_end_with_label(label: &str); # [wasm_bindgen (js_namespace = console , js_name = timeLog)] #[doc = "The `console.timeLog()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/timeLog)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn time_log(); # [wasm_bindgen (variadic , js_namespace = console , js_name = timeLog)] #[doc = "The `console.timeLog()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/timeLog)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn time_log_with_label_and_data(label: &str, data: &::js_sys::Array); # [wasm_bindgen (js_namespace = console , js_name = timeLog)] #[doc = "The `console.timeLog()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/timeLog)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn time_log_with_label_and_data_0(label: &str); # [wasm_bindgen (js_namespace = console , js_name = timeLog)] #[doc = "The `console.timeLog()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/timeLog)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn time_log_with_label_and_data_1(label: &str, data_1: &::wasm_bindgen::JsValue); # [wasm_bindgen (js_namespace = console , js_name = timeLog)] #[doc = "The `console.timeLog()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/timeLog)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn time_log_with_label_and_data_2( label: &str, data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = timeLog)] #[doc = "The `console.timeLog()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/timeLog)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn time_log_with_label_and_data_3( label: &str, data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = timeLog)] #[doc = "The `console.timeLog()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/timeLog)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn time_log_with_label_and_data_4( label: &str, data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = timeLog)] #[doc = "The `console.timeLog()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/timeLog)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn time_log_with_label_and_data_5( label: &str, data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = timeLog)] #[doc = "The `console.timeLog()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/timeLog)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn time_log_with_label_and_data_6( label: &str, data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, data_6: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = timeLog)] #[doc = "The `console.timeLog()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/timeLog)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn time_log_with_label_and_data_7( label: &str, data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, data_6: &::wasm_bindgen::JsValue, data_7: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = timeStamp)] #[doc = "The `console.timeStamp()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/timeStamp)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn time_stamp(); # [wasm_bindgen (js_namespace = console , js_name = timeStamp)] #[doc = "The `console.timeStamp()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/timeStamp)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn time_stamp_with_data(data: &::wasm_bindgen::JsValue); # [wasm_bindgen (variadic , js_namespace = console , js_name = trace)] #[doc = "The `console.trace()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/trace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn trace(data: &::js_sys::Array); # [wasm_bindgen (js_namespace = console , js_name = trace)] #[doc = "The `console.trace()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/trace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn trace_0(); # [wasm_bindgen (js_namespace = console , js_name = trace)] #[doc = "The `console.trace()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/trace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn trace_1(data_1: &::wasm_bindgen::JsValue); # [wasm_bindgen (js_namespace = console , js_name = trace)] #[doc = "The `console.trace()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/trace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn trace_2(data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue); # [wasm_bindgen (js_namespace = console , js_name = trace)] #[doc = "The `console.trace()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/trace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn trace_3( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = trace)] #[doc = "The `console.trace()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/trace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn trace_4( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = trace)] #[doc = "The `console.trace()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/trace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn trace_5( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = trace)] #[doc = "The `console.trace()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/trace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn trace_6( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, data_6: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = trace)] #[doc = "The `console.trace()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/trace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn trace_7( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, data_6: &::wasm_bindgen::JsValue, data_7: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (variadic , js_namespace = console , js_name = warn)] #[doc = "The `console.warn()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/warn)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn warn(data: &::js_sys::Array); # [wasm_bindgen (js_namespace = console , js_name = warn)] #[doc = "The `console.warn()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/warn)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn warn_0(); # [wasm_bindgen (js_namespace = console , js_name = warn)] #[doc = "The `console.warn()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/warn)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn warn_1(data_1: &::wasm_bindgen::JsValue); # [wasm_bindgen (js_namespace = console , js_name = warn)] #[doc = "The `console.warn()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/warn)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn warn_2(data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue); # [wasm_bindgen (js_namespace = console , js_name = warn)] #[doc = "The `console.warn()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/warn)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn warn_3( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = warn)] #[doc = "The `console.warn()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/warn)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn warn_4( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = warn)] #[doc = "The `console.warn()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/warn)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn warn_5( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = warn)] #[doc = "The `console.warn()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/warn)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn warn_6( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, data_6: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (js_namespace = console , js_name = warn)] #[doc = "The `console.warn()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/warn)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `console`*"] pub fn warn_7( data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue, data_3: &::wasm_bindgen::JsValue, data_4: &::wasm_bindgen::JsValue, data_5: &::wasm_bindgen::JsValue, data_6: &::wasm_bindgen::JsValue, data_7: &::wasm_bindgen::JsValue, ); } } web-sys-0.3.55/src/features/gen_css.rs000064400000000000000000000026100072674642500157320ustar 00000000000000pub mod css { #![allow(unused_imports)] use super::super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (js_namespace = CSS , js_name = escape)] #[doc = "The `CSS.escape()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `css`*"] pub fn escape(ident: &str) -> String; # [wasm_bindgen (catch , js_namespace = CSS , js_name = supports)] #[doc = "The `CSS.supports()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSS/supports)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `css`*"] pub fn supports_with_value(property: &str, value: &str) -> Result; # [wasm_bindgen (catch , js_namespace = CSS , js_name = supports)] #[doc = "The `CSS.supports()` function."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSS/supports)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `css`*"] pub fn supports(condition_text: &str) -> Result; } } web-sys-0.3.55/src/features/mod.rs000064400000000000000000007055140072674642500151050ustar 00000000000000#[cfg(feature = "AbortController")] #[allow(non_snake_case)] mod gen_AbortController; #[cfg(feature = "AbortController")] pub use gen_AbortController::*; #[cfg(feature = "AbortSignal")] #[allow(non_snake_case)] mod gen_AbortSignal; #[cfg(feature = "AbortSignal")] pub use gen_AbortSignal::*; #[cfg(feature = "AddEventListenerOptions")] #[allow(non_snake_case)] mod gen_AddEventListenerOptions; #[cfg(feature = "AddEventListenerOptions")] pub use gen_AddEventListenerOptions::*; #[cfg(feature = "AesCbcParams")] #[allow(non_snake_case)] mod gen_AesCbcParams; #[cfg(feature = "AesCbcParams")] pub use gen_AesCbcParams::*; #[cfg(feature = "AesCtrParams")] #[allow(non_snake_case)] mod gen_AesCtrParams; #[cfg(feature = "AesCtrParams")] pub use gen_AesCtrParams::*; #[cfg(feature = "AesDerivedKeyParams")] #[allow(non_snake_case)] mod gen_AesDerivedKeyParams; #[cfg(feature = "AesDerivedKeyParams")] pub use gen_AesDerivedKeyParams::*; #[cfg(feature = "AesGcmParams")] #[allow(non_snake_case)] mod gen_AesGcmParams; #[cfg(feature = "AesGcmParams")] pub use gen_AesGcmParams::*; #[cfg(feature = "AesKeyAlgorithm")] #[allow(non_snake_case)] mod gen_AesKeyAlgorithm; #[cfg(feature = "AesKeyAlgorithm")] pub use gen_AesKeyAlgorithm::*; #[cfg(feature = "AesKeyGenParams")] #[allow(non_snake_case)] mod gen_AesKeyGenParams; #[cfg(feature = "AesKeyGenParams")] pub use gen_AesKeyGenParams::*; #[cfg(feature = "Algorithm")] #[allow(non_snake_case)] mod gen_Algorithm; #[cfg(feature = "Algorithm")] pub use gen_Algorithm::*; #[cfg(feature = "AlignSetting")] #[allow(non_snake_case)] mod gen_AlignSetting; #[cfg(feature = "AlignSetting")] pub use gen_AlignSetting::*; #[cfg(feature = "AllowedBluetoothDevice")] #[allow(non_snake_case)] mod gen_AllowedBluetoothDevice; #[cfg(feature = "AllowedBluetoothDevice")] pub use gen_AllowedBluetoothDevice::*; #[cfg(feature = "AllowedUsbDevice")] #[allow(non_snake_case)] mod gen_AllowedUsbDevice; #[cfg(feature = "AllowedUsbDevice")] pub use gen_AllowedUsbDevice::*; #[cfg(feature = "AnalyserNode")] #[allow(non_snake_case)] mod gen_AnalyserNode; #[cfg(feature = "AnalyserNode")] pub use gen_AnalyserNode::*; #[cfg(feature = "AnalyserOptions")] #[allow(non_snake_case)] mod gen_AnalyserOptions; #[cfg(feature = "AnalyserOptions")] pub use gen_AnalyserOptions::*; #[cfg(feature = "AngleInstancedArrays")] #[allow(non_snake_case)] mod gen_AngleInstancedArrays; #[cfg(feature = "AngleInstancedArrays")] pub use gen_AngleInstancedArrays::*; #[cfg(feature = "Animation")] #[allow(non_snake_case)] mod gen_Animation; #[cfg(feature = "Animation")] pub use gen_Animation::*; #[cfg(feature = "AnimationEffect")] #[allow(non_snake_case)] mod gen_AnimationEffect; #[cfg(feature = "AnimationEffect")] pub use gen_AnimationEffect::*; #[cfg(feature = "AnimationEvent")] #[allow(non_snake_case)] mod gen_AnimationEvent; #[cfg(feature = "AnimationEvent")] pub use gen_AnimationEvent::*; #[cfg(feature = "AnimationEventInit")] #[allow(non_snake_case)] mod gen_AnimationEventInit; #[cfg(feature = "AnimationEventInit")] pub use gen_AnimationEventInit::*; #[cfg(feature = "AnimationPlayState")] #[allow(non_snake_case)] mod gen_AnimationPlayState; #[cfg(feature = "AnimationPlayState")] pub use gen_AnimationPlayState::*; #[cfg(feature = "AnimationPlaybackEvent")] #[allow(non_snake_case)] mod gen_AnimationPlaybackEvent; #[cfg(feature = "AnimationPlaybackEvent")] pub use gen_AnimationPlaybackEvent::*; #[cfg(feature = "AnimationPlaybackEventInit")] #[allow(non_snake_case)] mod gen_AnimationPlaybackEventInit; #[cfg(feature = "AnimationPlaybackEventInit")] pub use gen_AnimationPlaybackEventInit::*; #[cfg(feature = "AnimationPropertyDetails")] #[allow(non_snake_case)] mod gen_AnimationPropertyDetails; #[cfg(feature = "AnimationPropertyDetails")] pub use gen_AnimationPropertyDetails::*; #[cfg(feature = "AnimationPropertyValueDetails")] #[allow(non_snake_case)] mod gen_AnimationPropertyValueDetails; #[cfg(feature = "AnimationPropertyValueDetails")] pub use gen_AnimationPropertyValueDetails::*; #[cfg(feature = "AnimationTimeline")] #[allow(non_snake_case)] mod gen_AnimationTimeline; #[cfg(feature = "AnimationTimeline")] pub use gen_AnimationTimeline::*; #[cfg(feature = "AssignedNodesOptions")] #[allow(non_snake_case)] mod gen_AssignedNodesOptions; #[cfg(feature = "AssignedNodesOptions")] pub use gen_AssignedNodesOptions::*; #[cfg(feature = "AttestationConveyancePreference")] #[allow(non_snake_case)] mod gen_AttestationConveyancePreference; #[cfg(feature = "AttestationConveyancePreference")] pub use gen_AttestationConveyancePreference::*; #[cfg(feature = "Attr")] #[allow(non_snake_case)] mod gen_Attr; #[cfg(feature = "Attr")] pub use gen_Attr::*; #[cfg(feature = "AttributeNameValue")] #[allow(non_snake_case)] mod gen_AttributeNameValue; #[cfg(feature = "AttributeNameValue")] pub use gen_AttributeNameValue::*; #[cfg(feature = "AudioBuffer")] #[allow(non_snake_case)] mod gen_AudioBuffer; #[cfg(feature = "AudioBuffer")] pub use gen_AudioBuffer::*; #[cfg(feature = "AudioBufferOptions")] #[allow(non_snake_case)] mod gen_AudioBufferOptions; #[cfg(feature = "AudioBufferOptions")] pub use gen_AudioBufferOptions::*; #[cfg(feature = "AudioBufferSourceNode")] #[allow(non_snake_case)] mod gen_AudioBufferSourceNode; #[cfg(feature = "AudioBufferSourceNode")] pub use gen_AudioBufferSourceNode::*; #[cfg(feature = "AudioBufferSourceOptions")] #[allow(non_snake_case)] mod gen_AudioBufferSourceOptions; #[cfg(feature = "AudioBufferSourceOptions")] pub use gen_AudioBufferSourceOptions::*; #[cfg(feature = "AudioConfiguration")] #[allow(non_snake_case)] mod gen_AudioConfiguration; #[cfg(feature = "AudioConfiguration")] pub use gen_AudioConfiguration::*; #[cfg(feature = "AudioContext")] #[allow(non_snake_case)] mod gen_AudioContext; #[cfg(feature = "AudioContext")] pub use gen_AudioContext::*; #[cfg(feature = "AudioContextOptions")] #[allow(non_snake_case)] mod gen_AudioContextOptions; #[cfg(feature = "AudioContextOptions")] pub use gen_AudioContextOptions::*; #[cfg(feature = "AudioContextState")] #[allow(non_snake_case)] mod gen_AudioContextState; #[cfg(feature = "AudioContextState")] pub use gen_AudioContextState::*; #[cfg(feature = "AudioDestinationNode")] #[allow(non_snake_case)] mod gen_AudioDestinationNode; #[cfg(feature = "AudioDestinationNode")] pub use gen_AudioDestinationNode::*; #[cfg(feature = "AudioListener")] #[allow(non_snake_case)] mod gen_AudioListener; #[cfg(feature = "AudioListener")] pub use gen_AudioListener::*; #[cfg(feature = "AudioNode")] #[allow(non_snake_case)] mod gen_AudioNode; #[cfg(feature = "AudioNode")] pub use gen_AudioNode::*; #[cfg(feature = "AudioNodeOptions")] #[allow(non_snake_case)] mod gen_AudioNodeOptions; #[cfg(feature = "AudioNodeOptions")] pub use gen_AudioNodeOptions::*; #[cfg(feature = "AudioParam")] #[allow(non_snake_case)] mod gen_AudioParam; #[cfg(feature = "AudioParam")] pub use gen_AudioParam::*; #[cfg(feature = "AudioParamMap")] #[allow(non_snake_case)] mod gen_AudioParamMap; #[cfg(feature = "AudioParamMap")] pub use gen_AudioParamMap::*; #[cfg(feature = "AudioProcessingEvent")] #[allow(non_snake_case)] mod gen_AudioProcessingEvent; #[cfg(feature = "AudioProcessingEvent")] pub use gen_AudioProcessingEvent::*; #[cfg(feature = "AudioScheduledSourceNode")] #[allow(non_snake_case)] mod gen_AudioScheduledSourceNode; #[cfg(feature = "AudioScheduledSourceNode")] pub use gen_AudioScheduledSourceNode::*; #[cfg(feature = "AudioStreamTrack")] #[allow(non_snake_case)] mod gen_AudioStreamTrack; #[cfg(feature = "AudioStreamTrack")] pub use gen_AudioStreamTrack::*; #[cfg(feature = "AudioTrack")] #[allow(non_snake_case)] mod gen_AudioTrack; #[cfg(feature = "AudioTrack")] pub use gen_AudioTrack::*; #[cfg(feature = "AudioTrackList")] #[allow(non_snake_case)] mod gen_AudioTrackList; #[cfg(feature = "AudioTrackList")] pub use gen_AudioTrackList::*; #[cfg(feature = "AudioWorklet")] #[allow(non_snake_case)] mod gen_AudioWorklet; #[cfg(feature = "AudioWorklet")] pub use gen_AudioWorklet::*; #[cfg(feature = "AudioWorkletGlobalScope")] #[allow(non_snake_case)] mod gen_AudioWorkletGlobalScope; #[cfg(feature = "AudioWorkletGlobalScope")] pub use gen_AudioWorkletGlobalScope::*; #[cfg(feature = "AudioWorkletNode")] #[allow(non_snake_case)] mod gen_AudioWorkletNode; #[cfg(feature = "AudioWorkletNode")] pub use gen_AudioWorkletNode::*; #[cfg(feature = "AudioWorkletNodeOptions")] #[allow(non_snake_case)] mod gen_AudioWorkletNodeOptions; #[cfg(feature = "AudioWorkletNodeOptions")] pub use gen_AudioWorkletNodeOptions::*; #[cfg(feature = "AudioWorkletProcessor")] #[allow(non_snake_case)] mod gen_AudioWorkletProcessor; #[cfg(feature = "AudioWorkletProcessor")] pub use gen_AudioWorkletProcessor::*; #[cfg(feature = "AuthenticationExtensionsClientInputs")] #[allow(non_snake_case)] mod gen_AuthenticationExtensionsClientInputs; #[cfg(feature = "AuthenticationExtensionsClientInputs")] pub use gen_AuthenticationExtensionsClientInputs::*; #[cfg(feature = "AuthenticationExtensionsClientOutputs")] #[allow(non_snake_case)] mod gen_AuthenticationExtensionsClientOutputs; #[cfg(feature = "AuthenticationExtensionsClientOutputs")] pub use gen_AuthenticationExtensionsClientOutputs::*; #[cfg(feature = "AuthenticatorAssertionResponse")] #[allow(non_snake_case)] mod gen_AuthenticatorAssertionResponse; #[cfg(feature = "AuthenticatorAssertionResponse")] pub use gen_AuthenticatorAssertionResponse::*; #[cfg(feature = "AuthenticatorAttachment")] #[allow(non_snake_case)] mod gen_AuthenticatorAttachment; #[cfg(feature = "AuthenticatorAttachment")] pub use gen_AuthenticatorAttachment::*; #[cfg(feature = "AuthenticatorAttestationResponse")] #[allow(non_snake_case)] mod gen_AuthenticatorAttestationResponse; #[cfg(feature = "AuthenticatorAttestationResponse")] pub use gen_AuthenticatorAttestationResponse::*; #[cfg(feature = "AuthenticatorResponse")] #[allow(non_snake_case)] mod gen_AuthenticatorResponse; #[cfg(feature = "AuthenticatorResponse")] pub use gen_AuthenticatorResponse::*; #[cfg(feature = "AuthenticatorSelectionCriteria")] #[allow(non_snake_case)] mod gen_AuthenticatorSelectionCriteria; #[cfg(feature = "AuthenticatorSelectionCriteria")] pub use gen_AuthenticatorSelectionCriteria::*; #[cfg(feature = "AuthenticatorTransport")] #[allow(non_snake_case)] mod gen_AuthenticatorTransport; #[cfg(feature = "AuthenticatorTransport")] pub use gen_AuthenticatorTransport::*; #[cfg(feature = "AutoKeyword")] #[allow(non_snake_case)] mod gen_AutoKeyword; #[cfg(feature = "AutoKeyword")] pub use gen_AutoKeyword::*; #[cfg(feature = "AutocompleteInfo")] #[allow(non_snake_case)] mod gen_AutocompleteInfo; #[cfg(feature = "AutocompleteInfo")] pub use gen_AutocompleteInfo::*; #[cfg(feature = "BarProp")] #[allow(non_snake_case)] mod gen_BarProp; #[cfg(feature = "BarProp")] pub use gen_BarProp::*; #[cfg(feature = "BaseAudioContext")] #[allow(non_snake_case)] mod gen_BaseAudioContext; #[cfg(feature = "BaseAudioContext")] pub use gen_BaseAudioContext::*; #[cfg(feature = "BaseComputedKeyframe")] #[allow(non_snake_case)] mod gen_BaseComputedKeyframe; #[cfg(feature = "BaseComputedKeyframe")] pub use gen_BaseComputedKeyframe::*; #[cfg(feature = "BaseKeyframe")] #[allow(non_snake_case)] mod gen_BaseKeyframe; #[cfg(feature = "BaseKeyframe")] pub use gen_BaseKeyframe::*; #[cfg(feature = "BasePropertyIndexedKeyframe")] #[allow(non_snake_case)] mod gen_BasePropertyIndexedKeyframe; #[cfg(feature = "BasePropertyIndexedKeyframe")] pub use gen_BasePropertyIndexedKeyframe::*; #[cfg(feature = "BasicCardRequest")] #[allow(non_snake_case)] mod gen_BasicCardRequest; #[cfg(feature = "BasicCardRequest")] pub use gen_BasicCardRequest::*; #[cfg(feature = "BasicCardResponse")] #[allow(non_snake_case)] mod gen_BasicCardResponse; #[cfg(feature = "BasicCardResponse")] pub use gen_BasicCardResponse::*; #[cfg(feature = "BasicCardType")] #[allow(non_snake_case)] mod gen_BasicCardType; #[cfg(feature = "BasicCardType")] pub use gen_BasicCardType::*; #[cfg(feature = "BatteryManager")] #[allow(non_snake_case)] mod gen_BatteryManager; #[cfg(feature = "BatteryManager")] pub use gen_BatteryManager::*; #[cfg(feature = "BeforeUnloadEvent")] #[allow(non_snake_case)] mod gen_BeforeUnloadEvent; #[cfg(feature = "BeforeUnloadEvent")] pub use gen_BeforeUnloadEvent::*; #[cfg(feature = "BinaryType")] #[allow(non_snake_case)] mod gen_BinaryType; #[cfg(feature = "BinaryType")] pub use gen_BinaryType::*; #[cfg(feature = "BiquadFilterNode")] #[allow(non_snake_case)] mod gen_BiquadFilterNode; #[cfg(feature = "BiquadFilterNode")] pub use gen_BiquadFilterNode::*; #[cfg(feature = "BiquadFilterOptions")] #[allow(non_snake_case)] mod gen_BiquadFilterOptions; #[cfg(feature = "BiquadFilterOptions")] pub use gen_BiquadFilterOptions::*; #[cfg(feature = "BiquadFilterType")] #[allow(non_snake_case)] mod gen_BiquadFilterType; #[cfg(feature = "BiquadFilterType")] pub use gen_BiquadFilterType::*; #[cfg(feature = "Blob")] #[allow(non_snake_case)] mod gen_Blob; #[cfg(feature = "Blob")] pub use gen_Blob::*; #[cfg(feature = "BlobEvent")] #[allow(non_snake_case)] mod gen_BlobEvent; #[cfg(feature = "BlobEvent")] pub use gen_BlobEvent::*; #[cfg(feature = "BlobEventInit")] #[allow(non_snake_case)] mod gen_BlobEventInit; #[cfg(feature = "BlobEventInit")] pub use gen_BlobEventInit::*; #[cfg(feature = "BlobPropertyBag")] #[allow(non_snake_case)] mod gen_BlobPropertyBag; #[cfg(feature = "BlobPropertyBag")] pub use gen_BlobPropertyBag::*; #[cfg(feature = "BlockParsingOptions")] #[allow(non_snake_case)] mod gen_BlockParsingOptions; #[cfg(feature = "BlockParsingOptions")] pub use gen_BlockParsingOptions::*; #[cfg(feature = "Bluetooth")] #[allow(non_snake_case)] mod gen_Bluetooth; #[cfg(feature = "Bluetooth")] pub use gen_Bluetooth::*; #[cfg(feature = "BluetoothAdvertisingEvent")] #[allow(non_snake_case)] mod gen_BluetoothAdvertisingEvent; #[cfg(feature = "BluetoothAdvertisingEvent")] pub use gen_BluetoothAdvertisingEvent::*; #[cfg(feature = "BluetoothAdvertisingEventInit")] #[allow(non_snake_case)] mod gen_BluetoothAdvertisingEventInit; #[cfg(feature = "BluetoothAdvertisingEventInit")] pub use gen_BluetoothAdvertisingEventInit::*; #[cfg(feature = "BluetoothCharacteristicProperties")] #[allow(non_snake_case)] mod gen_BluetoothCharacteristicProperties; #[cfg(feature = "BluetoothCharacteristicProperties")] pub use gen_BluetoothCharacteristicProperties::*; #[cfg(feature = "BluetoothDataFilterInit")] #[allow(non_snake_case)] mod gen_BluetoothDataFilterInit; #[cfg(feature = "BluetoothDataFilterInit")] pub use gen_BluetoothDataFilterInit::*; #[cfg(feature = "BluetoothDevice")] #[allow(non_snake_case)] mod gen_BluetoothDevice; #[cfg(feature = "BluetoothDevice")] pub use gen_BluetoothDevice::*; #[cfg(feature = "BluetoothLeScanFilterInit")] #[allow(non_snake_case)] mod gen_BluetoothLeScanFilterInit; #[cfg(feature = "BluetoothLeScanFilterInit")] pub use gen_BluetoothLeScanFilterInit::*; #[cfg(feature = "BluetoothManufacturerDataMap")] #[allow(non_snake_case)] mod gen_BluetoothManufacturerDataMap; #[cfg(feature = "BluetoothManufacturerDataMap")] pub use gen_BluetoothManufacturerDataMap::*; #[cfg(feature = "BluetoothPermissionDescriptor")] #[allow(non_snake_case)] mod gen_BluetoothPermissionDescriptor; #[cfg(feature = "BluetoothPermissionDescriptor")] pub use gen_BluetoothPermissionDescriptor::*; #[cfg(feature = "BluetoothPermissionResult")] #[allow(non_snake_case)] mod gen_BluetoothPermissionResult; #[cfg(feature = "BluetoothPermissionResult")] pub use gen_BluetoothPermissionResult::*; #[cfg(feature = "BluetoothPermissionStorage")] #[allow(non_snake_case)] mod gen_BluetoothPermissionStorage; #[cfg(feature = "BluetoothPermissionStorage")] pub use gen_BluetoothPermissionStorage::*; #[cfg(feature = "BluetoothRemoteGattCharacteristic")] #[allow(non_snake_case)] mod gen_BluetoothRemoteGattCharacteristic; #[cfg(feature = "BluetoothRemoteGattCharacteristic")] pub use gen_BluetoothRemoteGattCharacteristic::*; #[cfg(feature = "BluetoothRemoteGattDescriptor")] #[allow(non_snake_case)] mod gen_BluetoothRemoteGattDescriptor; #[cfg(feature = "BluetoothRemoteGattDescriptor")] pub use gen_BluetoothRemoteGattDescriptor::*; #[cfg(feature = "BluetoothRemoteGattServer")] #[allow(non_snake_case)] mod gen_BluetoothRemoteGattServer; #[cfg(feature = "BluetoothRemoteGattServer")] pub use gen_BluetoothRemoteGattServer::*; #[cfg(feature = "BluetoothRemoteGattService")] #[allow(non_snake_case)] mod gen_BluetoothRemoteGattService; #[cfg(feature = "BluetoothRemoteGattService")] pub use gen_BluetoothRemoteGattService::*; #[cfg(feature = "BluetoothServiceDataMap")] #[allow(non_snake_case)] mod gen_BluetoothServiceDataMap; #[cfg(feature = "BluetoothServiceDataMap")] pub use gen_BluetoothServiceDataMap::*; #[cfg(feature = "BluetoothUuid")] #[allow(non_snake_case)] mod gen_BluetoothUuid; #[cfg(feature = "BluetoothUuid")] pub use gen_BluetoothUuid::*; #[cfg(feature = "BoxQuadOptions")] #[allow(non_snake_case)] mod gen_BoxQuadOptions; #[cfg(feature = "BoxQuadOptions")] pub use gen_BoxQuadOptions::*; #[cfg(feature = "BroadcastChannel")] #[allow(non_snake_case)] mod gen_BroadcastChannel; #[cfg(feature = "BroadcastChannel")] pub use gen_BroadcastChannel::*; #[cfg(feature = "BrowserElementDownloadOptions")] #[allow(non_snake_case)] mod gen_BrowserElementDownloadOptions; #[cfg(feature = "BrowserElementDownloadOptions")] pub use gen_BrowserElementDownloadOptions::*; #[cfg(feature = "BrowserElementExecuteScriptOptions")] #[allow(non_snake_case)] mod gen_BrowserElementExecuteScriptOptions; #[cfg(feature = "BrowserElementExecuteScriptOptions")] pub use gen_BrowserElementExecuteScriptOptions::*; #[cfg(feature = "BrowserFeedWriter")] #[allow(non_snake_case)] mod gen_BrowserFeedWriter; #[cfg(feature = "BrowserFeedWriter")] pub use gen_BrowserFeedWriter::*; #[cfg(feature = "BrowserFindCaseSensitivity")] #[allow(non_snake_case)] mod gen_BrowserFindCaseSensitivity; #[cfg(feature = "BrowserFindCaseSensitivity")] pub use gen_BrowserFindCaseSensitivity::*; #[cfg(feature = "BrowserFindDirection")] #[allow(non_snake_case)] mod gen_BrowserFindDirection; #[cfg(feature = "BrowserFindDirection")] pub use gen_BrowserFindDirection::*; #[cfg(feature = "Cache")] #[allow(non_snake_case)] mod gen_Cache; #[cfg(feature = "Cache")] pub use gen_Cache::*; #[cfg(feature = "CacheBatchOperation")] #[allow(non_snake_case)] mod gen_CacheBatchOperation; #[cfg(feature = "CacheBatchOperation")] pub use gen_CacheBatchOperation::*; #[cfg(feature = "CacheQueryOptions")] #[allow(non_snake_case)] mod gen_CacheQueryOptions; #[cfg(feature = "CacheQueryOptions")] pub use gen_CacheQueryOptions::*; #[cfg(feature = "CacheStorage")] #[allow(non_snake_case)] mod gen_CacheStorage; #[cfg(feature = "CacheStorage")] pub use gen_CacheStorage::*; #[cfg(feature = "CacheStorageNamespace")] #[allow(non_snake_case)] mod gen_CacheStorageNamespace; #[cfg(feature = "CacheStorageNamespace")] pub use gen_CacheStorageNamespace::*; #[cfg(feature = "CanvasCaptureMediaStream")] #[allow(non_snake_case)] mod gen_CanvasCaptureMediaStream; #[cfg(feature = "CanvasCaptureMediaStream")] pub use gen_CanvasCaptureMediaStream::*; #[cfg(feature = "CanvasGradient")] #[allow(non_snake_case)] mod gen_CanvasGradient; #[cfg(feature = "CanvasGradient")] pub use gen_CanvasGradient::*; #[cfg(feature = "CanvasPattern")] #[allow(non_snake_case)] mod gen_CanvasPattern; #[cfg(feature = "CanvasPattern")] pub use gen_CanvasPattern::*; #[cfg(feature = "CanvasRenderingContext2d")] #[allow(non_snake_case)] mod gen_CanvasRenderingContext2d; #[cfg(feature = "CanvasRenderingContext2d")] pub use gen_CanvasRenderingContext2d::*; #[cfg(feature = "CanvasWindingRule")] #[allow(non_snake_case)] mod gen_CanvasWindingRule; #[cfg(feature = "CanvasWindingRule")] pub use gen_CanvasWindingRule::*; #[cfg(feature = "CaretChangedReason")] #[allow(non_snake_case)] mod gen_CaretChangedReason; #[cfg(feature = "CaretChangedReason")] pub use gen_CaretChangedReason::*; #[cfg(feature = "CaretPosition")] #[allow(non_snake_case)] mod gen_CaretPosition; #[cfg(feature = "CaretPosition")] pub use gen_CaretPosition::*; #[cfg(feature = "CaretStateChangedEventInit")] #[allow(non_snake_case)] mod gen_CaretStateChangedEventInit; #[cfg(feature = "CaretStateChangedEventInit")] pub use gen_CaretStateChangedEventInit::*; #[cfg(feature = "CdataSection")] #[allow(non_snake_case)] mod gen_CdataSection; #[cfg(feature = "CdataSection")] pub use gen_CdataSection::*; #[cfg(feature = "ChannelCountMode")] #[allow(non_snake_case)] mod gen_ChannelCountMode; #[cfg(feature = "ChannelCountMode")] pub use gen_ChannelCountMode::*; #[cfg(feature = "ChannelInterpretation")] #[allow(non_snake_case)] mod gen_ChannelInterpretation; #[cfg(feature = "ChannelInterpretation")] pub use gen_ChannelInterpretation::*; #[cfg(feature = "ChannelMergerNode")] #[allow(non_snake_case)] mod gen_ChannelMergerNode; #[cfg(feature = "ChannelMergerNode")] pub use gen_ChannelMergerNode::*; #[cfg(feature = "ChannelMergerOptions")] #[allow(non_snake_case)] mod gen_ChannelMergerOptions; #[cfg(feature = "ChannelMergerOptions")] pub use gen_ChannelMergerOptions::*; #[cfg(feature = "ChannelPixelLayout")] #[allow(non_snake_case)] mod gen_ChannelPixelLayout; #[cfg(feature = "ChannelPixelLayout")] pub use gen_ChannelPixelLayout::*; #[cfg(feature = "ChannelPixelLayoutDataType")] #[allow(non_snake_case)] mod gen_ChannelPixelLayoutDataType; #[cfg(feature = "ChannelPixelLayoutDataType")] pub use gen_ChannelPixelLayoutDataType::*; #[cfg(feature = "ChannelSplitterNode")] #[allow(non_snake_case)] mod gen_ChannelSplitterNode; #[cfg(feature = "ChannelSplitterNode")] pub use gen_ChannelSplitterNode::*; #[cfg(feature = "ChannelSplitterOptions")] #[allow(non_snake_case)] mod gen_ChannelSplitterOptions; #[cfg(feature = "ChannelSplitterOptions")] pub use gen_ChannelSplitterOptions::*; #[cfg(feature = "CharacterData")] #[allow(non_snake_case)] mod gen_CharacterData; #[cfg(feature = "CharacterData")] pub use gen_CharacterData::*; #[cfg(feature = "CheckerboardReason")] #[allow(non_snake_case)] mod gen_CheckerboardReason; #[cfg(feature = "CheckerboardReason")] pub use gen_CheckerboardReason::*; #[cfg(feature = "CheckerboardReport")] #[allow(non_snake_case)] mod gen_CheckerboardReport; #[cfg(feature = "CheckerboardReport")] pub use gen_CheckerboardReport::*; #[cfg(feature = "CheckerboardReportService")] #[allow(non_snake_case)] mod gen_CheckerboardReportService; #[cfg(feature = "CheckerboardReportService")] pub use gen_CheckerboardReportService::*; #[cfg(feature = "ChromeFilePropertyBag")] #[allow(non_snake_case)] mod gen_ChromeFilePropertyBag; #[cfg(feature = "ChromeFilePropertyBag")] pub use gen_ChromeFilePropertyBag::*; #[cfg(feature = "ChromeWorker")] #[allow(non_snake_case)] mod gen_ChromeWorker; #[cfg(feature = "ChromeWorker")] pub use gen_ChromeWorker::*; #[cfg(feature = "Client")] #[allow(non_snake_case)] mod gen_Client; #[cfg(feature = "Client")] pub use gen_Client::*; #[cfg(feature = "ClientQueryOptions")] #[allow(non_snake_case)] mod gen_ClientQueryOptions; #[cfg(feature = "ClientQueryOptions")] pub use gen_ClientQueryOptions::*; #[cfg(feature = "ClientRectsAndTexts")] #[allow(non_snake_case)] mod gen_ClientRectsAndTexts; #[cfg(feature = "ClientRectsAndTexts")] pub use gen_ClientRectsAndTexts::*; #[cfg(feature = "ClientType")] #[allow(non_snake_case)] mod gen_ClientType; #[cfg(feature = "ClientType")] pub use gen_ClientType::*; #[cfg(feature = "Clients")] #[allow(non_snake_case)] mod gen_Clients; #[cfg(feature = "Clients")] pub use gen_Clients::*; #[cfg(feature = "Clipboard")] #[allow(non_snake_case)] mod gen_Clipboard; #[cfg(feature = "Clipboard")] pub use gen_Clipboard::*; #[cfg(feature = "ClipboardEvent")] #[allow(non_snake_case)] mod gen_ClipboardEvent; #[cfg(feature = "ClipboardEvent")] pub use gen_ClipboardEvent::*; #[cfg(feature = "ClipboardEventInit")] #[allow(non_snake_case)] mod gen_ClipboardEventInit; #[cfg(feature = "ClipboardEventInit")] pub use gen_ClipboardEventInit::*; #[cfg(feature = "ClipboardItem")] #[allow(non_snake_case)] mod gen_ClipboardItem; #[cfg(feature = "ClipboardItem")] pub use gen_ClipboardItem::*; #[cfg(feature = "ClipboardItemOptions")] #[allow(non_snake_case)] mod gen_ClipboardItemOptions; #[cfg(feature = "ClipboardItemOptions")] pub use gen_ClipboardItemOptions::*; #[cfg(feature = "ClipboardPermissionDescriptor")] #[allow(non_snake_case)] mod gen_ClipboardPermissionDescriptor; #[cfg(feature = "ClipboardPermissionDescriptor")] pub use gen_ClipboardPermissionDescriptor::*; #[cfg(feature = "CloseEvent")] #[allow(non_snake_case)] mod gen_CloseEvent; #[cfg(feature = "CloseEvent")] pub use gen_CloseEvent::*; #[cfg(feature = "CloseEventInit")] #[allow(non_snake_case)] mod gen_CloseEventInit; #[cfg(feature = "CloseEventInit")] pub use gen_CloseEventInit::*; #[cfg(feature = "CollectedClientData")] #[allow(non_snake_case)] mod gen_CollectedClientData; #[cfg(feature = "CollectedClientData")] pub use gen_CollectedClientData::*; #[cfg(feature = "Comment")] #[allow(non_snake_case)] mod gen_Comment; #[cfg(feature = "Comment")] pub use gen_Comment::*; #[cfg(feature = "CompositeOperation")] #[allow(non_snake_case)] mod gen_CompositeOperation; #[cfg(feature = "CompositeOperation")] pub use gen_CompositeOperation::*; #[cfg(feature = "CompositionEvent")] #[allow(non_snake_case)] mod gen_CompositionEvent; #[cfg(feature = "CompositionEvent")] pub use gen_CompositionEvent::*; #[cfg(feature = "CompositionEventInit")] #[allow(non_snake_case)] mod gen_CompositionEventInit; #[cfg(feature = "CompositionEventInit")] pub use gen_CompositionEventInit::*; #[cfg(feature = "ComputedEffectTiming")] #[allow(non_snake_case)] mod gen_ComputedEffectTiming; #[cfg(feature = "ComputedEffectTiming")] pub use gen_ComputedEffectTiming::*; #[cfg(feature = "ConnStatusDict")] #[allow(non_snake_case)] mod gen_ConnStatusDict; #[cfg(feature = "ConnStatusDict")] pub use gen_ConnStatusDict::*; #[cfg(feature = "ConnectionType")] #[allow(non_snake_case)] mod gen_ConnectionType; #[cfg(feature = "ConnectionType")] pub use gen_ConnectionType::*; #[cfg(feature = "ConsoleCounter")] #[allow(non_snake_case)] mod gen_ConsoleCounter; #[cfg(feature = "ConsoleCounter")] pub use gen_ConsoleCounter::*; #[cfg(feature = "ConsoleCounterError")] #[allow(non_snake_case)] mod gen_ConsoleCounterError; #[cfg(feature = "ConsoleCounterError")] pub use gen_ConsoleCounterError::*; #[cfg(feature = "ConsoleEvent")] #[allow(non_snake_case)] mod gen_ConsoleEvent; #[cfg(feature = "ConsoleEvent")] pub use gen_ConsoleEvent::*; #[cfg(feature = "ConsoleInstance")] #[allow(non_snake_case)] mod gen_ConsoleInstance; #[cfg(feature = "ConsoleInstance")] pub use gen_ConsoleInstance::*; #[cfg(feature = "ConsoleInstanceOptions")] #[allow(non_snake_case)] mod gen_ConsoleInstanceOptions; #[cfg(feature = "ConsoleInstanceOptions")] pub use gen_ConsoleInstanceOptions::*; #[cfg(feature = "ConsoleLevel")] #[allow(non_snake_case)] mod gen_ConsoleLevel; #[cfg(feature = "ConsoleLevel")] pub use gen_ConsoleLevel::*; #[cfg(feature = "ConsoleLogLevel")] #[allow(non_snake_case)] mod gen_ConsoleLogLevel; #[cfg(feature = "ConsoleLogLevel")] pub use gen_ConsoleLogLevel::*; #[cfg(feature = "ConsoleProfileEvent")] #[allow(non_snake_case)] mod gen_ConsoleProfileEvent; #[cfg(feature = "ConsoleProfileEvent")] pub use gen_ConsoleProfileEvent::*; #[cfg(feature = "ConsoleStackEntry")] #[allow(non_snake_case)] mod gen_ConsoleStackEntry; #[cfg(feature = "ConsoleStackEntry")] pub use gen_ConsoleStackEntry::*; #[cfg(feature = "ConsoleTimerError")] #[allow(non_snake_case)] mod gen_ConsoleTimerError; #[cfg(feature = "ConsoleTimerError")] pub use gen_ConsoleTimerError::*; #[cfg(feature = "ConsoleTimerLogOrEnd")] #[allow(non_snake_case)] mod gen_ConsoleTimerLogOrEnd; #[cfg(feature = "ConsoleTimerLogOrEnd")] pub use gen_ConsoleTimerLogOrEnd::*; #[cfg(feature = "ConsoleTimerStart")] #[allow(non_snake_case)] mod gen_ConsoleTimerStart; #[cfg(feature = "ConsoleTimerStart")] pub use gen_ConsoleTimerStart::*; #[cfg(feature = "ConstantSourceNode")] #[allow(non_snake_case)] mod gen_ConstantSourceNode; #[cfg(feature = "ConstantSourceNode")] pub use gen_ConstantSourceNode::*; #[cfg(feature = "ConstantSourceOptions")] #[allow(non_snake_case)] mod gen_ConstantSourceOptions; #[cfg(feature = "ConstantSourceOptions")] pub use gen_ConstantSourceOptions::*; #[cfg(feature = "ConstrainBooleanParameters")] #[allow(non_snake_case)] mod gen_ConstrainBooleanParameters; #[cfg(feature = "ConstrainBooleanParameters")] pub use gen_ConstrainBooleanParameters::*; #[cfg(feature = "ConstrainDomStringParameters")] #[allow(non_snake_case)] mod gen_ConstrainDomStringParameters; #[cfg(feature = "ConstrainDomStringParameters")] pub use gen_ConstrainDomStringParameters::*; #[cfg(feature = "ConstrainDoubleRange")] #[allow(non_snake_case)] mod gen_ConstrainDoubleRange; #[cfg(feature = "ConstrainDoubleRange")] pub use gen_ConstrainDoubleRange::*; #[cfg(feature = "ConstrainLongRange")] #[allow(non_snake_case)] mod gen_ConstrainLongRange; #[cfg(feature = "ConstrainLongRange")] pub use gen_ConstrainLongRange::*; #[cfg(feature = "ContextAttributes2d")] #[allow(non_snake_case)] mod gen_ContextAttributes2d; #[cfg(feature = "ContextAttributes2d")] pub use gen_ContextAttributes2d::*; #[cfg(feature = "ConvertCoordinateOptions")] #[allow(non_snake_case)] mod gen_ConvertCoordinateOptions; #[cfg(feature = "ConvertCoordinateOptions")] pub use gen_ConvertCoordinateOptions::*; #[cfg(feature = "ConvolverNode")] #[allow(non_snake_case)] mod gen_ConvolverNode; #[cfg(feature = "ConvolverNode")] pub use gen_ConvolverNode::*; #[cfg(feature = "ConvolverOptions")] #[allow(non_snake_case)] mod gen_ConvolverOptions; #[cfg(feature = "ConvolverOptions")] pub use gen_ConvolverOptions::*; #[cfg(feature = "Coordinates")] #[allow(non_snake_case)] mod gen_Coordinates; #[cfg(feature = "Coordinates")] pub use gen_Coordinates::*; #[cfg(feature = "Credential")] #[allow(non_snake_case)] mod gen_Credential; #[cfg(feature = "Credential")] pub use gen_Credential::*; #[cfg(feature = "CredentialCreationOptions")] #[allow(non_snake_case)] mod gen_CredentialCreationOptions; #[cfg(feature = "CredentialCreationOptions")] pub use gen_CredentialCreationOptions::*; #[cfg(feature = "CredentialRequestOptions")] #[allow(non_snake_case)] mod gen_CredentialRequestOptions; #[cfg(feature = "CredentialRequestOptions")] pub use gen_CredentialRequestOptions::*; #[cfg(feature = "CredentialsContainer")] #[allow(non_snake_case)] mod gen_CredentialsContainer; #[cfg(feature = "CredentialsContainer")] pub use gen_CredentialsContainer::*; #[cfg(feature = "Crypto")] #[allow(non_snake_case)] mod gen_Crypto; #[cfg(feature = "Crypto")] pub use gen_Crypto::*; #[cfg(feature = "CryptoKey")] #[allow(non_snake_case)] mod gen_CryptoKey; #[cfg(feature = "CryptoKey")] pub use gen_CryptoKey::*; #[cfg(feature = "CryptoKeyPair")] #[allow(non_snake_case)] mod gen_CryptoKeyPair; #[cfg(feature = "CryptoKeyPair")] pub use gen_CryptoKeyPair::*; #[cfg(feature = "Csp")] #[allow(non_snake_case)] mod gen_Csp; #[cfg(feature = "Csp")] pub use gen_Csp::*; #[cfg(feature = "CspPolicies")] #[allow(non_snake_case)] mod gen_CspPolicies; #[cfg(feature = "CspPolicies")] pub use gen_CspPolicies::*; #[cfg(feature = "CspReport")] #[allow(non_snake_case)] mod gen_CspReport; #[cfg(feature = "CspReport")] pub use gen_CspReport::*; #[cfg(feature = "CspReportProperties")] #[allow(non_snake_case)] mod gen_CspReportProperties; #[cfg(feature = "CspReportProperties")] pub use gen_CspReportProperties::*; #[cfg(feature = "CssAnimation")] #[allow(non_snake_case)] mod gen_CssAnimation; #[cfg(feature = "CssAnimation")] pub use gen_CssAnimation::*; #[cfg(feature = "CssBoxType")] #[allow(non_snake_case)] mod gen_CssBoxType; #[cfg(feature = "CssBoxType")] pub use gen_CssBoxType::*; #[cfg(feature = "CssConditionRule")] #[allow(non_snake_case)] mod gen_CssConditionRule; #[cfg(feature = "CssConditionRule")] pub use gen_CssConditionRule::*; #[cfg(feature = "CssCounterStyleRule")] #[allow(non_snake_case)] mod gen_CssCounterStyleRule; #[cfg(feature = "CssCounterStyleRule")] pub use gen_CssCounterStyleRule::*; #[cfg(feature = "CssFontFaceRule")] #[allow(non_snake_case)] mod gen_CssFontFaceRule; #[cfg(feature = "CssFontFaceRule")] pub use gen_CssFontFaceRule::*; #[cfg(feature = "CssFontFeatureValuesRule")] #[allow(non_snake_case)] mod gen_CssFontFeatureValuesRule; #[cfg(feature = "CssFontFeatureValuesRule")] pub use gen_CssFontFeatureValuesRule::*; #[cfg(feature = "CssGroupingRule")] #[allow(non_snake_case)] mod gen_CssGroupingRule; #[cfg(feature = "CssGroupingRule")] pub use gen_CssGroupingRule::*; #[cfg(feature = "CssImportRule")] #[allow(non_snake_case)] mod gen_CssImportRule; #[cfg(feature = "CssImportRule")] pub use gen_CssImportRule::*; #[cfg(feature = "CssKeyframeRule")] #[allow(non_snake_case)] mod gen_CssKeyframeRule; #[cfg(feature = "CssKeyframeRule")] pub use gen_CssKeyframeRule::*; #[cfg(feature = "CssKeyframesRule")] #[allow(non_snake_case)] mod gen_CssKeyframesRule; #[cfg(feature = "CssKeyframesRule")] pub use gen_CssKeyframesRule::*; #[cfg(feature = "CssMediaRule")] #[allow(non_snake_case)] mod gen_CssMediaRule; #[cfg(feature = "CssMediaRule")] pub use gen_CssMediaRule::*; #[cfg(feature = "CssNamespaceRule")] #[allow(non_snake_case)] mod gen_CssNamespaceRule; #[cfg(feature = "CssNamespaceRule")] pub use gen_CssNamespaceRule::*; #[cfg(feature = "CssPageRule")] #[allow(non_snake_case)] mod gen_CssPageRule; #[cfg(feature = "CssPageRule")] pub use gen_CssPageRule::*; #[cfg(feature = "CssPseudoElement")] #[allow(non_snake_case)] mod gen_CssPseudoElement; #[cfg(feature = "CssPseudoElement")] pub use gen_CssPseudoElement::*; #[cfg(feature = "CssRule")] #[allow(non_snake_case)] mod gen_CssRule; #[cfg(feature = "CssRule")] pub use gen_CssRule::*; #[cfg(feature = "CssRuleList")] #[allow(non_snake_case)] mod gen_CssRuleList; #[cfg(feature = "CssRuleList")] pub use gen_CssRuleList::*; #[cfg(feature = "CssStyleDeclaration")] #[allow(non_snake_case)] mod gen_CssStyleDeclaration; #[cfg(feature = "CssStyleDeclaration")] pub use gen_CssStyleDeclaration::*; #[cfg(feature = "CssStyleRule")] #[allow(non_snake_case)] mod gen_CssStyleRule; #[cfg(feature = "CssStyleRule")] pub use gen_CssStyleRule::*; #[cfg(feature = "CssStyleSheet")] #[allow(non_snake_case)] mod gen_CssStyleSheet; #[cfg(feature = "CssStyleSheet")] pub use gen_CssStyleSheet::*; #[cfg(feature = "CssStyleSheetParsingMode")] #[allow(non_snake_case)] mod gen_CssStyleSheetParsingMode; #[cfg(feature = "CssStyleSheetParsingMode")] pub use gen_CssStyleSheetParsingMode::*; #[cfg(feature = "CssSupportsRule")] #[allow(non_snake_case)] mod gen_CssSupportsRule; #[cfg(feature = "CssSupportsRule")] pub use gen_CssSupportsRule::*; #[cfg(feature = "CssTransition")] #[allow(non_snake_case)] mod gen_CssTransition; #[cfg(feature = "CssTransition")] pub use gen_CssTransition::*; #[cfg(feature = "CustomElementRegistry")] #[allow(non_snake_case)] mod gen_CustomElementRegistry; #[cfg(feature = "CustomElementRegistry")] pub use gen_CustomElementRegistry::*; #[cfg(feature = "CustomEvent")] #[allow(non_snake_case)] mod gen_CustomEvent; #[cfg(feature = "CustomEvent")] pub use gen_CustomEvent::*; #[cfg(feature = "CustomEventInit")] #[allow(non_snake_case)] mod gen_CustomEventInit; #[cfg(feature = "CustomEventInit")] pub use gen_CustomEventInit::*; #[cfg(feature = "DataTransfer")] #[allow(non_snake_case)] mod gen_DataTransfer; #[cfg(feature = "DataTransfer")] pub use gen_DataTransfer::*; #[cfg(feature = "DataTransferItem")] #[allow(non_snake_case)] mod gen_DataTransferItem; #[cfg(feature = "DataTransferItem")] pub use gen_DataTransferItem::*; #[cfg(feature = "DataTransferItemList")] #[allow(non_snake_case)] mod gen_DataTransferItemList; #[cfg(feature = "DataTransferItemList")] pub use gen_DataTransferItemList::*; #[cfg(feature = "DateTimeValue")] #[allow(non_snake_case)] mod gen_DateTimeValue; #[cfg(feature = "DateTimeValue")] pub use gen_DateTimeValue::*; #[cfg(feature = "DecoderDoctorNotification")] #[allow(non_snake_case)] mod gen_DecoderDoctorNotification; #[cfg(feature = "DecoderDoctorNotification")] pub use gen_DecoderDoctorNotification::*; #[cfg(feature = "DecoderDoctorNotificationType")] #[allow(non_snake_case)] mod gen_DecoderDoctorNotificationType; #[cfg(feature = "DecoderDoctorNotificationType")] pub use gen_DecoderDoctorNotificationType::*; #[cfg(feature = "DedicatedWorkerGlobalScope")] #[allow(non_snake_case)] mod gen_DedicatedWorkerGlobalScope; #[cfg(feature = "DedicatedWorkerGlobalScope")] pub use gen_DedicatedWorkerGlobalScope::*; #[cfg(feature = "DelayNode")] #[allow(non_snake_case)] mod gen_DelayNode; #[cfg(feature = "DelayNode")] pub use gen_DelayNode::*; #[cfg(feature = "DelayOptions")] #[allow(non_snake_case)] mod gen_DelayOptions; #[cfg(feature = "DelayOptions")] pub use gen_DelayOptions::*; #[cfg(feature = "DeviceAcceleration")] #[allow(non_snake_case)] mod gen_DeviceAcceleration; #[cfg(feature = "DeviceAcceleration")] pub use gen_DeviceAcceleration::*; #[cfg(feature = "DeviceAccelerationInit")] #[allow(non_snake_case)] mod gen_DeviceAccelerationInit; #[cfg(feature = "DeviceAccelerationInit")] pub use gen_DeviceAccelerationInit::*; #[cfg(feature = "DeviceLightEvent")] #[allow(non_snake_case)] mod gen_DeviceLightEvent; #[cfg(feature = "DeviceLightEvent")] pub use gen_DeviceLightEvent::*; #[cfg(feature = "DeviceLightEventInit")] #[allow(non_snake_case)] mod gen_DeviceLightEventInit; #[cfg(feature = "DeviceLightEventInit")] pub use gen_DeviceLightEventInit::*; #[cfg(feature = "DeviceMotionEvent")] #[allow(non_snake_case)] mod gen_DeviceMotionEvent; #[cfg(feature = "DeviceMotionEvent")] pub use gen_DeviceMotionEvent::*; #[cfg(feature = "DeviceMotionEventInit")] #[allow(non_snake_case)] mod gen_DeviceMotionEventInit; #[cfg(feature = "DeviceMotionEventInit")] pub use gen_DeviceMotionEventInit::*; #[cfg(feature = "DeviceOrientationEvent")] #[allow(non_snake_case)] mod gen_DeviceOrientationEvent; #[cfg(feature = "DeviceOrientationEvent")] pub use gen_DeviceOrientationEvent::*; #[cfg(feature = "DeviceOrientationEventInit")] #[allow(non_snake_case)] mod gen_DeviceOrientationEventInit; #[cfg(feature = "DeviceOrientationEventInit")] pub use gen_DeviceOrientationEventInit::*; #[cfg(feature = "DeviceProximityEvent")] #[allow(non_snake_case)] mod gen_DeviceProximityEvent; #[cfg(feature = "DeviceProximityEvent")] pub use gen_DeviceProximityEvent::*; #[cfg(feature = "DeviceProximityEventInit")] #[allow(non_snake_case)] mod gen_DeviceProximityEventInit; #[cfg(feature = "DeviceProximityEventInit")] pub use gen_DeviceProximityEventInit::*; #[cfg(feature = "DeviceRotationRate")] #[allow(non_snake_case)] mod gen_DeviceRotationRate; #[cfg(feature = "DeviceRotationRate")] pub use gen_DeviceRotationRate::*; #[cfg(feature = "DeviceRotationRateInit")] #[allow(non_snake_case)] mod gen_DeviceRotationRateInit; #[cfg(feature = "DeviceRotationRateInit")] pub use gen_DeviceRotationRateInit::*; #[cfg(feature = "DhKeyDeriveParams")] #[allow(non_snake_case)] mod gen_DhKeyDeriveParams; #[cfg(feature = "DhKeyDeriveParams")] pub use gen_DhKeyDeriveParams::*; #[cfg(feature = "DirectionSetting")] #[allow(non_snake_case)] mod gen_DirectionSetting; #[cfg(feature = "DirectionSetting")] pub use gen_DirectionSetting::*; #[cfg(feature = "Directory")] #[allow(non_snake_case)] mod gen_Directory; #[cfg(feature = "Directory")] pub use gen_Directory::*; #[cfg(feature = "DisplayMediaStreamConstraints")] #[allow(non_snake_case)] mod gen_DisplayMediaStreamConstraints; #[cfg(feature = "DisplayMediaStreamConstraints")] pub use gen_DisplayMediaStreamConstraints::*; #[cfg(feature = "DisplayNameOptions")] #[allow(non_snake_case)] mod gen_DisplayNameOptions; #[cfg(feature = "DisplayNameOptions")] pub use gen_DisplayNameOptions::*; #[cfg(feature = "DisplayNameResult")] #[allow(non_snake_case)] mod gen_DisplayNameResult; #[cfg(feature = "DisplayNameResult")] pub use gen_DisplayNameResult::*; #[cfg(feature = "DistanceModelType")] #[allow(non_snake_case)] mod gen_DistanceModelType; #[cfg(feature = "DistanceModelType")] pub use gen_DistanceModelType::*; #[cfg(feature = "DnsCacheDict")] #[allow(non_snake_case)] mod gen_DnsCacheDict; #[cfg(feature = "DnsCacheDict")] pub use gen_DnsCacheDict::*; #[cfg(feature = "DnsCacheEntry")] #[allow(non_snake_case)] mod gen_DnsCacheEntry; #[cfg(feature = "DnsCacheEntry")] pub use gen_DnsCacheEntry::*; #[cfg(feature = "DnsLookupDict")] #[allow(non_snake_case)] mod gen_DnsLookupDict; #[cfg(feature = "DnsLookupDict")] pub use gen_DnsLookupDict::*; #[cfg(feature = "Document")] #[allow(non_snake_case)] mod gen_Document; #[cfg(feature = "Document")] pub use gen_Document::*; #[cfg(feature = "DocumentFragment")] #[allow(non_snake_case)] mod gen_DocumentFragment; #[cfg(feature = "DocumentFragment")] pub use gen_DocumentFragment::*; #[cfg(feature = "DocumentTimeline")] #[allow(non_snake_case)] mod gen_DocumentTimeline; #[cfg(feature = "DocumentTimeline")] pub use gen_DocumentTimeline::*; #[cfg(feature = "DocumentTimelineOptions")] #[allow(non_snake_case)] mod gen_DocumentTimelineOptions; #[cfg(feature = "DocumentTimelineOptions")] pub use gen_DocumentTimelineOptions::*; #[cfg(feature = "DocumentType")] #[allow(non_snake_case)] mod gen_DocumentType; #[cfg(feature = "DocumentType")] pub use gen_DocumentType::*; #[cfg(feature = "DomError")] #[allow(non_snake_case)] mod gen_DomError; #[cfg(feature = "DomError")] pub use gen_DomError::*; #[cfg(feature = "DomException")] #[allow(non_snake_case)] mod gen_DomException; #[cfg(feature = "DomException")] pub use gen_DomException::*; #[cfg(feature = "DomImplementation")] #[allow(non_snake_case)] mod gen_DomImplementation; #[cfg(feature = "DomImplementation")] pub use gen_DomImplementation::*; #[cfg(feature = "DomMatrix")] #[allow(non_snake_case)] mod gen_DomMatrix; #[cfg(feature = "DomMatrix")] pub use gen_DomMatrix::*; #[cfg(feature = "DomMatrixReadOnly")] #[allow(non_snake_case)] mod gen_DomMatrixReadOnly; #[cfg(feature = "DomMatrixReadOnly")] pub use gen_DomMatrixReadOnly::*; #[cfg(feature = "DomParser")] #[allow(non_snake_case)] mod gen_DomParser; #[cfg(feature = "DomParser")] pub use gen_DomParser::*; #[cfg(feature = "DomPoint")] #[allow(non_snake_case)] mod gen_DomPoint; #[cfg(feature = "DomPoint")] pub use gen_DomPoint::*; #[cfg(feature = "DomPointInit")] #[allow(non_snake_case)] mod gen_DomPointInit; #[cfg(feature = "DomPointInit")] pub use gen_DomPointInit::*; #[cfg(feature = "DomPointReadOnly")] #[allow(non_snake_case)] mod gen_DomPointReadOnly; #[cfg(feature = "DomPointReadOnly")] pub use gen_DomPointReadOnly::*; #[cfg(feature = "DomQuad")] #[allow(non_snake_case)] mod gen_DomQuad; #[cfg(feature = "DomQuad")] pub use gen_DomQuad::*; #[cfg(feature = "DomQuadInit")] #[allow(non_snake_case)] mod gen_DomQuadInit; #[cfg(feature = "DomQuadInit")] pub use gen_DomQuadInit::*; #[cfg(feature = "DomQuadJson")] #[allow(non_snake_case)] mod gen_DomQuadJson; #[cfg(feature = "DomQuadJson")] pub use gen_DomQuadJson::*; #[cfg(feature = "DomRect")] #[allow(non_snake_case)] mod gen_DomRect; #[cfg(feature = "DomRect")] pub use gen_DomRect::*; #[cfg(feature = "DomRectInit")] #[allow(non_snake_case)] mod gen_DomRectInit; #[cfg(feature = "DomRectInit")] pub use gen_DomRectInit::*; #[cfg(feature = "DomRectList")] #[allow(non_snake_case)] mod gen_DomRectList; #[cfg(feature = "DomRectList")] pub use gen_DomRectList::*; #[cfg(feature = "DomRectReadOnly")] #[allow(non_snake_case)] mod gen_DomRectReadOnly; #[cfg(feature = "DomRectReadOnly")] pub use gen_DomRectReadOnly::*; #[cfg(feature = "DomRequest")] #[allow(non_snake_case)] mod gen_DomRequest; #[cfg(feature = "DomRequest")] pub use gen_DomRequest::*; #[cfg(feature = "DomRequestReadyState")] #[allow(non_snake_case)] mod gen_DomRequestReadyState; #[cfg(feature = "DomRequestReadyState")] pub use gen_DomRequestReadyState::*; #[cfg(feature = "DomStringList")] #[allow(non_snake_case)] mod gen_DomStringList; #[cfg(feature = "DomStringList")] pub use gen_DomStringList::*; #[cfg(feature = "DomStringMap")] #[allow(non_snake_case)] mod gen_DomStringMap; #[cfg(feature = "DomStringMap")] pub use gen_DomStringMap::*; #[cfg(feature = "DomTokenList")] #[allow(non_snake_case)] mod gen_DomTokenList; #[cfg(feature = "DomTokenList")] pub use gen_DomTokenList::*; #[cfg(feature = "DomWindowResizeEventDetail")] #[allow(non_snake_case)] mod gen_DomWindowResizeEventDetail; #[cfg(feature = "DomWindowResizeEventDetail")] pub use gen_DomWindowResizeEventDetail::*; #[cfg(feature = "DragEvent")] #[allow(non_snake_case)] mod gen_DragEvent; #[cfg(feature = "DragEvent")] pub use gen_DragEvent::*; #[cfg(feature = "DragEventInit")] #[allow(non_snake_case)] mod gen_DragEventInit; #[cfg(feature = "DragEventInit")] pub use gen_DragEventInit::*; #[cfg(feature = "DynamicsCompressorNode")] #[allow(non_snake_case)] mod gen_DynamicsCompressorNode; #[cfg(feature = "DynamicsCompressorNode")] pub use gen_DynamicsCompressorNode::*; #[cfg(feature = "DynamicsCompressorOptions")] #[allow(non_snake_case)] mod gen_DynamicsCompressorOptions; #[cfg(feature = "DynamicsCompressorOptions")] pub use gen_DynamicsCompressorOptions::*; #[cfg(feature = "EcKeyAlgorithm")] #[allow(non_snake_case)] mod gen_EcKeyAlgorithm; #[cfg(feature = "EcKeyAlgorithm")] pub use gen_EcKeyAlgorithm::*; #[cfg(feature = "EcKeyGenParams")] #[allow(non_snake_case)] mod gen_EcKeyGenParams; #[cfg(feature = "EcKeyGenParams")] pub use gen_EcKeyGenParams::*; #[cfg(feature = "EcKeyImportParams")] #[allow(non_snake_case)] mod gen_EcKeyImportParams; #[cfg(feature = "EcKeyImportParams")] pub use gen_EcKeyImportParams::*; #[cfg(feature = "EcdhKeyDeriveParams")] #[allow(non_snake_case)] mod gen_EcdhKeyDeriveParams; #[cfg(feature = "EcdhKeyDeriveParams")] pub use gen_EcdhKeyDeriveParams::*; #[cfg(feature = "EcdsaParams")] #[allow(non_snake_case)] mod gen_EcdsaParams; #[cfg(feature = "EcdsaParams")] pub use gen_EcdsaParams::*; #[cfg(feature = "EffectTiming")] #[allow(non_snake_case)] mod gen_EffectTiming; #[cfg(feature = "EffectTiming")] pub use gen_EffectTiming::*; #[cfg(feature = "Element")] #[allow(non_snake_case)] mod gen_Element; #[cfg(feature = "Element")] pub use gen_Element::*; #[cfg(feature = "ElementCreationOptions")] #[allow(non_snake_case)] mod gen_ElementCreationOptions; #[cfg(feature = "ElementCreationOptions")] pub use gen_ElementCreationOptions::*; #[cfg(feature = "ElementDefinitionOptions")] #[allow(non_snake_case)] mod gen_ElementDefinitionOptions; #[cfg(feature = "ElementDefinitionOptions")] pub use gen_ElementDefinitionOptions::*; #[cfg(feature = "EndingTypes")] #[allow(non_snake_case)] mod gen_EndingTypes; #[cfg(feature = "EndingTypes")] pub use gen_EndingTypes::*; #[cfg(feature = "ErrorCallback")] #[allow(non_snake_case)] mod gen_ErrorCallback; #[cfg(feature = "ErrorCallback")] pub use gen_ErrorCallback::*; #[cfg(feature = "ErrorEvent")] #[allow(non_snake_case)] mod gen_ErrorEvent; #[cfg(feature = "ErrorEvent")] pub use gen_ErrorEvent::*; #[cfg(feature = "ErrorEventInit")] #[allow(non_snake_case)] mod gen_ErrorEventInit; #[cfg(feature = "ErrorEventInit")] pub use gen_ErrorEventInit::*; #[cfg(feature = "Event")] #[allow(non_snake_case)] mod gen_Event; #[cfg(feature = "Event")] pub use gen_Event::*; #[cfg(feature = "EventInit")] #[allow(non_snake_case)] mod gen_EventInit; #[cfg(feature = "EventInit")] pub use gen_EventInit::*; #[cfg(feature = "EventListener")] #[allow(non_snake_case)] mod gen_EventListener; #[cfg(feature = "EventListener")] pub use gen_EventListener::*; #[cfg(feature = "EventListenerOptions")] #[allow(non_snake_case)] mod gen_EventListenerOptions; #[cfg(feature = "EventListenerOptions")] pub use gen_EventListenerOptions::*; #[cfg(feature = "EventModifierInit")] #[allow(non_snake_case)] mod gen_EventModifierInit; #[cfg(feature = "EventModifierInit")] pub use gen_EventModifierInit::*; #[cfg(feature = "EventSource")] #[allow(non_snake_case)] mod gen_EventSource; #[cfg(feature = "EventSource")] pub use gen_EventSource::*; #[cfg(feature = "EventSourceInit")] #[allow(non_snake_case)] mod gen_EventSourceInit; #[cfg(feature = "EventSourceInit")] pub use gen_EventSourceInit::*; #[cfg(feature = "EventTarget")] #[allow(non_snake_case)] mod gen_EventTarget; #[cfg(feature = "EventTarget")] pub use gen_EventTarget::*; #[cfg(feature = "Exception")] #[allow(non_snake_case)] mod gen_Exception; #[cfg(feature = "Exception")] pub use gen_Exception::*; #[cfg(feature = "ExtBlendMinmax")] #[allow(non_snake_case)] mod gen_ExtBlendMinmax; #[cfg(feature = "ExtBlendMinmax")] pub use gen_ExtBlendMinmax::*; #[cfg(feature = "ExtColorBufferFloat")] #[allow(non_snake_case)] mod gen_ExtColorBufferFloat; #[cfg(feature = "ExtColorBufferFloat")] pub use gen_ExtColorBufferFloat::*; #[cfg(feature = "ExtColorBufferHalfFloat")] #[allow(non_snake_case)] mod gen_ExtColorBufferHalfFloat; #[cfg(feature = "ExtColorBufferHalfFloat")] pub use gen_ExtColorBufferHalfFloat::*; #[cfg(feature = "ExtDisjointTimerQuery")] #[allow(non_snake_case)] mod gen_ExtDisjointTimerQuery; #[cfg(feature = "ExtDisjointTimerQuery")] pub use gen_ExtDisjointTimerQuery::*; #[cfg(feature = "ExtFragDepth")] #[allow(non_snake_case)] mod gen_ExtFragDepth; #[cfg(feature = "ExtFragDepth")] pub use gen_ExtFragDepth::*; #[cfg(feature = "ExtSRgb")] #[allow(non_snake_case)] mod gen_ExtSRgb; #[cfg(feature = "ExtSRgb")] pub use gen_ExtSRgb::*; #[cfg(feature = "ExtShaderTextureLod")] #[allow(non_snake_case)] mod gen_ExtShaderTextureLod; #[cfg(feature = "ExtShaderTextureLod")] pub use gen_ExtShaderTextureLod::*; #[cfg(feature = "ExtTextureFilterAnisotropic")] #[allow(non_snake_case)] mod gen_ExtTextureFilterAnisotropic; #[cfg(feature = "ExtTextureFilterAnisotropic")] pub use gen_ExtTextureFilterAnisotropic::*; #[cfg(feature = "ExtendableEvent")] #[allow(non_snake_case)] mod gen_ExtendableEvent; #[cfg(feature = "ExtendableEvent")] pub use gen_ExtendableEvent::*; #[cfg(feature = "ExtendableEventInit")] #[allow(non_snake_case)] mod gen_ExtendableEventInit; #[cfg(feature = "ExtendableEventInit")] pub use gen_ExtendableEventInit::*; #[cfg(feature = "ExtendableMessageEvent")] #[allow(non_snake_case)] mod gen_ExtendableMessageEvent; #[cfg(feature = "ExtendableMessageEvent")] pub use gen_ExtendableMessageEvent::*; #[cfg(feature = "ExtendableMessageEventInit")] #[allow(non_snake_case)] mod gen_ExtendableMessageEventInit; #[cfg(feature = "ExtendableMessageEventInit")] pub use gen_ExtendableMessageEventInit::*; #[cfg(feature = "External")] #[allow(non_snake_case)] mod gen_External; #[cfg(feature = "External")] pub use gen_External::*; #[cfg(feature = "FakePluginMimeEntry")] #[allow(non_snake_case)] mod gen_FakePluginMimeEntry; #[cfg(feature = "FakePluginMimeEntry")] pub use gen_FakePluginMimeEntry::*; #[cfg(feature = "FakePluginTagInit")] #[allow(non_snake_case)] mod gen_FakePluginTagInit; #[cfg(feature = "FakePluginTagInit")] pub use gen_FakePluginTagInit::*; #[cfg(feature = "FetchEvent")] #[allow(non_snake_case)] mod gen_FetchEvent; #[cfg(feature = "FetchEvent")] pub use gen_FetchEvent::*; #[cfg(feature = "FetchEventInit")] #[allow(non_snake_case)] mod gen_FetchEventInit; #[cfg(feature = "FetchEventInit")] pub use gen_FetchEventInit::*; #[cfg(feature = "FetchObserver")] #[allow(non_snake_case)] mod gen_FetchObserver; #[cfg(feature = "FetchObserver")] pub use gen_FetchObserver::*; #[cfg(feature = "FetchReadableStreamReadDataArray")] #[allow(non_snake_case)] mod gen_FetchReadableStreamReadDataArray; #[cfg(feature = "FetchReadableStreamReadDataArray")] pub use gen_FetchReadableStreamReadDataArray::*; #[cfg(feature = "FetchReadableStreamReadDataDone")] #[allow(non_snake_case)] mod gen_FetchReadableStreamReadDataDone; #[cfg(feature = "FetchReadableStreamReadDataDone")] pub use gen_FetchReadableStreamReadDataDone::*; #[cfg(feature = "FetchState")] #[allow(non_snake_case)] mod gen_FetchState; #[cfg(feature = "FetchState")] pub use gen_FetchState::*; #[cfg(feature = "File")] #[allow(non_snake_case)] mod gen_File; #[cfg(feature = "File")] pub use gen_File::*; #[cfg(feature = "FileCallback")] #[allow(non_snake_case)] mod gen_FileCallback; #[cfg(feature = "FileCallback")] pub use gen_FileCallback::*; #[cfg(feature = "FileList")] #[allow(non_snake_case)] mod gen_FileList; #[cfg(feature = "FileList")] pub use gen_FileList::*; #[cfg(feature = "FilePropertyBag")] #[allow(non_snake_case)] mod gen_FilePropertyBag; #[cfg(feature = "FilePropertyBag")] pub use gen_FilePropertyBag::*; #[cfg(feature = "FileReader")] #[allow(non_snake_case)] mod gen_FileReader; #[cfg(feature = "FileReader")] pub use gen_FileReader::*; #[cfg(feature = "FileReaderSync")] #[allow(non_snake_case)] mod gen_FileReaderSync; #[cfg(feature = "FileReaderSync")] pub use gen_FileReaderSync::*; #[cfg(feature = "FileSystem")] #[allow(non_snake_case)] mod gen_FileSystem; #[cfg(feature = "FileSystem")] pub use gen_FileSystem::*; #[cfg(feature = "FileSystemDirectoryEntry")] #[allow(non_snake_case)] mod gen_FileSystemDirectoryEntry; #[cfg(feature = "FileSystemDirectoryEntry")] pub use gen_FileSystemDirectoryEntry::*; #[cfg(feature = "FileSystemDirectoryReader")] #[allow(non_snake_case)] mod gen_FileSystemDirectoryReader; #[cfg(feature = "FileSystemDirectoryReader")] pub use gen_FileSystemDirectoryReader::*; #[cfg(feature = "FileSystemEntriesCallback")] #[allow(non_snake_case)] mod gen_FileSystemEntriesCallback; #[cfg(feature = "FileSystemEntriesCallback")] pub use gen_FileSystemEntriesCallback::*; #[cfg(feature = "FileSystemEntry")] #[allow(non_snake_case)] mod gen_FileSystemEntry; #[cfg(feature = "FileSystemEntry")] pub use gen_FileSystemEntry::*; #[cfg(feature = "FileSystemEntryCallback")] #[allow(non_snake_case)] mod gen_FileSystemEntryCallback; #[cfg(feature = "FileSystemEntryCallback")] pub use gen_FileSystemEntryCallback::*; #[cfg(feature = "FileSystemFileEntry")] #[allow(non_snake_case)] mod gen_FileSystemFileEntry; #[cfg(feature = "FileSystemFileEntry")] pub use gen_FileSystemFileEntry::*; #[cfg(feature = "FileSystemFlags")] #[allow(non_snake_case)] mod gen_FileSystemFlags; #[cfg(feature = "FileSystemFlags")] pub use gen_FileSystemFlags::*; #[cfg(feature = "FillMode")] #[allow(non_snake_case)] mod gen_FillMode; #[cfg(feature = "FillMode")] pub use gen_FillMode::*; #[cfg(feature = "FlashClassification")] #[allow(non_snake_case)] mod gen_FlashClassification; #[cfg(feature = "FlashClassification")] pub use gen_FlashClassification::*; #[cfg(feature = "FlexLineGrowthState")] #[allow(non_snake_case)] mod gen_FlexLineGrowthState; #[cfg(feature = "FlexLineGrowthState")] pub use gen_FlexLineGrowthState::*; #[cfg(feature = "FocusEvent")] #[allow(non_snake_case)] mod gen_FocusEvent; #[cfg(feature = "FocusEvent")] pub use gen_FocusEvent::*; #[cfg(feature = "FocusEventInit")] #[allow(non_snake_case)] mod gen_FocusEventInit; #[cfg(feature = "FocusEventInit")] pub use gen_FocusEventInit::*; #[cfg(feature = "FontFace")] #[allow(non_snake_case)] mod gen_FontFace; #[cfg(feature = "FontFace")] pub use gen_FontFace::*; #[cfg(feature = "FontFaceDescriptors")] #[allow(non_snake_case)] mod gen_FontFaceDescriptors; #[cfg(feature = "FontFaceDescriptors")] pub use gen_FontFaceDescriptors::*; #[cfg(feature = "FontFaceLoadStatus")] #[allow(non_snake_case)] mod gen_FontFaceLoadStatus; #[cfg(feature = "FontFaceLoadStatus")] pub use gen_FontFaceLoadStatus::*; #[cfg(feature = "FontFaceSet")] #[allow(non_snake_case)] mod gen_FontFaceSet; #[cfg(feature = "FontFaceSet")] pub use gen_FontFaceSet::*; #[cfg(feature = "FontFaceSetIterator")] #[allow(non_snake_case)] mod gen_FontFaceSetIterator; #[cfg(feature = "FontFaceSetIterator")] pub use gen_FontFaceSetIterator::*; #[cfg(feature = "FontFaceSetIteratorResult")] #[allow(non_snake_case)] mod gen_FontFaceSetIteratorResult; #[cfg(feature = "FontFaceSetIteratorResult")] pub use gen_FontFaceSetIteratorResult::*; #[cfg(feature = "FontFaceSetLoadEvent")] #[allow(non_snake_case)] mod gen_FontFaceSetLoadEvent; #[cfg(feature = "FontFaceSetLoadEvent")] pub use gen_FontFaceSetLoadEvent::*; #[cfg(feature = "FontFaceSetLoadEventInit")] #[allow(non_snake_case)] mod gen_FontFaceSetLoadEventInit; #[cfg(feature = "FontFaceSetLoadEventInit")] pub use gen_FontFaceSetLoadEventInit::*; #[cfg(feature = "FontFaceSetLoadStatus")] #[allow(non_snake_case)] mod gen_FontFaceSetLoadStatus; #[cfg(feature = "FontFaceSetLoadStatus")] pub use gen_FontFaceSetLoadStatus::*; #[cfg(feature = "FormData")] #[allow(non_snake_case)] mod gen_FormData; #[cfg(feature = "FormData")] pub use gen_FormData::*; #[cfg(feature = "FrameType")] #[allow(non_snake_case)] mod gen_FrameType; #[cfg(feature = "FrameType")] pub use gen_FrameType::*; #[cfg(feature = "FuzzingFunctions")] #[allow(non_snake_case)] mod gen_FuzzingFunctions; #[cfg(feature = "FuzzingFunctions")] pub use gen_FuzzingFunctions::*; #[cfg(feature = "GainNode")] #[allow(non_snake_case)] mod gen_GainNode; #[cfg(feature = "GainNode")] pub use gen_GainNode::*; #[cfg(feature = "GainOptions")] #[allow(non_snake_case)] mod gen_GainOptions; #[cfg(feature = "GainOptions")] pub use gen_GainOptions::*; #[cfg(feature = "Gamepad")] #[allow(non_snake_case)] mod gen_Gamepad; #[cfg(feature = "Gamepad")] pub use gen_Gamepad::*; #[cfg(feature = "GamepadAxisMoveEvent")] #[allow(non_snake_case)] mod gen_GamepadAxisMoveEvent; #[cfg(feature = "GamepadAxisMoveEvent")] pub use gen_GamepadAxisMoveEvent::*; #[cfg(feature = "GamepadAxisMoveEventInit")] #[allow(non_snake_case)] mod gen_GamepadAxisMoveEventInit; #[cfg(feature = "GamepadAxisMoveEventInit")] pub use gen_GamepadAxisMoveEventInit::*; #[cfg(feature = "GamepadButton")] #[allow(non_snake_case)] mod gen_GamepadButton; #[cfg(feature = "GamepadButton")] pub use gen_GamepadButton::*; #[cfg(feature = "GamepadButtonEvent")] #[allow(non_snake_case)] mod gen_GamepadButtonEvent; #[cfg(feature = "GamepadButtonEvent")] pub use gen_GamepadButtonEvent::*; #[cfg(feature = "GamepadButtonEventInit")] #[allow(non_snake_case)] mod gen_GamepadButtonEventInit; #[cfg(feature = "GamepadButtonEventInit")] pub use gen_GamepadButtonEventInit::*; #[cfg(feature = "GamepadEvent")] #[allow(non_snake_case)] mod gen_GamepadEvent; #[cfg(feature = "GamepadEvent")] pub use gen_GamepadEvent::*; #[cfg(feature = "GamepadEventInit")] #[allow(non_snake_case)] mod gen_GamepadEventInit; #[cfg(feature = "GamepadEventInit")] pub use gen_GamepadEventInit::*; #[cfg(feature = "GamepadHand")] #[allow(non_snake_case)] mod gen_GamepadHand; #[cfg(feature = "GamepadHand")] pub use gen_GamepadHand::*; #[cfg(feature = "GamepadHapticActuator")] #[allow(non_snake_case)] mod gen_GamepadHapticActuator; #[cfg(feature = "GamepadHapticActuator")] pub use gen_GamepadHapticActuator::*; #[cfg(feature = "GamepadHapticActuatorType")] #[allow(non_snake_case)] mod gen_GamepadHapticActuatorType; #[cfg(feature = "GamepadHapticActuatorType")] pub use gen_GamepadHapticActuatorType::*; #[cfg(feature = "GamepadMappingType")] #[allow(non_snake_case)] mod gen_GamepadMappingType; #[cfg(feature = "GamepadMappingType")] pub use gen_GamepadMappingType::*; #[cfg(feature = "GamepadPose")] #[allow(non_snake_case)] mod gen_GamepadPose; #[cfg(feature = "GamepadPose")] pub use gen_GamepadPose::*; #[cfg(feature = "GamepadServiceTest")] #[allow(non_snake_case)] mod gen_GamepadServiceTest; #[cfg(feature = "GamepadServiceTest")] pub use gen_GamepadServiceTest::*; #[cfg(feature = "Geolocation")] #[allow(non_snake_case)] mod gen_Geolocation; #[cfg(feature = "Geolocation")] pub use gen_Geolocation::*; #[cfg(feature = "GetNotificationOptions")] #[allow(non_snake_case)] mod gen_GetNotificationOptions; #[cfg(feature = "GetNotificationOptions")] pub use gen_GetNotificationOptions::*; #[cfg(feature = "GetRootNodeOptions")] #[allow(non_snake_case)] mod gen_GetRootNodeOptions; #[cfg(feature = "GetRootNodeOptions")] pub use gen_GetRootNodeOptions::*; #[cfg(feature = "GetUserMediaRequest")] #[allow(non_snake_case)] mod gen_GetUserMediaRequest; #[cfg(feature = "GetUserMediaRequest")] pub use gen_GetUserMediaRequest::*; #[cfg(feature = "Gpu")] #[allow(non_snake_case)] mod gen_Gpu; #[cfg(feature = "Gpu")] pub use gen_Gpu::*; #[cfg(feature = "GpuAdapter")] #[allow(non_snake_case)] mod gen_GpuAdapter; #[cfg(feature = "GpuAdapter")] pub use gen_GpuAdapter::*; #[cfg(feature = "GpuAddressMode")] #[allow(non_snake_case)] mod gen_GpuAddressMode; #[cfg(feature = "GpuAddressMode")] pub use gen_GpuAddressMode::*; #[cfg(feature = "GpuBindGroup")] #[allow(non_snake_case)] mod gen_GpuBindGroup; #[cfg(feature = "GpuBindGroup")] pub use gen_GpuBindGroup::*; #[cfg(feature = "GpuBindGroupDescriptor")] #[allow(non_snake_case)] mod gen_GpuBindGroupDescriptor; #[cfg(feature = "GpuBindGroupDescriptor")] pub use gen_GpuBindGroupDescriptor::*; #[cfg(feature = "GpuBindGroupEntry")] #[allow(non_snake_case)] mod gen_GpuBindGroupEntry; #[cfg(feature = "GpuBindGroupEntry")] pub use gen_GpuBindGroupEntry::*; #[cfg(feature = "GpuBindGroupLayout")] #[allow(non_snake_case)] mod gen_GpuBindGroupLayout; #[cfg(feature = "GpuBindGroupLayout")] pub use gen_GpuBindGroupLayout::*; #[cfg(feature = "GpuBindGroupLayoutDescriptor")] #[allow(non_snake_case)] mod gen_GpuBindGroupLayoutDescriptor; #[cfg(feature = "GpuBindGroupLayoutDescriptor")] pub use gen_GpuBindGroupLayoutDescriptor::*; #[cfg(feature = "GpuBindGroupLayoutEntry")] #[allow(non_snake_case)] mod gen_GpuBindGroupLayoutEntry; #[cfg(feature = "GpuBindGroupLayoutEntry")] pub use gen_GpuBindGroupLayoutEntry::*; #[cfg(feature = "GpuBlendComponent")] #[allow(non_snake_case)] mod gen_GpuBlendComponent; #[cfg(feature = "GpuBlendComponent")] pub use gen_GpuBlendComponent::*; #[cfg(feature = "GpuBlendFactor")] #[allow(non_snake_case)] mod gen_GpuBlendFactor; #[cfg(feature = "GpuBlendFactor")] pub use gen_GpuBlendFactor::*; #[cfg(feature = "GpuBlendOperation")] #[allow(non_snake_case)] mod gen_GpuBlendOperation; #[cfg(feature = "GpuBlendOperation")] pub use gen_GpuBlendOperation::*; #[cfg(feature = "GpuBlendState")] #[allow(non_snake_case)] mod gen_GpuBlendState; #[cfg(feature = "GpuBlendState")] pub use gen_GpuBlendState::*; #[cfg(feature = "GpuBuffer")] #[allow(non_snake_case)] mod gen_GpuBuffer; #[cfg(feature = "GpuBuffer")] pub use gen_GpuBuffer::*; #[cfg(feature = "GpuBufferBinding")] #[allow(non_snake_case)] mod gen_GpuBufferBinding; #[cfg(feature = "GpuBufferBinding")] pub use gen_GpuBufferBinding::*; #[cfg(feature = "GpuBufferBindingLayout")] #[allow(non_snake_case)] mod gen_GpuBufferBindingLayout; #[cfg(feature = "GpuBufferBindingLayout")] pub use gen_GpuBufferBindingLayout::*; #[cfg(feature = "GpuBufferBindingType")] #[allow(non_snake_case)] mod gen_GpuBufferBindingType; #[cfg(feature = "GpuBufferBindingType")] pub use gen_GpuBufferBindingType::*; #[cfg(feature = "GpuBufferDescriptor")] #[allow(non_snake_case)] mod gen_GpuBufferDescriptor; #[cfg(feature = "GpuBufferDescriptor")] pub use gen_GpuBufferDescriptor::*; #[cfg(feature = "GpuBufferUsage")] #[allow(non_snake_case)] mod gen_GpuBufferUsage; #[cfg(feature = "GpuBufferUsage")] pub use gen_GpuBufferUsage::*; #[cfg(feature = "GpuCanvasCompositingAlphaMode")] #[allow(non_snake_case)] mod gen_GpuCanvasCompositingAlphaMode; #[cfg(feature = "GpuCanvasCompositingAlphaMode")] pub use gen_GpuCanvasCompositingAlphaMode::*; #[cfg(feature = "GpuCanvasConfiguration")] #[allow(non_snake_case)] mod gen_GpuCanvasConfiguration; #[cfg(feature = "GpuCanvasConfiguration")] pub use gen_GpuCanvasConfiguration::*; #[cfg(feature = "GpuCanvasContext")] #[allow(non_snake_case)] mod gen_GpuCanvasContext; #[cfg(feature = "GpuCanvasContext")] pub use gen_GpuCanvasContext::*; #[cfg(feature = "GpuColorDict")] #[allow(non_snake_case)] mod gen_GpuColorDict; #[cfg(feature = "GpuColorDict")] pub use gen_GpuColorDict::*; #[cfg(feature = "GpuColorTargetState")] #[allow(non_snake_case)] mod gen_GpuColorTargetState; #[cfg(feature = "GpuColorTargetState")] pub use gen_GpuColorTargetState::*; #[cfg(feature = "GpuColorWrite")] #[allow(non_snake_case)] mod gen_GpuColorWrite; #[cfg(feature = "GpuColorWrite")] pub use gen_GpuColorWrite::*; #[cfg(feature = "GpuCommandBuffer")] #[allow(non_snake_case)] mod gen_GpuCommandBuffer; #[cfg(feature = "GpuCommandBuffer")] pub use gen_GpuCommandBuffer::*; #[cfg(feature = "GpuCommandBufferDescriptor")] #[allow(non_snake_case)] mod gen_GpuCommandBufferDescriptor; #[cfg(feature = "GpuCommandBufferDescriptor")] pub use gen_GpuCommandBufferDescriptor::*; #[cfg(feature = "GpuCommandEncoder")] #[allow(non_snake_case)] mod gen_GpuCommandEncoder; #[cfg(feature = "GpuCommandEncoder")] pub use gen_GpuCommandEncoder::*; #[cfg(feature = "GpuCommandEncoderDescriptor")] #[allow(non_snake_case)] mod gen_GpuCommandEncoderDescriptor; #[cfg(feature = "GpuCommandEncoderDescriptor")] pub use gen_GpuCommandEncoderDescriptor::*; #[cfg(feature = "GpuCompareFunction")] #[allow(non_snake_case)] mod gen_GpuCompareFunction; #[cfg(feature = "GpuCompareFunction")] pub use gen_GpuCompareFunction::*; #[cfg(feature = "GpuCompilationInfo")] #[allow(non_snake_case)] mod gen_GpuCompilationInfo; #[cfg(feature = "GpuCompilationInfo")] pub use gen_GpuCompilationInfo::*; #[cfg(feature = "GpuCompilationMessage")] #[allow(non_snake_case)] mod gen_GpuCompilationMessage; #[cfg(feature = "GpuCompilationMessage")] pub use gen_GpuCompilationMessage::*; #[cfg(feature = "GpuCompilationMessageType")] #[allow(non_snake_case)] mod gen_GpuCompilationMessageType; #[cfg(feature = "GpuCompilationMessageType")] pub use gen_GpuCompilationMessageType::*; #[cfg(feature = "GpuComputePassDescriptor")] #[allow(non_snake_case)] mod gen_GpuComputePassDescriptor; #[cfg(feature = "GpuComputePassDescriptor")] pub use gen_GpuComputePassDescriptor::*; #[cfg(feature = "GpuComputePassEncoder")] #[allow(non_snake_case)] mod gen_GpuComputePassEncoder; #[cfg(feature = "GpuComputePassEncoder")] pub use gen_GpuComputePassEncoder::*; #[cfg(feature = "GpuComputePipeline")] #[allow(non_snake_case)] mod gen_GpuComputePipeline; #[cfg(feature = "GpuComputePipeline")] pub use gen_GpuComputePipeline::*; #[cfg(feature = "GpuComputePipelineDescriptor")] #[allow(non_snake_case)] mod gen_GpuComputePipelineDescriptor; #[cfg(feature = "GpuComputePipelineDescriptor")] pub use gen_GpuComputePipelineDescriptor::*; #[cfg(feature = "GpuCullMode")] #[allow(non_snake_case)] mod gen_GpuCullMode; #[cfg(feature = "GpuCullMode")] pub use gen_GpuCullMode::*; #[cfg(feature = "GpuDepthStencilState")] #[allow(non_snake_case)] mod gen_GpuDepthStencilState; #[cfg(feature = "GpuDepthStencilState")] pub use gen_GpuDepthStencilState::*; #[cfg(feature = "GpuDevice")] #[allow(non_snake_case)] mod gen_GpuDevice; #[cfg(feature = "GpuDevice")] pub use gen_GpuDevice::*; #[cfg(feature = "GpuDeviceDescriptor")] #[allow(non_snake_case)] mod gen_GpuDeviceDescriptor; #[cfg(feature = "GpuDeviceDescriptor")] pub use gen_GpuDeviceDescriptor::*; #[cfg(feature = "GpuDeviceLostInfo")] #[allow(non_snake_case)] mod gen_GpuDeviceLostInfo; #[cfg(feature = "GpuDeviceLostInfo")] pub use gen_GpuDeviceLostInfo::*; #[cfg(feature = "GpuDeviceLostReason")] #[allow(non_snake_case)] mod gen_GpuDeviceLostReason; #[cfg(feature = "GpuDeviceLostReason")] pub use gen_GpuDeviceLostReason::*; #[cfg(feature = "GpuErrorFilter")] #[allow(non_snake_case)] mod gen_GpuErrorFilter; #[cfg(feature = "GpuErrorFilter")] pub use gen_GpuErrorFilter::*; #[cfg(feature = "GpuExtent3dDict")] #[allow(non_snake_case)] mod gen_GpuExtent3dDict; #[cfg(feature = "GpuExtent3dDict")] pub use gen_GpuExtent3dDict::*; #[cfg(feature = "GpuExternalTexture")] #[allow(non_snake_case)] mod gen_GpuExternalTexture; #[cfg(feature = "GpuExternalTexture")] pub use gen_GpuExternalTexture::*; #[cfg(feature = "GpuExternalTextureBindingLayout")] #[allow(non_snake_case)] mod gen_GpuExternalTextureBindingLayout; #[cfg(feature = "GpuExternalTextureBindingLayout")] pub use gen_GpuExternalTextureBindingLayout::*; #[cfg(feature = "GpuExternalTextureDescriptor")] #[allow(non_snake_case)] mod gen_GpuExternalTextureDescriptor; #[cfg(feature = "GpuExternalTextureDescriptor")] pub use gen_GpuExternalTextureDescriptor::*; #[cfg(feature = "GpuFeatureName")] #[allow(non_snake_case)] mod gen_GpuFeatureName; #[cfg(feature = "GpuFeatureName")] pub use gen_GpuFeatureName::*; #[cfg(feature = "GpuFilterMode")] #[allow(non_snake_case)] mod gen_GpuFilterMode; #[cfg(feature = "GpuFilterMode")] pub use gen_GpuFilterMode::*; #[cfg(feature = "GpuFragmentState")] #[allow(non_snake_case)] mod gen_GpuFragmentState; #[cfg(feature = "GpuFragmentState")] pub use gen_GpuFragmentState::*; #[cfg(feature = "GpuFrontFace")] #[allow(non_snake_case)] mod gen_GpuFrontFace; #[cfg(feature = "GpuFrontFace")] pub use gen_GpuFrontFace::*; #[cfg(feature = "GpuImageCopyBuffer")] #[allow(non_snake_case)] mod gen_GpuImageCopyBuffer; #[cfg(feature = "GpuImageCopyBuffer")] pub use gen_GpuImageCopyBuffer::*; #[cfg(feature = "GpuImageCopyExternalImage")] #[allow(non_snake_case)] mod gen_GpuImageCopyExternalImage; #[cfg(feature = "GpuImageCopyExternalImage")] pub use gen_GpuImageCopyExternalImage::*; #[cfg(feature = "GpuImageCopyTexture")] #[allow(non_snake_case)] mod gen_GpuImageCopyTexture; #[cfg(feature = "GpuImageCopyTexture")] pub use gen_GpuImageCopyTexture::*; #[cfg(feature = "GpuImageCopyTextureTagged")] #[allow(non_snake_case)] mod gen_GpuImageCopyTextureTagged; #[cfg(feature = "GpuImageCopyTextureTagged")] pub use gen_GpuImageCopyTextureTagged::*; #[cfg(feature = "GpuImageDataLayout")] #[allow(non_snake_case)] mod gen_GpuImageDataLayout; #[cfg(feature = "GpuImageDataLayout")] pub use gen_GpuImageDataLayout::*; #[cfg(feature = "GpuIndexFormat")] #[allow(non_snake_case)] mod gen_GpuIndexFormat; #[cfg(feature = "GpuIndexFormat")] pub use gen_GpuIndexFormat::*; #[cfg(feature = "GpuLoadOp")] #[allow(non_snake_case)] mod gen_GpuLoadOp; #[cfg(feature = "GpuLoadOp")] pub use gen_GpuLoadOp::*; #[cfg(feature = "GpuMapMode")] #[allow(non_snake_case)] mod gen_GpuMapMode; #[cfg(feature = "GpuMapMode")] pub use gen_GpuMapMode::*; #[cfg(feature = "GpuMultisampleState")] #[allow(non_snake_case)] mod gen_GpuMultisampleState; #[cfg(feature = "GpuMultisampleState")] pub use gen_GpuMultisampleState::*; #[cfg(feature = "GpuObjectDescriptorBase")] #[allow(non_snake_case)] mod gen_GpuObjectDescriptorBase; #[cfg(feature = "GpuObjectDescriptorBase")] pub use gen_GpuObjectDescriptorBase::*; #[cfg(feature = "GpuOrigin2dDict")] #[allow(non_snake_case)] mod gen_GpuOrigin2dDict; #[cfg(feature = "GpuOrigin2dDict")] pub use gen_GpuOrigin2dDict::*; #[cfg(feature = "GpuOrigin3dDict")] #[allow(non_snake_case)] mod gen_GpuOrigin3dDict; #[cfg(feature = "GpuOrigin3dDict")] pub use gen_GpuOrigin3dDict::*; #[cfg(feature = "GpuOutOfMemoryError")] #[allow(non_snake_case)] mod gen_GpuOutOfMemoryError; #[cfg(feature = "GpuOutOfMemoryError")] pub use gen_GpuOutOfMemoryError::*; #[cfg(feature = "GpuPipelineDescriptorBase")] #[allow(non_snake_case)] mod gen_GpuPipelineDescriptorBase; #[cfg(feature = "GpuPipelineDescriptorBase")] pub use gen_GpuPipelineDescriptorBase::*; #[cfg(feature = "GpuPipelineLayout")] #[allow(non_snake_case)] mod gen_GpuPipelineLayout; #[cfg(feature = "GpuPipelineLayout")] pub use gen_GpuPipelineLayout::*; #[cfg(feature = "GpuPipelineLayoutDescriptor")] #[allow(non_snake_case)] mod gen_GpuPipelineLayoutDescriptor; #[cfg(feature = "GpuPipelineLayoutDescriptor")] pub use gen_GpuPipelineLayoutDescriptor::*; #[cfg(feature = "GpuPipelineStatisticName")] #[allow(non_snake_case)] mod gen_GpuPipelineStatisticName; #[cfg(feature = "GpuPipelineStatisticName")] pub use gen_GpuPipelineStatisticName::*; #[cfg(feature = "GpuPowerPreference")] #[allow(non_snake_case)] mod gen_GpuPowerPreference; #[cfg(feature = "GpuPowerPreference")] pub use gen_GpuPowerPreference::*; #[cfg(feature = "GpuPredefinedColorSpace")] #[allow(non_snake_case)] mod gen_GpuPredefinedColorSpace; #[cfg(feature = "GpuPredefinedColorSpace")] pub use gen_GpuPredefinedColorSpace::*; #[cfg(feature = "GpuPrimitiveState")] #[allow(non_snake_case)] mod gen_GpuPrimitiveState; #[cfg(feature = "GpuPrimitiveState")] pub use gen_GpuPrimitiveState::*; #[cfg(feature = "GpuPrimitiveTopology")] #[allow(non_snake_case)] mod gen_GpuPrimitiveTopology; #[cfg(feature = "GpuPrimitiveTopology")] pub use gen_GpuPrimitiveTopology::*; #[cfg(feature = "GpuProgrammableStage")] #[allow(non_snake_case)] mod gen_GpuProgrammableStage; #[cfg(feature = "GpuProgrammableStage")] pub use gen_GpuProgrammableStage::*; #[cfg(feature = "GpuQuerySet")] #[allow(non_snake_case)] mod gen_GpuQuerySet; #[cfg(feature = "GpuQuerySet")] pub use gen_GpuQuerySet::*; #[cfg(feature = "GpuQuerySetDescriptor")] #[allow(non_snake_case)] mod gen_GpuQuerySetDescriptor; #[cfg(feature = "GpuQuerySetDescriptor")] pub use gen_GpuQuerySetDescriptor::*; #[cfg(feature = "GpuQueryType")] #[allow(non_snake_case)] mod gen_GpuQueryType; #[cfg(feature = "GpuQueryType")] pub use gen_GpuQueryType::*; #[cfg(feature = "GpuQueue")] #[allow(non_snake_case)] mod gen_GpuQueue; #[cfg(feature = "GpuQueue")] pub use gen_GpuQueue::*; #[cfg(feature = "GpuRenderBundle")] #[allow(non_snake_case)] mod gen_GpuRenderBundle; #[cfg(feature = "GpuRenderBundle")] pub use gen_GpuRenderBundle::*; #[cfg(feature = "GpuRenderBundleDescriptor")] #[allow(non_snake_case)] mod gen_GpuRenderBundleDescriptor; #[cfg(feature = "GpuRenderBundleDescriptor")] pub use gen_GpuRenderBundleDescriptor::*; #[cfg(feature = "GpuRenderBundleEncoder")] #[allow(non_snake_case)] mod gen_GpuRenderBundleEncoder; #[cfg(feature = "GpuRenderBundleEncoder")] pub use gen_GpuRenderBundleEncoder::*; #[cfg(feature = "GpuRenderBundleEncoderDescriptor")] #[allow(non_snake_case)] mod gen_GpuRenderBundleEncoderDescriptor; #[cfg(feature = "GpuRenderBundleEncoderDescriptor")] pub use gen_GpuRenderBundleEncoderDescriptor::*; #[cfg(feature = "GpuRenderPassColorAttachment")] #[allow(non_snake_case)] mod gen_GpuRenderPassColorAttachment; #[cfg(feature = "GpuRenderPassColorAttachment")] pub use gen_GpuRenderPassColorAttachment::*; #[cfg(feature = "GpuRenderPassDepthStencilAttachment")] #[allow(non_snake_case)] mod gen_GpuRenderPassDepthStencilAttachment; #[cfg(feature = "GpuRenderPassDepthStencilAttachment")] pub use gen_GpuRenderPassDepthStencilAttachment::*; #[cfg(feature = "GpuRenderPassDescriptor")] #[allow(non_snake_case)] mod gen_GpuRenderPassDescriptor; #[cfg(feature = "GpuRenderPassDescriptor")] pub use gen_GpuRenderPassDescriptor::*; #[cfg(feature = "GpuRenderPassEncoder")] #[allow(non_snake_case)] mod gen_GpuRenderPassEncoder; #[cfg(feature = "GpuRenderPassEncoder")] pub use gen_GpuRenderPassEncoder::*; #[cfg(feature = "GpuRenderPassLayout")] #[allow(non_snake_case)] mod gen_GpuRenderPassLayout; #[cfg(feature = "GpuRenderPassLayout")] pub use gen_GpuRenderPassLayout::*; #[cfg(feature = "GpuRenderPipeline")] #[allow(non_snake_case)] mod gen_GpuRenderPipeline; #[cfg(feature = "GpuRenderPipeline")] pub use gen_GpuRenderPipeline::*; #[cfg(feature = "GpuRenderPipelineDescriptor")] #[allow(non_snake_case)] mod gen_GpuRenderPipelineDescriptor; #[cfg(feature = "GpuRenderPipelineDescriptor")] pub use gen_GpuRenderPipelineDescriptor::*; #[cfg(feature = "GpuRequestAdapterOptions")] #[allow(non_snake_case)] mod gen_GpuRequestAdapterOptions; #[cfg(feature = "GpuRequestAdapterOptions")] pub use gen_GpuRequestAdapterOptions::*; #[cfg(feature = "GpuSampler")] #[allow(non_snake_case)] mod gen_GpuSampler; #[cfg(feature = "GpuSampler")] pub use gen_GpuSampler::*; #[cfg(feature = "GpuSamplerBindingLayout")] #[allow(non_snake_case)] mod gen_GpuSamplerBindingLayout; #[cfg(feature = "GpuSamplerBindingLayout")] pub use gen_GpuSamplerBindingLayout::*; #[cfg(feature = "GpuSamplerBindingType")] #[allow(non_snake_case)] mod gen_GpuSamplerBindingType; #[cfg(feature = "GpuSamplerBindingType")] pub use gen_GpuSamplerBindingType::*; #[cfg(feature = "GpuSamplerDescriptor")] #[allow(non_snake_case)] mod gen_GpuSamplerDescriptor; #[cfg(feature = "GpuSamplerDescriptor")] pub use gen_GpuSamplerDescriptor::*; #[cfg(feature = "GpuShaderModule")] #[allow(non_snake_case)] mod gen_GpuShaderModule; #[cfg(feature = "GpuShaderModule")] pub use gen_GpuShaderModule::*; #[cfg(feature = "GpuShaderModuleDescriptor")] #[allow(non_snake_case)] mod gen_GpuShaderModuleDescriptor; #[cfg(feature = "GpuShaderModuleDescriptor")] pub use gen_GpuShaderModuleDescriptor::*; #[cfg(feature = "GpuShaderStage")] #[allow(non_snake_case)] mod gen_GpuShaderStage; #[cfg(feature = "GpuShaderStage")] pub use gen_GpuShaderStage::*; #[cfg(feature = "GpuStencilFaceState")] #[allow(non_snake_case)] mod gen_GpuStencilFaceState; #[cfg(feature = "GpuStencilFaceState")] pub use gen_GpuStencilFaceState::*; #[cfg(feature = "GpuStencilOperation")] #[allow(non_snake_case)] mod gen_GpuStencilOperation; #[cfg(feature = "GpuStencilOperation")] pub use gen_GpuStencilOperation::*; #[cfg(feature = "GpuStorageTextureAccess")] #[allow(non_snake_case)] mod gen_GpuStorageTextureAccess; #[cfg(feature = "GpuStorageTextureAccess")] pub use gen_GpuStorageTextureAccess::*; #[cfg(feature = "GpuStorageTextureBindingLayout")] #[allow(non_snake_case)] mod gen_GpuStorageTextureBindingLayout; #[cfg(feature = "GpuStorageTextureBindingLayout")] pub use gen_GpuStorageTextureBindingLayout::*; #[cfg(feature = "GpuStoreOp")] #[allow(non_snake_case)] mod gen_GpuStoreOp; #[cfg(feature = "GpuStoreOp")] pub use gen_GpuStoreOp::*; #[cfg(feature = "GpuSupportedFeatures")] #[allow(non_snake_case)] mod gen_GpuSupportedFeatures; #[cfg(feature = "GpuSupportedFeatures")] pub use gen_GpuSupportedFeatures::*; #[cfg(feature = "GpuSupportedLimits")] #[allow(non_snake_case)] mod gen_GpuSupportedLimits; #[cfg(feature = "GpuSupportedLimits")] pub use gen_GpuSupportedLimits::*; #[cfg(feature = "GpuTexture")] #[allow(non_snake_case)] mod gen_GpuTexture; #[cfg(feature = "GpuTexture")] pub use gen_GpuTexture::*; #[cfg(feature = "GpuTextureAspect")] #[allow(non_snake_case)] mod gen_GpuTextureAspect; #[cfg(feature = "GpuTextureAspect")] pub use gen_GpuTextureAspect::*; #[cfg(feature = "GpuTextureBindingLayout")] #[allow(non_snake_case)] mod gen_GpuTextureBindingLayout; #[cfg(feature = "GpuTextureBindingLayout")] pub use gen_GpuTextureBindingLayout::*; #[cfg(feature = "GpuTextureDescriptor")] #[allow(non_snake_case)] mod gen_GpuTextureDescriptor; #[cfg(feature = "GpuTextureDescriptor")] pub use gen_GpuTextureDescriptor::*; #[cfg(feature = "GpuTextureDimension")] #[allow(non_snake_case)] mod gen_GpuTextureDimension; #[cfg(feature = "GpuTextureDimension")] pub use gen_GpuTextureDimension::*; #[cfg(feature = "GpuTextureFormat")] #[allow(non_snake_case)] mod gen_GpuTextureFormat; #[cfg(feature = "GpuTextureFormat")] pub use gen_GpuTextureFormat::*; #[cfg(feature = "GpuTextureSampleType")] #[allow(non_snake_case)] mod gen_GpuTextureSampleType; #[cfg(feature = "GpuTextureSampleType")] pub use gen_GpuTextureSampleType::*; #[cfg(feature = "GpuTextureUsage")] #[allow(non_snake_case)] mod gen_GpuTextureUsage; #[cfg(feature = "GpuTextureUsage")] pub use gen_GpuTextureUsage::*; #[cfg(feature = "GpuTextureView")] #[allow(non_snake_case)] mod gen_GpuTextureView; #[cfg(feature = "GpuTextureView")] pub use gen_GpuTextureView::*; #[cfg(feature = "GpuTextureViewDescriptor")] #[allow(non_snake_case)] mod gen_GpuTextureViewDescriptor; #[cfg(feature = "GpuTextureViewDescriptor")] pub use gen_GpuTextureViewDescriptor::*; #[cfg(feature = "GpuTextureViewDimension")] #[allow(non_snake_case)] mod gen_GpuTextureViewDimension; #[cfg(feature = "GpuTextureViewDimension")] pub use gen_GpuTextureViewDimension::*; #[cfg(feature = "GpuUncapturedErrorEvent")] #[allow(non_snake_case)] mod gen_GpuUncapturedErrorEvent; #[cfg(feature = "GpuUncapturedErrorEvent")] pub use gen_GpuUncapturedErrorEvent::*; #[cfg(feature = "GpuUncapturedErrorEventInit")] #[allow(non_snake_case)] mod gen_GpuUncapturedErrorEventInit; #[cfg(feature = "GpuUncapturedErrorEventInit")] pub use gen_GpuUncapturedErrorEventInit::*; #[cfg(feature = "GpuValidationError")] #[allow(non_snake_case)] mod gen_GpuValidationError; #[cfg(feature = "GpuValidationError")] pub use gen_GpuValidationError::*; #[cfg(feature = "GpuVertexAttribute")] #[allow(non_snake_case)] mod gen_GpuVertexAttribute; #[cfg(feature = "GpuVertexAttribute")] pub use gen_GpuVertexAttribute::*; #[cfg(feature = "GpuVertexBufferLayout")] #[allow(non_snake_case)] mod gen_GpuVertexBufferLayout; #[cfg(feature = "GpuVertexBufferLayout")] pub use gen_GpuVertexBufferLayout::*; #[cfg(feature = "GpuVertexFormat")] #[allow(non_snake_case)] mod gen_GpuVertexFormat; #[cfg(feature = "GpuVertexFormat")] pub use gen_GpuVertexFormat::*; #[cfg(feature = "GpuVertexState")] #[allow(non_snake_case)] mod gen_GpuVertexState; #[cfg(feature = "GpuVertexState")] pub use gen_GpuVertexState::*; #[cfg(feature = "GpuVertexStepMode")] #[allow(non_snake_case)] mod gen_GpuVertexStepMode; #[cfg(feature = "GpuVertexStepMode")] pub use gen_GpuVertexStepMode::*; #[cfg(feature = "GridDeclaration")] #[allow(non_snake_case)] mod gen_GridDeclaration; #[cfg(feature = "GridDeclaration")] pub use gen_GridDeclaration::*; #[cfg(feature = "GridTrackState")] #[allow(non_snake_case)] mod gen_GridTrackState; #[cfg(feature = "GridTrackState")] pub use gen_GridTrackState::*; #[cfg(feature = "GroupedHistoryEventInit")] #[allow(non_snake_case)] mod gen_GroupedHistoryEventInit; #[cfg(feature = "GroupedHistoryEventInit")] pub use gen_GroupedHistoryEventInit::*; #[cfg(feature = "HalfOpenInfoDict")] #[allow(non_snake_case)] mod gen_HalfOpenInfoDict; #[cfg(feature = "HalfOpenInfoDict")] pub use gen_HalfOpenInfoDict::*; #[cfg(feature = "HashChangeEvent")] #[allow(non_snake_case)] mod gen_HashChangeEvent; #[cfg(feature = "HashChangeEvent")] pub use gen_HashChangeEvent::*; #[cfg(feature = "HashChangeEventInit")] #[allow(non_snake_case)] mod gen_HashChangeEventInit; #[cfg(feature = "HashChangeEventInit")] pub use gen_HashChangeEventInit::*; #[cfg(feature = "Headers")] #[allow(non_snake_case)] mod gen_Headers; #[cfg(feature = "Headers")] pub use gen_Headers::*; #[cfg(feature = "HeadersGuardEnum")] #[allow(non_snake_case)] mod gen_HeadersGuardEnum; #[cfg(feature = "HeadersGuardEnum")] pub use gen_HeadersGuardEnum::*; #[cfg(feature = "Hid")] #[allow(non_snake_case)] mod gen_Hid; #[cfg(feature = "Hid")] pub use gen_Hid::*; #[cfg(feature = "HidCollectionInfo")] #[allow(non_snake_case)] mod gen_HidCollectionInfo; #[cfg(feature = "HidCollectionInfo")] pub use gen_HidCollectionInfo::*; #[cfg(feature = "HidConnectionEvent")] #[allow(non_snake_case)] mod gen_HidConnectionEvent; #[cfg(feature = "HidConnectionEvent")] pub use gen_HidConnectionEvent::*; #[cfg(feature = "HidConnectionEventInit")] #[allow(non_snake_case)] mod gen_HidConnectionEventInit; #[cfg(feature = "HidConnectionEventInit")] pub use gen_HidConnectionEventInit::*; #[cfg(feature = "HidDevice")] #[allow(non_snake_case)] mod gen_HidDevice; #[cfg(feature = "HidDevice")] pub use gen_HidDevice::*; #[cfg(feature = "HidDeviceFilter")] #[allow(non_snake_case)] mod gen_HidDeviceFilter; #[cfg(feature = "HidDeviceFilter")] pub use gen_HidDeviceFilter::*; #[cfg(feature = "HidDeviceRequestOptions")] #[allow(non_snake_case)] mod gen_HidDeviceRequestOptions; #[cfg(feature = "HidDeviceRequestOptions")] pub use gen_HidDeviceRequestOptions::*; #[cfg(feature = "HidInputReportEvent")] #[allow(non_snake_case)] mod gen_HidInputReportEvent; #[cfg(feature = "HidInputReportEvent")] pub use gen_HidInputReportEvent::*; #[cfg(feature = "HidInputReportEventInit")] #[allow(non_snake_case)] mod gen_HidInputReportEventInit; #[cfg(feature = "HidInputReportEventInit")] pub use gen_HidInputReportEventInit::*; #[cfg(feature = "HidReportInfo")] #[allow(non_snake_case)] mod gen_HidReportInfo; #[cfg(feature = "HidReportInfo")] pub use gen_HidReportInfo::*; #[cfg(feature = "HidReportItem")] #[allow(non_snake_case)] mod gen_HidReportItem; #[cfg(feature = "HidReportItem")] pub use gen_HidReportItem::*; #[cfg(feature = "HidUnitSystem")] #[allow(non_snake_case)] mod gen_HidUnitSystem; #[cfg(feature = "HidUnitSystem")] pub use gen_HidUnitSystem::*; #[cfg(feature = "HiddenPluginEventInit")] #[allow(non_snake_case)] mod gen_HiddenPluginEventInit; #[cfg(feature = "HiddenPluginEventInit")] pub use gen_HiddenPluginEventInit::*; #[cfg(feature = "History")] #[allow(non_snake_case)] mod gen_History; #[cfg(feature = "History")] pub use gen_History::*; #[cfg(feature = "HitRegionOptions")] #[allow(non_snake_case)] mod gen_HitRegionOptions; #[cfg(feature = "HitRegionOptions")] pub use gen_HitRegionOptions::*; #[cfg(feature = "HkdfParams")] #[allow(non_snake_case)] mod gen_HkdfParams; #[cfg(feature = "HkdfParams")] pub use gen_HkdfParams::*; #[cfg(feature = "HmacDerivedKeyParams")] #[allow(non_snake_case)] mod gen_HmacDerivedKeyParams; #[cfg(feature = "HmacDerivedKeyParams")] pub use gen_HmacDerivedKeyParams::*; #[cfg(feature = "HmacImportParams")] #[allow(non_snake_case)] mod gen_HmacImportParams; #[cfg(feature = "HmacImportParams")] pub use gen_HmacImportParams::*; #[cfg(feature = "HmacKeyAlgorithm")] #[allow(non_snake_case)] mod gen_HmacKeyAlgorithm; #[cfg(feature = "HmacKeyAlgorithm")] pub use gen_HmacKeyAlgorithm::*; #[cfg(feature = "HmacKeyGenParams")] #[allow(non_snake_case)] mod gen_HmacKeyGenParams; #[cfg(feature = "HmacKeyGenParams")] pub use gen_HmacKeyGenParams::*; #[cfg(feature = "HtmlAllCollection")] #[allow(non_snake_case)] mod gen_HtmlAllCollection; #[cfg(feature = "HtmlAllCollection")] pub use gen_HtmlAllCollection::*; #[cfg(feature = "HtmlAnchorElement")] #[allow(non_snake_case)] mod gen_HtmlAnchorElement; #[cfg(feature = "HtmlAnchorElement")] pub use gen_HtmlAnchorElement::*; #[cfg(feature = "HtmlAreaElement")] #[allow(non_snake_case)] mod gen_HtmlAreaElement; #[cfg(feature = "HtmlAreaElement")] pub use gen_HtmlAreaElement::*; #[cfg(feature = "HtmlAudioElement")] #[allow(non_snake_case)] mod gen_HtmlAudioElement; #[cfg(feature = "HtmlAudioElement")] pub use gen_HtmlAudioElement::*; #[cfg(feature = "HtmlBaseElement")] #[allow(non_snake_case)] mod gen_HtmlBaseElement; #[cfg(feature = "HtmlBaseElement")] pub use gen_HtmlBaseElement::*; #[cfg(feature = "HtmlBodyElement")] #[allow(non_snake_case)] mod gen_HtmlBodyElement; #[cfg(feature = "HtmlBodyElement")] pub use gen_HtmlBodyElement::*; #[cfg(feature = "HtmlBrElement")] #[allow(non_snake_case)] mod gen_HtmlBrElement; #[cfg(feature = "HtmlBrElement")] pub use gen_HtmlBrElement::*; #[cfg(feature = "HtmlButtonElement")] #[allow(non_snake_case)] mod gen_HtmlButtonElement; #[cfg(feature = "HtmlButtonElement")] pub use gen_HtmlButtonElement::*; #[cfg(feature = "HtmlCanvasElement")] #[allow(non_snake_case)] mod gen_HtmlCanvasElement; #[cfg(feature = "HtmlCanvasElement")] pub use gen_HtmlCanvasElement::*; #[cfg(feature = "HtmlCollection")] #[allow(non_snake_case)] mod gen_HtmlCollection; #[cfg(feature = "HtmlCollection")] pub use gen_HtmlCollection::*; #[cfg(feature = "HtmlDListElement")] #[allow(non_snake_case)] mod gen_HtmlDListElement; #[cfg(feature = "HtmlDListElement")] pub use gen_HtmlDListElement::*; #[cfg(feature = "HtmlDataElement")] #[allow(non_snake_case)] mod gen_HtmlDataElement; #[cfg(feature = "HtmlDataElement")] pub use gen_HtmlDataElement::*; #[cfg(feature = "HtmlDataListElement")] #[allow(non_snake_case)] mod gen_HtmlDataListElement; #[cfg(feature = "HtmlDataListElement")] pub use gen_HtmlDataListElement::*; #[cfg(feature = "HtmlDetailsElement")] #[allow(non_snake_case)] mod gen_HtmlDetailsElement; #[cfg(feature = "HtmlDetailsElement")] pub use gen_HtmlDetailsElement::*; #[cfg(feature = "HtmlDialogElement")] #[allow(non_snake_case)] mod gen_HtmlDialogElement; #[cfg(feature = "HtmlDialogElement")] pub use gen_HtmlDialogElement::*; #[cfg(feature = "HtmlDirectoryElement")] #[allow(non_snake_case)] mod gen_HtmlDirectoryElement; #[cfg(feature = "HtmlDirectoryElement")] pub use gen_HtmlDirectoryElement::*; #[cfg(feature = "HtmlDivElement")] #[allow(non_snake_case)] mod gen_HtmlDivElement; #[cfg(feature = "HtmlDivElement")] pub use gen_HtmlDivElement::*; #[cfg(feature = "HtmlDocument")] #[allow(non_snake_case)] mod gen_HtmlDocument; #[cfg(feature = "HtmlDocument")] pub use gen_HtmlDocument::*; #[cfg(feature = "HtmlElement")] #[allow(non_snake_case)] mod gen_HtmlElement; #[cfg(feature = "HtmlElement")] pub use gen_HtmlElement::*; #[cfg(feature = "HtmlEmbedElement")] #[allow(non_snake_case)] mod gen_HtmlEmbedElement; #[cfg(feature = "HtmlEmbedElement")] pub use gen_HtmlEmbedElement::*; #[cfg(feature = "HtmlFieldSetElement")] #[allow(non_snake_case)] mod gen_HtmlFieldSetElement; #[cfg(feature = "HtmlFieldSetElement")] pub use gen_HtmlFieldSetElement::*; #[cfg(feature = "HtmlFontElement")] #[allow(non_snake_case)] mod gen_HtmlFontElement; #[cfg(feature = "HtmlFontElement")] pub use gen_HtmlFontElement::*; #[cfg(feature = "HtmlFormControlsCollection")] #[allow(non_snake_case)] mod gen_HtmlFormControlsCollection; #[cfg(feature = "HtmlFormControlsCollection")] pub use gen_HtmlFormControlsCollection::*; #[cfg(feature = "HtmlFormElement")] #[allow(non_snake_case)] mod gen_HtmlFormElement; #[cfg(feature = "HtmlFormElement")] pub use gen_HtmlFormElement::*; #[cfg(feature = "HtmlFrameElement")] #[allow(non_snake_case)] mod gen_HtmlFrameElement; #[cfg(feature = "HtmlFrameElement")] pub use gen_HtmlFrameElement::*; #[cfg(feature = "HtmlFrameSetElement")] #[allow(non_snake_case)] mod gen_HtmlFrameSetElement; #[cfg(feature = "HtmlFrameSetElement")] pub use gen_HtmlFrameSetElement::*; #[cfg(feature = "HtmlHeadElement")] #[allow(non_snake_case)] mod gen_HtmlHeadElement; #[cfg(feature = "HtmlHeadElement")] pub use gen_HtmlHeadElement::*; #[cfg(feature = "HtmlHeadingElement")] #[allow(non_snake_case)] mod gen_HtmlHeadingElement; #[cfg(feature = "HtmlHeadingElement")] pub use gen_HtmlHeadingElement::*; #[cfg(feature = "HtmlHrElement")] #[allow(non_snake_case)] mod gen_HtmlHrElement; #[cfg(feature = "HtmlHrElement")] pub use gen_HtmlHrElement::*; #[cfg(feature = "HtmlHtmlElement")] #[allow(non_snake_case)] mod gen_HtmlHtmlElement; #[cfg(feature = "HtmlHtmlElement")] pub use gen_HtmlHtmlElement::*; #[cfg(feature = "HtmlIFrameElement")] #[allow(non_snake_case)] mod gen_HtmlIFrameElement; #[cfg(feature = "HtmlIFrameElement")] pub use gen_HtmlIFrameElement::*; #[cfg(feature = "HtmlImageElement")] #[allow(non_snake_case)] mod gen_HtmlImageElement; #[cfg(feature = "HtmlImageElement")] pub use gen_HtmlImageElement::*; #[cfg(feature = "HtmlInputElement")] #[allow(non_snake_case)] mod gen_HtmlInputElement; #[cfg(feature = "HtmlInputElement")] pub use gen_HtmlInputElement::*; #[cfg(feature = "HtmlLabelElement")] #[allow(non_snake_case)] mod gen_HtmlLabelElement; #[cfg(feature = "HtmlLabelElement")] pub use gen_HtmlLabelElement::*; #[cfg(feature = "HtmlLegendElement")] #[allow(non_snake_case)] mod gen_HtmlLegendElement; #[cfg(feature = "HtmlLegendElement")] pub use gen_HtmlLegendElement::*; #[cfg(feature = "HtmlLiElement")] #[allow(non_snake_case)] mod gen_HtmlLiElement; #[cfg(feature = "HtmlLiElement")] pub use gen_HtmlLiElement::*; #[cfg(feature = "HtmlLinkElement")] #[allow(non_snake_case)] mod gen_HtmlLinkElement; #[cfg(feature = "HtmlLinkElement")] pub use gen_HtmlLinkElement::*; #[cfg(feature = "HtmlMapElement")] #[allow(non_snake_case)] mod gen_HtmlMapElement; #[cfg(feature = "HtmlMapElement")] pub use gen_HtmlMapElement::*; #[cfg(feature = "HtmlMediaElement")] #[allow(non_snake_case)] mod gen_HtmlMediaElement; #[cfg(feature = "HtmlMediaElement")] pub use gen_HtmlMediaElement::*; #[cfg(feature = "HtmlMenuElement")] #[allow(non_snake_case)] mod gen_HtmlMenuElement; #[cfg(feature = "HtmlMenuElement")] pub use gen_HtmlMenuElement::*; #[cfg(feature = "HtmlMenuItemElement")] #[allow(non_snake_case)] mod gen_HtmlMenuItemElement; #[cfg(feature = "HtmlMenuItemElement")] pub use gen_HtmlMenuItemElement::*; #[cfg(feature = "HtmlMetaElement")] #[allow(non_snake_case)] mod gen_HtmlMetaElement; #[cfg(feature = "HtmlMetaElement")] pub use gen_HtmlMetaElement::*; #[cfg(feature = "HtmlMeterElement")] #[allow(non_snake_case)] mod gen_HtmlMeterElement; #[cfg(feature = "HtmlMeterElement")] pub use gen_HtmlMeterElement::*; #[cfg(feature = "HtmlModElement")] #[allow(non_snake_case)] mod gen_HtmlModElement; #[cfg(feature = "HtmlModElement")] pub use gen_HtmlModElement::*; #[cfg(feature = "HtmlOListElement")] #[allow(non_snake_case)] mod gen_HtmlOListElement; #[cfg(feature = "HtmlOListElement")] pub use gen_HtmlOListElement::*; #[cfg(feature = "HtmlObjectElement")] #[allow(non_snake_case)] mod gen_HtmlObjectElement; #[cfg(feature = "HtmlObjectElement")] pub use gen_HtmlObjectElement::*; #[cfg(feature = "HtmlOptGroupElement")] #[allow(non_snake_case)] mod gen_HtmlOptGroupElement; #[cfg(feature = "HtmlOptGroupElement")] pub use gen_HtmlOptGroupElement::*; #[cfg(feature = "HtmlOptionElement")] #[allow(non_snake_case)] mod gen_HtmlOptionElement; #[cfg(feature = "HtmlOptionElement")] pub use gen_HtmlOptionElement::*; #[cfg(feature = "HtmlOptionsCollection")] #[allow(non_snake_case)] mod gen_HtmlOptionsCollection; #[cfg(feature = "HtmlOptionsCollection")] pub use gen_HtmlOptionsCollection::*; #[cfg(feature = "HtmlOutputElement")] #[allow(non_snake_case)] mod gen_HtmlOutputElement; #[cfg(feature = "HtmlOutputElement")] pub use gen_HtmlOutputElement::*; #[cfg(feature = "HtmlParagraphElement")] #[allow(non_snake_case)] mod gen_HtmlParagraphElement; #[cfg(feature = "HtmlParagraphElement")] pub use gen_HtmlParagraphElement::*; #[cfg(feature = "HtmlParamElement")] #[allow(non_snake_case)] mod gen_HtmlParamElement; #[cfg(feature = "HtmlParamElement")] pub use gen_HtmlParamElement::*; #[cfg(feature = "HtmlPictureElement")] #[allow(non_snake_case)] mod gen_HtmlPictureElement; #[cfg(feature = "HtmlPictureElement")] pub use gen_HtmlPictureElement::*; #[cfg(feature = "HtmlPreElement")] #[allow(non_snake_case)] mod gen_HtmlPreElement; #[cfg(feature = "HtmlPreElement")] pub use gen_HtmlPreElement::*; #[cfg(feature = "HtmlProgressElement")] #[allow(non_snake_case)] mod gen_HtmlProgressElement; #[cfg(feature = "HtmlProgressElement")] pub use gen_HtmlProgressElement::*; #[cfg(feature = "HtmlQuoteElement")] #[allow(non_snake_case)] mod gen_HtmlQuoteElement; #[cfg(feature = "HtmlQuoteElement")] pub use gen_HtmlQuoteElement::*; #[cfg(feature = "HtmlScriptElement")] #[allow(non_snake_case)] mod gen_HtmlScriptElement; #[cfg(feature = "HtmlScriptElement")] pub use gen_HtmlScriptElement::*; #[cfg(feature = "HtmlSelectElement")] #[allow(non_snake_case)] mod gen_HtmlSelectElement; #[cfg(feature = "HtmlSelectElement")] pub use gen_HtmlSelectElement::*; #[cfg(feature = "HtmlSlotElement")] #[allow(non_snake_case)] mod gen_HtmlSlotElement; #[cfg(feature = "HtmlSlotElement")] pub use gen_HtmlSlotElement::*; #[cfg(feature = "HtmlSourceElement")] #[allow(non_snake_case)] mod gen_HtmlSourceElement; #[cfg(feature = "HtmlSourceElement")] pub use gen_HtmlSourceElement::*; #[cfg(feature = "HtmlSpanElement")] #[allow(non_snake_case)] mod gen_HtmlSpanElement; #[cfg(feature = "HtmlSpanElement")] pub use gen_HtmlSpanElement::*; #[cfg(feature = "HtmlStyleElement")] #[allow(non_snake_case)] mod gen_HtmlStyleElement; #[cfg(feature = "HtmlStyleElement")] pub use gen_HtmlStyleElement::*; #[cfg(feature = "HtmlTableCaptionElement")] #[allow(non_snake_case)] mod gen_HtmlTableCaptionElement; #[cfg(feature = "HtmlTableCaptionElement")] pub use gen_HtmlTableCaptionElement::*; #[cfg(feature = "HtmlTableCellElement")] #[allow(non_snake_case)] mod gen_HtmlTableCellElement; #[cfg(feature = "HtmlTableCellElement")] pub use gen_HtmlTableCellElement::*; #[cfg(feature = "HtmlTableColElement")] #[allow(non_snake_case)] mod gen_HtmlTableColElement; #[cfg(feature = "HtmlTableColElement")] pub use gen_HtmlTableColElement::*; #[cfg(feature = "HtmlTableElement")] #[allow(non_snake_case)] mod gen_HtmlTableElement; #[cfg(feature = "HtmlTableElement")] pub use gen_HtmlTableElement::*; #[cfg(feature = "HtmlTableRowElement")] #[allow(non_snake_case)] mod gen_HtmlTableRowElement; #[cfg(feature = "HtmlTableRowElement")] pub use gen_HtmlTableRowElement::*; #[cfg(feature = "HtmlTableSectionElement")] #[allow(non_snake_case)] mod gen_HtmlTableSectionElement; #[cfg(feature = "HtmlTableSectionElement")] pub use gen_HtmlTableSectionElement::*; #[cfg(feature = "HtmlTemplateElement")] #[allow(non_snake_case)] mod gen_HtmlTemplateElement; #[cfg(feature = "HtmlTemplateElement")] pub use gen_HtmlTemplateElement::*; #[cfg(feature = "HtmlTextAreaElement")] #[allow(non_snake_case)] mod gen_HtmlTextAreaElement; #[cfg(feature = "HtmlTextAreaElement")] pub use gen_HtmlTextAreaElement::*; #[cfg(feature = "HtmlTimeElement")] #[allow(non_snake_case)] mod gen_HtmlTimeElement; #[cfg(feature = "HtmlTimeElement")] pub use gen_HtmlTimeElement::*; #[cfg(feature = "HtmlTitleElement")] #[allow(non_snake_case)] mod gen_HtmlTitleElement; #[cfg(feature = "HtmlTitleElement")] pub use gen_HtmlTitleElement::*; #[cfg(feature = "HtmlTrackElement")] #[allow(non_snake_case)] mod gen_HtmlTrackElement; #[cfg(feature = "HtmlTrackElement")] pub use gen_HtmlTrackElement::*; #[cfg(feature = "HtmlUListElement")] #[allow(non_snake_case)] mod gen_HtmlUListElement; #[cfg(feature = "HtmlUListElement")] pub use gen_HtmlUListElement::*; #[cfg(feature = "HtmlUnknownElement")] #[allow(non_snake_case)] mod gen_HtmlUnknownElement; #[cfg(feature = "HtmlUnknownElement")] pub use gen_HtmlUnknownElement::*; #[cfg(feature = "HtmlVideoElement")] #[allow(non_snake_case)] mod gen_HtmlVideoElement; #[cfg(feature = "HtmlVideoElement")] pub use gen_HtmlVideoElement::*; #[cfg(feature = "HttpConnDict")] #[allow(non_snake_case)] mod gen_HttpConnDict; #[cfg(feature = "HttpConnDict")] pub use gen_HttpConnDict::*; #[cfg(feature = "HttpConnInfo")] #[allow(non_snake_case)] mod gen_HttpConnInfo; #[cfg(feature = "HttpConnInfo")] pub use gen_HttpConnInfo::*; #[cfg(feature = "HttpConnectionElement")] #[allow(non_snake_case)] mod gen_HttpConnectionElement; #[cfg(feature = "HttpConnectionElement")] pub use gen_HttpConnectionElement::*; #[cfg(feature = "IdbCursor")] #[allow(non_snake_case)] mod gen_IdbCursor; #[cfg(feature = "IdbCursor")] pub use gen_IdbCursor::*; #[cfg(feature = "IdbCursorDirection")] #[allow(non_snake_case)] mod gen_IdbCursorDirection; #[cfg(feature = "IdbCursorDirection")] pub use gen_IdbCursorDirection::*; #[cfg(feature = "IdbCursorWithValue")] #[allow(non_snake_case)] mod gen_IdbCursorWithValue; #[cfg(feature = "IdbCursorWithValue")] pub use gen_IdbCursorWithValue::*; #[cfg(feature = "IdbDatabase")] #[allow(non_snake_case)] mod gen_IdbDatabase; #[cfg(feature = "IdbDatabase")] pub use gen_IdbDatabase::*; #[cfg(feature = "IdbFactory")] #[allow(non_snake_case)] mod gen_IdbFactory; #[cfg(feature = "IdbFactory")] pub use gen_IdbFactory::*; #[cfg(feature = "IdbFileHandle")] #[allow(non_snake_case)] mod gen_IdbFileHandle; #[cfg(feature = "IdbFileHandle")] pub use gen_IdbFileHandle::*; #[cfg(feature = "IdbFileMetadataParameters")] #[allow(non_snake_case)] mod gen_IdbFileMetadataParameters; #[cfg(feature = "IdbFileMetadataParameters")] pub use gen_IdbFileMetadataParameters::*; #[cfg(feature = "IdbFileRequest")] #[allow(non_snake_case)] mod gen_IdbFileRequest; #[cfg(feature = "IdbFileRequest")] pub use gen_IdbFileRequest::*; #[cfg(feature = "IdbIndex")] #[allow(non_snake_case)] mod gen_IdbIndex; #[cfg(feature = "IdbIndex")] pub use gen_IdbIndex::*; #[cfg(feature = "IdbIndexParameters")] #[allow(non_snake_case)] mod gen_IdbIndexParameters; #[cfg(feature = "IdbIndexParameters")] pub use gen_IdbIndexParameters::*; #[cfg(feature = "IdbKeyRange")] #[allow(non_snake_case)] mod gen_IdbKeyRange; #[cfg(feature = "IdbKeyRange")] pub use gen_IdbKeyRange::*; #[cfg(feature = "IdbLocaleAwareKeyRange")] #[allow(non_snake_case)] mod gen_IdbLocaleAwareKeyRange; #[cfg(feature = "IdbLocaleAwareKeyRange")] pub use gen_IdbLocaleAwareKeyRange::*; #[cfg(feature = "IdbMutableFile")] #[allow(non_snake_case)] mod gen_IdbMutableFile; #[cfg(feature = "IdbMutableFile")] pub use gen_IdbMutableFile::*; #[cfg(feature = "IdbObjectStore")] #[allow(non_snake_case)] mod gen_IdbObjectStore; #[cfg(feature = "IdbObjectStore")] pub use gen_IdbObjectStore::*; #[cfg(feature = "IdbObjectStoreParameters")] #[allow(non_snake_case)] mod gen_IdbObjectStoreParameters; #[cfg(feature = "IdbObjectStoreParameters")] pub use gen_IdbObjectStoreParameters::*; #[cfg(feature = "IdbOpenDbOptions")] #[allow(non_snake_case)] mod gen_IdbOpenDbOptions; #[cfg(feature = "IdbOpenDbOptions")] pub use gen_IdbOpenDbOptions::*; #[cfg(feature = "IdbOpenDbRequest")] #[allow(non_snake_case)] mod gen_IdbOpenDbRequest; #[cfg(feature = "IdbOpenDbRequest")] pub use gen_IdbOpenDbRequest::*; #[cfg(feature = "IdbRequest")] #[allow(non_snake_case)] mod gen_IdbRequest; #[cfg(feature = "IdbRequest")] pub use gen_IdbRequest::*; #[cfg(feature = "IdbRequestReadyState")] #[allow(non_snake_case)] mod gen_IdbRequestReadyState; #[cfg(feature = "IdbRequestReadyState")] pub use gen_IdbRequestReadyState::*; #[cfg(feature = "IdbTransaction")] #[allow(non_snake_case)] mod gen_IdbTransaction; #[cfg(feature = "IdbTransaction")] pub use gen_IdbTransaction::*; #[cfg(feature = "IdbTransactionMode")] #[allow(non_snake_case)] mod gen_IdbTransactionMode; #[cfg(feature = "IdbTransactionMode")] pub use gen_IdbTransactionMode::*; #[cfg(feature = "IdbVersionChangeEvent")] #[allow(non_snake_case)] mod gen_IdbVersionChangeEvent; #[cfg(feature = "IdbVersionChangeEvent")] pub use gen_IdbVersionChangeEvent::*; #[cfg(feature = "IdbVersionChangeEventInit")] #[allow(non_snake_case)] mod gen_IdbVersionChangeEventInit; #[cfg(feature = "IdbVersionChangeEventInit")] pub use gen_IdbVersionChangeEventInit::*; #[cfg(feature = "IdleDeadline")] #[allow(non_snake_case)] mod gen_IdleDeadline; #[cfg(feature = "IdleDeadline")] pub use gen_IdleDeadline::*; #[cfg(feature = "IdleRequestOptions")] #[allow(non_snake_case)] mod gen_IdleRequestOptions; #[cfg(feature = "IdleRequestOptions")] pub use gen_IdleRequestOptions::*; #[cfg(feature = "IirFilterNode")] #[allow(non_snake_case)] mod gen_IirFilterNode; #[cfg(feature = "IirFilterNode")] pub use gen_IirFilterNode::*; #[cfg(feature = "IirFilterOptions")] #[allow(non_snake_case)] mod gen_IirFilterOptions; #[cfg(feature = "IirFilterOptions")] pub use gen_IirFilterOptions::*; #[cfg(feature = "ImageBitmap")] #[allow(non_snake_case)] mod gen_ImageBitmap; #[cfg(feature = "ImageBitmap")] pub use gen_ImageBitmap::*; #[cfg(feature = "ImageBitmapFormat")] #[allow(non_snake_case)] mod gen_ImageBitmapFormat; #[cfg(feature = "ImageBitmapFormat")] pub use gen_ImageBitmapFormat::*; #[cfg(feature = "ImageBitmapRenderingContext")] #[allow(non_snake_case)] mod gen_ImageBitmapRenderingContext; #[cfg(feature = "ImageBitmapRenderingContext")] pub use gen_ImageBitmapRenderingContext::*; #[cfg(feature = "ImageCapture")] #[allow(non_snake_case)] mod gen_ImageCapture; #[cfg(feature = "ImageCapture")] pub use gen_ImageCapture::*; #[cfg(feature = "ImageCaptureError")] #[allow(non_snake_case)] mod gen_ImageCaptureError; #[cfg(feature = "ImageCaptureError")] pub use gen_ImageCaptureError::*; #[cfg(feature = "ImageCaptureErrorEvent")] #[allow(non_snake_case)] mod gen_ImageCaptureErrorEvent; #[cfg(feature = "ImageCaptureErrorEvent")] pub use gen_ImageCaptureErrorEvent::*; #[cfg(feature = "ImageCaptureErrorEventInit")] #[allow(non_snake_case)] mod gen_ImageCaptureErrorEventInit; #[cfg(feature = "ImageCaptureErrorEventInit")] pub use gen_ImageCaptureErrorEventInit::*; #[cfg(feature = "ImageData")] #[allow(non_snake_case)] mod gen_ImageData; #[cfg(feature = "ImageData")] pub use gen_ImageData::*; #[cfg(feature = "InputEvent")] #[allow(non_snake_case)] mod gen_InputEvent; #[cfg(feature = "InputEvent")] pub use gen_InputEvent::*; #[cfg(feature = "InputEventInit")] #[allow(non_snake_case)] mod gen_InputEventInit; #[cfg(feature = "InputEventInit")] pub use gen_InputEventInit::*; #[cfg(feature = "InstallTriggerData")] #[allow(non_snake_case)] mod gen_InstallTriggerData; #[cfg(feature = "InstallTriggerData")] pub use gen_InstallTriggerData::*; #[cfg(feature = "IntersectionObserver")] #[allow(non_snake_case)] mod gen_IntersectionObserver; #[cfg(feature = "IntersectionObserver")] pub use gen_IntersectionObserver::*; #[cfg(feature = "IntersectionObserverEntry")] #[allow(non_snake_case)] mod gen_IntersectionObserverEntry; #[cfg(feature = "IntersectionObserverEntry")] pub use gen_IntersectionObserverEntry::*; #[cfg(feature = "IntersectionObserverEntryInit")] #[allow(non_snake_case)] mod gen_IntersectionObserverEntryInit; #[cfg(feature = "IntersectionObserverEntryInit")] pub use gen_IntersectionObserverEntryInit::*; #[cfg(feature = "IntersectionObserverInit")] #[allow(non_snake_case)] mod gen_IntersectionObserverInit; #[cfg(feature = "IntersectionObserverInit")] pub use gen_IntersectionObserverInit::*; #[cfg(feature = "IntlUtils")] #[allow(non_snake_case)] mod gen_IntlUtils; #[cfg(feature = "IntlUtils")] pub use gen_IntlUtils::*; #[cfg(feature = "IterableKeyAndValueResult")] #[allow(non_snake_case)] mod gen_IterableKeyAndValueResult; #[cfg(feature = "IterableKeyAndValueResult")] pub use gen_IterableKeyAndValueResult::*; #[cfg(feature = "IterableKeyOrValueResult")] #[allow(non_snake_case)] mod gen_IterableKeyOrValueResult; #[cfg(feature = "IterableKeyOrValueResult")] pub use gen_IterableKeyOrValueResult::*; #[cfg(feature = "IterationCompositeOperation")] #[allow(non_snake_case)] mod gen_IterationCompositeOperation; #[cfg(feature = "IterationCompositeOperation")] pub use gen_IterationCompositeOperation::*; #[cfg(feature = "JsonWebKey")] #[allow(non_snake_case)] mod gen_JsonWebKey; #[cfg(feature = "JsonWebKey")] pub use gen_JsonWebKey::*; #[cfg(feature = "KeyAlgorithm")] #[allow(non_snake_case)] mod gen_KeyAlgorithm; #[cfg(feature = "KeyAlgorithm")] pub use gen_KeyAlgorithm::*; #[cfg(feature = "KeyEvent")] #[allow(non_snake_case)] mod gen_KeyEvent; #[cfg(feature = "KeyEvent")] pub use gen_KeyEvent::*; #[cfg(feature = "KeyIdsInitData")] #[allow(non_snake_case)] mod gen_KeyIdsInitData; #[cfg(feature = "KeyIdsInitData")] pub use gen_KeyIdsInitData::*; #[cfg(feature = "KeyboardEvent")] #[allow(non_snake_case)] mod gen_KeyboardEvent; #[cfg(feature = "KeyboardEvent")] pub use gen_KeyboardEvent::*; #[cfg(feature = "KeyboardEventInit")] #[allow(non_snake_case)] mod gen_KeyboardEventInit; #[cfg(feature = "KeyboardEventInit")] pub use gen_KeyboardEventInit::*; #[cfg(feature = "KeyframeEffect")] #[allow(non_snake_case)] mod gen_KeyframeEffect; #[cfg(feature = "KeyframeEffect")] pub use gen_KeyframeEffect::*; #[cfg(feature = "KeyframeEffectOptions")] #[allow(non_snake_case)] mod gen_KeyframeEffectOptions; #[cfg(feature = "KeyframeEffectOptions")] pub use gen_KeyframeEffectOptions::*; #[cfg(feature = "L10nElement")] #[allow(non_snake_case)] mod gen_L10nElement; #[cfg(feature = "L10nElement")] pub use gen_L10nElement::*; #[cfg(feature = "L10nValue")] #[allow(non_snake_case)] mod gen_L10nValue; #[cfg(feature = "L10nValue")] pub use gen_L10nValue::*; #[cfg(feature = "LifecycleCallbacks")] #[allow(non_snake_case)] mod gen_LifecycleCallbacks; #[cfg(feature = "LifecycleCallbacks")] pub use gen_LifecycleCallbacks::*; #[cfg(feature = "LineAlignSetting")] #[allow(non_snake_case)] mod gen_LineAlignSetting; #[cfg(feature = "LineAlignSetting")] pub use gen_LineAlignSetting::*; #[cfg(feature = "ListBoxObject")] #[allow(non_snake_case)] mod gen_ListBoxObject; #[cfg(feature = "ListBoxObject")] pub use gen_ListBoxObject::*; #[cfg(feature = "LocalMediaStream")] #[allow(non_snake_case)] mod gen_LocalMediaStream; #[cfg(feature = "LocalMediaStream")] pub use gen_LocalMediaStream::*; #[cfg(feature = "LocaleInfo")] #[allow(non_snake_case)] mod gen_LocaleInfo; #[cfg(feature = "LocaleInfo")] pub use gen_LocaleInfo::*; #[cfg(feature = "Location")] #[allow(non_snake_case)] mod gen_Location; #[cfg(feature = "Location")] pub use gen_Location::*; #[cfg(feature = "MediaCapabilities")] #[allow(non_snake_case)] mod gen_MediaCapabilities; #[cfg(feature = "MediaCapabilities")] pub use gen_MediaCapabilities::*; #[cfg(feature = "MediaCapabilitiesInfo")] #[allow(non_snake_case)] mod gen_MediaCapabilitiesInfo; #[cfg(feature = "MediaCapabilitiesInfo")] pub use gen_MediaCapabilitiesInfo::*; #[cfg(feature = "MediaConfiguration")] #[allow(non_snake_case)] mod gen_MediaConfiguration; #[cfg(feature = "MediaConfiguration")] pub use gen_MediaConfiguration::*; #[cfg(feature = "MediaDecodingConfiguration")] #[allow(non_snake_case)] mod gen_MediaDecodingConfiguration; #[cfg(feature = "MediaDecodingConfiguration")] pub use gen_MediaDecodingConfiguration::*; #[cfg(feature = "MediaDecodingType")] #[allow(non_snake_case)] mod gen_MediaDecodingType; #[cfg(feature = "MediaDecodingType")] pub use gen_MediaDecodingType::*; #[cfg(feature = "MediaDeviceInfo")] #[allow(non_snake_case)] mod gen_MediaDeviceInfo; #[cfg(feature = "MediaDeviceInfo")] pub use gen_MediaDeviceInfo::*; #[cfg(feature = "MediaDeviceKind")] #[allow(non_snake_case)] mod gen_MediaDeviceKind; #[cfg(feature = "MediaDeviceKind")] pub use gen_MediaDeviceKind::*; #[cfg(feature = "MediaDevices")] #[allow(non_snake_case)] mod gen_MediaDevices; #[cfg(feature = "MediaDevices")] pub use gen_MediaDevices::*; #[cfg(feature = "MediaElementAudioSourceNode")] #[allow(non_snake_case)] mod gen_MediaElementAudioSourceNode; #[cfg(feature = "MediaElementAudioSourceNode")] pub use gen_MediaElementAudioSourceNode::*; #[cfg(feature = "MediaElementAudioSourceOptions")] #[allow(non_snake_case)] mod gen_MediaElementAudioSourceOptions; #[cfg(feature = "MediaElementAudioSourceOptions")] pub use gen_MediaElementAudioSourceOptions::*; #[cfg(feature = "MediaEncodingConfiguration")] #[allow(non_snake_case)] mod gen_MediaEncodingConfiguration; #[cfg(feature = "MediaEncodingConfiguration")] pub use gen_MediaEncodingConfiguration::*; #[cfg(feature = "MediaEncodingType")] #[allow(non_snake_case)] mod gen_MediaEncodingType; #[cfg(feature = "MediaEncodingType")] pub use gen_MediaEncodingType::*; #[cfg(feature = "MediaEncryptedEvent")] #[allow(non_snake_case)] mod gen_MediaEncryptedEvent; #[cfg(feature = "MediaEncryptedEvent")] pub use gen_MediaEncryptedEvent::*; #[cfg(feature = "MediaError")] #[allow(non_snake_case)] mod gen_MediaError; #[cfg(feature = "MediaError")] pub use gen_MediaError::*; #[cfg(feature = "MediaKeyError")] #[allow(non_snake_case)] mod gen_MediaKeyError; #[cfg(feature = "MediaKeyError")] pub use gen_MediaKeyError::*; #[cfg(feature = "MediaKeyMessageEvent")] #[allow(non_snake_case)] mod gen_MediaKeyMessageEvent; #[cfg(feature = "MediaKeyMessageEvent")] pub use gen_MediaKeyMessageEvent::*; #[cfg(feature = "MediaKeyMessageEventInit")] #[allow(non_snake_case)] mod gen_MediaKeyMessageEventInit; #[cfg(feature = "MediaKeyMessageEventInit")] pub use gen_MediaKeyMessageEventInit::*; #[cfg(feature = "MediaKeyMessageType")] #[allow(non_snake_case)] mod gen_MediaKeyMessageType; #[cfg(feature = "MediaKeyMessageType")] pub use gen_MediaKeyMessageType::*; #[cfg(feature = "MediaKeyNeededEventInit")] #[allow(non_snake_case)] mod gen_MediaKeyNeededEventInit; #[cfg(feature = "MediaKeyNeededEventInit")] pub use gen_MediaKeyNeededEventInit::*; #[cfg(feature = "MediaKeySession")] #[allow(non_snake_case)] mod gen_MediaKeySession; #[cfg(feature = "MediaKeySession")] pub use gen_MediaKeySession::*; #[cfg(feature = "MediaKeySessionType")] #[allow(non_snake_case)] mod gen_MediaKeySessionType; #[cfg(feature = "MediaKeySessionType")] pub use gen_MediaKeySessionType::*; #[cfg(feature = "MediaKeyStatus")] #[allow(non_snake_case)] mod gen_MediaKeyStatus; #[cfg(feature = "MediaKeyStatus")] pub use gen_MediaKeyStatus::*; #[cfg(feature = "MediaKeyStatusMap")] #[allow(non_snake_case)] mod gen_MediaKeyStatusMap; #[cfg(feature = "MediaKeyStatusMap")] pub use gen_MediaKeyStatusMap::*; #[cfg(feature = "MediaKeySystemAccess")] #[allow(non_snake_case)] mod gen_MediaKeySystemAccess; #[cfg(feature = "MediaKeySystemAccess")] pub use gen_MediaKeySystemAccess::*; #[cfg(feature = "MediaKeySystemConfiguration")] #[allow(non_snake_case)] mod gen_MediaKeySystemConfiguration; #[cfg(feature = "MediaKeySystemConfiguration")] pub use gen_MediaKeySystemConfiguration::*; #[cfg(feature = "MediaKeySystemMediaCapability")] #[allow(non_snake_case)] mod gen_MediaKeySystemMediaCapability; #[cfg(feature = "MediaKeySystemMediaCapability")] pub use gen_MediaKeySystemMediaCapability::*; #[cfg(feature = "MediaKeySystemStatus")] #[allow(non_snake_case)] mod gen_MediaKeySystemStatus; #[cfg(feature = "MediaKeySystemStatus")] pub use gen_MediaKeySystemStatus::*; #[cfg(feature = "MediaKeys")] #[allow(non_snake_case)] mod gen_MediaKeys; #[cfg(feature = "MediaKeys")] pub use gen_MediaKeys::*; #[cfg(feature = "MediaKeysPolicy")] #[allow(non_snake_case)] mod gen_MediaKeysPolicy; #[cfg(feature = "MediaKeysPolicy")] pub use gen_MediaKeysPolicy::*; #[cfg(feature = "MediaKeysRequirement")] #[allow(non_snake_case)] mod gen_MediaKeysRequirement; #[cfg(feature = "MediaKeysRequirement")] pub use gen_MediaKeysRequirement::*; #[cfg(feature = "MediaList")] #[allow(non_snake_case)] mod gen_MediaList; #[cfg(feature = "MediaList")] pub use gen_MediaList::*; #[cfg(feature = "MediaQueryList")] #[allow(non_snake_case)] mod gen_MediaQueryList; #[cfg(feature = "MediaQueryList")] pub use gen_MediaQueryList::*; #[cfg(feature = "MediaQueryListEvent")] #[allow(non_snake_case)] mod gen_MediaQueryListEvent; #[cfg(feature = "MediaQueryListEvent")] pub use gen_MediaQueryListEvent::*; #[cfg(feature = "MediaQueryListEventInit")] #[allow(non_snake_case)] mod gen_MediaQueryListEventInit; #[cfg(feature = "MediaQueryListEventInit")] pub use gen_MediaQueryListEventInit::*; #[cfg(feature = "MediaRecorder")] #[allow(non_snake_case)] mod gen_MediaRecorder; #[cfg(feature = "MediaRecorder")] pub use gen_MediaRecorder::*; #[cfg(feature = "MediaRecorderErrorEvent")] #[allow(non_snake_case)] mod gen_MediaRecorderErrorEvent; #[cfg(feature = "MediaRecorderErrorEvent")] pub use gen_MediaRecorderErrorEvent::*; #[cfg(feature = "MediaRecorderErrorEventInit")] #[allow(non_snake_case)] mod gen_MediaRecorderErrorEventInit; #[cfg(feature = "MediaRecorderErrorEventInit")] pub use gen_MediaRecorderErrorEventInit::*; #[cfg(feature = "MediaRecorderOptions")] #[allow(non_snake_case)] mod gen_MediaRecorderOptions; #[cfg(feature = "MediaRecorderOptions")] pub use gen_MediaRecorderOptions::*; #[cfg(feature = "MediaSource")] #[allow(non_snake_case)] mod gen_MediaSource; #[cfg(feature = "MediaSource")] pub use gen_MediaSource::*; #[cfg(feature = "MediaSourceEndOfStreamError")] #[allow(non_snake_case)] mod gen_MediaSourceEndOfStreamError; #[cfg(feature = "MediaSourceEndOfStreamError")] pub use gen_MediaSourceEndOfStreamError::*; #[cfg(feature = "MediaSourceEnum")] #[allow(non_snake_case)] mod gen_MediaSourceEnum; #[cfg(feature = "MediaSourceEnum")] pub use gen_MediaSourceEnum::*; #[cfg(feature = "MediaSourceReadyState")] #[allow(non_snake_case)] mod gen_MediaSourceReadyState; #[cfg(feature = "MediaSourceReadyState")] pub use gen_MediaSourceReadyState::*; #[cfg(feature = "MediaStream")] #[allow(non_snake_case)] mod gen_MediaStream; #[cfg(feature = "MediaStream")] pub use gen_MediaStream::*; #[cfg(feature = "MediaStreamAudioDestinationNode")] #[allow(non_snake_case)] mod gen_MediaStreamAudioDestinationNode; #[cfg(feature = "MediaStreamAudioDestinationNode")] pub use gen_MediaStreamAudioDestinationNode::*; #[cfg(feature = "MediaStreamAudioSourceNode")] #[allow(non_snake_case)] mod gen_MediaStreamAudioSourceNode; #[cfg(feature = "MediaStreamAudioSourceNode")] pub use gen_MediaStreamAudioSourceNode::*; #[cfg(feature = "MediaStreamAudioSourceOptions")] #[allow(non_snake_case)] mod gen_MediaStreamAudioSourceOptions; #[cfg(feature = "MediaStreamAudioSourceOptions")] pub use gen_MediaStreamAudioSourceOptions::*; #[cfg(feature = "MediaStreamConstraints")] #[allow(non_snake_case)] mod gen_MediaStreamConstraints; #[cfg(feature = "MediaStreamConstraints")] pub use gen_MediaStreamConstraints::*; #[cfg(feature = "MediaStreamError")] #[allow(non_snake_case)] mod gen_MediaStreamError; #[cfg(feature = "MediaStreamError")] pub use gen_MediaStreamError::*; #[cfg(feature = "MediaStreamEvent")] #[allow(non_snake_case)] mod gen_MediaStreamEvent; #[cfg(feature = "MediaStreamEvent")] pub use gen_MediaStreamEvent::*; #[cfg(feature = "MediaStreamEventInit")] #[allow(non_snake_case)] mod gen_MediaStreamEventInit; #[cfg(feature = "MediaStreamEventInit")] pub use gen_MediaStreamEventInit::*; #[cfg(feature = "MediaStreamTrack")] #[allow(non_snake_case)] mod gen_MediaStreamTrack; #[cfg(feature = "MediaStreamTrack")] pub use gen_MediaStreamTrack::*; #[cfg(feature = "MediaStreamTrackEvent")] #[allow(non_snake_case)] mod gen_MediaStreamTrackEvent; #[cfg(feature = "MediaStreamTrackEvent")] pub use gen_MediaStreamTrackEvent::*; #[cfg(feature = "MediaStreamTrackEventInit")] #[allow(non_snake_case)] mod gen_MediaStreamTrackEventInit; #[cfg(feature = "MediaStreamTrackEventInit")] pub use gen_MediaStreamTrackEventInit::*; #[cfg(feature = "MediaStreamTrackState")] #[allow(non_snake_case)] mod gen_MediaStreamTrackState; #[cfg(feature = "MediaStreamTrackState")] pub use gen_MediaStreamTrackState::*; #[cfg(feature = "MediaTrackConstraintSet")] #[allow(non_snake_case)] mod gen_MediaTrackConstraintSet; #[cfg(feature = "MediaTrackConstraintSet")] pub use gen_MediaTrackConstraintSet::*; #[cfg(feature = "MediaTrackConstraints")] #[allow(non_snake_case)] mod gen_MediaTrackConstraints; #[cfg(feature = "MediaTrackConstraints")] pub use gen_MediaTrackConstraints::*; #[cfg(feature = "MediaTrackSettings")] #[allow(non_snake_case)] mod gen_MediaTrackSettings; #[cfg(feature = "MediaTrackSettings")] pub use gen_MediaTrackSettings::*; #[cfg(feature = "MediaTrackSupportedConstraints")] #[allow(non_snake_case)] mod gen_MediaTrackSupportedConstraints; #[cfg(feature = "MediaTrackSupportedConstraints")] pub use gen_MediaTrackSupportedConstraints::*; #[cfg(feature = "MessageChannel")] #[allow(non_snake_case)] mod gen_MessageChannel; #[cfg(feature = "MessageChannel")] pub use gen_MessageChannel::*; #[cfg(feature = "MessageEvent")] #[allow(non_snake_case)] mod gen_MessageEvent; #[cfg(feature = "MessageEvent")] pub use gen_MessageEvent::*; #[cfg(feature = "MessageEventInit")] #[allow(non_snake_case)] mod gen_MessageEventInit; #[cfg(feature = "MessageEventInit")] pub use gen_MessageEventInit::*; #[cfg(feature = "MessagePort")] #[allow(non_snake_case)] mod gen_MessagePort; #[cfg(feature = "MessagePort")] pub use gen_MessagePort::*; #[cfg(feature = "MidiAccess")] #[allow(non_snake_case)] mod gen_MidiAccess; #[cfg(feature = "MidiAccess")] pub use gen_MidiAccess::*; #[cfg(feature = "MidiConnectionEvent")] #[allow(non_snake_case)] mod gen_MidiConnectionEvent; #[cfg(feature = "MidiConnectionEvent")] pub use gen_MidiConnectionEvent::*; #[cfg(feature = "MidiConnectionEventInit")] #[allow(non_snake_case)] mod gen_MidiConnectionEventInit; #[cfg(feature = "MidiConnectionEventInit")] pub use gen_MidiConnectionEventInit::*; #[cfg(feature = "MidiInput")] #[allow(non_snake_case)] mod gen_MidiInput; #[cfg(feature = "MidiInput")] pub use gen_MidiInput::*; #[cfg(feature = "MidiInputMap")] #[allow(non_snake_case)] mod gen_MidiInputMap; #[cfg(feature = "MidiInputMap")] pub use gen_MidiInputMap::*; #[cfg(feature = "MidiMessageEvent")] #[allow(non_snake_case)] mod gen_MidiMessageEvent; #[cfg(feature = "MidiMessageEvent")] pub use gen_MidiMessageEvent::*; #[cfg(feature = "MidiMessageEventInit")] #[allow(non_snake_case)] mod gen_MidiMessageEventInit; #[cfg(feature = "MidiMessageEventInit")] pub use gen_MidiMessageEventInit::*; #[cfg(feature = "MidiOptions")] #[allow(non_snake_case)] mod gen_MidiOptions; #[cfg(feature = "MidiOptions")] pub use gen_MidiOptions::*; #[cfg(feature = "MidiOutput")] #[allow(non_snake_case)] mod gen_MidiOutput; #[cfg(feature = "MidiOutput")] pub use gen_MidiOutput::*; #[cfg(feature = "MidiOutputMap")] #[allow(non_snake_case)] mod gen_MidiOutputMap; #[cfg(feature = "MidiOutputMap")] pub use gen_MidiOutputMap::*; #[cfg(feature = "MidiPort")] #[allow(non_snake_case)] mod gen_MidiPort; #[cfg(feature = "MidiPort")] pub use gen_MidiPort::*; #[cfg(feature = "MidiPortConnectionState")] #[allow(non_snake_case)] mod gen_MidiPortConnectionState; #[cfg(feature = "MidiPortConnectionState")] pub use gen_MidiPortConnectionState::*; #[cfg(feature = "MidiPortDeviceState")] #[allow(non_snake_case)] mod gen_MidiPortDeviceState; #[cfg(feature = "MidiPortDeviceState")] pub use gen_MidiPortDeviceState::*; #[cfg(feature = "MidiPortType")] #[allow(non_snake_case)] mod gen_MidiPortType; #[cfg(feature = "MidiPortType")] pub use gen_MidiPortType::*; #[cfg(feature = "MimeType")] #[allow(non_snake_case)] mod gen_MimeType; #[cfg(feature = "MimeType")] pub use gen_MimeType::*; #[cfg(feature = "MimeTypeArray")] #[allow(non_snake_case)] mod gen_MimeTypeArray; #[cfg(feature = "MimeTypeArray")] pub use gen_MimeTypeArray::*; #[cfg(feature = "MouseEvent")] #[allow(non_snake_case)] mod gen_MouseEvent; #[cfg(feature = "MouseEvent")] pub use gen_MouseEvent::*; #[cfg(feature = "MouseEventInit")] #[allow(non_snake_case)] mod gen_MouseEventInit; #[cfg(feature = "MouseEventInit")] pub use gen_MouseEventInit::*; #[cfg(feature = "MouseScrollEvent")] #[allow(non_snake_case)] mod gen_MouseScrollEvent; #[cfg(feature = "MouseScrollEvent")] pub use gen_MouseScrollEvent::*; #[cfg(feature = "MozDebug")] #[allow(non_snake_case)] mod gen_MozDebug; #[cfg(feature = "MozDebug")] pub use gen_MozDebug::*; #[cfg(feature = "MutationEvent")] #[allow(non_snake_case)] mod gen_MutationEvent; #[cfg(feature = "MutationEvent")] pub use gen_MutationEvent::*; #[cfg(feature = "MutationObserver")] #[allow(non_snake_case)] mod gen_MutationObserver; #[cfg(feature = "MutationObserver")] pub use gen_MutationObserver::*; #[cfg(feature = "MutationObserverInit")] #[allow(non_snake_case)] mod gen_MutationObserverInit; #[cfg(feature = "MutationObserverInit")] pub use gen_MutationObserverInit::*; #[cfg(feature = "MutationObservingInfo")] #[allow(non_snake_case)] mod gen_MutationObservingInfo; #[cfg(feature = "MutationObservingInfo")] pub use gen_MutationObservingInfo::*; #[cfg(feature = "MutationRecord")] #[allow(non_snake_case)] mod gen_MutationRecord; #[cfg(feature = "MutationRecord")] pub use gen_MutationRecord::*; #[cfg(feature = "NamedNodeMap")] #[allow(non_snake_case)] mod gen_NamedNodeMap; #[cfg(feature = "NamedNodeMap")] pub use gen_NamedNodeMap::*; #[cfg(feature = "NativeOsFileReadOptions")] #[allow(non_snake_case)] mod gen_NativeOsFileReadOptions; #[cfg(feature = "NativeOsFileReadOptions")] pub use gen_NativeOsFileReadOptions::*; #[cfg(feature = "NativeOsFileWriteAtomicOptions")] #[allow(non_snake_case)] mod gen_NativeOsFileWriteAtomicOptions; #[cfg(feature = "NativeOsFileWriteAtomicOptions")] pub use gen_NativeOsFileWriteAtomicOptions::*; #[cfg(feature = "NavigationType")] #[allow(non_snake_case)] mod gen_NavigationType; #[cfg(feature = "NavigationType")] pub use gen_NavigationType::*; #[cfg(feature = "Navigator")] #[allow(non_snake_case)] mod gen_Navigator; #[cfg(feature = "Navigator")] pub use gen_Navigator::*; #[cfg(feature = "NavigatorAutomationInformation")] #[allow(non_snake_case)] mod gen_NavigatorAutomationInformation; #[cfg(feature = "NavigatorAutomationInformation")] pub use gen_NavigatorAutomationInformation::*; #[cfg(feature = "NetworkCommandOptions")] #[allow(non_snake_case)] mod gen_NetworkCommandOptions; #[cfg(feature = "NetworkCommandOptions")] pub use gen_NetworkCommandOptions::*; #[cfg(feature = "NetworkInformation")] #[allow(non_snake_case)] mod gen_NetworkInformation; #[cfg(feature = "NetworkInformation")] pub use gen_NetworkInformation::*; #[cfg(feature = "NetworkResultOptions")] #[allow(non_snake_case)] mod gen_NetworkResultOptions; #[cfg(feature = "NetworkResultOptions")] pub use gen_NetworkResultOptions::*; #[cfg(feature = "Node")] #[allow(non_snake_case)] mod gen_Node; #[cfg(feature = "Node")] pub use gen_Node::*; #[cfg(feature = "NodeFilter")] #[allow(non_snake_case)] mod gen_NodeFilter; #[cfg(feature = "NodeFilter")] pub use gen_NodeFilter::*; #[cfg(feature = "NodeIterator")] #[allow(non_snake_case)] mod gen_NodeIterator; #[cfg(feature = "NodeIterator")] pub use gen_NodeIterator::*; #[cfg(feature = "NodeList")] #[allow(non_snake_case)] mod gen_NodeList; #[cfg(feature = "NodeList")] pub use gen_NodeList::*; #[cfg(feature = "Notification")] #[allow(non_snake_case)] mod gen_Notification; #[cfg(feature = "Notification")] pub use gen_Notification::*; #[cfg(feature = "NotificationBehavior")] #[allow(non_snake_case)] mod gen_NotificationBehavior; #[cfg(feature = "NotificationBehavior")] pub use gen_NotificationBehavior::*; #[cfg(feature = "NotificationDirection")] #[allow(non_snake_case)] mod gen_NotificationDirection; #[cfg(feature = "NotificationDirection")] pub use gen_NotificationDirection::*; #[cfg(feature = "NotificationEvent")] #[allow(non_snake_case)] mod gen_NotificationEvent; #[cfg(feature = "NotificationEvent")] pub use gen_NotificationEvent::*; #[cfg(feature = "NotificationEventInit")] #[allow(non_snake_case)] mod gen_NotificationEventInit; #[cfg(feature = "NotificationEventInit")] pub use gen_NotificationEventInit::*; #[cfg(feature = "NotificationOptions")] #[allow(non_snake_case)] mod gen_NotificationOptions; #[cfg(feature = "NotificationOptions")] pub use gen_NotificationOptions::*; #[cfg(feature = "NotificationPermission")] #[allow(non_snake_case)] mod gen_NotificationPermission; #[cfg(feature = "NotificationPermission")] pub use gen_NotificationPermission::*; #[cfg(feature = "ObserverCallback")] #[allow(non_snake_case)] mod gen_ObserverCallback; #[cfg(feature = "ObserverCallback")] pub use gen_ObserverCallback::*; #[cfg(feature = "OesElementIndexUint")] #[allow(non_snake_case)] mod gen_OesElementIndexUint; #[cfg(feature = "OesElementIndexUint")] pub use gen_OesElementIndexUint::*; #[cfg(feature = "OesStandardDerivatives")] #[allow(non_snake_case)] mod gen_OesStandardDerivatives; #[cfg(feature = "OesStandardDerivatives")] pub use gen_OesStandardDerivatives::*; #[cfg(feature = "OesTextureFloat")] #[allow(non_snake_case)] mod gen_OesTextureFloat; #[cfg(feature = "OesTextureFloat")] pub use gen_OesTextureFloat::*; #[cfg(feature = "OesTextureFloatLinear")] #[allow(non_snake_case)] mod gen_OesTextureFloatLinear; #[cfg(feature = "OesTextureFloatLinear")] pub use gen_OesTextureFloatLinear::*; #[cfg(feature = "OesTextureHalfFloat")] #[allow(non_snake_case)] mod gen_OesTextureHalfFloat; #[cfg(feature = "OesTextureHalfFloat")] pub use gen_OesTextureHalfFloat::*; #[cfg(feature = "OesTextureHalfFloatLinear")] #[allow(non_snake_case)] mod gen_OesTextureHalfFloatLinear; #[cfg(feature = "OesTextureHalfFloatLinear")] pub use gen_OesTextureHalfFloatLinear::*; #[cfg(feature = "OesVertexArrayObject")] #[allow(non_snake_case)] mod gen_OesVertexArrayObject; #[cfg(feature = "OesVertexArrayObject")] pub use gen_OesVertexArrayObject::*; #[cfg(feature = "OfflineAudioCompletionEvent")] #[allow(non_snake_case)] mod gen_OfflineAudioCompletionEvent; #[cfg(feature = "OfflineAudioCompletionEvent")] pub use gen_OfflineAudioCompletionEvent::*; #[cfg(feature = "OfflineAudioCompletionEventInit")] #[allow(non_snake_case)] mod gen_OfflineAudioCompletionEventInit; #[cfg(feature = "OfflineAudioCompletionEventInit")] pub use gen_OfflineAudioCompletionEventInit::*; #[cfg(feature = "OfflineAudioContext")] #[allow(non_snake_case)] mod gen_OfflineAudioContext; #[cfg(feature = "OfflineAudioContext")] pub use gen_OfflineAudioContext::*; #[cfg(feature = "OfflineAudioContextOptions")] #[allow(non_snake_case)] mod gen_OfflineAudioContextOptions; #[cfg(feature = "OfflineAudioContextOptions")] pub use gen_OfflineAudioContextOptions::*; #[cfg(feature = "OfflineResourceList")] #[allow(non_snake_case)] mod gen_OfflineResourceList; #[cfg(feature = "OfflineResourceList")] pub use gen_OfflineResourceList::*; #[cfg(feature = "OffscreenCanvas")] #[allow(non_snake_case)] mod gen_OffscreenCanvas; #[cfg(feature = "OffscreenCanvas")] pub use gen_OffscreenCanvas::*; #[cfg(feature = "OpenWindowEventDetail")] #[allow(non_snake_case)] mod gen_OpenWindowEventDetail; #[cfg(feature = "OpenWindowEventDetail")] pub use gen_OpenWindowEventDetail::*; #[cfg(feature = "OptionalEffectTiming")] #[allow(non_snake_case)] mod gen_OptionalEffectTiming; #[cfg(feature = "OptionalEffectTiming")] pub use gen_OptionalEffectTiming::*; #[cfg(feature = "OrientationLockType")] #[allow(non_snake_case)] mod gen_OrientationLockType; #[cfg(feature = "OrientationLockType")] pub use gen_OrientationLockType::*; #[cfg(feature = "OrientationType")] #[allow(non_snake_case)] mod gen_OrientationType; #[cfg(feature = "OrientationType")] pub use gen_OrientationType::*; #[cfg(feature = "OscillatorNode")] #[allow(non_snake_case)] mod gen_OscillatorNode; #[cfg(feature = "OscillatorNode")] pub use gen_OscillatorNode::*; #[cfg(feature = "OscillatorOptions")] #[allow(non_snake_case)] mod gen_OscillatorOptions; #[cfg(feature = "OscillatorOptions")] pub use gen_OscillatorOptions::*; #[cfg(feature = "OscillatorType")] #[allow(non_snake_case)] mod gen_OscillatorType; #[cfg(feature = "OscillatorType")] pub use gen_OscillatorType::*; #[cfg(feature = "OverSampleType")] #[allow(non_snake_case)] mod gen_OverSampleType; #[cfg(feature = "OverSampleType")] pub use gen_OverSampleType::*; #[cfg(feature = "PageTransitionEvent")] #[allow(non_snake_case)] mod gen_PageTransitionEvent; #[cfg(feature = "PageTransitionEvent")] pub use gen_PageTransitionEvent::*; #[cfg(feature = "PageTransitionEventInit")] #[allow(non_snake_case)] mod gen_PageTransitionEventInit; #[cfg(feature = "PageTransitionEventInit")] pub use gen_PageTransitionEventInit::*; #[cfg(feature = "PaintRequest")] #[allow(non_snake_case)] mod gen_PaintRequest; #[cfg(feature = "PaintRequest")] pub use gen_PaintRequest::*; #[cfg(feature = "PaintRequestList")] #[allow(non_snake_case)] mod gen_PaintRequestList; #[cfg(feature = "PaintRequestList")] pub use gen_PaintRequestList::*; #[cfg(feature = "PaintWorkletGlobalScope")] #[allow(non_snake_case)] mod gen_PaintWorkletGlobalScope; #[cfg(feature = "PaintWorkletGlobalScope")] pub use gen_PaintWorkletGlobalScope::*; #[cfg(feature = "PannerNode")] #[allow(non_snake_case)] mod gen_PannerNode; #[cfg(feature = "PannerNode")] pub use gen_PannerNode::*; #[cfg(feature = "PannerOptions")] #[allow(non_snake_case)] mod gen_PannerOptions; #[cfg(feature = "PannerOptions")] pub use gen_PannerOptions::*; #[cfg(feature = "PanningModelType")] #[allow(non_snake_case)] mod gen_PanningModelType; #[cfg(feature = "PanningModelType")] pub use gen_PanningModelType::*; #[cfg(feature = "Path2d")] #[allow(non_snake_case)] mod gen_Path2d; #[cfg(feature = "Path2d")] pub use gen_Path2d::*; #[cfg(feature = "PaymentAddress")] #[allow(non_snake_case)] mod gen_PaymentAddress; #[cfg(feature = "PaymentAddress")] pub use gen_PaymentAddress::*; #[cfg(feature = "PaymentComplete")] #[allow(non_snake_case)] mod gen_PaymentComplete; #[cfg(feature = "PaymentComplete")] pub use gen_PaymentComplete::*; #[cfg(feature = "PaymentMethodChangeEvent")] #[allow(non_snake_case)] mod gen_PaymentMethodChangeEvent; #[cfg(feature = "PaymentMethodChangeEvent")] pub use gen_PaymentMethodChangeEvent::*; #[cfg(feature = "PaymentMethodChangeEventInit")] #[allow(non_snake_case)] mod gen_PaymentMethodChangeEventInit; #[cfg(feature = "PaymentMethodChangeEventInit")] pub use gen_PaymentMethodChangeEventInit::*; #[cfg(feature = "PaymentRequestUpdateEvent")] #[allow(non_snake_case)] mod gen_PaymentRequestUpdateEvent; #[cfg(feature = "PaymentRequestUpdateEvent")] pub use gen_PaymentRequestUpdateEvent::*; #[cfg(feature = "PaymentRequestUpdateEventInit")] #[allow(non_snake_case)] mod gen_PaymentRequestUpdateEventInit; #[cfg(feature = "PaymentRequestUpdateEventInit")] pub use gen_PaymentRequestUpdateEventInit::*; #[cfg(feature = "PaymentResponse")] #[allow(non_snake_case)] mod gen_PaymentResponse; #[cfg(feature = "PaymentResponse")] pub use gen_PaymentResponse::*; #[cfg(feature = "Pbkdf2Params")] #[allow(non_snake_case)] mod gen_Pbkdf2Params; #[cfg(feature = "Pbkdf2Params")] pub use gen_Pbkdf2Params::*; #[cfg(feature = "PcImplIceConnectionState")] #[allow(non_snake_case)] mod gen_PcImplIceConnectionState; #[cfg(feature = "PcImplIceConnectionState")] pub use gen_PcImplIceConnectionState::*; #[cfg(feature = "PcImplIceGatheringState")] #[allow(non_snake_case)] mod gen_PcImplIceGatheringState; #[cfg(feature = "PcImplIceGatheringState")] pub use gen_PcImplIceGatheringState::*; #[cfg(feature = "PcImplSignalingState")] #[allow(non_snake_case)] mod gen_PcImplSignalingState; #[cfg(feature = "PcImplSignalingState")] pub use gen_PcImplSignalingState::*; #[cfg(feature = "PcObserverStateType")] #[allow(non_snake_case)] mod gen_PcObserverStateType; #[cfg(feature = "PcObserverStateType")] pub use gen_PcObserverStateType::*; #[cfg(feature = "Performance")] #[allow(non_snake_case)] mod gen_Performance; #[cfg(feature = "Performance")] pub use gen_Performance::*; #[cfg(feature = "PerformanceEntry")] #[allow(non_snake_case)] mod gen_PerformanceEntry; #[cfg(feature = "PerformanceEntry")] pub use gen_PerformanceEntry::*; #[cfg(feature = "PerformanceEntryEventInit")] #[allow(non_snake_case)] mod gen_PerformanceEntryEventInit; #[cfg(feature = "PerformanceEntryEventInit")] pub use gen_PerformanceEntryEventInit::*; #[cfg(feature = "PerformanceEntryFilterOptions")] #[allow(non_snake_case)] mod gen_PerformanceEntryFilterOptions; #[cfg(feature = "PerformanceEntryFilterOptions")] pub use gen_PerformanceEntryFilterOptions::*; #[cfg(feature = "PerformanceMark")] #[allow(non_snake_case)] mod gen_PerformanceMark; #[cfg(feature = "PerformanceMark")] pub use gen_PerformanceMark::*; #[cfg(feature = "PerformanceMeasure")] #[allow(non_snake_case)] mod gen_PerformanceMeasure; #[cfg(feature = "PerformanceMeasure")] pub use gen_PerformanceMeasure::*; #[cfg(feature = "PerformanceNavigation")] #[allow(non_snake_case)] mod gen_PerformanceNavigation; #[cfg(feature = "PerformanceNavigation")] pub use gen_PerformanceNavigation::*; #[cfg(feature = "PerformanceNavigationTiming")] #[allow(non_snake_case)] mod gen_PerformanceNavigationTiming; #[cfg(feature = "PerformanceNavigationTiming")] pub use gen_PerformanceNavigationTiming::*; #[cfg(feature = "PerformanceObserver")] #[allow(non_snake_case)] mod gen_PerformanceObserver; #[cfg(feature = "PerformanceObserver")] pub use gen_PerformanceObserver::*; #[cfg(feature = "PerformanceObserverEntryList")] #[allow(non_snake_case)] mod gen_PerformanceObserverEntryList; #[cfg(feature = "PerformanceObserverEntryList")] pub use gen_PerformanceObserverEntryList::*; #[cfg(feature = "PerformanceObserverInit")] #[allow(non_snake_case)] mod gen_PerformanceObserverInit; #[cfg(feature = "PerformanceObserverInit")] pub use gen_PerformanceObserverInit::*; #[cfg(feature = "PerformanceResourceTiming")] #[allow(non_snake_case)] mod gen_PerformanceResourceTiming; #[cfg(feature = "PerformanceResourceTiming")] pub use gen_PerformanceResourceTiming::*; #[cfg(feature = "PerformanceServerTiming")] #[allow(non_snake_case)] mod gen_PerformanceServerTiming; #[cfg(feature = "PerformanceServerTiming")] pub use gen_PerformanceServerTiming::*; #[cfg(feature = "PerformanceTiming")] #[allow(non_snake_case)] mod gen_PerformanceTiming; #[cfg(feature = "PerformanceTiming")] pub use gen_PerformanceTiming::*; #[cfg(feature = "PeriodicWave")] #[allow(non_snake_case)] mod gen_PeriodicWave; #[cfg(feature = "PeriodicWave")] pub use gen_PeriodicWave::*; #[cfg(feature = "PeriodicWaveConstraints")] #[allow(non_snake_case)] mod gen_PeriodicWaveConstraints; #[cfg(feature = "PeriodicWaveConstraints")] pub use gen_PeriodicWaveConstraints::*; #[cfg(feature = "PeriodicWaveOptions")] #[allow(non_snake_case)] mod gen_PeriodicWaveOptions; #[cfg(feature = "PeriodicWaveOptions")] pub use gen_PeriodicWaveOptions::*; #[cfg(feature = "PermissionDescriptor")] #[allow(non_snake_case)] mod gen_PermissionDescriptor; #[cfg(feature = "PermissionDescriptor")] pub use gen_PermissionDescriptor::*; #[cfg(feature = "PermissionName")] #[allow(non_snake_case)] mod gen_PermissionName; #[cfg(feature = "PermissionName")] pub use gen_PermissionName::*; #[cfg(feature = "PermissionState")] #[allow(non_snake_case)] mod gen_PermissionState; #[cfg(feature = "PermissionState")] pub use gen_PermissionState::*; #[cfg(feature = "PermissionStatus")] #[allow(non_snake_case)] mod gen_PermissionStatus; #[cfg(feature = "PermissionStatus")] pub use gen_PermissionStatus::*; #[cfg(feature = "Permissions")] #[allow(non_snake_case)] mod gen_Permissions; #[cfg(feature = "Permissions")] pub use gen_Permissions::*; #[cfg(feature = "PlaybackDirection")] #[allow(non_snake_case)] mod gen_PlaybackDirection; #[cfg(feature = "PlaybackDirection")] pub use gen_PlaybackDirection::*; #[cfg(feature = "Plugin")] #[allow(non_snake_case)] mod gen_Plugin; #[cfg(feature = "Plugin")] pub use gen_Plugin::*; #[cfg(feature = "PluginArray")] #[allow(non_snake_case)] mod gen_PluginArray; #[cfg(feature = "PluginArray")] pub use gen_PluginArray::*; #[cfg(feature = "PluginCrashedEventInit")] #[allow(non_snake_case)] mod gen_PluginCrashedEventInit; #[cfg(feature = "PluginCrashedEventInit")] pub use gen_PluginCrashedEventInit::*; #[cfg(feature = "PointerEvent")] #[allow(non_snake_case)] mod gen_PointerEvent; #[cfg(feature = "PointerEvent")] pub use gen_PointerEvent::*; #[cfg(feature = "PointerEventInit")] #[allow(non_snake_case)] mod gen_PointerEventInit; #[cfg(feature = "PointerEventInit")] pub use gen_PointerEventInit::*; #[cfg(feature = "PopStateEvent")] #[allow(non_snake_case)] mod gen_PopStateEvent; #[cfg(feature = "PopStateEvent")] pub use gen_PopStateEvent::*; #[cfg(feature = "PopStateEventInit")] #[allow(non_snake_case)] mod gen_PopStateEventInit; #[cfg(feature = "PopStateEventInit")] pub use gen_PopStateEventInit::*; #[cfg(feature = "PopupBlockedEvent")] #[allow(non_snake_case)] mod gen_PopupBlockedEvent; #[cfg(feature = "PopupBlockedEvent")] pub use gen_PopupBlockedEvent::*; #[cfg(feature = "PopupBlockedEventInit")] #[allow(non_snake_case)] mod gen_PopupBlockedEventInit; #[cfg(feature = "PopupBlockedEventInit")] pub use gen_PopupBlockedEventInit::*; #[cfg(feature = "Position")] #[allow(non_snake_case)] mod gen_Position; #[cfg(feature = "Position")] pub use gen_Position::*; #[cfg(feature = "PositionAlignSetting")] #[allow(non_snake_case)] mod gen_PositionAlignSetting; #[cfg(feature = "PositionAlignSetting")] pub use gen_PositionAlignSetting::*; #[cfg(feature = "PositionError")] #[allow(non_snake_case)] mod gen_PositionError; #[cfg(feature = "PositionError")] pub use gen_PositionError::*; #[cfg(feature = "PositionOptions")] #[allow(non_snake_case)] mod gen_PositionOptions; #[cfg(feature = "PositionOptions")] pub use gen_PositionOptions::*; #[cfg(feature = "Presentation")] #[allow(non_snake_case)] mod gen_Presentation; #[cfg(feature = "Presentation")] pub use gen_Presentation::*; #[cfg(feature = "PresentationAvailability")] #[allow(non_snake_case)] mod gen_PresentationAvailability; #[cfg(feature = "PresentationAvailability")] pub use gen_PresentationAvailability::*; #[cfg(feature = "PresentationConnection")] #[allow(non_snake_case)] mod gen_PresentationConnection; #[cfg(feature = "PresentationConnection")] pub use gen_PresentationConnection::*; #[cfg(feature = "PresentationConnectionAvailableEvent")] #[allow(non_snake_case)] mod gen_PresentationConnectionAvailableEvent; #[cfg(feature = "PresentationConnectionAvailableEvent")] pub use gen_PresentationConnectionAvailableEvent::*; #[cfg(feature = "PresentationConnectionAvailableEventInit")] #[allow(non_snake_case)] mod gen_PresentationConnectionAvailableEventInit; #[cfg(feature = "PresentationConnectionAvailableEventInit")] pub use gen_PresentationConnectionAvailableEventInit::*; #[cfg(feature = "PresentationConnectionBinaryType")] #[allow(non_snake_case)] mod gen_PresentationConnectionBinaryType; #[cfg(feature = "PresentationConnectionBinaryType")] pub use gen_PresentationConnectionBinaryType::*; #[cfg(feature = "PresentationConnectionCloseEvent")] #[allow(non_snake_case)] mod gen_PresentationConnectionCloseEvent; #[cfg(feature = "PresentationConnectionCloseEvent")] pub use gen_PresentationConnectionCloseEvent::*; #[cfg(feature = "PresentationConnectionCloseEventInit")] #[allow(non_snake_case)] mod gen_PresentationConnectionCloseEventInit; #[cfg(feature = "PresentationConnectionCloseEventInit")] pub use gen_PresentationConnectionCloseEventInit::*; #[cfg(feature = "PresentationConnectionClosedReason")] #[allow(non_snake_case)] mod gen_PresentationConnectionClosedReason; #[cfg(feature = "PresentationConnectionClosedReason")] pub use gen_PresentationConnectionClosedReason::*; #[cfg(feature = "PresentationConnectionList")] #[allow(non_snake_case)] mod gen_PresentationConnectionList; #[cfg(feature = "PresentationConnectionList")] pub use gen_PresentationConnectionList::*; #[cfg(feature = "PresentationConnectionState")] #[allow(non_snake_case)] mod gen_PresentationConnectionState; #[cfg(feature = "PresentationConnectionState")] pub use gen_PresentationConnectionState::*; #[cfg(feature = "PresentationReceiver")] #[allow(non_snake_case)] mod gen_PresentationReceiver; #[cfg(feature = "PresentationReceiver")] pub use gen_PresentationReceiver::*; #[cfg(feature = "PresentationRequest")] #[allow(non_snake_case)] mod gen_PresentationRequest; #[cfg(feature = "PresentationRequest")] pub use gen_PresentationRequest::*; #[cfg(feature = "PresentationStyle")] #[allow(non_snake_case)] mod gen_PresentationStyle; #[cfg(feature = "PresentationStyle")] pub use gen_PresentationStyle::*; #[cfg(feature = "ProcessingInstruction")] #[allow(non_snake_case)] mod gen_ProcessingInstruction; #[cfg(feature = "ProcessingInstruction")] pub use gen_ProcessingInstruction::*; #[cfg(feature = "ProfileTimelineLayerRect")] #[allow(non_snake_case)] mod gen_ProfileTimelineLayerRect; #[cfg(feature = "ProfileTimelineLayerRect")] pub use gen_ProfileTimelineLayerRect::*; #[cfg(feature = "ProfileTimelineMarker")] #[allow(non_snake_case)] mod gen_ProfileTimelineMarker; #[cfg(feature = "ProfileTimelineMarker")] pub use gen_ProfileTimelineMarker::*; #[cfg(feature = "ProfileTimelineMessagePortOperationType")] #[allow(non_snake_case)] mod gen_ProfileTimelineMessagePortOperationType; #[cfg(feature = "ProfileTimelineMessagePortOperationType")] pub use gen_ProfileTimelineMessagePortOperationType::*; #[cfg(feature = "ProfileTimelineStackFrame")] #[allow(non_snake_case)] mod gen_ProfileTimelineStackFrame; #[cfg(feature = "ProfileTimelineStackFrame")] pub use gen_ProfileTimelineStackFrame::*; #[cfg(feature = "ProfileTimelineWorkerOperationType")] #[allow(non_snake_case)] mod gen_ProfileTimelineWorkerOperationType; #[cfg(feature = "ProfileTimelineWorkerOperationType")] pub use gen_ProfileTimelineWorkerOperationType::*; #[cfg(feature = "ProgressEvent")] #[allow(non_snake_case)] mod gen_ProgressEvent; #[cfg(feature = "ProgressEvent")] pub use gen_ProgressEvent::*; #[cfg(feature = "ProgressEventInit")] #[allow(non_snake_case)] mod gen_ProgressEventInit; #[cfg(feature = "ProgressEventInit")] pub use gen_ProgressEventInit::*; #[cfg(feature = "PromiseNativeHandler")] #[allow(non_snake_case)] mod gen_PromiseNativeHandler; #[cfg(feature = "PromiseNativeHandler")] pub use gen_PromiseNativeHandler::*; #[cfg(feature = "PromiseRejectionEvent")] #[allow(non_snake_case)] mod gen_PromiseRejectionEvent; #[cfg(feature = "PromiseRejectionEvent")] pub use gen_PromiseRejectionEvent::*; #[cfg(feature = "PromiseRejectionEventInit")] #[allow(non_snake_case)] mod gen_PromiseRejectionEventInit; #[cfg(feature = "PromiseRejectionEventInit")] pub use gen_PromiseRejectionEventInit::*; #[cfg(feature = "PublicKeyCredential")] #[allow(non_snake_case)] mod gen_PublicKeyCredential; #[cfg(feature = "PublicKeyCredential")] pub use gen_PublicKeyCredential::*; #[cfg(feature = "PublicKeyCredentialCreationOptions")] #[allow(non_snake_case)] mod gen_PublicKeyCredentialCreationOptions; #[cfg(feature = "PublicKeyCredentialCreationOptions")] pub use gen_PublicKeyCredentialCreationOptions::*; #[cfg(feature = "PublicKeyCredentialDescriptor")] #[allow(non_snake_case)] mod gen_PublicKeyCredentialDescriptor; #[cfg(feature = "PublicKeyCredentialDescriptor")] pub use gen_PublicKeyCredentialDescriptor::*; #[cfg(feature = "PublicKeyCredentialEntity")] #[allow(non_snake_case)] mod gen_PublicKeyCredentialEntity; #[cfg(feature = "PublicKeyCredentialEntity")] pub use gen_PublicKeyCredentialEntity::*; #[cfg(feature = "PublicKeyCredentialParameters")] #[allow(non_snake_case)] mod gen_PublicKeyCredentialParameters; #[cfg(feature = "PublicKeyCredentialParameters")] pub use gen_PublicKeyCredentialParameters::*; #[cfg(feature = "PublicKeyCredentialRequestOptions")] #[allow(non_snake_case)] mod gen_PublicKeyCredentialRequestOptions; #[cfg(feature = "PublicKeyCredentialRequestOptions")] pub use gen_PublicKeyCredentialRequestOptions::*; #[cfg(feature = "PublicKeyCredentialRpEntity")] #[allow(non_snake_case)] mod gen_PublicKeyCredentialRpEntity; #[cfg(feature = "PublicKeyCredentialRpEntity")] pub use gen_PublicKeyCredentialRpEntity::*; #[cfg(feature = "PublicKeyCredentialType")] #[allow(non_snake_case)] mod gen_PublicKeyCredentialType; #[cfg(feature = "PublicKeyCredentialType")] pub use gen_PublicKeyCredentialType::*; #[cfg(feature = "PublicKeyCredentialUserEntity")] #[allow(non_snake_case)] mod gen_PublicKeyCredentialUserEntity; #[cfg(feature = "PublicKeyCredentialUserEntity")] pub use gen_PublicKeyCredentialUserEntity::*; #[cfg(feature = "PushEncryptionKeyName")] #[allow(non_snake_case)] mod gen_PushEncryptionKeyName; #[cfg(feature = "PushEncryptionKeyName")] pub use gen_PushEncryptionKeyName::*; #[cfg(feature = "PushEvent")] #[allow(non_snake_case)] mod gen_PushEvent; #[cfg(feature = "PushEvent")] pub use gen_PushEvent::*; #[cfg(feature = "PushEventInit")] #[allow(non_snake_case)] mod gen_PushEventInit; #[cfg(feature = "PushEventInit")] pub use gen_PushEventInit::*; #[cfg(feature = "PushManager")] #[allow(non_snake_case)] mod gen_PushManager; #[cfg(feature = "PushManager")] pub use gen_PushManager::*; #[cfg(feature = "PushMessageData")] #[allow(non_snake_case)] mod gen_PushMessageData; #[cfg(feature = "PushMessageData")] pub use gen_PushMessageData::*; #[cfg(feature = "PushPermissionState")] #[allow(non_snake_case)] mod gen_PushPermissionState; #[cfg(feature = "PushPermissionState")] pub use gen_PushPermissionState::*; #[cfg(feature = "PushSubscription")] #[allow(non_snake_case)] mod gen_PushSubscription; #[cfg(feature = "PushSubscription")] pub use gen_PushSubscription::*; #[cfg(feature = "PushSubscriptionInit")] #[allow(non_snake_case)] mod gen_PushSubscriptionInit; #[cfg(feature = "PushSubscriptionInit")] pub use gen_PushSubscriptionInit::*; #[cfg(feature = "PushSubscriptionJson")] #[allow(non_snake_case)] mod gen_PushSubscriptionJson; #[cfg(feature = "PushSubscriptionJson")] pub use gen_PushSubscriptionJson::*; #[cfg(feature = "PushSubscriptionKeys")] #[allow(non_snake_case)] mod gen_PushSubscriptionKeys; #[cfg(feature = "PushSubscriptionKeys")] pub use gen_PushSubscriptionKeys::*; #[cfg(feature = "PushSubscriptionOptions")] #[allow(non_snake_case)] mod gen_PushSubscriptionOptions; #[cfg(feature = "PushSubscriptionOptions")] pub use gen_PushSubscriptionOptions::*; #[cfg(feature = "PushSubscriptionOptionsInit")] #[allow(non_snake_case)] mod gen_PushSubscriptionOptionsInit; #[cfg(feature = "PushSubscriptionOptionsInit")] pub use gen_PushSubscriptionOptionsInit::*; #[cfg(feature = "QueuingStrategy")] #[allow(non_snake_case)] mod gen_QueuingStrategy; #[cfg(feature = "QueuingStrategy")] pub use gen_QueuingStrategy::*; #[cfg(feature = "RadioNodeList")] #[allow(non_snake_case)] mod gen_RadioNodeList; #[cfg(feature = "RadioNodeList")] pub use gen_RadioNodeList::*; #[cfg(feature = "Range")] #[allow(non_snake_case)] mod gen_Range; #[cfg(feature = "Range")] pub use gen_Range::*; #[cfg(feature = "RcwnPerfStats")] #[allow(non_snake_case)] mod gen_RcwnPerfStats; #[cfg(feature = "RcwnPerfStats")] pub use gen_RcwnPerfStats::*; #[cfg(feature = "RcwnStatus")] #[allow(non_snake_case)] mod gen_RcwnStatus; #[cfg(feature = "RcwnStatus")] pub use gen_RcwnStatus::*; #[cfg(feature = "ReadableStream")] #[allow(non_snake_case)] mod gen_ReadableStream; #[cfg(feature = "ReadableStream")] pub use gen_ReadableStream::*; #[cfg(feature = "ReadableStreamByobReadResult")] #[allow(non_snake_case)] mod gen_ReadableStreamByobReadResult; #[cfg(feature = "ReadableStreamByobReadResult")] pub use gen_ReadableStreamByobReadResult::*; #[cfg(feature = "ReadableStreamByobReader")] #[allow(non_snake_case)] mod gen_ReadableStreamByobReader; #[cfg(feature = "ReadableStreamByobReader")] pub use gen_ReadableStreamByobReader::*; #[cfg(feature = "ReadableStreamDefaultReadResult")] #[allow(non_snake_case)] mod gen_ReadableStreamDefaultReadResult; #[cfg(feature = "ReadableStreamDefaultReadResult")] pub use gen_ReadableStreamDefaultReadResult::*; #[cfg(feature = "ReadableStreamDefaultReader")] #[allow(non_snake_case)] mod gen_ReadableStreamDefaultReader; #[cfg(feature = "ReadableStreamDefaultReader")] pub use gen_ReadableStreamDefaultReader::*; #[cfg(feature = "ReadableStreamGetReaderOptions")] #[allow(non_snake_case)] mod gen_ReadableStreamGetReaderOptions; #[cfg(feature = "ReadableStreamGetReaderOptions")] pub use gen_ReadableStreamGetReaderOptions::*; #[cfg(feature = "ReadableStreamIteratorOptions")] #[allow(non_snake_case)] mod gen_ReadableStreamIteratorOptions; #[cfg(feature = "ReadableStreamIteratorOptions")] pub use gen_ReadableStreamIteratorOptions::*; #[cfg(feature = "ReadableStreamReaderMode")] #[allow(non_snake_case)] mod gen_ReadableStreamReaderMode; #[cfg(feature = "ReadableStreamReaderMode")] pub use gen_ReadableStreamReaderMode::*; #[cfg(feature = "ReadableWritablePair")] #[allow(non_snake_case)] mod gen_ReadableWritablePair; #[cfg(feature = "ReadableWritablePair")] pub use gen_ReadableWritablePair::*; #[cfg(feature = "RecordingState")] #[allow(non_snake_case)] mod gen_RecordingState; #[cfg(feature = "RecordingState")] pub use gen_RecordingState::*; #[cfg(feature = "ReferrerPolicy")] #[allow(non_snake_case)] mod gen_ReferrerPolicy; #[cfg(feature = "ReferrerPolicy")] pub use gen_ReferrerPolicy::*; #[cfg(feature = "RegisterRequest")] #[allow(non_snake_case)] mod gen_RegisterRequest; #[cfg(feature = "RegisterRequest")] pub use gen_RegisterRequest::*; #[cfg(feature = "RegisterResponse")] #[allow(non_snake_case)] mod gen_RegisterResponse; #[cfg(feature = "RegisterResponse")] pub use gen_RegisterResponse::*; #[cfg(feature = "RegisteredKey")] #[allow(non_snake_case)] mod gen_RegisteredKey; #[cfg(feature = "RegisteredKey")] pub use gen_RegisteredKey::*; #[cfg(feature = "RegistrationOptions")] #[allow(non_snake_case)] mod gen_RegistrationOptions; #[cfg(feature = "RegistrationOptions")] pub use gen_RegistrationOptions::*; #[cfg(feature = "Request")] #[allow(non_snake_case)] mod gen_Request; #[cfg(feature = "Request")] pub use gen_Request::*; #[cfg(feature = "RequestCache")] #[allow(non_snake_case)] mod gen_RequestCache; #[cfg(feature = "RequestCache")] pub use gen_RequestCache::*; #[cfg(feature = "RequestCredentials")] #[allow(non_snake_case)] mod gen_RequestCredentials; #[cfg(feature = "RequestCredentials")] pub use gen_RequestCredentials::*; #[cfg(feature = "RequestDestination")] #[allow(non_snake_case)] mod gen_RequestDestination; #[cfg(feature = "RequestDestination")] pub use gen_RequestDestination::*; #[cfg(feature = "RequestDeviceOptions")] #[allow(non_snake_case)] mod gen_RequestDeviceOptions; #[cfg(feature = "RequestDeviceOptions")] pub use gen_RequestDeviceOptions::*; #[cfg(feature = "RequestInit")] #[allow(non_snake_case)] mod gen_RequestInit; #[cfg(feature = "RequestInit")] pub use gen_RequestInit::*; #[cfg(feature = "RequestMediaKeySystemAccessNotification")] #[allow(non_snake_case)] mod gen_RequestMediaKeySystemAccessNotification; #[cfg(feature = "RequestMediaKeySystemAccessNotification")] pub use gen_RequestMediaKeySystemAccessNotification::*; #[cfg(feature = "RequestMode")] #[allow(non_snake_case)] mod gen_RequestMode; #[cfg(feature = "RequestMode")] pub use gen_RequestMode::*; #[cfg(feature = "RequestRedirect")] #[allow(non_snake_case)] mod gen_RequestRedirect; #[cfg(feature = "RequestRedirect")] pub use gen_RequestRedirect::*; #[cfg(feature = "Response")] #[allow(non_snake_case)] mod gen_Response; #[cfg(feature = "Response")] pub use gen_Response::*; #[cfg(feature = "ResponseInit")] #[allow(non_snake_case)] mod gen_ResponseInit; #[cfg(feature = "ResponseInit")] pub use gen_ResponseInit::*; #[cfg(feature = "ResponseType")] #[allow(non_snake_case)] mod gen_ResponseType; #[cfg(feature = "ResponseType")] pub use gen_ResponseType::*; #[cfg(feature = "RsaHashedImportParams")] #[allow(non_snake_case)] mod gen_RsaHashedImportParams; #[cfg(feature = "RsaHashedImportParams")] pub use gen_RsaHashedImportParams::*; #[cfg(feature = "RsaOaepParams")] #[allow(non_snake_case)] mod gen_RsaOaepParams; #[cfg(feature = "RsaOaepParams")] pub use gen_RsaOaepParams::*; #[cfg(feature = "RsaOtherPrimesInfo")] #[allow(non_snake_case)] mod gen_RsaOtherPrimesInfo; #[cfg(feature = "RsaOtherPrimesInfo")] pub use gen_RsaOtherPrimesInfo::*; #[cfg(feature = "RsaPssParams")] #[allow(non_snake_case)] mod gen_RsaPssParams; #[cfg(feature = "RsaPssParams")] pub use gen_RsaPssParams::*; #[cfg(feature = "RtcAnswerOptions")] #[allow(non_snake_case)] mod gen_RtcAnswerOptions; #[cfg(feature = "RtcAnswerOptions")] pub use gen_RtcAnswerOptions::*; #[cfg(feature = "RtcBundlePolicy")] #[allow(non_snake_case)] mod gen_RtcBundlePolicy; #[cfg(feature = "RtcBundlePolicy")] pub use gen_RtcBundlePolicy::*; #[cfg(feature = "RtcCertificate")] #[allow(non_snake_case)] mod gen_RtcCertificate; #[cfg(feature = "RtcCertificate")] pub use gen_RtcCertificate::*; #[cfg(feature = "RtcCertificateExpiration")] #[allow(non_snake_case)] mod gen_RtcCertificateExpiration; #[cfg(feature = "RtcCertificateExpiration")] pub use gen_RtcCertificateExpiration::*; #[cfg(feature = "RtcCodecStats")] #[allow(non_snake_case)] mod gen_RtcCodecStats; #[cfg(feature = "RtcCodecStats")] pub use gen_RtcCodecStats::*; #[cfg(feature = "RtcConfiguration")] #[allow(non_snake_case)] mod gen_RtcConfiguration; #[cfg(feature = "RtcConfiguration")] pub use gen_RtcConfiguration::*; #[cfg(feature = "RtcDataChannel")] #[allow(non_snake_case)] mod gen_RtcDataChannel; #[cfg(feature = "RtcDataChannel")] pub use gen_RtcDataChannel::*; #[cfg(feature = "RtcDataChannelEvent")] #[allow(non_snake_case)] mod gen_RtcDataChannelEvent; #[cfg(feature = "RtcDataChannelEvent")] pub use gen_RtcDataChannelEvent::*; #[cfg(feature = "RtcDataChannelEventInit")] #[allow(non_snake_case)] mod gen_RtcDataChannelEventInit; #[cfg(feature = "RtcDataChannelEventInit")] pub use gen_RtcDataChannelEventInit::*; #[cfg(feature = "RtcDataChannelInit")] #[allow(non_snake_case)] mod gen_RtcDataChannelInit; #[cfg(feature = "RtcDataChannelInit")] pub use gen_RtcDataChannelInit::*; #[cfg(feature = "RtcDataChannelState")] #[allow(non_snake_case)] mod gen_RtcDataChannelState; #[cfg(feature = "RtcDataChannelState")] pub use gen_RtcDataChannelState::*; #[cfg(feature = "RtcDataChannelType")] #[allow(non_snake_case)] mod gen_RtcDataChannelType; #[cfg(feature = "RtcDataChannelType")] pub use gen_RtcDataChannelType::*; #[cfg(feature = "RtcDegradationPreference")] #[allow(non_snake_case)] mod gen_RtcDegradationPreference; #[cfg(feature = "RtcDegradationPreference")] pub use gen_RtcDegradationPreference::*; #[cfg(feature = "RtcFecParameters")] #[allow(non_snake_case)] mod gen_RtcFecParameters; #[cfg(feature = "RtcFecParameters")] pub use gen_RtcFecParameters::*; #[cfg(feature = "RtcIceCandidate")] #[allow(non_snake_case)] mod gen_RtcIceCandidate; #[cfg(feature = "RtcIceCandidate")] pub use gen_RtcIceCandidate::*; #[cfg(feature = "RtcIceCandidateInit")] #[allow(non_snake_case)] mod gen_RtcIceCandidateInit; #[cfg(feature = "RtcIceCandidateInit")] pub use gen_RtcIceCandidateInit::*; #[cfg(feature = "RtcIceCandidatePairStats")] #[allow(non_snake_case)] mod gen_RtcIceCandidatePairStats; #[cfg(feature = "RtcIceCandidatePairStats")] pub use gen_RtcIceCandidatePairStats::*; #[cfg(feature = "RtcIceCandidateStats")] #[allow(non_snake_case)] mod gen_RtcIceCandidateStats; #[cfg(feature = "RtcIceCandidateStats")] pub use gen_RtcIceCandidateStats::*; #[cfg(feature = "RtcIceComponentStats")] #[allow(non_snake_case)] mod gen_RtcIceComponentStats; #[cfg(feature = "RtcIceComponentStats")] pub use gen_RtcIceComponentStats::*; #[cfg(feature = "RtcIceConnectionState")] #[allow(non_snake_case)] mod gen_RtcIceConnectionState; #[cfg(feature = "RtcIceConnectionState")] pub use gen_RtcIceConnectionState::*; #[cfg(feature = "RtcIceCredentialType")] #[allow(non_snake_case)] mod gen_RtcIceCredentialType; #[cfg(feature = "RtcIceCredentialType")] pub use gen_RtcIceCredentialType::*; #[cfg(feature = "RtcIceGatheringState")] #[allow(non_snake_case)] mod gen_RtcIceGatheringState; #[cfg(feature = "RtcIceGatheringState")] pub use gen_RtcIceGatheringState::*; #[cfg(feature = "RtcIceServer")] #[allow(non_snake_case)] mod gen_RtcIceServer; #[cfg(feature = "RtcIceServer")] pub use gen_RtcIceServer::*; #[cfg(feature = "RtcIceTransportPolicy")] #[allow(non_snake_case)] mod gen_RtcIceTransportPolicy; #[cfg(feature = "RtcIceTransportPolicy")] pub use gen_RtcIceTransportPolicy::*; #[cfg(feature = "RtcIdentityAssertion")] #[allow(non_snake_case)] mod gen_RtcIdentityAssertion; #[cfg(feature = "RtcIdentityAssertion")] pub use gen_RtcIdentityAssertion::*; #[cfg(feature = "RtcIdentityAssertionResult")] #[allow(non_snake_case)] mod gen_RtcIdentityAssertionResult; #[cfg(feature = "RtcIdentityAssertionResult")] pub use gen_RtcIdentityAssertionResult::*; #[cfg(feature = "RtcIdentityProvider")] #[allow(non_snake_case)] mod gen_RtcIdentityProvider; #[cfg(feature = "RtcIdentityProvider")] pub use gen_RtcIdentityProvider::*; #[cfg(feature = "RtcIdentityProviderDetails")] #[allow(non_snake_case)] mod gen_RtcIdentityProviderDetails; #[cfg(feature = "RtcIdentityProviderDetails")] pub use gen_RtcIdentityProviderDetails::*; #[cfg(feature = "RtcIdentityProviderOptions")] #[allow(non_snake_case)] mod gen_RtcIdentityProviderOptions; #[cfg(feature = "RtcIdentityProviderOptions")] pub use gen_RtcIdentityProviderOptions::*; #[cfg(feature = "RtcIdentityProviderRegistrar")] #[allow(non_snake_case)] mod gen_RtcIdentityProviderRegistrar; #[cfg(feature = "RtcIdentityProviderRegistrar")] pub use gen_RtcIdentityProviderRegistrar::*; #[cfg(feature = "RtcIdentityValidationResult")] #[allow(non_snake_case)] mod gen_RtcIdentityValidationResult; #[cfg(feature = "RtcIdentityValidationResult")] pub use gen_RtcIdentityValidationResult::*; #[cfg(feature = "RtcInboundRtpStreamStats")] #[allow(non_snake_case)] mod gen_RtcInboundRtpStreamStats; #[cfg(feature = "RtcInboundRtpStreamStats")] pub use gen_RtcInboundRtpStreamStats::*; #[cfg(feature = "RtcLifecycleEvent")] #[allow(non_snake_case)] mod gen_RtcLifecycleEvent; #[cfg(feature = "RtcLifecycleEvent")] pub use gen_RtcLifecycleEvent::*; #[cfg(feature = "RtcMediaStreamStats")] #[allow(non_snake_case)] mod gen_RtcMediaStreamStats; #[cfg(feature = "RtcMediaStreamStats")] pub use gen_RtcMediaStreamStats::*; #[cfg(feature = "RtcMediaStreamTrackStats")] #[allow(non_snake_case)] mod gen_RtcMediaStreamTrackStats; #[cfg(feature = "RtcMediaStreamTrackStats")] pub use gen_RtcMediaStreamTrackStats::*; #[cfg(feature = "RtcOfferAnswerOptions")] #[allow(non_snake_case)] mod gen_RtcOfferAnswerOptions; #[cfg(feature = "RtcOfferAnswerOptions")] pub use gen_RtcOfferAnswerOptions::*; #[cfg(feature = "RtcOfferOptions")] #[allow(non_snake_case)] mod gen_RtcOfferOptions; #[cfg(feature = "RtcOfferOptions")] pub use gen_RtcOfferOptions::*; #[cfg(feature = "RtcOutboundRtpStreamStats")] #[allow(non_snake_case)] mod gen_RtcOutboundRtpStreamStats; #[cfg(feature = "RtcOutboundRtpStreamStats")] pub use gen_RtcOutboundRtpStreamStats::*; #[cfg(feature = "RtcPeerConnection")] #[allow(non_snake_case)] mod gen_RtcPeerConnection; #[cfg(feature = "RtcPeerConnection")] pub use gen_RtcPeerConnection::*; #[cfg(feature = "RtcPeerConnectionIceEvent")] #[allow(non_snake_case)] mod gen_RtcPeerConnectionIceEvent; #[cfg(feature = "RtcPeerConnectionIceEvent")] pub use gen_RtcPeerConnectionIceEvent::*; #[cfg(feature = "RtcPeerConnectionIceEventInit")] #[allow(non_snake_case)] mod gen_RtcPeerConnectionIceEventInit; #[cfg(feature = "RtcPeerConnectionIceEventInit")] pub use gen_RtcPeerConnectionIceEventInit::*; #[cfg(feature = "RtcPriorityType")] #[allow(non_snake_case)] mod gen_RtcPriorityType; #[cfg(feature = "RtcPriorityType")] pub use gen_RtcPriorityType::*; #[cfg(feature = "RtcRtcpParameters")] #[allow(non_snake_case)] mod gen_RtcRtcpParameters; #[cfg(feature = "RtcRtcpParameters")] pub use gen_RtcRtcpParameters::*; #[cfg(feature = "RtcRtpCodecParameters")] #[allow(non_snake_case)] mod gen_RtcRtpCodecParameters; #[cfg(feature = "RtcRtpCodecParameters")] pub use gen_RtcRtpCodecParameters::*; #[cfg(feature = "RtcRtpContributingSource")] #[allow(non_snake_case)] mod gen_RtcRtpContributingSource; #[cfg(feature = "RtcRtpContributingSource")] pub use gen_RtcRtpContributingSource::*; #[cfg(feature = "RtcRtpEncodingParameters")] #[allow(non_snake_case)] mod gen_RtcRtpEncodingParameters; #[cfg(feature = "RtcRtpEncodingParameters")] pub use gen_RtcRtpEncodingParameters::*; #[cfg(feature = "RtcRtpHeaderExtensionParameters")] #[allow(non_snake_case)] mod gen_RtcRtpHeaderExtensionParameters; #[cfg(feature = "RtcRtpHeaderExtensionParameters")] pub use gen_RtcRtpHeaderExtensionParameters::*; #[cfg(feature = "RtcRtpParameters")] #[allow(non_snake_case)] mod gen_RtcRtpParameters; #[cfg(feature = "RtcRtpParameters")] pub use gen_RtcRtpParameters::*; #[cfg(feature = "RtcRtpReceiver")] #[allow(non_snake_case)] mod gen_RtcRtpReceiver; #[cfg(feature = "RtcRtpReceiver")] pub use gen_RtcRtpReceiver::*; #[cfg(feature = "RtcRtpSender")] #[allow(non_snake_case)] mod gen_RtcRtpSender; #[cfg(feature = "RtcRtpSender")] pub use gen_RtcRtpSender::*; #[cfg(feature = "RtcRtpSourceEntry")] #[allow(non_snake_case)] mod gen_RtcRtpSourceEntry; #[cfg(feature = "RtcRtpSourceEntry")] pub use gen_RtcRtpSourceEntry::*; #[cfg(feature = "RtcRtpSourceEntryType")] #[allow(non_snake_case)] mod gen_RtcRtpSourceEntryType; #[cfg(feature = "RtcRtpSourceEntryType")] pub use gen_RtcRtpSourceEntryType::*; #[cfg(feature = "RtcRtpSynchronizationSource")] #[allow(non_snake_case)] mod gen_RtcRtpSynchronizationSource; #[cfg(feature = "RtcRtpSynchronizationSource")] pub use gen_RtcRtpSynchronizationSource::*; #[cfg(feature = "RtcRtpTransceiver")] #[allow(non_snake_case)] mod gen_RtcRtpTransceiver; #[cfg(feature = "RtcRtpTransceiver")] pub use gen_RtcRtpTransceiver::*; #[cfg(feature = "RtcRtpTransceiverDirection")] #[allow(non_snake_case)] mod gen_RtcRtpTransceiverDirection; #[cfg(feature = "RtcRtpTransceiverDirection")] pub use gen_RtcRtpTransceiverDirection::*; #[cfg(feature = "RtcRtpTransceiverInit")] #[allow(non_snake_case)] mod gen_RtcRtpTransceiverInit; #[cfg(feature = "RtcRtpTransceiverInit")] pub use gen_RtcRtpTransceiverInit::*; #[cfg(feature = "RtcRtxParameters")] #[allow(non_snake_case)] mod gen_RtcRtxParameters; #[cfg(feature = "RtcRtxParameters")] pub use gen_RtcRtxParameters::*; #[cfg(feature = "RtcSdpType")] #[allow(non_snake_case)] mod gen_RtcSdpType; #[cfg(feature = "RtcSdpType")] pub use gen_RtcSdpType::*; #[cfg(feature = "RtcSessionDescription")] #[allow(non_snake_case)] mod gen_RtcSessionDescription; #[cfg(feature = "RtcSessionDescription")] pub use gen_RtcSessionDescription::*; #[cfg(feature = "RtcSessionDescriptionInit")] #[allow(non_snake_case)] mod gen_RtcSessionDescriptionInit; #[cfg(feature = "RtcSessionDescriptionInit")] pub use gen_RtcSessionDescriptionInit::*; #[cfg(feature = "RtcSignalingState")] #[allow(non_snake_case)] mod gen_RtcSignalingState; #[cfg(feature = "RtcSignalingState")] pub use gen_RtcSignalingState::*; #[cfg(feature = "RtcStats")] #[allow(non_snake_case)] mod gen_RtcStats; #[cfg(feature = "RtcStats")] pub use gen_RtcStats::*; #[cfg(feature = "RtcStatsIceCandidatePairState")] #[allow(non_snake_case)] mod gen_RtcStatsIceCandidatePairState; #[cfg(feature = "RtcStatsIceCandidatePairState")] pub use gen_RtcStatsIceCandidatePairState::*; #[cfg(feature = "RtcStatsIceCandidateType")] #[allow(non_snake_case)] mod gen_RtcStatsIceCandidateType; #[cfg(feature = "RtcStatsIceCandidateType")] pub use gen_RtcStatsIceCandidateType::*; #[cfg(feature = "RtcStatsReport")] #[allow(non_snake_case)] mod gen_RtcStatsReport; #[cfg(feature = "RtcStatsReport")] pub use gen_RtcStatsReport::*; #[cfg(feature = "RtcStatsReportInternal")] #[allow(non_snake_case)] mod gen_RtcStatsReportInternal; #[cfg(feature = "RtcStatsReportInternal")] pub use gen_RtcStatsReportInternal::*; #[cfg(feature = "RtcStatsType")] #[allow(non_snake_case)] mod gen_RtcStatsType; #[cfg(feature = "RtcStatsType")] pub use gen_RtcStatsType::*; #[cfg(feature = "RtcTrackEvent")] #[allow(non_snake_case)] mod gen_RtcTrackEvent; #[cfg(feature = "RtcTrackEvent")] pub use gen_RtcTrackEvent::*; #[cfg(feature = "RtcTrackEventInit")] #[allow(non_snake_case)] mod gen_RtcTrackEventInit; #[cfg(feature = "RtcTrackEventInit")] pub use gen_RtcTrackEventInit::*; #[cfg(feature = "RtcTransportStats")] #[allow(non_snake_case)] mod gen_RtcTransportStats; #[cfg(feature = "RtcTransportStats")] pub use gen_RtcTransportStats::*; #[cfg(feature = "RtcdtmfSender")] #[allow(non_snake_case)] mod gen_RtcdtmfSender; #[cfg(feature = "RtcdtmfSender")] pub use gen_RtcdtmfSender::*; #[cfg(feature = "RtcdtmfToneChangeEvent")] #[allow(non_snake_case)] mod gen_RtcdtmfToneChangeEvent; #[cfg(feature = "RtcdtmfToneChangeEvent")] pub use gen_RtcdtmfToneChangeEvent::*; #[cfg(feature = "RtcdtmfToneChangeEventInit")] #[allow(non_snake_case)] mod gen_RtcdtmfToneChangeEventInit; #[cfg(feature = "RtcdtmfToneChangeEventInit")] pub use gen_RtcdtmfToneChangeEventInit::*; #[cfg(feature = "RtcrtpContributingSourceStats")] #[allow(non_snake_case)] mod gen_RtcrtpContributingSourceStats; #[cfg(feature = "RtcrtpContributingSourceStats")] pub use gen_RtcrtpContributingSourceStats::*; #[cfg(feature = "RtcrtpStreamStats")] #[allow(non_snake_case)] mod gen_RtcrtpStreamStats; #[cfg(feature = "RtcrtpStreamStats")] pub use gen_RtcrtpStreamStats::*; #[cfg(feature = "Screen")] #[allow(non_snake_case)] mod gen_Screen; #[cfg(feature = "Screen")] pub use gen_Screen::*; #[cfg(feature = "ScreenColorGamut")] #[allow(non_snake_case)] mod gen_ScreenColorGamut; #[cfg(feature = "ScreenColorGamut")] pub use gen_ScreenColorGamut::*; #[cfg(feature = "ScreenLuminance")] #[allow(non_snake_case)] mod gen_ScreenLuminance; #[cfg(feature = "ScreenLuminance")] pub use gen_ScreenLuminance::*; #[cfg(feature = "ScreenOrientation")] #[allow(non_snake_case)] mod gen_ScreenOrientation; #[cfg(feature = "ScreenOrientation")] pub use gen_ScreenOrientation::*; #[cfg(feature = "ScriptProcessorNode")] #[allow(non_snake_case)] mod gen_ScriptProcessorNode; #[cfg(feature = "ScriptProcessorNode")] pub use gen_ScriptProcessorNode::*; #[cfg(feature = "ScrollAreaEvent")] #[allow(non_snake_case)] mod gen_ScrollAreaEvent; #[cfg(feature = "ScrollAreaEvent")] pub use gen_ScrollAreaEvent::*; #[cfg(feature = "ScrollBehavior")] #[allow(non_snake_case)] mod gen_ScrollBehavior; #[cfg(feature = "ScrollBehavior")] pub use gen_ScrollBehavior::*; #[cfg(feature = "ScrollBoxObject")] #[allow(non_snake_case)] mod gen_ScrollBoxObject; #[cfg(feature = "ScrollBoxObject")] pub use gen_ScrollBoxObject::*; #[cfg(feature = "ScrollIntoViewOptions")] #[allow(non_snake_case)] mod gen_ScrollIntoViewOptions; #[cfg(feature = "ScrollIntoViewOptions")] pub use gen_ScrollIntoViewOptions::*; #[cfg(feature = "ScrollLogicalPosition")] #[allow(non_snake_case)] mod gen_ScrollLogicalPosition; #[cfg(feature = "ScrollLogicalPosition")] pub use gen_ScrollLogicalPosition::*; #[cfg(feature = "ScrollOptions")] #[allow(non_snake_case)] mod gen_ScrollOptions; #[cfg(feature = "ScrollOptions")] pub use gen_ScrollOptions::*; #[cfg(feature = "ScrollRestoration")] #[allow(non_snake_case)] mod gen_ScrollRestoration; #[cfg(feature = "ScrollRestoration")] pub use gen_ScrollRestoration::*; #[cfg(feature = "ScrollSetting")] #[allow(non_snake_case)] mod gen_ScrollSetting; #[cfg(feature = "ScrollSetting")] pub use gen_ScrollSetting::*; #[cfg(feature = "ScrollState")] #[allow(non_snake_case)] mod gen_ScrollState; #[cfg(feature = "ScrollState")] pub use gen_ScrollState::*; #[cfg(feature = "ScrollToOptions")] #[allow(non_snake_case)] mod gen_ScrollToOptions; #[cfg(feature = "ScrollToOptions")] pub use gen_ScrollToOptions::*; #[cfg(feature = "ScrollViewChangeEventInit")] #[allow(non_snake_case)] mod gen_ScrollViewChangeEventInit; #[cfg(feature = "ScrollViewChangeEventInit")] pub use gen_ScrollViewChangeEventInit::*; #[cfg(feature = "SecurityPolicyViolationEvent")] #[allow(non_snake_case)] mod gen_SecurityPolicyViolationEvent; #[cfg(feature = "SecurityPolicyViolationEvent")] pub use gen_SecurityPolicyViolationEvent::*; #[cfg(feature = "SecurityPolicyViolationEventDisposition")] #[allow(non_snake_case)] mod gen_SecurityPolicyViolationEventDisposition; #[cfg(feature = "SecurityPolicyViolationEventDisposition")] pub use gen_SecurityPolicyViolationEventDisposition::*; #[cfg(feature = "SecurityPolicyViolationEventInit")] #[allow(non_snake_case)] mod gen_SecurityPolicyViolationEventInit; #[cfg(feature = "SecurityPolicyViolationEventInit")] pub use gen_SecurityPolicyViolationEventInit::*; #[cfg(feature = "Selection")] #[allow(non_snake_case)] mod gen_Selection; #[cfg(feature = "Selection")] pub use gen_Selection::*; #[cfg(feature = "ServerSocketOptions")] #[allow(non_snake_case)] mod gen_ServerSocketOptions; #[cfg(feature = "ServerSocketOptions")] pub use gen_ServerSocketOptions::*; #[cfg(feature = "ServiceWorker")] #[allow(non_snake_case)] mod gen_ServiceWorker; #[cfg(feature = "ServiceWorker")] pub use gen_ServiceWorker::*; #[cfg(feature = "ServiceWorkerContainer")] #[allow(non_snake_case)] mod gen_ServiceWorkerContainer; #[cfg(feature = "ServiceWorkerContainer")] pub use gen_ServiceWorkerContainer::*; #[cfg(feature = "ServiceWorkerGlobalScope")] #[allow(non_snake_case)] mod gen_ServiceWorkerGlobalScope; #[cfg(feature = "ServiceWorkerGlobalScope")] pub use gen_ServiceWorkerGlobalScope::*; #[cfg(feature = "ServiceWorkerRegistration")] #[allow(non_snake_case)] mod gen_ServiceWorkerRegistration; #[cfg(feature = "ServiceWorkerRegistration")] pub use gen_ServiceWorkerRegistration::*; #[cfg(feature = "ServiceWorkerState")] #[allow(non_snake_case)] mod gen_ServiceWorkerState; #[cfg(feature = "ServiceWorkerState")] pub use gen_ServiceWorkerState::*; #[cfg(feature = "ServiceWorkerUpdateViaCache")] #[allow(non_snake_case)] mod gen_ServiceWorkerUpdateViaCache; #[cfg(feature = "ServiceWorkerUpdateViaCache")] pub use gen_ServiceWorkerUpdateViaCache::*; #[cfg(feature = "ShadowRoot")] #[allow(non_snake_case)] mod gen_ShadowRoot; #[cfg(feature = "ShadowRoot")] pub use gen_ShadowRoot::*; #[cfg(feature = "ShadowRootInit")] #[allow(non_snake_case)] mod gen_ShadowRootInit; #[cfg(feature = "ShadowRootInit")] pub use gen_ShadowRootInit::*; #[cfg(feature = "ShadowRootMode")] #[allow(non_snake_case)] mod gen_ShadowRootMode; #[cfg(feature = "ShadowRootMode")] pub use gen_ShadowRootMode::*; #[cfg(feature = "SharedWorker")] #[allow(non_snake_case)] mod gen_SharedWorker; #[cfg(feature = "SharedWorker")] pub use gen_SharedWorker::*; #[cfg(feature = "SharedWorkerGlobalScope")] #[allow(non_snake_case)] mod gen_SharedWorkerGlobalScope; #[cfg(feature = "SharedWorkerGlobalScope")] pub use gen_SharedWorkerGlobalScope::*; #[cfg(feature = "SignResponse")] #[allow(non_snake_case)] mod gen_SignResponse; #[cfg(feature = "SignResponse")] pub use gen_SignResponse::*; #[cfg(feature = "SocketElement")] #[allow(non_snake_case)] mod gen_SocketElement; #[cfg(feature = "SocketElement")] pub use gen_SocketElement::*; #[cfg(feature = "SocketOptions")] #[allow(non_snake_case)] mod gen_SocketOptions; #[cfg(feature = "SocketOptions")] pub use gen_SocketOptions::*; #[cfg(feature = "SocketReadyState")] #[allow(non_snake_case)] mod gen_SocketReadyState; #[cfg(feature = "SocketReadyState")] pub use gen_SocketReadyState::*; #[cfg(feature = "SocketsDict")] #[allow(non_snake_case)] mod gen_SocketsDict; #[cfg(feature = "SocketsDict")] pub use gen_SocketsDict::*; #[cfg(feature = "SourceBuffer")] #[allow(non_snake_case)] mod gen_SourceBuffer; #[cfg(feature = "SourceBuffer")] pub use gen_SourceBuffer::*; #[cfg(feature = "SourceBufferAppendMode")] #[allow(non_snake_case)] mod gen_SourceBufferAppendMode; #[cfg(feature = "SourceBufferAppendMode")] pub use gen_SourceBufferAppendMode::*; #[cfg(feature = "SourceBufferList")] #[allow(non_snake_case)] mod gen_SourceBufferList; #[cfg(feature = "SourceBufferList")] pub use gen_SourceBufferList::*; #[cfg(feature = "SpeechGrammar")] #[allow(non_snake_case)] mod gen_SpeechGrammar; #[cfg(feature = "SpeechGrammar")] pub use gen_SpeechGrammar::*; #[cfg(feature = "SpeechGrammarList")] #[allow(non_snake_case)] mod gen_SpeechGrammarList; #[cfg(feature = "SpeechGrammarList")] pub use gen_SpeechGrammarList::*; #[cfg(feature = "SpeechRecognition")] #[allow(non_snake_case)] mod gen_SpeechRecognition; #[cfg(feature = "SpeechRecognition")] pub use gen_SpeechRecognition::*; #[cfg(feature = "SpeechRecognitionAlternative")] #[allow(non_snake_case)] mod gen_SpeechRecognitionAlternative; #[cfg(feature = "SpeechRecognitionAlternative")] pub use gen_SpeechRecognitionAlternative::*; #[cfg(feature = "SpeechRecognitionError")] #[allow(non_snake_case)] mod gen_SpeechRecognitionError; #[cfg(feature = "SpeechRecognitionError")] pub use gen_SpeechRecognitionError::*; #[cfg(feature = "SpeechRecognitionErrorCode")] #[allow(non_snake_case)] mod gen_SpeechRecognitionErrorCode; #[cfg(feature = "SpeechRecognitionErrorCode")] pub use gen_SpeechRecognitionErrorCode::*; #[cfg(feature = "SpeechRecognitionErrorInit")] #[allow(non_snake_case)] mod gen_SpeechRecognitionErrorInit; #[cfg(feature = "SpeechRecognitionErrorInit")] pub use gen_SpeechRecognitionErrorInit::*; #[cfg(feature = "SpeechRecognitionEvent")] #[allow(non_snake_case)] mod gen_SpeechRecognitionEvent; #[cfg(feature = "SpeechRecognitionEvent")] pub use gen_SpeechRecognitionEvent::*; #[cfg(feature = "SpeechRecognitionEventInit")] #[allow(non_snake_case)] mod gen_SpeechRecognitionEventInit; #[cfg(feature = "SpeechRecognitionEventInit")] pub use gen_SpeechRecognitionEventInit::*; #[cfg(feature = "SpeechRecognitionResult")] #[allow(non_snake_case)] mod gen_SpeechRecognitionResult; #[cfg(feature = "SpeechRecognitionResult")] pub use gen_SpeechRecognitionResult::*; #[cfg(feature = "SpeechRecognitionResultList")] #[allow(non_snake_case)] mod gen_SpeechRecognitionResultList; #[cfg(feature = "SpeechRecognitionResultList")] pub use gen_SpeechRecognitionResultList::*; #[cfg(feature = "SpeechSynthesis")] #[allow(non_snake_case)] mod gen_SpeechSynthesis; #[cfg(feature = "SpeechSynthesis")] pub use gen_SpeechSynthesis::*; #[cfg(feature = "SpeechSynthesisErrorCode")] #[allow(non_snake_case)] mod gen_SpeechSynthesisErrorCode; #[cfg(feature = "SpeechSynthesisErrorCode")] pub use gen_SpeechSynthesisErrorCode::*; #[cfg(feature = "SpeechSynthesisErrorEvent")] #[allow(non_snake_case)] mod gen_SpeechSynthesisErrorEvent; #[cfg(feature = "SpeechSynthesisErrorEvent")] pub use gen_SpeechSynthesisErrorEvent::*; #[cfg(feature = "SpeechSynthesisErrorEventInit")] #[allow(non_snake_case)] mod gen_SpeechSynthesisErrorEventInit; #[cfg(feature = "SpeechSynthesisErrorEventInit")] pub use gen_SpeechSynthesisErrorEventInit::*; #[cfg(feature = "SpeechSynthesisEvent")] #[allow(non_snake_case)] mod gen_SpeechSynthesisEvent; #[cfg(feature = "SpeechSynthesisEvent")] pub use gen_SpeechSynthesisEvent::*; #[cfg(feature = "SpeechSynthesisEventInit")] #[allow(non_snake_case)] mod gen_SpeechSynthesisEventInit; #[cfg(feature = "SpeechSynthesisEventInit")] pub use gen_SpeechSynthesisEventInit::*; #[cfg(feature = "SpeechSynthesisUtterance")] #[allow(non_snake_case)] mod gen_SpeechSynthesisUtterance; #[cfg(feature = "SpeechSynthesisUtterance")] pub use gen_SpeechSynthesisUtterance::*; #[cfg(feature = "SpeechSynthesisVoice")] #[allow(non_snake_case)] mod gen_SpeechSynthesisVoice; #[cfg(feature = "SpeechSynthesisVoice")] pub use gen_SpeechSynthesisVoice::*; #[cfg(feature = "StereoPannerNode")] #[allow(non_snake_case)] mod gen_StereoPannerNode; #[cfg(feature = "StereoPannerNode")] pub use gen_StereoPannerNode::*; #[cfg(feature = "StereoPannerOptions")] #[allow(non_snake_case)] mod gen_StereoPannerOptions; #[cfg(feature = "StereoPannerOptions")] pub use gen_StereoPannerOptions::*; #[cfg(feature = "Storage")] #[allow(non_snake_case)] mod gen_Storage; #[cfg(feature = "Storage")] pub use gen_Storage::*; #[cfg(feature = "StorageEstimate")] #[allow(non_snake_case)] mod gen_StorageEstimate; #[cfg(feature = "StorageEstimate")] pub use gen_StorageEstimate::*; #[cfg(feature = "StorageEvent")] #[allow(non_snake_case)] mod gen_StorageEvent; #[cfg(feature = "StorageEvent")] pub use gen_StorageEvent::*; #[cfg(feature = "StorageEventInit")] #[allow(non_snake_case)] mod gen_StorageEventInit; #[cfg(feature = "StorageEventInit")] pub use gen_StorageEventInit::*; #[cfg(feature = "StorageManager")] #[allow(non_snake_case)] mod gen_StorageManager; #[cfg(feature = "StorageManager")] pub use gen_StorageManager::*; #[cfg(feature = "StorageType")] #[allow(non_snake_case)] mod gen_StorageType; #[cfg(feature = "StorageType")] pub use gen_StorageType::*; #[cfg(feature = "StreamPipeOptions")] #[allow(non_snake_case)] mod gen_StreamPipeOptions; #[cfg(feature = "StreamPipeOptions")] pub use gen_StreamPipeOptions::*; #[cfg(feature = "StyleRuleChangeEventInit")] #[allow(non_snake_case)] mod gen_StyleRuleChangeEventInit; #[cfg(feature = "StyleRuleChangeEventInit")] pub use gen_StyleRuleChangeEventInit::*; #[cfg(feature = "StyleSheet")] #[allow(non_snake_case)] mod gen_StyleSheet; #[cfg(feature = "StyleSheet")] pub use gen_StyleSheet::*; #[cfg(feature = "StyleSheetApplicableStateChangeEventInit")] #[allow(non_snake_case)] mod gen_StyleSheetApplicableStateChangeEventInit; #[cfg(feature = "StyleSheetApplicableStateChangeEventInit")] pub use gen_StyleSheetApplicableStateChangeEventInit::*; #[cfg(feature = "StyleSheetChangeEventInit")] #[allow(non_snake_case)] mod gen_StyleSheetChangeEventInit; #[cfg(feature = "StyleSheetChangeEventInit")] pub use gen_StyleSheetChangeEventInit::*; #[cfg(feature = "StyleSheetList")] #[allow(non_snake_case)] mod gen_StyleSheetList; #[cfg(feature = "StyleSheetList")] pub use gen_StyleSheetList::*; #[cfg(feature = "SubtleCrypto")] #[allow(non_snake_case)] mod gen_SubtleCrypto; #[cfg(feature = "SubtleCrypto")] pub use gen_SubtleCrypto::*; #[cfg(feature = "SupportedType")] #[allow(non_snake_case)] mod gen_SupportedType; #[cfg(feature = "SupportedType")] pub use gen_SupportedType::*; #[cfg(feature = "SvgAngle")] #[allow(non_snake_case)] mod gen_SvgAngle; #[cfg(feature = "SvgAngle")] pub use gen_SvgAngle::*; #[cfg(feature = "SvgAnimateElement")] #[allow(non_snake_case)] mod gen_SvgAnimateElement; #[cfg(feature = "SvgAnimateElement")] pub use gen_SvgAnimateElement::*; #[cfg(feature = "SvgAnimateMotionElement")] #[allow(non_snake_case)] mod gen_SvgAnimateMotionElement; #[cfg(feature = "SvgAnimateMotionElement")] pub use gen_SvgAnimateMotionElement::*; #[cfg(feature = "SvgAnimateTransformElement")] #[allow(non_snake_case)] mod gen_SvgAnimateTransformElement; #[cfg(feature = "SvgAnimateTransformElement")] pub use gen_SvgAnimateTransformElement::*; #[cfg(feature = "SvgAnimatedAngle")] #[allow(non_snake_case)] mod gen_SvgAnimatedAngle; #[cfg(feature = "SvgAnimatedAngle")] pub use gen_SvgAnimatedAngle::*; #[cfg(feature = "SvgAnimatedBoolean")] #[allow(non_snake_case)] mod gen_SvgAnimatedBoolean; #[cfg(feature = "SvgAnimatedBoolean")] pub use gen_SvgAnimatedBoolean::*; #[cfg(feature = "SvgAnimatedEnumeration")] #[allow(non_snake_case)] mod gen_SvgAnimatedEnumeration; #[cfg(feature = "SvgAnimatedEnumeration")] pub use gen_SvgAnimatedEnumeration::*; #[cfg(feature = "SvgAnimatedInteger")] #[allow(non_snake_case)] mod gen_SvgAnimatedInteger; #[cfg(feature = "SvgAnimatedInteger")] pub use gen_SvgAnimatedInteger::*; #[cfg(feature = "SvgAnimatedLength")] #[allow(non_snake_case)] mod gen_SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] pub use gen_SvgAnimatedLength::*; #[cfg(feature = "SvgAnimatedLengthList")] #[allow(non_snake_case)] mod gen_SvgAnimatedLengthList; #[cfg(feature = "SvgAnimatedLengthList")] pub use gen_SvgAnimatedLengthList::*; #[cfg(feature = "SvgAnimatedNumber")] #[allow(non_snake_case)] mod gen_SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] pub use gen_SvgAnimatedNumber::*; #[cfg(feature = "SvgAnimatedNumberList")] #[allow(non_snake_case)] mod gen_SvgAnimatedNumberList; #[cfg(feature = "SvgAnimatedNumberList")] pub use gen_SvgAnimatedNumberList::*; #[cfg(feature = "SvgAnimatedPreserveAspectRatio")] #[allow(non_snake_case)] mod gen_SvgAnimatedPreserveAspectRatio; #[cfg(feature = "SvgAnimatedPreserveAspectRatio")] pub use gen_SvgAnimatedPreserveAspectRatio::*; #[cfg(feature = "SvgAnimatedRect")] #[allow(non_snake_case)] mod gen_SvgAnimatedRect; #[cfg(feature = "SvgAnimatedRect")] pub use gen_SvgAnimatedRect::*; #[cfg(feature = "SvgAnimatedString")] #[allow(non_snake_case)] mod gen_SvgAnimatedString; #[cfg(feature = "SvgAnimatedString")] pub use gen_SvgAnimatedString::*; #[cfg(feature = "SvgAnimatedTransformList")] #[allow(non_snake_case)] mod gen_SvgAnimatedTransformList; #[cfg(feature = "SvgAnimatedTransformList")] pub use gen_SvgAnimatedTransformList::*; #[cfg(feature = "SvgAnimationElement")] #[allow(non_snake_case)] mod gen_SvgAnimationElement; #[cfg(feature = "SvgAnimationElement")] pub use gen_SvgAnimationElement::*; #[cfg(feature = "SvgBoundingBoxOptions")] #[allow(non_snake_case)] mod gen_SvgBoundingBoxOptions; #[cfg(feature = "SvgBoundingBoxOptions")] pub use gen_SvgBoundingBoxOptions::*; #[cfg(feature = "SvgCircleElement")] #[allow(non_snake_case)] mod gen_SvgCircleElement; #[cfg(feature = "SvgCircleElement")] pub use gen_SvgCircleElement::*; #[cfg(feature = "SvgClipPathElement")] #[allow(non_snake_case)] mod gen_SvgClipPathElement; #[cfg(feature = "SvgClipPathElement")] pub use gen_SvgClipPathElement::*; #[cfg(feature = "SvgComponentTransferFunctionElement")] #[allow(non_snake_case)] mod gen_SvgComponentTransferFunctionElement; #[cfg(feature = "SvgComponentTransferFunctionElement")] pub use gen_SvgComponentTransferFunctionElement::*; #[cfg(feature = "SvgDefsElement")] #[allow(non_snake_case)] mod gen_SvgDefsElement; #[cfg(feature = "SvgDefsElement")] pub use gen_SvgDefsElement::*; #[cfg(feature = "SvgDescElement")] #[allow(non_snake_case)] mod gen_SvgDescElement; #[cfg(feature = "SvgDescElement")] pub use gen_SvgDescElement::*; #[cfg(feature = "SvgElement")] #[allow(non_snake_case)] mod gen_SvgElement; #[cfg(feature = "SvgElement")] pub use gen_SvgElement::*; #[cfg(feature = "SvgEllipseElement")] #[allow(non_snake_case)] mod gen_SvgEllipseElement; #[cfg(feature = "SvgEllipseElement")] pub use gen_SvgEllipseElement::*; #[cfg(feature = "SvgFilterElement")] #[allow(non_snake_case)] mod gen_SvgFilterElement; #[cfg(feature = "SvgFilterElement")] pub use gen_SvgFilterElement::*; #[cfg(feature = "SvgForeignObjectElement")] #[allow(non_snake_case)] mod gen_SvgForeignObjectElement; #[cfg(feature = "SvgForeignObjectElement")] pub use gen_SvgForeignObjectElement::*; #[cfg(feature = "SvgGeometryElement")] #[allow(non_snake_case)] mod gen_SvgGeometryElement; #[cfg(feature = "SvgGeometryElement")] pub use gen_SvgGeometryElement::*; #[cfg(feature = "SvgGradientElement")] #[allow(non_snake_case)] mod gen_SvgGradientElement; #[cfg(feature = "SvgGradientElement")] pub use gen_SvgGradientElement::*; #[cfg(feature = "SvgGraphicsElement")] #[allow(non_snake_case)] mod gen_SvgGraphicsElement; #[cfg(feature = "SvgGraphicsElement")] pub use gen_SvgGraphicsElement::*; #[cfg(feature = "SvgImageElement")] #[allow(non_snake_case)] mod gen_SvgImageElement; #[cfg(feature = "SvgImageElement")] pub use gen_SvgImageElement::*; #[cfg(feature = "SvgLength")] #[allow(non_snake_case)] mod gen_SvgLength; #[cfg(feature = "SvgLength")] pub use gen_SvgLength::*; #[cfg(feature = "SvgLengthList")] #[allow(non_snake_case)] mod gen_SvgLengthList; #[cfg(feature = "SvgLengthList")] pub use gen_SvgLengthList::*; #[cfg(feature = "SvgLineElement")] #[allow(non_snake_case)] mod gen_SvgLineElement; #[cfg(feature = "SvgLineElement")] pub use gen_SvgLineElement::*; #[cfg(feature = "SvgLinearGradientElement")] #[allow(non_snake_case)] mod gen_SvgLinearGradientElement; #[cfg(feature = "SvgLinearGradientElement")] pub use gen_SvgLinearGradientElement::*; #[cfg(feature = "SvgMarkerElement")] #[allow(non_snake_case)] mod gen_SvgMarkerElement; #[cfg(feature = "SvgMarkerElement")] pub use gen_SvgMarkerElement::*; #[cfg(feature = "SvgMaskElement")] #[allow(non_snake_case)] mod gen_SvgMaskElement; #[cfg(feature = "SvgMaskElement")] pub use gen_SvgMaskElement::*; #[cfg(feature = "SvgMatrix")] #[allow(non_snake_case)] mod gen_SvgMatrix; #[cfg(feature = "SvgMatrix")] pub use gen_SvgMatrix::*; #[cfg(feature = "SvgMetadataElement")] #[allow(non_snake_case)] mod gen_SvgMetadataElement; #[cfg(feature = "SvgMetadataElement")] pub use gen_SvgMetadataElement::*; #[cfg(feature = "SvgNumber")] #[allow(non_snake_case)] mod gen_SvgNumber; #[cfg(feature = "SvgNumber")] pub use gen_SvgNumber::*; #[cfg(feature = "SvgNumberList")] #[allow(non_snake_case)] mod gen_SvgNumberList; #[cfg(feature = "SvgNumberList")] pub use gen_SvgNumberList::*; #[cfg(feature = "SvgPathElement")] #[allow(non_snake_case)] mod gen_SvgPathElement; #[cfg(feature = "SvgPathElement")] pub use gen_SvgPathElement::*; #[cfg(feature = "SvgPathSeg")] #[allow(non_snake_case)] mod gen_SvgPathSeg; #[cfg(feature = "SvgPathSeg")] pub use gen_SvgPathSeg::*; #[cfg(feature = "SvgPathSegArcAbs")] #[allow(non_snake_case)] mod gen_SvgPathSegArcAbs; #[cfg(feature = "SvgPathSegArcAbs")] pub use gen_SvgPathSegArcAbs::*; #[cfg(feature = "SvgPathSegArcRel")] #[allow(non_snake_case)] mod gen_SvgPathSegArcRel; #[cfg(feature = "SvgPathSegArcRel")] pub use gen_SvgPathSegArcRel::*; #[cfg(feature = "SvgPathSegClosePath")] #[allow(non_snake_case)] mod gen_SvgPathSegClosePath; #[cfg(feature = "SvgPathSegClosePath")] pub use gen_SvgPathSegClosePath::*; #[cfg(feature = "SvgPathSegCurvetoCubicAbs")] #[allow(non_snake_case)] mod gen_SvgPathSegCurvetoCubicAbs; #[cfg(feature = "SvgPathSegCurvetoCubicAbs")] pub use gen_SvgPathSegCurvetoCubicAbs::*; #[cfg(feature = "SvgPathSegCurvetoCubicRel")] #[allow(non_snake_case)] mod gen_SvgPathSegCurvetoCubicRel; #[cfg(feature = "SvgPathSegCurvetoCubicRel")] pub use gen_SvgPathSegCurvetoCubicRel::*; #[cfg(feature = "SvgPathSegCurvetoCubicSmoothAbs")] #[allow(non_snake_case)] mod gen_SvgPathSegCurvetoCubicSmoothAbs; #[cfg(feature = "SvgPathSegCurvetoCubicSmoothAbs")] pub use gen_SvgPathSegCurvetoCubicSmoothAbs::*; #[cfg(feature = "SvgPathSegCurvetoCubicSmoothRel")] #[allow(non_snake_case)] mod gen_SvgPathSegCurvetoCubicSmoothRel; #[cfg(feature = "SvgPathSegCurvetoCubicSmoothRel")] pub use gen_SvgPathSegCurvetoCubicSmoothRel::*; #[cfg(feature = "SvgPathSegCurvetoQuadraticAbs")] #[allow(non_snake_case)] mod gen_SvgPathSegCurvetoQuadraticAbs; #[cfg(feature = "SvgPathSegCurvetoQuadraticAbs")] pub use gen_SvgPathSegCurvetoQuadraticAbs::*; #[cfg(feature = "SvgPathSegCurvetoQuadraticRel")] #[allow(non_snake_case)] mod gen_SvgPathSegCurvetoQuadraticRel; #[cfg(feature = "SvgPathSegCurvetoQuadraticRel")] pub use gen_SvgPathSegCurvetoQuadraticRel::*; #[cfg(feature = "SvgPathSegCurvetoQuadraticSmoothAbs")] #[allow(non_snake_case)] mod gen_SvgPathSegCurvetoQuadraticSmoothAbs; #[cfg(feature = "SvgPathSegCurvetoQuadraticSmoothAbs")] pub use gen_SvgPathSegCurvetoQuadraticSmoothAbs::*; #[cfg(feature = "SvgPathSegCurvetoQuadraticSmoothRel")] #[allow(non_snake_case)] mod gen_SvgPathSegCurvetoQuadraticSmoothRel; #[cfg(feature = "SvgPathSegCurvetoQuadraticSmoothRel")] pub use gen_SvgPathSegCurvetoQuadraticSmoothRel::*; #[cfg(feature = "SvgPathSegLinetoAbs")] #[allow(non_snake_case)] mod gen_SvgPathSegLinetoAbs; #[cfg(feature = "SvgPathSegLinetoAbs")] pub use gen_SvgPathSegLinetoAbs::*; #[cfg(feature = "SvgPathSegLinetoHorizontalAbs")] #[allow(non_snake_case)] mod gen_SvgPathSegLinetoHorizontalAbs; #[cfg(feature = "SvgPathSegLinetoHorizontalAbs")] pub use gen_SvgPathSegLinetoHorizontalAbs::*; #[cfg(feature = "SvgPathSegLinetoHorizontalRel")] #[allow(non_snake_case)] mod gen_SvgPathSegLinetoHorizontalRel; #[cfg(feature = "SvgPathSegLinetoHorizontalRel")] pub use gen_SvgPathSegLinetoHorizontalRel::*; #[cfg(feature = "SvgPathSegLinetoRel")] #[allow(non_snake_case)] mod gen_SvgPathSegLinetoRel; #[cfg(feature = "SvgPathSegLinetoRel")] pub use gen_SvgPathSegLinetoRel::*; #[cfg(feature = "SvgPathSegLinetoVerticalAbs")] #[allow(non_snake_case)] mod gen_SvgPathSegLinetoVerticalAbs; #[cfg(feature = "SvgPathSegLinetoVerticalAbs")] pub use gen_SvgPathSegLinetoVerticalAbs::*; #[cfg(feature = "SvgPathSegLinetoVerticalRel")] #[allow(non_snake_case)] mod gen_SvgPathSegLinetoVerticalRel; #[cfg(feature = "SvgPathSegLinetoVerticalRel")] pub use gen_SvgPathSegLinetoVerticalRel::*; #[cfg(feature = "SvgPathSegList")] #[allow(non_snake_case)] mod gen_SvgPathSegList; #[cfg(feature = "SvgPathSegList")] pub use gen_SvgPathSegList::*; #[cfg(feature = "SvgPathSegMovetoAbs")] #[allow(non_snake_case)] mod gen_SvgPathSegMovetoAbs; #[cfg(feature = "SvgPathSegMovetoAbs")] pub use gen_SvgPathSegMovetoAbs::*; #[cfg(feature = "SvgPathSegMovetoRel")] #[allow(non_snake_case)] mod gen_SvgPathSegMovetoRel; #[cfg(feature = "SvgPathSegMovetoRel")] pub use gen_SvgPathSegMovetoRel::*; #[cfg(feature = "SvgPatternElement")] #[allow(non_snake_case)] mod gen_SvgPatternElement; #[cfg(feature = "SvgPatternElement")] pub use gen_SvgPatternElement::*; #[cfg(feature = "SvgPoint")] #[allow(non_snake_case)] mod gen_SvgPoint; #[cfg(feature = "SvgPoint")] pub use gen_SvgPoint::*; #[cfg(feature = "SvgPointList")] #[allow(non_snake_case)] mod gen_SvgPointList; #[cfg(feature = "SvgPointList")] pub use gen_SvgPointList::*; #[cfg(feature = "SvgPolygonElement")] #[allow(non_snake_case)] mod gen_SvgPolygonElement; #[cfg(feature = "SvgPolygonElement")] pub use gen_SvgPolygonElement::*; #[cfg(feature = "SvgPolylineElement")] #[allow(non_snake_case)] mod gen_SvgPolylineElement; #[cfg(feature = "SvgPolylineElement")] pub use gen_SvgPolylineElement::*; #[cfg(feature = "SvgPreserveAspectRatio")] #[allow(non_snake_case)] mod gen_SvgPreserveAspectRatio; #[cfg(feature = "SvgPreserveAspectRatio")] pub use gen_SvgPreserveAspectRatio::*; #[cfg(feature = "SvgRadialGradientElement")] #[allow(non_snake_case)] mod gen_SvgRadialGradientElement; #[cfg(feature = "SvgRadialGradientElement")] pub use gen_SvgRadialGradientElement::*; #[cfg(feature = "SvgRect")] #[allow(non_snake_case)] mod gen_SvgRect; #[cfg(feature = "SvgRect")] pub use gen_SvgRect::*; #[cfg(feature = "SvgRectElement")] #[allow(non_snake_case)] mod gen_SvgRectElement; #[cfg(feature = "SvgRectElement")] pub use gen_SvgRectElement::*; #[cfg(feature = "SvgScriptElement")] #[allow(non_snake_case)] mod gen_SvgScriptElement; #[cfg(feature = "SvgScriptElement")] pub use gen_SvgScriptElement::*; #[cfg(feature = "SvgSetElement")] #[allow(non_snake_case)] mod gen_SvgSetElement; #[cfg(feature = "SvgSetElement")] pub use gen_SvgSetElement::*; #[cfg(feature = "SvgStopElement")] #[allow(non_snake_case)] mod gen_SvgStopElement; #[cfg(feature = "SvgStopElement")] pub use gen_SvgStopElement::*; #[cfg(feature = "SvgStringList")] #[allow(non_snake_case)] mod gen_SvgStringList; #[cfg(feature = "SvgStringList")] pub use gen_SvgStringList::*; #[cfg(feature = "SvgStyleElement")] #[allow(non_snake_case)] mod gen_SvgStyleElement; #[cfg(feature = "SvgStyleElement")] pub use gen_SvgStyleElement::*; #[cfg(feature = "SvgSwitchElement")] #[allow(non_snake_case)] mod gen_SvgSwitchElement; #[cfg(feature = "SvgSwitchElement")] pub use gen_SvgSwitchElement::*; #[cfg(feature = "SvgSymbolElement")] #[allow(non_snake_case)] mod gen_SvgSymbolElement; #[cfg(feature = "SvgSymbolElement")] pub use gen_SvgSymbolElement::*; #[cfg(feature = "SvgTextContentElement")] #[allow(non_snake_case)] mod gen_SvgTextContentElement; #[cfg(feature = "SvgTextContentElement")] pub use gen_SvgTextContentElement::*; #[cfg(feature = "SvgTextElement")] #[allow(non_snake_case)] mod gen_SvgTextElement; #[cfg(feature = "SvgTextElement")] pub use gen_SvgTextElement::*; #[cfg(feature = "SvgTextPathElement")] #[allow(non_snake_case)] mod gen_SvgTextPathElement; #[cfg(feature = "SvgTextPathElement")] pub use gen_SvgTextPathElement::*; #[cfg(feature = "SvgTextPositioningElement")] #[allow(non_snake_case)] mod gen_SvgTextPositioningElement; #[cfg(feature = "SvgTextPositioningElement")] pub use gen_SvgTextPositioningElement::*; #[cfg(feature = "SvgTitleElement")] #[allow(non_snake_case)] mod gen_SvgTitleElement; #[cfg(feature = "SvgTitleElement")] pub use gen_SvgTitleElement::*; #[cfg(feature = "SvgTransform")] #[allow(non_snake_case)] mod gen_SvgTransform; #[cfg(feature = "SvgTransform")] pub use gen_SvgTransform::*; #[cfg(feature = "SvgTransformList")] #[allow(non_snake_case)] mod gen_SvgTransformList; #[cfg(feature = "SvgTransformList")] pub use gen_SvgTransformList::*; #[cfg(feature = "SvgUnitTypes")] #[allow(non_snake_case)] mod gen_SvgUnitTypes; #[cfg(feature = "SvgUnitTypes")] pub use gen_SvgUnitTypes::*; #[cfg(feature = "SvgUseElement")] #[allow(non_snake_case)] mod gen_SvgUseElement; #[cfg(feature = "SvgUseElement")] pub use gen_SvgUseElement::*; #[cfg(feature = "SvgViewElement")] #[allow(non_snake_case)] mod gen_SvgViewElement; #[cfg(feature = "SvgViewElement")] pub use gen_SvgViewElement::*; #[cfg(feature = "SvgZoomAndPan")] #[allow(non_snake_case)] mod gen_SvgZoomAndPan; #[cfg(feature = "SvgZoomAndPan")] pub use gen_SvgZoomAndPan::*; #[cfg(feature = "SvgaElement")] #[allow(non_snake_case)] mod gen_SvgaElement; #[cfg(feature = "SvgaElement")] pub use gen_SvgaElement::*; #[cfg(feature = "SvgfeBlendElement")] #[allow(non_snake_case)] mod gen_SvgfeBlendElement; #[cfg(feature = "SvgfeBlendElement")] pub use gen_SvgfeBlendElement::*; #[cfg(feature = "SvgfeColorMatrixElement")] #[allow(non_snake_case)] mod gen_SvgfeColorMatrixElement; #[cfg(feature = "SvgfeColorMatrixElement")] pub use gen_SvgfeColorMatrixElement::*; #[cfg(feature = "SvgfeComponentTransferElement")] #[allow(non_snake_case)] mod gen_SvgfeComponentTransferElement; #[cfg(feature = "SvgfeComponentTransferElement")] pub use gen_SvgfeComponentTransferElement::*; #[cfg(feature = "SvgfeCompositeElement")] #[allow(non_snake_case)] mod gen_SvgfeCompositeElement; #[cfg(feature = "SvgfeCompositeElement")] pub use gen_SvgfeCompositeElement::*; #[cfg(feature = "SvgfeConvolveMatrixElement")] #[allow(non_snake_case)] mod gen_SvgfeConvolveMatrixElement; #[cfg(feature = "SvgfeConvolveMatrixElement")] pub use gen_SvgfeConvolveMatrixElement::*; #[cfg(feature = "SvgfeDiffuseLightingElement")] #[allow(non_snake_case)] mod gen_SvgfeDiffuseLightingElement; #[cfg(feature = "SvgfeDiffuseLightingElement")] pub use gen_SvgfeDiffuseLightingElement::*; #[cfg(feature = "SvgfeDisplacementMapElement")] #[allow(non_snake_case)] mod gen_SvgfeDisplacementMapElement; #[cfg(feature = "SvgfeDisplacementMapElement")] pub use gen_SvgfeDisplacementMapElement::*; #[cfg(feature = "SvgfeDistantLightElement")] #[allow(non_snake_case)] mod gen_SvgfeDistantLightElement; #[cfg(feature = "SvgfeDistantLightElement")] pub use gen_SvgfeDistantLightElement::*; #[cfg(feature = "SvgfeDropShadowElement")] #[allow(non_snake_case)] mod gen_SvgfeDropShadowElement; #[cfg(feature = "SvgfeDropShadowElement")] pub use gen_SvgfeDropShadowElement::*; #[cfg(feature = "SvgfeFloodElement")] #[allow(non_snake_case)] mod gen_SvgfeFloodElement; #[cfg(feature = "SvgfeFloodElement")] pub use gen_SvgfeFloodElement::*; #[cfg(feature = "SvgfeFuncAElement")] #[allow(non_snake_case)] mod gen_SvgfeFuncAElement; #[cfg(feature = "SvgfeFuncAElement")] pub use gen_SvgfeFuncAElement::*; #[cfg(feature = "SvgfeFuncBElement")] #[allow(non_snake_case)] mod gen_SvgfeFuncBElement; #[cfg(feature = "SvgfeFuncBElement")] pub use gen_SvgfeFuncBElement::*; #[cfg(feature = "SvgfeFuncGElement")] #[allow(non_snake_case)] mod gen_SvgfeFuncGElement; #[cfg(feature = "SvgfeFuncGElement")] pub use gen_SvgfeFuncGElement::*; #[cfg(feature = "SvgfeFuncRElement")] #[allow(non_snake_case)] mod gen_SvgfeFuncRElement; #[cfg(feature = "SvgfeFuncRElement")] pub use gen_SvgfeFuncRElement::*; #[cfg(feature = "SvgfeGaussianBlurElement")] #[allow(non_snake_case)] mod gen_SvgfeGaussianBlurElement; #[cfg(feature = "SvgfeGaussianBlurElement")] pub use gen_SvgfeGaussianBlurElement::*; #[cfg(feature = "SvgfeImageElement")] #[allow(non_snake_case)] mod gen_SvgfeImageElement; #[cfg(feature = "SvgfeImageElement")] pub use gen_SvgfeImageElement::*; #[cfg(feature = "SvgfeMergeElement")] #[allow(non_snake_case)] mod gen_SvgfeMergeElement; #[cfg(feature = "SvgfeMergeElement")] pub use gen_SvgfeMergeElement::*; #[cfg(feature = "SvgfeMergeNodeElement")] #[allow(non_snake_case)] mod gen_SvgfeMergeNodeElement; #[cfg(feature = "SvgfeMergeNodeElement")] pub use gen_SvgfeMergeNodeElement::*; #[cfg(feature = "SvgfeMorphologyElement")] #[allow(non_snake_case)] mod gen_SvgfeMorphologyElement; #[cfg(feature = "SvgfeMorphologyElement")] pub use gen_SvgfeMorphologyElement::*; #[cfg(feature = "SvgfeOffsetElement")] #[allow(non_snake_case)] mod gen_SvgfeOffsetElement; #[cfg(feature = "SvgfeOffsetElement")] pub use gen_SvgfeOffsetElement::*; #[cfg(feature = "SvgfePointLightElement")] #[allow(non_snake_case)] mod gen_SvgfePointLightElement; #[cfg(feature = "SvgfePointLightElement")] pub use gen_SvgfePointLightElement::*; #[cfg(feature = "SvgfeSpecularLightingElement")] #[allow(non_snake_case)] mod gen_SvgfeSpecularLightingElement; #[cfg(feature = "SvgfeSpecularLightingElement")] pub use gen_SvgfeSpecularLightingElement::*; #[cfg(feature = "SvgfeSpotLightElement")] #[allow(non_snake_case)] mod gen_SvgfeSpotLightElement; #[cfg(feature = "SvgfeSpotLightElement")] pub use gen_SvgfeSpotLightElement::*; #[cfg(feature = "SvgfeTileElement")] #[allow(non_snake_case)] mod gen_SvgfeTileElement; #[cfg(feature = "SvgfeTileElement")] pub use gen_SvgfeTileElement::*; #[cfg(feature = "SvgfeTurbulenceElement")] #[allow(non_snake_case)] mod gen_SvgfeTurbulenceElement; #[cfg(feature = "SvgfeTurbulenceElement")] pub use gen_SvgfeTurbulenceElement::*; #[cfg(feature = "SvggElement")] #[allow(non_snake_case)] mod gen_SvggElement; #[cfg(feature = "SvggElement")] pub use gen_SvggElement::*; #[cfg(feature = "SvgmPathElement")] #[allow(non_snake_case)] mod gen_SvgmPathElement; #[cfg(feature = "SvgmPathElement")] pub use gen_SvgmPathElement::*; #[cfg(feature = "SvgsvgElement")] #[allow(non_snake_case)] mod gen_SvgsvgElement; #[cfg(feature = "SvgsvgElement")] pub use gen_SvgsvgElement::*; #[cfg(feature = "SvgtSpanElement")] #[allow(non_snake_case)] mod gen_SvgtSpanElement; #[cfg(feature = "SvgtSpanElement")] pub use gen_SvgtSpanElement::*; #[cfg(feature = "TcpReadyState")] #[allow(non_snake_case)] mod gen_TcpReadyState; #[cfg(feature = "TcpReadyState")] pub use gen_TcpReadyState::*; #[cfg(feature = "TcpServerSocket")] #[allow(non_snake_case)] mod gen_TcpServerSocket; #[cfg(feature = "TcpServerSocket")] pub use gen_TcpServerSocket::*; #[cfg(feature = "TcpServerSocketEvent")] #[allow(non_snake_case)] mod gen_TcpServerSocketEvent; #[cfg(feature = "TcpServerSocketEvent")] pub use gen_TcpServerSocketEvent::*; #[cfg(feature = "TcpServerSocketEventInit")] #[allow(non_snake_case)] mod gen_TcpServerSocketEventInit; #[cfg(feature = "TcpServerSocketEventInit")] pub use gen_TcpServerSocketEventInit::*; #[cfg(feature = "TcpSocket")] #[allow(non_snake_case)] mod gen_TcpSocket; #[cfg(feature = "TcpSocket")] pub use gen_TcpSocket::*; #[cfg(feature = "TcpSocketBinaryType")] #[allow(non_snake_case)] mod gen_TcpSocketBinaryType; #[cfg(feature = "TcpSocketBinaryType")] pub use gen_TcpSocketBinaryType::*; #[cfg(feature = "TcpSocketErrorEvent")] #[allow(non_snake_case)] mod gen_TcpSocketErrorEvent; #[cfg(feature = "TcpSocketErrorEvent")] pub use gen_TcpSocketErrorEvent::*; #[cfg(feature = "TcpSocketErrorEventInit")] #[allow(non_snake_case)] mod gen_TcpSocketErrorEventInit; #[cfg(feature = "TcpSocketErrorEventInit")] pub use gen_TcpSocketErrorEventInit::*; #[cfg(feature = "TcpSocketEvent")] #[allow(non_snake_case)] mod gen_TcpSocketEvent; #[cfg(feature = "TcpSocketEvent")] pub use gen_TcpSocketEvent::*; #[cfg(feature = "TcpSocketEventInit")] #[allow(non_snake_case)] mod gen_TcpSocketEventInit; #[cfg(feature = "TcpSocketEventInit")] pub use gen_TcpSocketEventInit::*; #[cfg(feature = "Text")] #[allow(non_snake_case)] mod gen_Text; #[cfg(feature = "Text")] pub use gen_Text::*; #[cfg(feature = "TextDecodeOptions")] #[allow(non_snake_case)] mod gen_TextDecodeOptions; #[cfg(feature = "TextDecodeOptions")] pub use gen_TextDecodeOptions::*; #[cfg(feature = "TextDecoder")] #[allow(non_snake_case)] mod gen_TextDecoder; #[cfg(feature = "TextDecoder")] pub use gen_TextDecoder::*; #[cfg(feature = "TextDecoderOptions")] #[allow(non_snake_case)] mod gen_TextDecoderOptions; #[cfg(feature = "TextDecoderOptions")] pub use gen_TextDecoderOptions::*; #[cfg(feature = "TextEncoder")] #[allow(non_snake_case)] mod gen_TextEncoder; #[cfg(feature = "TextEncoder")] pub use gen_TextEncoder::*; #[cfg(feature = "TextMetrics")] #[allow(non_snake_case)] mod gen_TextMetrics; #[cfg(feature = "TextMetrics")] pub use gen_TextMetrics::*; #[cfg(feature = "TextTrack")] #[allow(non_snake_case)] mod gen_TextTrack; #[cfg(feature = "TextTrack")] pub use gen_TextTrack::*; #[cfg(feature = "TextTrackCue")] #[allow(non_snake_case)] mod gen_TextTrackCue; #[cfg(feature = "TextTrackCue")] pub use gen_TextTrackCue::*; #[cfg(feature = "TextTrackCueList")] #[allow(non_snake_case)] mod gen_TextTrackCueList; #[cfg(feature = "TextTrackCueList")] pub use gen_TextTrackCueList::*; #[cfg(feature = "TextTrackKind")] #[allow(non_snake_case)] mod gen_TextTrackKind; #[cfg(feature = "TextTrackKind")] pub use gen_TextTrackKind::*; #[cfg(feature = "TextTrackList")] #[allow(non_snake_case)] mod gen_TextTrackList; #[cfg(feature = "TextTrackList")] pub use gen_TextTrackList::*; #[cfg(feature = "TextTrackMode")] #[allow(non_snake_case)] mod gen_TextTrackMode; #[cfg(feature = "TextTrackMode")] pub use gen_TextTrackMode::*; #[cfg(feature = "TimeEvent")] #[allow(non_snake_case)] mod gen_TimeEvent; #[cfg(feature = "TimeEvent")] pub use gen_TimeEvent::*; #[cfg(feature = "TimeRanges")] #[allow(non_snake_case)] mod gen_TimeRanges; #[cfg(feature = "TimeRanges")] pub use gen_TimeRanges::*; #[cfg(feature = "Touch")] #[allow(non_snake_case)] mod gen_Touch; #[cfg(feature = "Touch")] pub use gen_Touch::*; #[cfg(feature = "TouchEvent")] #[allow(non_snake_case)] mod gen_TouchEvent; #[cfg(feature = "TouchEvent")] pub use gen_TouchEvent::*; #[cfg(feature = "TouchEventInit")] #[allow(non_snake_case)] mod gen_TouchEventInit; #[cfg(feature = "TouchEventInit")] pub use gen_TouchEventInit::*; #[cfg(feature = "TouchInit")] #[allow(non_snake_case)] mod gen_TouchInit; #[cfg(feature = "TouchInit")] pub use gen_TouchInit::*; #[cfg(feature = "TouchList")] #[allow(non_snake_case)] mod gen_TouchList; #[cfg(feature = "TouchList")] pub use gen_TouchList::*; #[cfg(feature = "TrackEvent")] #[allow(non_snake_case)] mod gen_TrackEvent; #[cfg(feature = "TrackEvent")] pub use gen_TrackEvent::*; #[cfg(feature = "TrackEventInit")] #[allow(non_snake_case)] mod gen_TrackEventInit; #[cfg(feature = "TrackEventInit")] pub use gen_TrackEventInit::*; #[cfg(feature = "TransformStream")] #[allow(non_snake_case)] mod gen_TransformStream; #[cfg(feature = "TransformStream")] pub use gen_TransformStream::*; #[cfg(feature = "TransitionEvent")] #[allow(non_snake_case)] mod gen_TransitionEvent; #[cfg(feature = "TransitionEvent")] pub use gen_TransitionEvent::*; #[cfg(feature = "TransitionEventInit")] #[allow(non_snake_case)] mod gen_TransitionEventInit; #[cfg(feature = "TransitionEventInit")] pub use gen_TransitionEventInit::*; #[cfg(feature = "Transport")] #[allow(non_snake_case)] mod gen_Transport; #[cfg(feature = "Transport")] pub use gen_Transport::*; #[cfg(feature = "TreeBoxObject")] #[allow(non_snake_case)] mod gen_TreeBoxObject; #[cfg(feature = "TreeBoxObject")] pub use gen_TreeBoxObject::*; #[cfg(feature = "TreeCellInfo")] #[allow(non_snake_case)] mod gen_TreeCellInfo; #[cfg(feature = "TreeCellInfo")] pub use gen_TreeCellInfo::*; #[cfg(feature = "TreeView")] #[allow(non_snake_case)] mod gen_TreeView; #[cfg(feature = "TreeView")] pub use gen_TreeView::*; #[cfg(feature = "TreeWalker")] #[allow(non_snake_case)] mod gen_TreeWalker; #[cfg(feature = "TreeWalker")] pub use gen_TreeWalker::*; #[cfg(feature = "U2f")] #[allow(non_snake_case)] mod gen_U2f; #[cfg(feature = "U2f")] pub use gen_U2f::*; #[cfg(feature = "U2fClientData")] #[allow(non_snake_case)] mod gen_U2fClientData; #[cfg(feature = "U2fClientData")] pub use gen_U2fClientData::*; #[cfg(feature = "UdpMessageEventInit")] #[allow(non_snake_case)] mod gen_UdpMessageEventInit; #[cfg(feature = "UdpMessageEventInit")] pub use gen_UdpMessageEventInit::*; #[cfg(feature = "UdpOptions")] #[allow(non_snake_case)] mod gen_UdpOptions; #[cfg(feature = "UdpOptions")] pub use gen_UdpOptions::*; #[cfg(feature = "UiEvent")] #[allow(non_snake_case)] mod gen_UiEvent; #[cfg(feature = "UiEvent")] pub use gen_UiEvent::*; #[cfg(feature = "UiEventInit")] #[allow(non_snake_case)] mod gen_UiEventInit; #[cfg(feature = "UiEventInit")] pub use gen_UiEventInit::*; #[cfg(feature = "Url")] #[allow(non_snake_case)] mod gen_Url; #[cfg(feature = "Url")] pub use gen_Url::*; #[cfg(feature = "UrlSearchParams")] #[allow(non_snake_case)] mod gen_UrlSearchParams; #[cfg(feature = "UrlSearchParams")] pub use gen_UrlSearchParams::*; #[cfg(feature = "Usb")] #[allow(non_snake_case)] mod gen_Usb; #[cfg(feature = "Usb")] pub use gen_Usb::*; #[cfg(feature = "UsbAlternateInterface")] #[allow(non_snake_case)] mod gen_UsbAlternateInterface; #[cfg(feature = "UsbAlternateInterface")] pub use gen_UsbAlternateInterface::*; #[cfg(feature = "UsbConfiguration")] #[allow(non_snake_case)] mod gen_UsbConfiguration; #[cfg(feature = "UsbConfiguration")] pub use gen_UsbConfiguration::*; #[cfg(feature = "UsbConnectionEvent")] #[allow(non_snake_case)] mod gen_UsbConnectionEvent; #[cfg(feature = "UsbConnectionEvent")] pub use gen_UsbConnectionEvent::*; #[cfg(feature = "UsbConnectionEventInit")] #[allow(non_snake_case)] mod gen_UsbConnectionEventInit; #[cfg(feature = "UsbConnectionEventInit")] pub use gen_UsbConnectionEventInit::*; #[cfg(feature = "UsbControlTransferParameters")] #[allow(non_snake_case)] mod gen_UsbControlTransferParameters; #[cfg(feature = "UsbControlTransferParameters")] pub use gen_UsbControlTransferParameters::*; #[cfg(feature = "UsbDevice")] #[allow(non_snake_case)] mod gen_UsbDevice; #[cfg(feature = "UsbDevice")] pub use gen_UsbDevice::*; #[cfg(feature = "UsbDeviceFilter")] #[allow(non_snake_case)] mod gen_UsbDeviceFilter; #[cfg(feature = "UsbDeviceFilter")] pub use gen_UsbDeviceFilter::*; #[cfg(feature = "UsbDeviceRequestOptions")] #[allow(non_snake_case)] mod gen_UsbDeviceRequestOptions; #[cfg(feature = "UsbDeviceRequestOptions")] pub use gen_UsbDeviceRequestOptions::*; #[cfg(feature = "UsbDirection")] #[allow(non_snake_case)] mod gen_UsbDirection; #[cfg(feature = "UsbDirection")] pub use gen_UsbDirection::*; #[cfg(feature = "UsbEndpoint")] #[allow(non_snake_case)] mod gen_UsbEndpoint; #[cfg(feature = "UsbEndpoint")] pub use gen_UsbEndpoint::*; #[cfg(feature = "UsbEndpointType")] #[allow(non_snake_case)] mod gen_UsbEndpointType; #[cfg(feature = "UsbEndpointType")] pub use gen_UsbEndpointType::*; #[cfg(feature = "UsbInTransferResult")] #[allow(non_snake_case)] mod gen_UsbInTransferResult; #[cfg(feature = "UsbInTransferResult")] pub use gen_UsbInTransferResult::*; #[cfg(feature = "UsbInterface")] #[allow(non_snake_case)] mod gen_UsbInterface; #[cfg(feature = "UsbInterface")] pub use gen_UsbInterface::*; #[cfg(feature = "UsbIsochronousInTransferPacket")] #[allow(non_snake_case)] mod gen_UsbIsochronousInTransferPacket; #[cfg(feature = "UsbIsochronousInTransferPacket")] pub use gen_UsbIsochronousInTransferPacket::*; #[cfg(feature = "UsbIsochronousInTransferResult")] #[allow(non_snake_case)] mod gen_UsbIsochronousInTransferResult; #[cfg(feature = "UsbIsochronousInTransferResult")] pub use gen_UsbIsochronousInTransferResult::*; #[cfg(feature = "UsbIsochronousOutTransferPacket")] #[allow(non_snake_case)] mod gen_UsbIsochronousOutTransferPacket; #[cfg(feature = "UsbIsochronousOutTransferPacket")] pub use gen_UsbIsochronousOutTransferPacket::*; #[cfg(feature = "UsbIsochronousOutTransferResult")] #[allow(non_snake_case)] mod gen_UsbIsochronousOutTransferResult; #[cfg(feature = "UsbIsochronousOutTransferResult")] pub use gen_UsbIsochronousOutTransferResult::*; #[cfg(feature = "UsbOutTransferResult")] #[allow(non_snake_case)] mod gen_UsbOutTransferResult; #[cfg(feature = "UsbOutTransferResult")] pub use gen_UsbOutTransferResult::*; #[cfg(feature = "UsbPermissionDescriptor")] #[allow(non_snake_case)] mod gen_UsbPermissionDescriptor; #[cfg(feature = "UsbPermissionDescriptor")] pub use gen_UsbPermissionDescriptor::*; #[cfg(feature = "UsbPermissionResult")] #[allow(non_snake_case)] mod gen_UsbPermissionResult; #[cfg(feature = "UsbPermissionResult")] pub use gen_UsbPermissionResult::*; #[cfg(feature = "UsbPermissionStorage")] #[allow(non_snake_case)] mod gen_UsbPermissionStorage; #[cfg(feature = "UsbPermissionStorage")] pub use gen_UsbPermissionStorage::*; #[cfg(feature = "UsbRecipient")] #[allow(non_snake_case)] mod gen_UsbRecipient; #[cfg(feature = "UsbRecipient")] pub use gen_UsbRecipient::*; #[cfg(feature = "UsbRequestType")] #[allow(non_snake_case)] mod gen_UsbRequestType; #[cfg(feature = "UsbRequestType")] pub use gen_UsbRequestType::*; #[cfg(feature = "UsbTransferStatus")] #[allow(non_snake_case)] mod gen_UsbTransferStatus; #[cfg(feature = "UsbTransferStatus")] pub use gen_UsbTransferStatus::*; #[cfg(feature = "UserProximityEvent")] #[allow(non_snake_case)] mod gen_UserProximityEvent; #[cfg(feature = "UserProximityEvent")] pub use gen_UserProximityEvent::*; #[cfg(feature = "UserProximityEventInit")] #[allow(non_snake_case)] mod gen_UserProximityEventInit; #[cfg(feature = "UserProximityEventInit")] pub use gen_UserProximityEventInit::*; #[cfg(feature = "UserVerificationRequirement")] #[allow(non_snake_case)] mod gen_UserVerificationRequirement; #[cfg(feature = "UserVerificationRequirement")] pub use gen_UserVerificationRequirement::*; #[cfg(feature = "ValidityState")] #[allow(non_snake_case)] mod gen_ValidityState; #[cfg(feature = "ValidityState")] pub use gen_ValidityState::*; #[cfg(feature = "ValueEvent")] #[allow(non_snake_case)] mod gen_ValueEvent; #[cfg(feature = "ValueEvent")] pub use gen_ValueEvent::*; #[cfg(feature = "ValueEventInit")] #[allow(non_snake_case)] mod gen_ValueEventInit; #[cfg(feature = "ValueEventInit")] pub use gen_ValueEventInit::*; #[cfg(feature = "VideoConfiguration")] #[allow(non_snake_case)] mod gen_VideoConfiguration; #[cfg(feature = "VideoConfiguration")] pub use gen_VideoConfiguration::*; #[cfg(feature = "VideoFacingModeEnum")] #[allow(non_snake_case)] mod gen_VideoFacingModeEnum; #[cfg(feature = "VideoFacingModeEnum")] pub use gen_VideoFacingModeEnum::*; #[cfg(feature = "VideoPlaybackQuality")] #[allow(non_snake_case)] mod gen_VideoPlaybackQuality; #[cfg(feature = "VideoPlaybackQuality")] pub use gen_VideoPlaybackQuality::*; #[cfg(feature = "VideoStreamTrack")] #[allow(non_snake_case)] mod gen_VideoStreamTrack; #[cfg(feature = "VideoStreamTrack")] pub use gen_VideoStreamTrack::*; #[cfg(feature = "VideoTrack")] #[allow(non_snake_case)] mod gen_VideoTrack; #[cfg(feature = "VideoTrack")] pub use gen_VideoTrack::*; #[cfg(feature = "VideoTrackList")] #[allow(non_snake_case)] mod gen_VideoTrackList; #[cfg(feature = "VideoTrackList")] pub use gen_VideoTrackList::*; #[cfg(feature = "VisibilityState")] #[allow(non_snake_case)] mod gen_VisibilityState; #[cfg(feature = "VisibilityState")] pub use gen_VisibilityState::*; #[cfg(feature = "VoidCallback")] #[allow(non_snake_case)] mod gen_VoidCallback; #[cfg(feature = "VoidCallback")] pub use gen_VoidCallback::*; #[cfg(feature = "VrDisplay")] #[allow(non_snake_case)] mod gen_VrDisplay; #[cfg(feature = "VrDisplay")] pub use gen_VrDisplay::*; #[cfg(feature = "VrDisplayCapabilities")] #[allow(non_snake_case)] mod gen_VrDisplayCapabilities; #[cfg(feature = "VrDisplayCapabilities")] pub use gen_VrDisplayCapabilities::*; #[cfg(feature = "VrEye")] #[allow(non_snake_case)] mod gen_VrEye; #[cfg(feature = "VrEye")] pub use gen_VrEye::*; #[cfg(feature = "VrEyeParameters")] #[allow(non_snake_case)] mod gen_VrEyeParameters; #[cfg(feature = "VrEyeParameters")] pub use gen_VrEyeParameters::*; #[cfg(feature = "VrFieldOfView")] #[allow(non_snake_case)] mod gen_VrFieldOfView; #[cfg(feature = "VrFieldOfView")] pub use gen_VrFieldOfView::*; #[cfg(feature = "VrFrameData")] #[allow(non_snake_case)] mod gen_VrFrameData; #[cfg(feature = "VrFrameData")] pub use gen_VrFrameData::*; #[cfg(feature = "VrLayer")] #[allow(non_snake_case)] mod gen_VrLayer; #[cfg(feature = "VrLayer")] pub use gen_VrLayer::*; #[cfg(feature = "VrMockController")] #[allow(non_snake_case)] mod gen_VrMockController; #[cfg(feature = "VrMockController")] pub use gen_VrMockController::*; #[cfg(feature = "VrMockDisplay")] #[allow(non_snake_case)] mod gen_VrMockDisplay; #[cfg(feature = "VrMockDisplay")] pub use gen_VrMockDisplay::*; #[cfg(feature = "VrPose")] #[allow(non_snake_case)] mod gen_VrPose; #[cfg(feature = "VrPose")] pub use gen_VrPose::*; #[cfg(feature = "VrServiceTest")] #[allow(non_snake_case)] mod gen_VrServiceTest; #[cfg(feature = "VrServiceTest")] pub use gen_VrServiceTest::*; #[cfg(feature = "VrStageParameters")] #[allow(non_snake_case)] mod gen_VrStageParameters; #[cfg(feature = "VrStageParameters")] pub use gen_VrStageParameters::*; #[cfg(feature = "VrSubmitFrameResult")] #[allow(non_snake_case)] mod gen_VrSubmitFrameResult; #[cfg(feature = "VrSubmitFrameResult")] pub use gen_VrSubmitFrameResult::*; #[cfg(feature = "VttCue")] #[allow(non_snake_case)] mod gen_VttCue; #[cfg(feature = "VttCue")] pub use gen_VttCue::*; #[cfg(feature = "VttRegion")] #[allow(non_snake_case)] mod gen_VttRegion; #[cfg(feature = "VttRegion")] pub use gen_VttRegion::*; #[cfg(feature = "WakeLock")] #[allow(non_snake_case)] mod gen_WakeLock; #[cfg(feature = "WakeLock")] pub use gen_WakeLock::*; #[cfg(feature = "WakeLockSentinel")] #[allow(non_snake_case)] mod gen_WakeLockSentinel; #[cfg(feature = "WakeLockSentinel")] pub use gen_WakeLockSentinel::*; #[cfg(feature = "WakeLockType")] #[allow(non_snake_case)] mod gen_WakeLockType; #[cfg(feature = "WakeLockType")] pub use gen_WakeLockType::*; #[cfg(feature = "WatchAdvertisementsOptions")] #[allow(non_snake_case)] mod gen_WatchAdvertisementsOptions; #[cfg(feature = "WatchAdvertisementsOptions")] pub use gen_WatchAdvertisementsOptions::*; #[cfg(feature = "WaveShaperNode")] #[allow(non_snake_case)] mod gen_WaveShaperNode; #[cfg(feature = "WaveShaperNode")] pub use gen_WaveShaperNode::*; #[cfg(feature = "WaveShaperOptions")] #[allow(non_snake_case)] mod gen_WaveShaperOptions; #[cfg(feature = "WaveShaperOptions")] pub use gen_WaveShaperOptions::*; #[cfg(feature = "WebGl2RenderingContext")] #[allow(non_snake_case)] mod gen_WebGl2RenderingContext; #[cfg(feature = "WebGl2RenderingContext")] pub use gen_WebGl2RenderingContext::*; #[cfg(feature = "WebGlActiveInfo")] #[allow(non_snake_case)] mod gen_WebGlActiveInfo; #[cfg(feature = "WebGlActiveInfo")] pub use gen_WebGlActiveInfo::*; #[cfg(feature = "WebGlBuffer")] #[allow(non_snake_case)] mod gen_WebGlBuffer; #[cfg(feature = "WebGlBuffer")] pub use gen_WebGlBuffer::*; #[cfg(feature = "WebGlContextAttributes")] #[allow(non_snake_case)] mod gen_WebGlContextAttributes; #[cfg(feature = "WebGlContextAttributes")] pub use gen_WebGlContextAttributes::*; #[cfg(feature = "WebGlContextEvent")] #[allow(non_snake_case)] mod gen_WebGlContextEvent; #[cfg(feature = "WebGlContextEvent")] pub use gen_WebGlContextEvent::*; #[cfg(feature = "WebGlContextEventInit")] #[allow(non_snake_case)] mod gen_WebGlContextEventInit; #[cfg(feature = "WebGlContextEventInit")] pub use gen_WebGlContextEventInit::*; #[cfg(feature = "WebGlFramebuffer")] #[allow(non_snake_case)] mod gen_WebGlFramebuffer; #[cfg(feature = "WebGlFramebuffer")] pub use gen_WebGlFramebuffer::*; #[cfg(feature = "WebGlPowerPreference")] #[allow(non_snake_case)] mod gen_WebGlPowerPreference; #[cfg(feature = "WebGlPowerPreference")] pub use gen_WebGlPowerPreference::*; #[cfg(feature = "WebGlProgram")] #[allow(non_snake_case)] mod gen_WebGlProgram; #[cfg(feature = "WebGlProgram")] pub use gen_WebGlProgram::*; #[cfg(feature = "WebGlQuery")] #[allow(non_snake_case)] mod gen_WebGlQuery; #[cfg(feature = "WebGlQuery")] pub use gen_WebGlQuery::*; #[cfg(feature = "WebGlRenderbuffer")] #[allow(non_snake_case)] mod gen_WebGlRenderbuffer; #[cfg(feature = "WebGlRenderbuffer")] pub use gen_WebGlRenderbuffer::*; #[cfg(feature = "WebGlRenderingContext")] #[allow(non_snake_case)] mod gen_WebGlRenderingContext; #[cfg(feature = "WebGlRenderingContext")] pub use gen_WebGlRenderingContext::*; #[cfg(feature = "WebGlSampler")] #[allow(non_snake_case)] mod gen_WebGlSampler; #[cfg(feature = "WebGlSampler")] pub use gen_WebGlSampler::*; #[cfg(feature = "WebGlShader")] #[allow(non_snake_case)] mod gen_WebGlShader; #[cfg(feature = "WebGlShader")] pub use gen_WebGlShader::*; #[cfg(feature = "WebGlShaderPrecisionFormat")] #[allow(non_snake_case)] mod gen_WebGlShaderPrecisionFormat; #[cfg(feature = "WebGlShaderPrecisionFormat")] pub use gen_WebGlShaderPrecisionFormat::*; #[cfg(feature = "WebGlSync")] #[allow(non_snake_case)] mod gen_WebGlSync; #[cfg(feature = "WebGlSync")] pub use gen_WebGlSync::*; #[cfg(feature = "WebGlTexture")] #[allow(non_snake_case)] mod gen_WebGlTexture; #[cfg(feature = "WebGlTexture")] pub use gen_WebGlTexture::*; #[cfg(feature = "WebGlTransformFeedback")] #[allow(non_snake_case)] mod gen_WebGlTransformFeedback; #[cfg(feature = "WebGlTransformFeedback")] pub use gen_WebGlTransformFeedback::*; #[cfg(feature = "WebGlUniformLocation")] #[allow(non_snake_case)] mod gen_WebGlUniformLocation; #[cfg(feature = "WebGlUniformLocation")] pub use gen_WebGlUniformLocation::*; #[cfg(feature = "WebGlVertexArrayObject")] #[allow(non_snake_case)] mod gen_WebGlVertexArrayObject; #[cfg(feature = "WebGlVertexArrayObject")] pub use gen_WebGlVertexArrayObject::*; #[cfg(feature = "WebKitCssMatrix")] #[allow(non_snake_case)] mod gen_WebKitCssMatrix; #[cfg(feature = "WebKitCssMatrix")] pub use gen_WebKitCssMatrix::*; #[cfg(feature = "WebSocket")] #[allow(non_snake_case)] mod gen_WebSocket; #[cfg(feature = "WebSocket")] pub use gen_WebSocket::*; #[cfg(feature = "WebSocketDict")] #[allow(non_snake_case)] mod gen_WebSocketDict; #[cfg(feature = "WebSocketDict")] pub use gen_WebSocketDict::*; #[cfg(feature = "WebSocketElement")] #[allow(non_snake_case)] mod gen_WebSocketElement; #[cfg(feature = "WebSocketElement")] pub use gen_WebSocketElement::*; #[cfg(feature = "WebglColorBufferFloat")] #[allow(non_snake_case)] mod gen_WebglColorBufferFloat; #[cfg(feature = "WebglColorBufferFloat")] pub use gen_WebglColorBufferFloat::*; #[cfg(feature = "WebglCompressedTextureAstc")] #[allow(non_snake_case)] mod gen_WebglCompressedTextureAstc; #[cfg(feature = "WebglCompressedTextureAstc")] pub use gen_WebglCompressedTextureAstc::*; #[cfg(feature = "WebglCompressedTextureAtc")] #[allow(non_snake_case)] mod gen_WebglCompressedTextureAtc; #[cfg(feature = "WebglCompressedTextureAtc")] pub use gen_WebglCompressedTextureAtc::*; #[cfg(feature = "WebglCompressedTextureEtc")] #[allow(non_snake_case)] mod gen_WebglCompressedTextureEtc; #[cfg(feature = "WebglCompressedTextureEtc")] pub use gen_WebglCompressedTextureEtc::*; #[cfg(feature = "WebglCompressedTextureEtc1")] #[allow(non_snake_case)] mod gen_WebglCompressedTextureEtc1; #[cfg(feature = "WebglCompressedTextureEtc1")] pub use gen_WebglCompressedTextureEtc1::*; #[cfg(feature = "WebglCompressedTexturePvrtc")] #[allow(non_snake_case)] mod gen_WebglCompressedTexturePvrtc; #[cfg(feature = "WebglCompressedTexturePvrtc")] pub use gen_WebglCompressedTexturePvrtc::*; #[cfg(feature = "WebglCompressedTextureS3tc")] #[allow(non_snake_case)] mod gen_WebglCompressedTextureS3tc; #[cfg(feature = "WebglCompressedTextureS3tc")] pub use gen_WebglCompressedTextureS3tc::*; #[cfg(feature = "WebglCompressedTextureS3tcSrgb")] #[allow(non_snake_case)] mod gen_WebglCompressedTextureS3tcSrgb; #[cfg(feature = "WebglCompressedTextureS3tcSrgb")] pub use gen_WebglCompressedTextureS3tcSrgb::*; #[cfg(feature = "WebglDebugRendererInfo")] #[allow(non_snake_case)] mod gen_WebglDebugRendererInfo; #[cfg(feature = "WebglDebugRendererInfo")] pub use gen_WebglDebugRendererInfo::*; #[cfg(feature = "WebglDebugShaders")] #[allow(non_snake_case)] mod gen_WebglDebugShaders; #[cfg(feature = "WebglDebugShaders")] pub use gen_WebglDebugShaders::*; #[cfg(feature = "WebglDepthTexture")] #[allow(non_snake_case)] mod gen_WebglDepthTexture; #[cfg(feature = "WebglDepthTexture")] pub use gen_WebglDepthTexture::*; #[cfg(feature = "WebglDrawBuffers")] #[allow(non_snake_case)] mod gen_WebglDrawBuffers; #[cfg(feature = "WebglDrawBuffers")] pub use gen_WebglDrawBuffers::*; #[cfg(feature = "WebglLoseContext")] #[allow(non_snake_case)] mod gen_WebglLoseContext; #[cfg(feature = "WebglLoseContext")] pub use gen_WebglLoseContext::*; #[cfg(feature = "WebrtcGlobalStatisticsReport")] #[allow(non_snake_case)] mod gen_WebrtcGlobalStatisticsReport; #[cfg(feature = "WebrtcGlobalStatisticsReport")] pub use gen_WebrtcGlobalStatisticsReport::*; #[cfg(feature = "WheelEvent")] #[allow(non_snake_case)] mod gen_WheelEvent; #[cfg(feature = "WheelEvent")] pub use gen_WheelEvent::*; #[cfg(feature = "WheelEventInit")] #[allow(non_snake_case)] mod gen_WheelEventInit; #[cfg(feature = "WheelEventInit")] pub use gen_WheelEventInit::*; #[cfg(feature = "WidevineCdmManifest")] #[allow(non_snake_case)] mod gen_WidevineCdmManifest; #[cfg(feature = "WidevineCdmManifest")] pub use gen_WidevineCdmManifest::*; #[cfg(feature = "Window")] #[allow(non_snake_case)] mod gen_Window; #[cfg(feature = "Window")] pub use gen_Window::*; #[cfg(feature = "WindowClient")] #[allow(non_snake_case)] mod gen_WindowClient; #[cfg(feature = "WindowClient")] pub use gen_WindowClient::*; #[cfg(feature = "Worker")] #[allow(non_snake_case)] mod gen_Worker; #[cfg(feature = "Worker")] pub use gen_Worker::*; #[cfg(feature = "WorkerDebuggerGlobalScope")] #[allow(non_snake_case)] mod gen_WorkerDebuggerGlobalScope; #[cfg(feature = "WorkerDebuggerGlobalScope")] pub use gen_WorkerDebuggerGlobalScope::*; #[cfg(feature = "WorkerGlobalScope")] #[allow(non_snake_case)] mod gen_WorkerGlobalScope; #[cfg(feature = "WorkerGlobalScope")] pub use gen_WorkerGlobalScope::*; #[cfg(feature = "WorkerLocation")] #[allow(non_snake_case)] mod gen_WorkerLocation; #[cfg(feature = "WorkerLocation")] pub use gen_WorkerLocation::*; #[cfg(feature = "WorkerNavigator")] #[allow(non_snake_case)] mod gen_WorkerNavigator; #[cfg(feature = "WorkerNavigator")] pub use gen_WorkerNavigator::*; #[cfg(feature = "WorkerOptions")] #[allow(non_snake_case)] mod gen_WorkerOptions; #[cfg(feature = "WorkerOptions")] pub use gen_WorkerOptions::*; #[cfg(feature = "WorkerType")] #[allow(non_snake_case)] mod gen_WorkerType; #[cfg(feature = "WorkerType")] pub use gen_WorkerType::*; #[cfg(feature = "Worklet")] #[allow(non_snake_case)] mod gen_Worklet; #[cfg(feature = "Worklet")] pub use gen_Worklet::*; #[cfg(feature = "WorkletGlobalScope")] #[allow(non_snake_case)] mod gen_WorkletGlobalScope; #[cfg(feature = "WorkletGlobalScope")] pub use gen_WorkletGlobalScope::*; #[cfg(feature = "WorkletOptions")] #[allow(non_snake_case)] mod gen_WorkletOptions; #[cfg(feature = "WorkletOptions")] pub use gen_WorkletOptions::*; #[cfg(feature = "WritableStream")] #[allow(non_snake_case)] mod gen_WritableStream; #[cfg(feature = "WritableStream")] pub use gen_WritableStream::*; #[cfg(feature = "WritableStreamDefaultWriter")] #[allow(non_snake_case)] mod gen_WritableStreamDefaultWriter; #[cfg(feature = "WritableStreamDefaultWriter")] pub use gen_WritableStreamDefaultWriter::*; #[cfg(feature = "XPathExpression")] #[allow(non_snake_case)] mod gen_XPathExpression; #[cfg(feature = "XPathExpression")] pub use gen_XPathExpression::*; #[cfg(feature = "XPathNsResolver")] #[allow(non_snake_case)] mod gen_XPathNsResolver; #[cfg(feature = "XPathNsResolver")] pub use gen_XPathNsResolver::*; #[cfg(feature = "XPathResult")] #[allow(non_snake_case)] mod gen_XPathResult; #[cfg(feature = "XPathResult")] pub use gen_XPathResult::*; #[cfg(feature = "XmlDocument")] #[allow(non_snake_case)] mod gen_XmlDocument; #[cfg(feature = "XmlDocument")] pub use gen_XmlDocument::*; #[cfg(feature = "XmlHttpRequest")] #[allow(non_snake_case)] mod gen_XmlHttpRequest; #[cfg(feature = "XmlHttpRequest")] pub use gen_XmlHttpRequest::*; #[cfg(feature = "XmlHttpRequestEventTarget")] #[allow(non_snake_case)] mod gen_XmlHttpRequestEventTarget; #[cfg(feature = "XmlHttpRequestEventTarget")] pub use gen_XmlHttpRequestEventTarget::*; #[cfg(feature = "XmlHttpRequestResponseType")] #[allow(non_snake_case)] mod gen_XmlHttpRequestResponseType; #[cfg(feature = "XmlHttpRequestResponseType")] pub use gen_XmlHttpRequestResponseType::*; #[cfg(feature = "XmlHttpRequestUpload")] #[allow(non_snake_case)] mod gen_XmlHttpRequestUpload; #[cfg(feature = "XmlHttpRequestUpload")] pub use gen_XmlHttpRequestUpload::*; #[cfg(feature = "XmlSerializer")] #[allow(non_snake_case)] mod gen_XmlSerializer; #[cfg(feature = "XmlSerializer")] pub use gen_XmlSerializer::*; #[cfg(feature = "Xr")] #[allow(non_snake_case)] mod gen_Xr; #[cfg(feature = "Xr")] pub use gen_Xr::*; #[cfg(feature = "XrBoundedReferenceSpace")] #[allow(non_snake_case)] mod gen_XrBoundedReferenceSpace; #[cfg(feature = "XrBoundedReferenceSpace")] pub use gen_XrBoundedReferenceSpace::*; #[cfg(feature = "XrEye")] #[allow(non_snake_case)] mod gen_XrEye; #[cfg(feature = "XrEye")] pub use gen_XrEye::*; #[cfg(feature = "XrFrame")] #[allow(non_snake_case)] mod gen_XrFrame; #[cfg(feature = "XrFrame")] pub use gen_XrFrame::*; #[cfg(feature = "XrHandedness")] #[allow(non_snake_case)] mod gen_XrHandedness; #[cfg(feature = "XrHandedness")] pub use gen_XrHandedness::*; #[cfg(feature = "XrInputSource")] #[allow(non_snake_case)] mod gen_XrInputSource; #[cfg(feature = "XrInputSource")] pub use gen_XrInputSource::*; #[cfg(feature = "XrInputSourceArray")] #[allow(non_snake_case)] mod gen_XrInputSourceArray; #[cfg(feature = "XrInputSourceArray")] pub use gen_XrInputSourceArray::*; #[cfg(feature = "XrInputSourceEvent")] #[allow(non_snake_case)] mod gen_XrInputSourceEvent; #[cfg(feature = "XrInputSourceEvent")] pub use gen_XrInputSourceEvent::*; #[cfg(feature = "XrInputSourceEventInit")] #[allow(non_snake_case)] mod gen_XrInputSourceEventInit; #[cfg(feature = "XrInputSourceEventInit")] pub use gen_XrInputSourceEventInit::*; #[cfg(feature = "XrInputSourcesChangeEvent")] #[allow(non_snake_case)] mod gen_XrInputSourcesChangeEvent; #[cfg(feature = "XrInputSourcesChangeEvent")] pub use gen_XrInputSourcesChangeEvent::*; #[cfg(feature = "XrInputSourcesChangeEventInit")] #[allow(non_snake_case)] mod gen_XrInputSourcesChangeEventInit; #[cfg(feature = "XrInputSourcesChangeEventInit")] pub use gen_XrInputSourcesChangeEventInit::*; #[cfg(feature = "XrPose")] #[allow(non_snake_case)] mod gen_XrPose; #[cfg(feature = "XrPose")] pub use gen_XrPose::*; #[cfg(feature = "XrReferenceSpace")] #[allow(non_snake_case)] mod gen_XrReferenceSpace; #[cfg(feature = "XrReferenceSpace")] pub use gen_XrReferenceSpace::*; #[cfg(feature = "XrReferenceSpaceEvent")] #[allow(non_snake_case)] mod gen_XrReferenceSpaceEvent; #[cfg(feature = "XrReferenceSpaceEvent")] pub use gen_XrReferenceSpaceEvent::*; #[cfg(feature = "XrReferenceSpaceEventInit")] #[allow(non_snake_case)] mod gen_XrReferenceSpaceEventInit; #[cfg(feature = "XrReferenceSpaceEventInit")] pub use gen_XrReferenceSpaceEventInit::*; #[cfg(feature = "XrReferenceSpaceType")] #[allow(non_snake_case)] mod gen_XrReferenceSpaceType; #[cfg(feature = "XrReferenceSpaceType")] pub use gen_XrReferenceSpaceType::*; #[cfg(feature = "XrRenderState")] #[allow(non_snake_case)] mod gen_XrRenderState; #[cfg(feature = "XrRenderState")] pub use gen_XrRenderState::*; #[cfg(feature = "XrRenderStateInit")] #[allow(non_snake_case)] mod gen_XrRenderStateInit; #[cfg(feature = "XrRenderStateInit")] pub use gen_XrRenderStateInit::*; #[cfg(feature = "XrRigidTransform")] #[allow(non_snake_case)] mod gen_XrRigidTransform; #[cfg(feature = "XrRigidTransform")] pub use gen_XrRigidTransform::*; #[cfg(feature = "XrSession")] #[allow(non_snake_case)] mod gen_XrSession; #[cfg(feature = "XrSession")] pub use gen_XrSession::*; #[cfg(feature = "XrSessionEvent")] #[allow(non_snake_case)] mod gen_XrSessionEvent; #[cfg(feature = "XrSessionEvent")] pub use gen_XrSessionEvent::*; #[cfg(feature = "XrSessionEventInit")] #[allow(non_snake_case)] mod gen_XrSessionEventInit; #[cfg(feature = "XrSessionEventInit")] pub use gen_XrSessionEventInit::*; #[cfg(feature = "XrSessionInit")] #[allow(non_snake_case)] mod gen_XrSessionInit; #[cfg(feature = "XrSessionInit")] pub use gen_XrSessionInit::*; #[cfg(feature = "XrSessionMode")] #[allow(non_snake_case)] mod gen_XrSessionMode; #[cfg(feature = "XrSessionMode")] pub use gen_XrSessionMode::*; #[cfg(feature = "XrSpace")] #[allow(non_snake_case)] mod gen_XrSpace; #[cfg(feature = "XrSpace")] pub use gen_XrSpace::*; #[cfg(feature = "XrTargetRayMode")] #[allow(non_snake_case)] mod gen_XrTargetRayMode; #[cfg(feature = "XrTargetRayMode")] pub use gen_XrTargetRayMode::*; #[cfg(feature = "XrView")] #[allow(non_snake_case)] mod gen_XrView; #[cfg(feature = "XrView")] pub use gen_XrView::*; #[cfg(feature = "XrViewerPose")] #[allow(non_snake_case)] mod gen_XrViewerPose; #[cfg(feature = "XrViewerPose")] pub use gen_XrViewerPose::*; #[cfg(feature = "XrViewport")] #[allow(non_snake_case)] mod gen_XrViewport; #[cfg(feature = "XrViewport")] pub use gen_XrViewport::*; #[cfg(feature = "XrVisibilityState")] #[allow(non_snake_case)] mod gen_XrVisibilityState; #[cfg(feature = "XrVisibilityState")] pub use gen_XrVisibilityState::*; #[cfg(feature = "XrWebGlLayer")] #[allow(non_snake_case)] mod gen_XrWebGlLayer; #[cfg(feature = "XrWebGlLayer")] pub use gen_XrWebGlLayer::*; #[cfg(feature = "XrWebGlLayerInit")] #[allow(non_snake_case)] mod gen_XrWebGlLayerInit; #[cfg(feature = "XrWebGlLayerInit")] pub use gen_XrWebGlLayerInit::*; #[cfg(feature = "XsltProcessor")] #[allow(non_snake_case)] mod gen_XsltProcessor; #[cfg(feature = "XsltProcessor")] pub use gen_XsltProcessor::*; #[cfg(feature = "console")] #[allow(non_snake_case)] mod gen_console; #[cfg(feature = "console")] pub use gen_console::*; #[cfg(feature = "css")] #[allow(non_snake_case)] mod gen_css; #[cfg(feature = "css")] pub use gen_css::*; web-sys-0.3.55/src/lib.rs000064400000000000000000000021720072674642500132440ustar 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")] #![allow(deprecated)] mod features; pub use features::*; /// 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() } web-sys-0.3.55/tests/wasm/anchor_element.rs000064400000000000000000000047470072674642500170150ustar 00000000000000use wasm_bindgen::prelude::*; use wasm_bindgen_test::*; use web_sys::HtmlAnchorElement; #[wasm_bindgen(module = "/tests/wasm/element.js")] extern "C" { fn new_a() -> HtmlAnchorElement; } #[wasm_bindgen_test] fn test_anchor_element() { let element = new_a(); assert_eq!(element.target(), "", "Shouldn't have a target"); element.set_target("_blank"); assert_eq!(element.target(), "_blank", "Should have a target"); assert_eq!(element.download(), "", "Shouldn't have a download"); element.set_download("boop.png"); assert_eq!(element.download(), "boop.png", "Should have a download"); assert_eq!(element.ping(), "", "Shouldn't have a ping"); element.set_ping("boop"); assert_eq!(element.ping(), "boop", "Should have a ping"); assert_eq!(element.rel(), "", "Shouldn't have a rel"); element.set_rel("boop"); assert_eq!(element.rel(), "boop", "Should have a rel"); assert_eq!( element.referrer_policy(), "", "Shouldn't have a referrer_policy" ); element.set_referrer_policy("origin"); assert_eq!( element.referrer_policy(), "origin", "Should have a referrer_policy" ); assert_eq!(element.hreflang(), "", "Shouldn't have a hreflang"); element.set_hreflang("en-us"); assert_eq!(element.hreflang(), "en-us", "Should have a hreflang"); assert_eq!(element.type_(), "", "Shouldn't have a type"); element.set_type("text/plain"); assert_eq!(element.type_(), "text/plain", "Should have a type"); assert_eq!(element.text().unwrap(), "", "Shouldn't have a text"); element.set_text("Click me!").unwrap(); assert_eq!(element.text().unwrap(), "Click me!", "Should have a text"); assert_eq!(element.coords(), "", "Shouldn't have a coords"); element.set_coords("1,2,3"); assert_eq!(element.coords(), "1,2,3", "Should have a coords"); assert_eq!(element.charset(), "", "Shouldn't have a charset"); element.set_charset("thing"); assert_eq!(element.charset(), "thing", "Should have a charset"); assert_eq!(element.name(), "", "Shouldn't have a name"); element.set_name("thing"); assert_eq!(element.name(), "thing", "Should have a name"); assert_eq!(element.rev(), "", "Shouldn't have a rev"); element.set_rev("thing"); assert_eq!(element.rev(), "thing", "Should have a rev"); assert_eq!(element.shape(), "", "Shouldn't have a shape"); element.set_shape("thing"); assert_eq!(element.shape(), "thing", "Should have a shape"); } web-sys-0.3.55/tests/wasm/blob.js000064400000000000000000000000770072674642500147300ustar 00000000000000export function new_blob() { return new Blob([ 1, 2, 3 ]); } web-sys-0.3.55/tests/wasm/blob.rs000064400000000000000000000032600072674642500147350ustar 00000000000000use js_sys::{Array, ArrayBuffer}; use wasm_bindgen::prelude::*; use wasm_bindgen::JsCast; use wasm_bindgen_futures::JsFuture; use wasm_bindgen_test::*; use web_sys::Blob; #[wasm_bindgen(module = "/tests/wasm/blob.js")] extern "C" { fn new_blob() -> Blob; } #[wasm_bindgen_test] fn test_blob_from_js() { let blob = new_blob(); assert!(blob.is_instance_of::()); assert_eq!(blob.size(), 3.0); } #[wasm_bindgen_test] fn test_blob_from_bytes() { let bytes = Array::new(); bytes.push(&1.into()); bytes.push(&2.into()); bytes.push(&3.into()); let blob = Blob::new_with_u8_array_sequence(&bytes.into()).unwrap(); assert!(blob.is_instance_of::()); assert_eq!(blob.size(), 3.0); } #[wasm_bindgen_test] fn test_blob_empty() { let blob = Blob::new().unwrap(); assert!(blob.is_instance_of::()); assert_eq!(blob.size(), 0.0); } #[wasm_bindgen_test] async fn test_blob_array_buffer() { let bytes = Array::new(); bytes.push(&1.into()); bytes.push(&2.into()); bytes.push(&3.into()); let blob = Blob::new_with_u8_array_sequence(&bytes.into()).unwrap(); let buffer: ArrayBuffer = JsFuture::from(blob.array_buffer()).await.unwrap().into(); assert!(blob.is_instance_of::()); assert!(buffer.is_instance_of::()); assert_eq!(blob.size(), buffer.byte_length() as f64); } #[wasm_bindgen_test] async fn test_blob_text() { let strings = Array::new(); strings.push(&"hello".into()); let blob = Blob::new_with_str_sequence(&strings.into()).unwrap(); let string = JsFuture::from(blob.text()).await.unwrap(); assert!(blob.is_instance_of::()); assert_eq!(string, "hello") } web-sys-0.3.55/tests/wasm/body_element.rs000064400000000000000000000024310072674642500164640ustar 00000000000000use wasm_bindgen::prelude::*; use wasm_bindgen_test::*; use web_sys::HtmlBodyElement; #[wasm_bindgen(module = "/tests/wasm/element.js")] extern "C" { fn new_body() -> HtmlBodyElement; } #[wasm_bindgen_test] fn test_body_element() { let element = new_body(); assert_eq!(element.text(), "", "Shouldn't have a text"); element.set_text("boop"); assert_eq!(element.text(), "boop", "Should have a text"); // Legacy color setting assert_eq!(element.link(), "", "Shouldn't have a link"); element.set_link("blue"); assert_eq!(element.link(), "blue", "Should have a link"); assert_eq!(element.v_link(), "", "Shouldn't have a v_link"); element.set_v_link("purple"); assert_eq!(element.v_link(), "purple", "Should have a v_link"); assert_eq!(element.a_link(), "", "Shouldn't have a a_link"); element.set_a_link("purple"); assert_eq!(element.a_link(), "purple", "Should have a a_link"); assert_eq!(element.bg_color(), "", "Shouldn't have a bg_color"); element.set_bg_color("yellow"); assert_eq!(element.bg_color(), "yellow", "Should have a bg_color"); assert_eq!(element.background(), "", "Shouldn't have a background"); element.set_background("image"); assert_eq!(element.background(), "image", "Should have a background"); } web-sys-0.3.55/tests/wasm/br_element.rs000064400000000000000000000006750072674642500161420ustar 00000000000000use wasm_bindgen::prelude::*; use wasm_bindgen_test::*; use web_sys::HtmlBrElement; #[wasm_bindgen(module = "/tests/wasm/element.js")] extern "C" { fn new_br() -> HtmlBrElement; } #[wasm_bindgen_test] fn test_br_element() { let element = new_br(); // Legacy clear method assert_eq!(element.clear(), "", "Shouldn't have a clear"); element.set_clear("boop"); assert_eq!(element.clear(), "boop", "Should have a clear"); } web-sys-0.3.55/tests/wasm/button_element.rs000064400000000000000000000076130072674642500170510ustar 00000000000000use wasm_bindgen::prelude::*; use wasm_bindgen_test::*; use web_sys::{HtmlButtonElement, HtmlFormElement, Node}; #[wasm_bindgen(module = "/tests/wasm/element.js")] extern "C" { fn new_button() -> HtmlButtonElement; fn new_form() -> HtmlFormElement; } #[wasm_bindgen_test] fn test_button_element() { let element = new_button(); let location = web_sys::window().unwrap().location().href().unwrap(); assert!(!element.autofocus(), "Shouldn't have autofocus"); element.set_autofocus(true); assert!(element.autofocus(), "Should have autofocus"); assert!(!element.disabled(), "Shouldn't be disabled"); element.set_disabled(true); assert!(element.disabled(), "Should be disabled"); match element.form() { None => assert!(true, "Shouldn't have a form"), _ => assert!(false, "Shouldn't have a form"), }; assert_eq!( element.form_action(), location, "Should have the pages location" ); element.set_form_action("http://boop.com/"); assert_eq!( element.form_action(), "http://boop.com/", "Should have a form_action" ); assert_eq!(element.form_enctype(), "", "Should have no enctype"); element.set_form_enctype("text/plain"); assert_eq!( element.form_enctype(), "text/plain", "Should have a plain text enctype" ); assert_eq!(element.form_method(), "", "Should have no method"); element.set_form_method("POST"); assert_eq!(element.form_method(), "post", "Should have a POST method"); assert!(!element.form_no_validate(), "Should validate"); element.set_form_no_validate(true); assert!(element.form_no_validate(), "Should not validate"); assert_eq!(element.form_target(), "", "Should have no target"); element.set_form_target("_blank"); assert_eq!( element.form_target(), "_blank", "Should have a _blank target" ); assert_eq!(element.name(), "", "Shouldn't have a name"); element.set_name("button-name"); assert_eq!(element.name(), "button-name", "Should have a name"); assert_eq!(element.type_(), "submit", "Shouldn't have a type"); element.set_type("reset"); assert_eq!(element.type_(), "reset", "Should have a reset type"); assert_eq!(element.value(), "", "Shouldn't have a value"); element.set_value("value1"); assert_eq!(element.value(), "value1", "Should have a value"); assert_eq!(element.will_validate(), false, "Shouldn't validate"); assert_eq!( element.validation_message().unwrap(), "", "Shouldn't have a value" ); assert_eq!(element.check_validity(), true, "Should be valid"); assert_eq!(element.report_validity(), true, "Should be valid"); element.set_custom_validity("Boop"); // Method exists but doesn't impact validity assert_eq!(element.check_validity(), true, "Should be valid"); assert_eq!(element.report_validity(), true, "Should be valid"); assert_eq!( element.labels().length(), 0, "Should return a node list with no elements" ); } #[wasm_bindgen_test] fn test_button_element_in_form() { let button = new_button(); button.set_type("reset"); let form = new_form(); form.set_name("test-form"); // TODO: implement `Clone` for types in `web_sys` to make this easier. let button = JsValue::from(button); let as_node = Node::from(button.clone()); Node::from(JsValue::from(form)) .append_child(&as_node) .unwrap(); let element = HtmlButtonElement::from(button); match element.form() { None => assert!(false, "Should have a form"), Some(form) => { assert!(true, "Should have a form"); assert_eq!( form.name(), "test-form", "Form should have a name of test-form" ); } }; assert_eq!(element.type_(), "reset", "Should have a type"); } web-sys-0.3.55/tests/wasm/console.rs000064400000000000000000000002700072674642500154570ustar 00000000000000use wasm_bindgen_test::*; use web_sys::console; #[wasm_bindgen_test] fn test_console() { console::time_with_label("test label"); console::time_end_with_label("test label"); } web-sys-0.3.55/tests/wasm/div_element.rs000064400000000000000000000006510072674642500163130ustar 00000000000000use wasm_bindgen::prelude::*; use wasm_bindgen_test::*; use web_sys::HtmlDivElement; #[wasm_bindgen(module = "/tests/wasm/element.js")] extern "C" { fn new_div() -> HtmlDivElement; } #[wasm_bindgen_test] fn test_div_element() { let element = new_div(); assert_eq!(element.align(), "", "Shouldn't have a align"); element.set_align("right"); assert_eq!(element.align(), "right", "Should have a align"); } web-sys-0.3.55/tests/wasm/dom_point.rs000064400000000000000000000014560072674642500160140ustar 00000000000000use wasm_bindgen::JsValue; use wasm_bindgen_test::*; use web_sys::{DomPoint, DomPointReadOnly}; #[wasm_bindgen_test] fn dom_point() { let x = DomPoint::new_with_x_and_y_and_z_and_w(1.0, 2.0, 3.0, 4.0).unwrap(); assert_eq!(x.x(), 1.0); x.set_x(1.5); assert_eq!(x.x(), 1.5); assert_eq!(x.y(), 2.0); x.set_y(2.5); assert_eq!(x.y(), 2.5); assert_eq!(x.z(), 3.0); x.set_z(3.5); assert_eq!(x.z(), 3.5); assert_eq!(x.w(), 4.0); x.set_w(4.5); assert_eq!(x.w(), 4.5); } #[wasm_bindgen_test] fn dom_point_readonly() { let x = DomPoint::new_with_x_and_y_and_z_and_w(1.0, 2.0, 3.0, 4.0).unwrap(); let x = DomPointReadOnly::from(JsValue::from(x)); assert_eq!(x.x(), 1.0); assert_eq!(x.y(), 2.0); assert_eq!(x.z(), 3.0); assert_eq!(x.w(), 4.0); } web-sys-0.3.55/tests/wasm/element.js000064400000000000000000000063170072674642500154460ustar 00000000000000export function new_a() { return document.createElement("a"); } export function new_body() { return document.createElement("body"); } export function new_br() { return document.createElement("br"); } export function new_button() { return document.createElement("button"); } export function new_caption() { return document.createElement("caption"); } export function new_del() { return document.createElement("del"); } export function new_div() { return document.createElement("div"); } export function new_form() { return document.createElement("form"); } export function new_food_options_collection() { return new_select_with_food_opts().options; } export function new_head() { return document.createElement("head"); } export function new_heading() { return document.createElement("h1"); } export function new_hr() { return document.createElement("hr"); } export function new_html() { return document.createElement("html"); } export function new_input() { return document.createElement("input"); } export function new_ins() { return document.createElement("ins"); } export function new_menu() { return document.createElement("menu"); } export function new_menuitem() { return document.createElement("menuitem"); } export function new_meta() { return document.createElement("meta"); } export function new_meter() { return document.createElement("meter"); } export function new_olist() { return document.createElement("ol"); } export function new_optgroup() { return document.createElement("optgroup"); } export function new_output() { return document.createElement("output"); } export function new_paragraph() { return document.createElement("p"); } export function new_param() { return document.createElement("param"); } export function new_pre() { return document.createElement("pre"); } export function new_progress() { return document.createElement("progress"); } export function new_quote() { return document.createElement("q"); } export function new_script() { return document.createElement("script"); } export function new_select_with_food_opts() { let select = document.createElement("select"); let opts = ["tomato", "potato", "orange", "apple"]; for(let i = 0; i < opts.length; i++) { let opt = document.createElement("option"); opt.value = opts[i]; opt.text = opts[i]; select.appendChild(opt); } return select; } export function new_slot() { return document.createElement("slot"); } export function new_span() { return document.createElement("span"); } export function new_style() { return document.createElement("style"); } export function new_table() { return document.createElement("table"); } export function new_tfoot() { return document.createElement("tfoot"); } export function new_thead() { return document.createElement("thead"); } export function new_title() { return document.createElement("title"); } export function new_xpath_result() { let xmlDoc = new DOMParser().parseFromString("tomato", "application/xml"); let xpathResult = xmlDoc.evaluate("/root//value", xmlDoc, null, XPathResult.ANY_TYPE, null); return xpathResult; } web-sys-0.3.55/tests/wasm/element.rs000064400000000000000000000144630072674642500154570ustar 00000000000000use wasm_bindgen::prelude::*; use wasm_bindgen_test::*; use web_sys::Element; #[wasm_bindgen(module = "/tests/wasm/element.js")] extern "C" { fn new_div() -> Element; } #[wasm_bindgen_test] fn element() { /* Tests needed for: namespace_uri */ let element = new_div(); assert_eq!(element, element); assert_eq!(element.prefix(), None, "Shouldn't have a prefix"); assert_eq!(element.local_name(), "div", "Should have a div local name"); assert_eq!(element.tag_name(), "DIV", "Should be a div tag"); assert!(!element.has_attribute("id"), "Shouldn't have an id"); element.set_id("beep"); assert_eq!(element.id(), "beep", "Should have an id of 'beep'"); // must_use is set on this result? assert_eq!( element.set_attribute("id", "beep").unwrap(), (), "Should set id" ); assert!(element.has_attribute("id"), "Should now have an id"); assert_eq!( element.remove_attribute("id").unwrap(), (), "Should return nothing if removed" ); assert_eq!(element.class_name(), "", "Shouldn't have a class name"); element.set_class_name("test thing"); assert_eq!( element.class_name(), "test thing", "Should have a class name" ); assert_eq!( element.get_attribute("class").unwrap(), "test thing", "Should have a class name" ); assert_eq!( element.remove_attribute("class").unwrap(), (), "Should return nothing if removed" ); /* Tests needed for: get_attribute_ns */ /*TODO should we enable toggle_attribute tests? (Firefox Nightly + Chrome canary only) // TODO toggle_attribute should permit a single argument when optional arguments are supported assert!(!element.has_attribute("disabled"), "Should not be disabled"); assert!(element.toggle_attribute("disabled", true).unwrap(), "Should return true when attribute is set"); assert!(element.has_attribute("disabled"), "Should be disabled"); assert!(!element.toggle_attribute("disabled", false).unwrap(), "Should return false when attribute is not set"); assert!(!element.has_attribute("disabled"), "Should not be disabled"); */ assert!(!element.has_attribute("title"), "Should not have a title"); assert_eq!( element.set_attribute("title", "boop").unwrap(), (), "Should return nothing if set correctly" ); assert!(element.has_attribute("title"), "Should have a title"); // TODO check get_attribute here when supported assert_eq!( element.remove_attribute("title").unwrap(), (), "Should return nothing if removed" ); assert!(!element.has_attribute("title"), "Should not have a title"); /* Tests needed for: set_attribute_ns */ assert!(!element.has_attributes(), "Should not have any attributes"); assert_eq!( element.set_attribute("title", "boop").unwrap(), (), "Should return nothing if set correctly" ); assert!(element.has_attributes(), "Should have attributes"); assert_eq!( element.remove_attribute("title").unwrap(), (), "Should return nothing if removed" ); /* Tests needed for: remove_attribute_ns has_attribure_ns closest */ assert_eq!( element.matches(".this-is-a-thing").unwrap(), false, "Should not match selector" ); assert_eq!( element.webkit_matches_selector(".this-is-a-thing").unwrap(), false, "Should not match selector" ); element.set_class_name("this-is-a-thing"); assert_eq!( element.matches(".this-is-a-thing").unwrap(), true, "Should match selector" ); assert_eq!( element.webkit_matches_selector(".this-is-a-thing").unwrap(), true, "Should match selector" ); assert_eq!( element.remove_attribute("class").unwrap(), (), "Should return nothing if removed" ); // TODO non standard moz_matches_selector should we even support? /* Tests needed for: insert_adjacent_element insert_adjacent_text set_pointer_capture release_pointer_capture has_pointer_capture set_capture release_capture scroll_top set_scroll_top scroll_left set_scroll_left scroll_width scroll_height scroll, scroll_to scroll_by client_top client_left client_width client_height scroll_top_max scroll_left_max */ assert_eq!(element.inner_html(), "", "Should return no content"); element.set_inner_html("Hey!Web!"); assert_eq!( element.inner_html(), "Hey!Web!", "Should return HTML conent" ); assert_eq!( element.query_selector_all("strong").unwrap().length(), 1, "Should return one element" ); assert!( element.query_selector("strong").unwrap().is_some(), "Should return an element" ); element.set_inner_html(""); assert_eq!(element.inner_html(), "", "Should return no content"); /* Tests needed for: outer_html set_outer_html insert_adjacent_html */ assert!( element.query_selector(".none-existant").unwrap().is_none(), "Should return no results" ); assert_eq!( element .query_selector_all(".none-existant") .unwrap() .length(), 0, "Should return no results" ); /* Tests needed for: slot set_slot request_fullscreen request_pointer_lock */ let child = new_div(); assert_eq!( element.get_elements_by_tag_name("div").length(), 0, "Element should not contain any div child" ); element.append_child(&child).unwrap(); assert_eq!( element.get_elements_by_tag_name("div").length(), 1, "Element should contain one div child" ); assert_eq!( element.get_elements_by_class_name("foo").length(), 0, "Element should not have childs with class foo" ); child.class_list().add_1("foo").unwrap(); assert_eq!( element.get_elements_by_class_name("foo").length(), 1, "Element should have one child with class foo" ); element.remove_child(&child).unwrap(); } web-sys-0.3.55/tests/wasm/event.js000064400000000000000000000003730072674642500151320ustar 00000000000000export function new_event() { return new Promise(resolve => { window.addEventListener("test-event", resolve); window.dispatchEvent(new Event("test-event", { bubbles: true, cancelable: true, composed: true, })); }); } web-sys-0.3.55/tests/wasm/event.rs000064400000000000000000000016050072674642500151410ustar 00000000000000use js_sys::{Object, Promise}; use wasm_bindgen::prelude::*; use wasm_bindgen::JsCast; use wasm_bindgen_futures::JsFuture; use wasm_bindgen_test::*; use web_sys::Event; #[wasm_bindgen(module = "/tests/wasm/event.js")] extern "C" { fn new_event() -> Promise; } #[wasm_bindgen_test] async fn event() { let result = JsFuture::from(new_event()).await.unwrap(); let event = Event::from(result); // All DOM interfaces should inherit from `Object`. assert!(event.is_instance_of::()); let _: &Object = event.as_ref(); // These should match `new Event`. assert!(event.bubbles()); assert!(event.cancelable()); assert!(event.composed()); // The default behavior not initially prevented, but after // we call `prevent_default` it better be. assert!(!event.default_prevented()); event.prevent_default(); assert!(event.default_prevented()); } web-sys-0.3.55/tests/wasm/head_element.rs000064400000000000000000000005040072674642500164270ustar 00000000000000use wasm_bindgen::prelude::*; use wasm_bindgen_test::*; use web_sys::HtmlHeadElement; #[wasm_bindgen(module = "/tests/wasm/element.js")] extern "C" { fn new_head() -> HtmlHeadElement; } #[wasm_bindgen_test] fn test_head_element() { let _element = new_head(); assert!(true, "Head doesn't have an interface"); } web-sys-0.3.55/tests/wasm/headers.js000064400000000000000000000001300072674642500154130ustar 00000000000000export function new_headers() { return new Headers({'Content-Type': 'text/plain'}); } web-sys-0.3.55/tests/wasm/headers.rs000064400000000000000000000017020072674642500154310ustar 00000000000000use wasm_bindgen::prelude::*; use wasm_bindgen_test::*; use web_sys::Headers; #[wasm_bindgen(module = "/tests/wasm/headers.js")] extern "C" { fn new_headers() -> Headers; } #[wasm_bindgen_test] fn headers() { let headers = new_headers(); assert_eq!(headers.get("foo").unwrap(), None); assert_eq!( headers.get("content-type").unwrap(), Some("text/plain".to_string()), ); assert_eq!( headers.get("Content-Type").unwrap(), Some("text/plain".to_string()), ); assert!(headers.get("").is_err()); assert!(headers.set("", "").is_err()); assert!(headers.set("x", "").is_ok()); assert_eq!(headers.get("x").unwrap(), Some(String::new())); assert!(headers.delete("x").is_ok()); assert_eq!(headers.get("x").unwrap(), None); assert!(headers.append("a", "y").is_ok()); assert!(headers.append("a", "z").is_ok()); assert_eq!(headers.get("a").unwrap(), Some("y, z".to_string())); } web-sys-0.3.55/tests/wasm/heading_element.rs000064400000000000000000000006760072674642500171370ustar 00000000000000use wasm_bindgen::prelude::*; use wasm_bindgen_test::*; use web_sys::HtmlHeadingElement; #[wasm_bindgen(module = "/tests/wasm/element.js")] extern "C" { fn new_heading() -> HtmlHeadingElement; } #[wasm_bindgen_test] fn heading_element() { let element = new_heading(); assert_eq!(element.align(), "", "Shouldn't have an align"); element.set_align("justify"); assert_eq!(element.align(), "justify", "Should have an align"); } web-sys-0.3.55/tests/wasm/history.rs000064400000000000000000000013140072674642500155160ustar 00000000000000use wasm_bindgen::prelude::*; use wasm_bindgen_test::*; use web_sys::{History, ScrollRestoration}; #[wasm_bindgen] extern "C" { #[wasm_bindgen(js_name = history, js_namespace = window)] static HISTORY: History; } #[wasm_bindgen_test] fn history() { HISTORY .set_scroll_restoration(ScrollRestoration::Manual) .expect("failure to set scroll restoration"); assert_eq!( HISTORY.scroll_restoration().unwrap(), ScrollRestoration::Manual ); HISTORY .set_scroll_restoration(ScrollRestoration::Auto) .expect("failure to set scroll restoration"); assert_eq!( HISTORY.scroll_restoration().unwrap(), ScrollRestoration::Auto ); } web-sys-0.3.55/tests/wasm/hr_element.rs000064400000000000000000000007700072674642500161440ustar 00000000000000use wasm_bindgen::prelude::*; use wasm_bindgen_test::*; use web_sys::HtmlHrElement; #[wasm_bindgen(module = "/tests/wasm/element.js")] extern "C" { fn new_hr() -> HtmlHrElement; } #[wasm_bindgen_test] fn test_hr_element() { let hr = new_hr(); hr.set_color("blue"); assert_eq!(hr.color(), "blue"); hr.set_width("128"); assert_eq!(hr.width(), "128"); hr.set_width("256"); assert_eq!(hr.width(), "256"); hr.set_no_shade(true); assert_eq!(hr.no_shade(), true); } web-sys-0.3.55/tests/wasm/html_element.rs000064400000000000000000000112530072674642500164750ustar 00000000000000use wasm_bindgen::prelude::*; use wasm_bindgen::JsCast; use wasm_bindgen_test::*; use web_sys::HtmlElement; #[wasm_bindgen(module = "/tests/wasm/element.js")] extern "C" { fn new_html() -> HtmlElement; } #[wasm_bindgen_test] fn test_html_element() { let element = new_html(); assert!(element.is_instance_of::()); assert_eq!(element.title(), "", "Shouldn't have a title"); element.set_title("boop"); assert_eq!(element.title(), "boop", "Should have a title"); assert_eq!(element.lang(), "", "Shouldn't have a lang"); element.set_lang("en-us"); assert_eq!(element.lang(), "en-us", "Should have a lang"); assert_eq!(element.dir(), "", "Shouldn't have a dir"); element.set_dir("ltr"); assert_eq!(element.dir(), "ltr", "Should have a dir"); assert_eq!(element.inner_text(), "", "Shouldn't have inner_text"); element.set_inner_text("hey"); assert_eq!(element.inner_text(), "hey", "Should have inner_text"); assert!(!element.hidden(), "Shouldn't be hidden"); element.set_hidden(true); assert!(element.hidden(), "Should be hidden"); assert_eq!( element.class_list().get(0), None, "Shouldn't have class at index 0" ); element.class_list().add_2("a", "b").unwrap(); assert_eq!( element.class_list().get(0).unwrap(), "a", "Should have class at index 0" ); assert_eq!( element.class_list().get(1).unwrap(), "b", "Should have class at index 1" ); assert_eq!( element.class_list().get(2), None, "Shouldn't have class at index 2" ); assert_eq!(element.dataset().get("id"), None, "Shouldn't have data-id"); element.dataset().set("id", "123").unwrap(); assert_eq!( element.dataset().get("id").unwrap(), "123", "Should have data-id" ); assert_eq!( element.style().get(0), None, "Shouldn't have style property name at index 0" ); element .style() .set_property("background-color", "red") .unwrap(); assert_eq!( element.style().get(0).unwrap(), "background-color", "Should have style property at index 0" ); assert_eq!( element .style() .get_property_value("background-color") .unwrap(), "red", "Should have style property" ); // TODO add a click handler here element.click(); assert_eq!(element.tab_index(), -1, "Shouldn't be tab_index"); element.set_tab_index(1); assert_eq!(element.tab_index(), 1, "Should be tab_index"); // TODO add a focus handler here assert_eq!(element.focus().unwrap(), (), "No result"); // TODO add a blur handler here assert_eq!(element.blur().unwrap(), (), "No result"); assert_eq!(element.access_key(), "", "Shouldn't have a access_key"); element.set_access_key("a"); assert_eq!(element.access_key(), "a", "Should have a access_key"); // TODO add test for access_key_label assert!(!element.draggable(), "Shouldn't be draggable"); element.set_draggable(true); assert!(element.draggable(), "Should be draggable"); assert_eq!( element.content_editable(), "inherit", "Shouldn't have a content_editable" ); element.set_content_editable("true"); assert_eq!( element.content_editable(), "true", "Should be content_editable" ); assert!(element.is_content_editable(), "Should be content_editable"); /*TODO doesn't work in Chrome // TODO verify case where menu is passed match element.context_menu() { None => assert!(true, "Shouldn't have a custom menu set"), _ => assert!(false, "Shouldn't have a custom menu set") }; */ // TODO: This test is also broken in Chrome (but not Firefox). // assert!(!element.spellcheck(), "Shouldn't be spellchecked"); element.set_spellcheck(true); assert!(element.spellcheck(), "Should be dragspellcheckedgable"); // TODO verify case where we have an offset_parent match element.offset_parent() { None => assert!(true, "Shouldn't have an offset_parent set"), _ => assert!(false, "Shouldn't have a offset_parent set"), }; // TODO verify when we have offsets assert_eq!(element.offset_top(), 0, "Shouldn't have an offset_top yet"); assert_eq!( element.offset_left(), 0, "Shouldn't have an offset_left yet" ); assert_eq!( element.offset_width(), 0, "Shouldn't have an offset_width yet" ); assert_eq!( element.offset_height(), 0, "Shouldn't have an offset_height yet" ); } web-sys-0.3.55/tests/wasm/html_html_element.rs000064400000000000000000000006650072674642500175260ustar 00000000000000use wasm_bindgen::prelude::*; use wasm_bindgen_test::*; use web_sys::HtmlHtmlElement; #[wasm_bindgen(module = "/tests/wasm/element.js")] extern "C" { fn new_html() -> HtmlHtmlElement; } #[wasm_bindgen_test] fn test_html_html_element() { let element = new_html(); assert_eq!(element.version(), "", "Shouldn't have a version"); element.set_version("4"); assert_eq!(element.version(), "4", "Should have a version"); } web-sys-0.3.55/tests/wasm/image_data.rs000064400000000000000000000010500072674642500160650ustar 00000000000000use wasm_bindgen::prelude::*; use wasm_bindgen::Clamped; use wasm_bindgen_test::*; use web_sys::HtmlAnchorElement; #[wasm_bindgen(module = "/tests/wasm/element.js")] extern "C" { fn new_a() -> HtmlAnchorElement; } #[wasm_bindgen_test] fn test_anchor_element() { // This test is to make sure there is no weird mutability going on. let buf = vec![1, 2, 3, 255]; let image_data = web_sys::ImageData::new_with_u8_clamped_array(Clamped(&buf), 1).unwrap(); let mut data = image_data.data(); data[1] = 4; assert_eq!(buf[1], 2); } web-sys-0.3.55/tests/wasm/indexeddb.rs000064400000000000000000000002670072674642500157510ustar 00000000000000use wasm_bindgen_test::*; use web_sys; #[wasm_bindgen_test] fn accessor_works() { let window = web_sys::window().unwrap(); assert!(window.indexed_db().unwrap().is_some()); } web-sys-0.3.55/tests/wasm/input_element.rs000064400000000000000000000167410072674642500166770ustar 00000000000000use wasm_bindgen::prelude::*; use wasm_bindgen_test::*; use web_sys::HtmlInputElement; #[wasm_bindgen(module = "/tests/wasm/element.js")] extern "C" { fn new_input() -> HtmlInputElement; } #[wasm_bindgen_test] fn test_input_element() { let element = new_input(); let location = web_sys::window().unwrap().location().href().unwrap(); assert_eq!(element.accept(), "", "Shouldn't have an accept"); element.set_accept("audio/*"); assert_eq!(element.accept(), "audio/*", "Should have an accept"); assert_eq!(element.alt(), "", "Shouldn't have an alt"); element.set_alt("alt text"); assert_eq!(element.alt(), "alt text", "Should have an alt"); element.set_type("text"); assert_eq!(element.autocomplete(), "", "Shouldn't have an autocomplete"); element.set_autocomplete("on"); assert_eq!( element.autocomplete(), "on", "Shouldn't have an autocomplete" ); assert!(!element.autofocus(), "Shouldn't have an autofocus"); element.set_autofocus(true); assert!(element.autofocus(), "Should have an autofocus"); element.set_type("checkbox"); assert!( !element.default_checked(), "Shouldn't have an default_checked" ); element.set_default_checked(true); assert!(element.default_checked(), "Should have an default_checked"); /*TODO fix assert!(!element.checked(), "Shouldn't be checked"); element.set_checked(true); assert!(element.checked(), "Should be checked"); */ assert!(!element.disabled(), "Shouldn't be disabled"); element.set_disabled(true); assert!(element.disabled(), "Should be disabled"); match element.form() { None => assert!(true, "Shouldn't have a form"), _ => assert!(false, "Shouldn't have a form"), }; assert_eq!( element.form_action(), location, "Should have the pages location" ); element.set_form_action("http://boop.com/"); assert_eq!( element.form_action(), "http://boop.com/", "Should have a form_action" ); assert_eq!(element.form_enctype(), "", "Should have no enctype"); element.set_form_enctype("text/plain"); assert_eq!( element.form_enctype(), "text/plain", "Should have a plain text enctype" ); assert_eq!(element.form_method(), "", "Should have no method"); element.set_form_method("POST"); assert_eq!(element.form_method(), "post", "Should have a POST method"); assert!(!element.form_no_validate(), "Should validate"); element.set_form_no_validate(true); assert!(element.form_no_validate(), "Should not validate"); assert_eq!(element.form_target(), "", "Should have no target"); element.set_form_target("_blank"); assert_eq!( element.form_target(), "_blank", "Should have a _blank target" ); assert_eq!(element.height(), 0, "Should have no height"); element.set_height(12); assert_eq!(element.height(), 0, "Should have no height"); // Doesn't change, TODO check with get_attribute("height")=="12" /*TODO fails in chrome element.set_type("checkbox"); assert!(element.indeterminate(), "Should be indeterminate"); element.set_checked(true); assert!(!element.indeterminate(), "Shouldn't be indeterminate"); */ /*TODO add tests pub fn indeterminate(&self) -> bool pub fn set_indeterminate(&self, indeterminate: bool) pub fn input_mode(&self) -> String pub fn set_input_mode(&self, input_mode: &str) pub fn list(&self) -> Option pub fn max(&self) -> String pub fn set_max(&self, max: &str) pub fn max_length(&self) -> i32 pub fn set_max_length(&self, max_length: i32) pub fn min(&self) -> String pub fn set_min(&self, min: &str) pub fn min_length(&self) -> i32 pub fn set_min_length(&self, min_length: i32) pub fn multiple(&self) -> bool pub fn set_multiple(&self, multiple: bool) */ assert_eq!(element.name(), "", "Should not have a name"); element.set_name("namey"); assert_eq!(element.name(), "namey", "Should have a name"); /*TODO add tests pub fn pattern(&self) -> String pub fn set_pattern(&self, pattern: &str) */ assert_eq!(element.placeholder(), "", "Should not have a placeholder"); element.set_placeholder("some text"); assert_eq!( element.placeholder(), "some text", "Should have a placeholder" ); assert!(!element.read_only(), "Should have not be readonly"); element.set_read_only(true); assert!(element.read_only(), "Should be readonly"); assert!(!element.required(), "Should have not be required"); element.set_required(true); assert!(element.required(), "Should be required"); /*TODO add tests pub fn size(&self) -> u32 pub fn set_size(&self, size: u32) */ /*TODO fails in chrome element.set_type("image"); assert_eq!(element.src(), "", "Should have no src"); element.set_value("hey.png"); assert_eq!(element.src(), "hey.png", "Should have a src"); */ /*TODO add tests pub fn src(&self) -> String pub fn set_src(&self, src: &str) pub fn step(&self) -> String pub fn set_step(&self, step: &str) pub fn type_(&self) -> String pub fn set_type(&self, type_: &str) pub fn default_value(&self) -> String pub fn set_default_value(&self, default_value: &str) */ /*TODO fails in chrome assert_eq!(element.value(), "", "Should have no value"); element.set_value("hey!"); assert_eq!(element.value(), "hey!", "Should have a value"); */ element.set_type("number"); element.set_value("1"); assert_eq!(element.value_as_number(), 1.0, "Should have value 1"); element.set_value_as_number(2.0); assert_eq!(element.value(), "2", "Should have value 2"); assert_eq!(element.width(), 0, "Should have no width"); element.set_width(12); assert_eq!(element.width(), 0, "Should have no width"); // Doesn't change, TODO check with get_attribute("width")=="12" assert_eq!(element.will_validate(), false, "Shouldn't validate"); assert_eq!( element.validation_message().unwrap(), "", "Shouldn't have a value" ); assert_eq!(element.check_validity(), true, "Should be valid"); assert_eq!(element.report_validity(), true, "Should be valid"); element.set_custom_validity("Boop"); // Method exists but doesn't impact validity ?!??! TODO look into assert_eq!(element.check_validity(), true, "Should be valid"); assert_eq!(element.report_validity(), true, "Should be valid"); /*TODO add tests pub fn labels(&self) -> Option pub fn select(&self) pub fn selection_direction(&self) -> Result, JsValue> pub fn set_selection_direction( &self, selection_direction: Option<&str> ) -> Result<(), JsValue> pub fn set_range_text(&self, replacement: &str) -> Result<(), JsValue> pub fn set_selection_range( &self, start: u32, end: u32, direction: &str ) -> Result<(), JsValue> */ assert_eq!(element.align(), "", "Should have no align"); element.set_align("left"); assert_eq!(element.align(), "left", "Should have an align"); /*TODO add tests pub fn use_map(&self) -> String pub fn set_use_map(&self, use_map: &str) pub fn text_length(&self) -> i32 pub fn webkitdirectory(&self) -> bool pub fn set_webkitdirectory(&self, webkitdirectory: bool) pub fn set_focus_state(&self, a_is_focused: bool) */ } web-sys-0.3.55/tests/wasm/location.rs000064400000000000000000000016610072674642500156320ustar 00000000000000use wasm_bindgen_test::*; use web_sys::{self, Location}; fn location() -> Location { web_sys::window().unwrap().location() } #[wasm_bindgen_test] fn href() { let loc = location(); loc.href().unwrap(); } #[wasm_bindgen_test] fn origin() { let loc = location(); loc.origin().unwrap(); } #[wasm_bindgen_test] fn protocol() { let loc = location(); loc.protocol().unwrap(); } #[wasm_bindgen_test] fn host() { let loc = location(); loc.host().unwrap(); } #[wasm_bindgen_test] fn hostname() { let loc = location(); loc.hostname().unwrap(); } #[wasm_bindgen_test] fn port() { let loc = location(); loc.port().unwrap(); } #[wasm_bindgen_test] fn pathname() { let loc = location(); loc.pathname().unwrap(); } #[wasm_bindgen_test] fn search() { let loc = location(); loc.search().unwrap(); } #[wasm_bindgen_test] fn hash() { let loc = location(); loc.hash().unwrap(); } web-sys-0.3.55/tests/wasm/main.rs000064400000000000000000000030300072674642500147360ustar 00000000000000#![cfg(target_arch = "wasm32")] use wasm_bindgen_test::*; wasm_bindgen_test_configure!(run_in_browser); pub mod anchor_element; pub mod blob; pub mod body_element; pub mod br_element; pub mod button_element; pub mod console; pub mod div_element; pub mod element; pub mod event; pub mod head_element; pub mod headers; pub mod heading_element; pub mod history; pub mod hr_element; pub mod html_element; pub mod html_html_element; pub mod image_data; pub mod input_element; //TODO: Both menu-related tests completely break in Chrome, but run fine in Firefox. //pub mod menu_element; //pub mod menu_item_element; pub mod dom_point; pub mod indexeddb; pub mod location; pub mod meta_element; pub mod meter_element; pub mod mod_elements; pub mod olist_element; pub mod optgroup_element; pub mod option_element; pub mod options_collection; pub mod output_element; pub mod paragraph_element; pub mod param_element; pub mod performance; pub mod pre_element; pub mod progress_element; pub mod quote_element; pub mod response; pub mod rtc_rtp_transceiver_direction; pub mod script_element; pub mod select_element; pub mod slot_element; pub mod span_element; pub mod style_element; pub mod table_element; pub mod title_element; pub mod whitelisted_immutable_slices; pub mod xpath_result; #[wasm_bindgen_test] fn deref_works() { fn _check(a: &web_sys::XmlHttpRequestUpload) { let _x: &web_sys::XmlHttpRequestEventTarget = a; let _x: &web_sys::EventTarget = a; let _x: &js_sys::Object = a; let _x: &wasm_bindgen::JsValue = a; } } web-sys-0.3.55/tests/wasm/menu_element.rs000064400000000000000000000014150072674642500164740ustar 00000000000000use wasm_bindgen_test::*; use wasm_bindgen::prelude::*; use web_sys::HtmlMenuElement; #[wasm_bindgen(module = "/tests/wasm/element.js")] extern "C" { fn new_menu() -> HtmlMenuElement; } #[wasm_bindgen_test] fn test_menu_element() { let menu = new_menu(); menu.set_type("toolbar"); assert_eq!(menu.type_(), "toolbar", "Menu should have the type value we gave it."); menu.set_label("Menu label here"); assert_eq!(menu.label(), "Menu label here", "Menu should have the label value we gave it."); menu.set_compact(true); assert_eq!(menu.compact(), true, "Menu should be compact after we set it to be compact."); menu.set_compact(false); assert_eq!(menu.compact(), false, "Menu should not be compact after we set it to be not-compact."); } web-sys-0.3.55/tests/wasm/menu_item_element.rs000064400000000000000000000037270072674642500175220ustar 00000000000000use wasm_bindgen_test::*; use wasm_bindgen::prelude::*; use web_sys::HtmlMenuItemElement; #[wasm_bindgen(module = "/tests/wasm/element.js")] extern "C" { fn new_menuitem() -> HtmlMenuItemElement; } #[wasm_bindgen_test] fn test_menuitem_element() { let menuitem = new_menuitem(); menuitem.set_type("radio"); assert_eq!(menuitem.type_(), "radio", "Menu item should have the type value we gave it."); menuitem.set_label("Menu item label here"); assert_eq!(menuitem.label(), "Menu item label here", "Menu item should have the label value we gave it."); menuitem.set_icon("https://en.wikipedia.org/wiki/Rust_(programming_language)#/media/File:Rust_programming_language_black_logo.svg"); assert_eq!(menuitem.icon(), "https://en.wikipedia.org/wiki/Rust_(programming_language)#/media/File:Rust_programming_language_black_logo.svg", "Menu item should have the icon value we gave it."); menuitem.set_disabled(true); assert_eq!(menuitem.disabled(), true, "Menu item should be disabled after we set it to be disabled."); menuitem.set_disabled(false); assert_eq!(menuitem.disabled(), false, "Menu item should not be disabled after we set it to be not-disabled."); menuitem.set_checked(true); assert_eq!(menuitem.checked(), true, "Menu item should be checked after we set it to be checked."); menuitem.set_checked(false); assert_eq!(menuitem.checked(), false, "Menu item should not be checked after we set it to be not-checked."); menuitem.set_radiogroup("Radio group name"); assert_eq!(menuitem.radiogroup(), "Radio group name", "Menu item should have the radiogroup value we gave it."); menuitem.set_default_checked(true); assert_eq!(menuitem.default_checked(), true, "Menu item should be default_checked after we set it to be default_checked."); menuitem.set_default_checked(false); assert_eq!(menuitem.default_checked(), false, "Menu item should not be default_checked after we set it to be not default_checked."); } web-sys-0.3.55/tests/wasm/meta_element.rs000064400000000000000000000016510072674642500164600ustar 00000000000000use wasm_bindgen::prelude::*; use wasm_bindgen_test::*; use web_sys::HtmlMetaElement; #[wasm_bindgen(module = "/tests/wasm/element.js")] extern "C" { fn new_meta() -> HtmlMetaElement; } #[wasm_bindgen_test] fn test_meter_element() { let meta = new_meta(); meta.set_name("keywords"); assert_eq!( meta.name(), "keywords", "Meta should have the name value we gave it." ); meta.set_http_equiv("content-type"); assert_eq!( meta.http_equiv(), "content-type", "Meta should have the http_equiv value we gave it." ); meta.set_content("HTML, CSS, XML, JavaScript"); assert_eq!( meta.content(), "HTML, CSS, XML, JavaScript", "Meta should have the content value we gave it." ); meta.set_scheme("text"); assert_eq!( meta.scheme(), "text", "Meta should have the scheme value we gave it." ); } web-sys-0.3.55/tests/wasm/meter_element.rs000064400000000000000000000022470072674642500166500ustar 00000000000000use wasm_bindgen::prelude::*; use wasm_bindgen_test::*; use web_sys::HtmlMeterElement; #[wasm_bindgen(module = "/tests/wasm/element.js")] extern "C" { fn new_meter() -> HtmlMeterElement; } #[wasm_bindgen_test] fn test_meter_element() { let meter = new_meter(); meter.set_min(-5.); assert_eq!( meter.min(), -5., "Meter should have the min value we gave it." ); meter.set_max(5.); assert_eq!( meter.max(), 5., "Meter should have the max value we gave it." ); meter.set_value(2.); assert_eq!(meter.value(), 2., "Meter should have the value we gave it."); meter.set_low(-1.); assert_eq!( meter.low(), -1., "Meter should have the low value we gave it." ); meter.set_high(1.); assert_eq!( meter.high(), 1., "Meter should have the high value we gave it." ); meter.set_optimum(3.); assert_eq!( meter.optimum(), 3., "Meter should have the optimum value we gave it." ); assert!( meter.labels().length() == 0, "Our meter shouldn't have any labels associated with it." ); } web-sys-0.3.55/tests/wasm/mod_elements.rs000064400000000000000000000023160072674642500164730ustar 00000000000000use wasm_bindgen::prelude::*; use wasm_bindgen_test::*; use web_sys::HtmlModElement; #[wasm_bindgen(module = "/tests/wasm/element.js")] extern "C" { fn new_del() -> HtmlModElement; fn new_ins() -> HtmlModElement; } #[wasm_bindgen_test] fn test_mod_elements() { let del = new_del(); del.set_cite("https://www.rust-lang.org/en-US/"); assert_eq!( del.cite(), "https://www.rust-lang.org/en-US/", "Option should have the cite URI we gave it." ); del.set_date_time("Thu Aug 02 2018 18:02:56 GMT-0500 (Central Daylight Time)"); assert_eq!( del.date_time(), "Thu Aug 02 2018 18:02:56 GMT-0500 (Central Daylight Time)", "Option should have the date_time we gave it." ); let ins = new_ins(); ins.set_cite("https://www.rust-lang.org/en-US/"); assert_eq!( ins.cite(), "https://www.rust-lang.org/en-US/", "Option should have the cite URI we gave it." ); ins.set_date_time("Thu Aug 02 2018 18:02:56 GMT-0500 (Central Daylight Time)"); assert_eq!( ins.date_time(), "Thu Aug 02 2018 18:02:56 GMT-0500 (Central Daylight Time)", "Option should have the date_time we gave it." ); } web-sys-0.3.55/tests/wasm/olist_element.rs000064400000000000000000000025350072674642500166660ustar 00000000000000use wasm_bindgen::prelude::*; use wasm_bindgen_test::*; use web_sys::HtmlOListElement; #[wasm_bindgen(module = "/tests/wasm/element.js")] extern "C" { fn new_olist() -> HtmlOListElement; } #[wasm_bindgen_test] fn test_olist_element() { let olist = new_olist(); olist.set_reversed(true); assert_eq!( olist.reversed(), true, "Olist should be reversed after we set it to be reversed." ); olist.set_reversed(false); assert_eq!( olist.reversed(), false, "Olist should not be reversed after we set it to be not reversed." ); olist.set_start(23); assert_eq!( olist.start(), 23, "Olist should have the start value we gave it." ); olist.set_type("A"); assert_eq!( olist.type_(), "A", "Olist should be type 'A' after we set it to be type 'A'." ); olist.set_type("I"); assert_eq!( olist.type_(), "I", "Olist should be type 'I' after we set it to be type 'I'." ); olist.set_compact(true); assert_eq!( olist.compact(), true, "Olist should be compact after we set it to be compact." ); olist.set_compact(false); assert_eq!( olist.compact(), false, "Olist should not be compact after we set it to be not compact." ); } web-sys-0.3.55/tests/wasm/optgroup_element.rs000064400000000000000000000014740072674642500174140ustar 00000000000000use wasm_bindgen::prelude::*; use wasm_bindgen_test::*; use web_sys::HtmlOptGroupElement; #[wasm_bindgen(module = "/tests/wasm/element.js")] extern "C" { fn new_optgroup() -> HtmlOptGroupElement; } #[wasm_bindgen_test] fn test_optgroup_element() { let optgroup = new_optgroup(); optgroup.set_disabled(true); assert_eq!( optgroup.disabled(), true, "Optgroup should be disabled after we set it to be disabled." ); optgroup.set_disabled(false); assert_eq!( optgroup.disabled(), false, "Optgroup should not be disabled after we set it to be not-disabled." ); optgroup.set_label("Group of options below"); assert_eq!( optgroup.label(), "Group of options below", "Optgroup should have the label we gave it." ); } web-sys-0.3.55/tests/wasm/option_element.rs000064400000000000000000000041220072674642500170360ustar 00000000000000use wasm_bindgen_test::*; use web_sys::HtmlOptionElement; #[wasm_bindgen_test] fn test_option_element() { let option = HtmlOptionElement::new_with_text_and_value_and_default_selected_and_selected( "option_text", "option_value", false, true, ) .unwrap(); option.set_disabled(true); assert_eq!( option.disabled(), true, "Option should be disabled after we set it to be disabled." ); option.set_disabled(false); assert_eq!( option.disabled(), false, "Option should not be disabled after we set it to be not-disabled." ); assert!( option.form().is_none(), "Our option should not be associated with a form." ); option.set_label("Well this truly is a neat option"); assert_eq!( option.label(), "Well this truly is a neat option", "Option should have the label we gave it." ); option.set_default_selected(true); assert_eq!( option.default_selected(), true, "Option should be default_selected after we set it to be default_selected." ); option.set_default_selected(false); assert_eq!( option.default_selected(), false, "Option should not be default_selected after we set it to be not default_selected." ); option.set_selected(true); assert_eq!( option.selected(), true, "Option should be selected after we set it to be selected." ); option.set_selected(false); assert_eq!( option.selected(), false, "Option should not be selected after we set it to be not selected." ); option.set_value("tomato"); assert_eq!( option.value(), "tomato", "Option should have the value we gave it." ); option.set_text("potato"); assert_eq!( option.text(), "potato", "Option should have the text we gave it." ); assert_eq!( option.index(), 0, "This should be the first option, since there are no other known options." ); } web-sys-0.3.55/tests/wasm/options_collection.rs000064400000000000000000000023370072674642500177310ustar 00000000000000use wasm_bindgen::prelude::*; use wasm_bindgen_test::*; use web_sys::HtmlOptionsCollection; #[wasm_bindgen(module = "/tests/wasm/element.js")] extern "C" { fn new_food_options_collection() -> HtmlOptionsCollection; } #[wasm_bindgen_test] fn test_options_collection() { let opt_collection = new_food_options_collection(); assert!( opt_collection.length() == 4, "Our option collection should have four options." ); assert!( opt_collection.remove(0).is_ok(), "We should be able to successfully remove an element from an option collection." ); assert!( opt_collection.length() == 3, "Our option collection should have three options after removing one." ); assert!( opt_collection.set_selected_index(1).is_ok(), "Should be able to set the selected index of an option collection if it is valid." ); assert_eq!( opt_collection.selected_index().unwrap(), 1, "The second option should be selected in our option collection." ); opt_collection.set_length(1234); assert_eq!( opt_collection.length(), 1234, "Our option collections length should update after being set to 1234." ); } web-sys-0.3.55/tests/wasm/output_element.rs000064400000000000000000000035050072674642500170720ustar 00000000000000use wasm_bindgen::prelude::*; use wasm_bindgen_test::*; use web_sys::HtmlOutputElement; #[wasm_bindgen(module = "/tests/wasm/element.js")] extern "C" { fn new_output() -> HtmlOutputElement; } #[wasm_bindgen_test] fn test_output_element() { let output = new_output(); assert!( output.html_for().length() == 0, "Our basic should have no html associated with it." ); assert!( output.form().is_none(), "Our basic should have no form associated with it." ); output.set_name("Calculation result"); assert_eq!( output.name(), "Calculation result", "Output name should be 'Calculation result'." ); assert_eq!( output.type_(), "output", "Our basic should have an type of 'output'." ); output.set_default_value("27"); assert_eq!( output.default_value(), "27", "Default output value should be '27'." ); output.set_value("49"); assert_eq!(output.value(), "49", "Output value should be '49'."); // TODO: Fails in Chrome, but not in Firefox. //assert!(output.will_validate(), "Output should validate by default (maybe browser dependent?)"); assert!( output.validity().valid(), "Our s validity should be true." ); assert!( output.validation_message().is_ok(), "We should be able to retrieve some validation message from our ." ); assert!(output.check_validity(), "Our should be valid."); assert!( output.report_validity(), "Our should report valid." ); output.set_custom_validity("Some scary error message."); assert!( output.labels().length() == 0, "Our basic shouldn't have any labels associated with it." ); } web-sys-0.3.55/tests/wasm/paragraph_element.rs000064400000000000000000000006750072674642500175040ustar 00000000000000use wasm_bindgen::prelude::*; use wasm_bindgen_test::*; use web_sys::HtmlParagraphElement; #[wasm_bindgen(module = "/tests/wasm/element.js")] extern "C" { fn new_paragraph() -> HtmlParagraphElement; } #[wasm_bindgen_test] fn test_paragraph_element() { let paragraph = new_paragraph(); paragraph.set_align("right"); assert_eq!( paragraph.align(), "right", "Paragraph should be aligned 'right'." ); } web-sys-0.3.55/tests/wasm/param_element.rs000064400000000000000000000014610072674642500166310ustar 00000000000000use wasm_bindgen::prelude::*; use wasm_bindgen_test::*; use web_sys::HtmlParamElement; #[wasm_bindgen(module = "/tests/wasm/element.js")] extern "C" { fn new_param() -> HtmlParamElement; } #[wasm_bindgen_test] fn test_param_element() { let param = new_param(); param.set_name("color"); assert_eq!(param.name(), "color", "Name of param should be 'color'."); param.set_value("purple"); assert_eq!( param.value(), "purple", "Value of param should be 'purple'." ); param.set_value_type("ref"); assert_eq!( param.value_type(), "ref", "Value type of param should be 'ref'." ); param.set_type("text/plain"); assert_eq!( param.type_(), "text/plain", "Value of param should be 'text/plain'." ); } web-sys-0.3.55/tests/wasm/performance.rs000064400000000000000000000004750072674642500163250ustar 00000000000000use wasm_bindgen::prelude::*; use wasm_bindgen_test::*; use web_sys::Performance; #[wasm_bindgen] extern "C" { #[wasm_bindgen(js_name = performance)] static PERFORMANCE: Performance; } #[wasm_bindgen_test] fn to_json() { let perf = JsValue::from(PERFORMANCE.to_json()); assert!(perf.is_object()); } web-sys-0.3.55/tests/wasm/pre_element.rs000064400000000000000000000005330072674642500163160ustar 00000000000000use wasm_bindgen::prelude::*; use wasm_bindgen_test::*; use web_sys::HtmlPreElement; #[wasm_bindgen(module = "/tests/wasm/element.js")] extern "C" { fn new_pre() -> HtmlPreElement; } #[wasm_bindgen_test] fn test_pre_element() { let pre = new_pre(); pre.set_width(150); assert_eq!(pre.width(), 150, "Pre width should be 150."); } web-sys-0.3.55/tests/wasm/progress_element.rs000064400000000000000000000014730072674642500174000ustar 00000000000000use wasm_bindgen::prelude::*; use wasm_bindgen_test::*; use web_sys::HtmlProgressElement; #[wasm_bindgen(module = "/tests/wasm/element.js")] extern "C" { fn new_progress() -> HtmlProgressElement; } #[wasm_bindgen_test] fn test_progress_element() { let progress = new_progress(); progress.set_max(150.5); assert_eq!( progress.max(), 150.5, "Maximum progress value should be 150.5." ); progress.set_value(22.); assert_eq!(progress.value(), 22., "Progress value should be 22 units."); assert_eq!( progress.position(), (22. / 150.5), "Progress position should be 22 divided by the max possible value." ); assert!( progress.labels().length() == 0, "Our simple progress bar shouldn't be associated with any labels." ); } web-sys-0.3.55/tests/wasm/quote_element.rs000064400000000000000000000007230072674642500166660ustar 00000000000000use wasm_bindgen::prelude::*; use wasm_bindgen_test::*; use web_sys::HtmlQuoteElement; #[wasm_bindgen(module = "/tests/wasm/element.js")] extern "C" { fn new_quote() -> HtmlQuoteElement; } #[wasm_bindgen_test] fn test_quote_element() { let quote = new_quote(); quote.set_cite("https://en.wikipedia.org/wiki/Rust_(programming_language)"); assert_eq!( quote.cite(), "https://en.wikipedia.org/wiki/Rust_(programming_language)" ); } web-sys-0.3.55/tests/wasm/response.js000064400000000000000000000001170072674642500156430ustar 00000000000000export function new_response() { return new Response(null, {status: 501}); } web-sys-0.3.55/tests/wasm/response.rs000064400000000000000000000030070072674642500156540ustar 00000000000000use js_sys::{ArrayBuffer, DataView}; use wasm_bindgen::prelude::*; use wasm_bindgen::JsCast; use wasm_bindgen_futures::JsFuture; use wasm_bindgen_test::*; use web_sys::Response; #[wasm_bindgen(module = "/tests/wasm/response.js")] extern "C" { fn new_response() -> Response; } #[wasm_bindgen_test] fn test_response_from_js() { let response = new_response(); assert!(!response.ok()); assert!(!response.redirected()); assert_eq!(response.status(), 501); } #[wasm_bindgen_test] async fn test_response_from_bytes() { let mut bytes: [u8; 3] = [1, 3, 5]; let response = Response::new_with_opt_u8_array(Some(&mut bytes)).unwrap(); assert!(response.ok()); assert_eq!(response.status(), 200); let buf_promise = response.array_buffer().unwrap(); let buf_val = JsFuture::from(buf_promise).await.unwrap(); assert!(buf_val.is_instance_of::()); let array_buf: ArrayBuffer = buf_val.dyn_into().unwrap(); let data_view = DataView::new(&array_buf, 0, bytes.len()); for (i, byte) in bytes.iter().enumerate() { assert_eq!(&data_view.get_uint8(i), byte); } } #[wasm_bindgen_test] async fn test_response_from_other_body() { let input = "Hello, world!"; let response_a = Response::new_with_opt_str(Some(input)).unwrap(); let body = response_a.body(); let response_b = Response::new_with_opt_readable_stream(body.as_ref()).unwrap(); let output = JsFuture::from(response_b.text().unwrap()).await.unwrap(); assert_eq!(JsValue::from_str(input), output); } web-sys-0.3.55/tests/wasm/rtc_rtp_transceiver_direction.rs000064400000000000000000000047130072674642500221450ustar 00000000000000use wasm_bindgen::{prelude::*, JsCast}; use wasm_bindgen_futures::JsFuture; use wasm_bindgen_test::*; use web_sys::{ RtcPeerConnection, RtcRtpTransceiver, RtcRtpTransceiverDirection, RtcRtpTransceiverInit, RtcSessionDescriptionInit, }; #[wasm_bindgen( inline_js = "export function is_unified_avail() { return Object.keys(RTCRtpTransceiver.prototype).indexOf('currentDirection')>-1; }" )] extern "C" { /// Available in FF since forever, in Chrome since 72, in Safari since 12.1 fn is_unified_avail() -> bool; } #[wasm_bindgen_test] async fn rtc_rtp_transceiver_direction() { if !is_unified_avail() { return; } let mut tr_init: RtcRtpTransceiverInit = RtcRtpTransceiverInit::new(); let pc1: RtcPeerConnection = RtcPeerConnection::new().unwrap(); let tr1: RtcRtpTransceiver = pc1.add_transceiver_with_str_and_init( "audio", tr_init.direction(RtcRtpTransceiverDirection::Sendonly), ); assert_eq!(tr1.direction(), RtcRtpTransceiverDirection::Sendonly); assert_eq!(tr1.current_direction(), None); let pc2: RtcPeerConnection = RtcPeerConnection::new().unwrap(); let (_, p2) = exchange_sdps(pc1, pc2).await; assert_eq!(tr1.direction(), RtcRtpTransceiverDirection::Sendonly); assert_eq!( tr1.current_direction(), Some(RtcRtpTransceiverDirection::Sendonly) ); let tr2: RtcRtpTransceiver = js_sys::try_iter(&p2.get_transceivers()) .unwrap() .unwrap() .next() .unwrap() .unwrap() .unchecked_into(); assert_eq!(tr2.direction(), RtcRtpTransceiverDirection::Recvonly); assert_eq!( tr2.current_direction(), Some(RtcRtpTransceiverDirection::Recvonly) ); } async fn exchange_sdps( p1: RtcPeerConnection, p2: RtcPeerConnection, ) -> (RtcPeerConnection, RtcPeerConnection) { let offer = JsFuture::from(p1.create_offer()).await.unwrap(); let offer = offer.unchecked_into::(); JsFuture::from(p1.set_local_description(&offer)) .await .unwrap(); JsFuture::from(p2.set_remote_description(&offer)) .await .unwrap(); let answer = JsFuture::from(p2.create_answer()).await.unwrap(); let answer = answer.unchecked_into::(); JsFuture::from(p2.set_local_description(&answer)) .await .unwrap(); JsFuture::from(p1.set_remote_description(&answer)) .await .unwrap(); (p1, p2) } web-sys-0.3.55/tests/wasm/script_element.rs000064400000000000000000000046740072674642500170460ustar 00000000000000use wasm_bindgen::prelude::*; use wasm_bindgen_test::*; use web_sys::HtmlScriptElement; #[wasm_bindgen(module = "/tests/wasm/element.js")] extern "C" { fn new_script() -> HtmlScriptElement; } #[wasm_bindgen_test] fn test_script_element() { let element = new_script(); assert_eq!(element.src(), "", "Shouldn't have a src"); element.set_src("https://example.com/script.js"); assert_eq!( element.src(), "https://example.com/script.js", "Should have a src" ); assert_eq!(element.type_(), "", "Shouldn't have a type"); element.set_type("application/javascript"); assert_eq!( element.type_(), "application/javascript", "Should have a type" ); assert!(!element.no_module(), "Shouldn't be a nomodule"); element.set_no_module(true); assert!(element.no_module(), "Should be a nomodule"); assert_eq!(element.charset(), "", "Shouldn't have a charset"); element.set_charset("UTF-8"); assert_eq!(element.charset(), "UTF-8", "Should have a charset"); assert!(element.r#async(), "Should be async"); element.set_async(false); assert!(!element.r#async(), "Shouldn't be a async"); assert!(!element.defer(), "Shouldn't be a defer"); element.set_defer(true); assert!(element.defer(), "Should be a defer"); assert!( element.cross_origin().is_none(), "Shouldn't have a crossorigin" ); element.set_cross_origin(Some("anonymous")); assert_eq!( element.cross_origin().unwrap(), "anonymous", "Should have a crossorigin" ); element.set_cross_origin(None); assert!( element.cross_origin().is_none(), "Shouldn't have a crossorigin" ); assert_eq!(element.text().unwrap(), "", "Shouldn't have text"); assert_eq!(element.set_text("text").unwrap(), ()); assert_eq!(element.text().unwrap(), "text", "Should have text"); assert_eq!(element.event(), "", "Shouldn't have an event"); element.set_event("ev"); assert_eq!(element.event(), "ev", "Should have an event"); assert_eq!(element.html_for(), "", "Shouldn't have an html_for"); element.set_html_for("hey"); assert_eq!(element.html_for(), "hey", "Should have an html_for"); assert_eq!(element.integrity(), "", "Shouldn't have an integrity"); element.set_integrity("integrity-val"); assert_eq!( element.integrity(), "integrity-val", "Should have an integrity" ); } web-sys-0.3.55/tests/wasm/select_element.rs000064400000000000000000000122730072674642500170130ustar 00000000000000use wasm_bindgen::prelude::*; use wasm_bindgen_test::*; use web_sys::HtmlSelectElement; #[wasm_bindgen(module = "/tests/wasm/element.js")] extern "C" { fn new_select_with_food_opts() -> HtmlSelectElement; } #[wasm_bindgen_test] fn test_select_element() { // Creates a select with four options. Options are ["tomato", "potato", "orange", "apple"], where // the string is the .value and .text of each option. let select = new_select_with_food_opts(); select.set_autofocus(true); assert_eq!( select.autofocus(), true, "Select element should have a true autofocus property." ); select.set_autofocus(false); assert_eq!( select.autofocus(), false, "Select element should have a false autofocus property." ); // TODO: This test currently fails on Firefox, but not Chrome. In Firefox, even though we select.set_autocomplete(), select.autocomplete() yields an empty String. // select.set_autocomplete("tomato"); // assert_eq!(select.autocomplete(), "tomato", "Select element should have a 'tomato' autocomplete property."); select.set_disabled(true); assert_eq!( select.disabled(), true, "Select element should be disabled." ); select.set_disabled(false); assert_eq!( select.disabled(), false, "Select element should not be disabled." ); assert!( select.form().is_none(), "Select should not be associated with a form." ); select.set_multiple(false); assert_eq!( select.multiple(), false, "Select element should have a false multiple property." ); select.set_multiple(true); assert_eq!( select.multiple(), true, "Select element should have a true multiple property." ); select.set_name("potato"); assert_eq!( select.name(), "potato", "Select element should have a name property of 'potato'." ); select.set_required(true); assert_eq!( select.required(), true, "Select element should be required." ); select.set_required(false); assert_eq!( select.required(), false, "Select element should not be required." ); select.set_size(432); assert_eq!( select.size(), 432, "Select element should have a size property of 432." ); // Default type seems to be "select-multiple" for the browsers I tested, but there's no guarantee // on this, so let's just make sure we get back something here. assert!( select.type_().len() > 0, "Select element should have some type." ); assert!( select.options().length() == 4, "Select element should have four options." ); select.set_length(12); assert_eq!( select.length(), 12, "Select element should have a length of 12." ); // Reset the length to four, as that's how many options we actually have. select.set_length(4); assert!( select .named_item("this should definitely find nothing") .is_none(), "Shouldn't be able to find a named item with the given string." ); assert!( select.selected_options().length() == 1, "One option should be selected by default, just by way of having items." ); select.set_selected_index(2); assert_eq!( select.selected_index(), 2, "Select element should have a selected index of 2." ); // Quote from docs: The value property sets or returns the value of the selected option in a drop-down list. select.set_value("tomato"); // Select the "tomato" option assert_eq!( select.value(), "tomato", "Select element should have no selected value." ); // This might be browser dependent, potentially rendering this test useless? Worked fine in Chrome and Firefox for now. assert_eq!( select.will_validate(), true, "Select element should not validate by default." ); assert!( select.validation_message().is_ok(), "Select element should retrieve a validation message." ); assert!( select.validity().valid(), "Our basic select should be valid." ); assert!( select.check_validity(), "Our basic select should check out as valid." ); assert!( select.report_validity(), "Our basic select should report valid." ); select.set_custom_validity("Some custom validity error."); assert!( select.labels().length() == 0, "There should be no labels associated with our select element." ); // TODO: This test won't work until this bug is fixed: https://www.w3.org/Bugs/Public/show_bug.cgi?id=20720. Sometime in the future, either remove this test or uncomment after bug is fixed. // assert!(select.named_item("tomato").is_some(), "Should be able to find the 'tomato' option before removing it."); // select.remove(0); // assert!(select.named_item("tomato").is_none(), "Shouldn't be able to find the 'tomato' option after removing it.") // TODO: As a result, we are missing a test for the remove() method. } web-sys-0.3.55/tests/wasm/slot_element.rs000064400000000000000000000011120072674642500165030ustar 00000000000000use wasm_bindgen::prelude::*; use wasm_bindgen_test::*; use web_sys::HtmlSlotElement; #[wasm_bindgen(module = "/tests/wasm/element.js")] extern "C" { fn new_slot() -> HtmlSlotElement; } #[wasm_bindgen_test] fn test_slot_element() { let _slot = new_slot(); // TODO: Test fails in Firefox, but not in Chrome. Error in Firefox is 'ReferenceError: HTMLSlotElement is not defined'. https://w3c-test.org/shadow-dom/HTMLSlotElement-interface.html // slot.set_name("root_separator"); // assert_eq!(slot.name(), "root_separator", "Slot name should 'root_separator'."); } web-sys-0.3.55/tests/wasm/span_element.rs000064400000000000000000000005040072674642500164670ustar 00000000000000use wasm_bindgen::prelude::*; use wasm_bindgen_test::*; use web_sys::HtmlSpanElement; #[wasm_bindgen(module = "/tests/wasm/element.js")] extern "C" { fn new_span() -> HtmlSpanElement; } #[wasm_bindgen_test] fn test_span_element() { let _element = new_span(); assert!(true, "Span doesn't have an interface"); } web-sys-0.3.55/tests/wasm/style_element.rs000064400000000000000000000014660072674642500166760ustar 00000000000000use wasm_bindgen::prelude::*; use wasm_bindgen_test::*; use web_sys::HtmlStyleElement; #[wasm_bindgen(module = "/tests/wasm/element.js")] extern "C" { fn new_style() -> HtmlStyleElement; } #[wasm_bindgen_test] fn test_style_element() { let element = new_style(); assert!(!element.disabled(), "Should be disabled"); element.set_disabled(true); assert!(!element.disabled(), "Should be disabled"); // Not sure why this is but Chrome in Firefox behabe the same assert_eq!(element.type_(), "", "Shouldn't have a type"); element.set_type("text/css"); assert_eq!(element.type_(), "text/css", "Should have a type"); assert_eq!(element.media(), "", "Shouldn't have a media"); element.set_media("screen, print"); assert_eq!(element.media(), "screen, print", "Should have a media"); } web-sys-0.3.55/tests/wasm/table_element.rs000064400000000000000000000105750072674642500166260ustar 00000000000000use wasm_bindgen::prelude::*; use wasm_bindgen_test::*; use web_sys::{HtmlTableCaptionElement, HtmlTableElement, HtmlTableSectionElement}; #[wasm_bindgen(module = "/tests/wasm/element.js")] extern "C" { fn new_table() -> HtmlTableElement; fn new_caption() -> HtmlTableCaptionElement; fn new_thead() -> HtmlTableSectionElement; fn new_tfoot() -> HtmlTableSectionElement; } #[wasm_bindgen_test] fn test_table_element() { let table = new_table(); assert!( table.caption().is_none(), "New table element should have no caption element." ); table.create_caption(); assert!( table.caption().is_some(), "Table element should have caption element after create caption." ); table.delete_caption(); assert!( table.caption().is_none(), "Table element should have no caption element after delete caption." ); table.set_caption(Some(&new_caption())); assert!( table.caption().is_some(), "Table element should have caption element after set." ); assert!( table.t_head().is_none(), "New table element should have no thead element." ); table.create_t_head(); assert!( table.t_head().is_some(), "Table element should have thead element after create thead." ); table.delete_t_head(); assert!( table.t_head().is_none(), "Table element should have no thead element after delete thead." ); table.set_t_head(Some(&new_thead())); assert!( table.t_head().is_some(), "Table element should have thead element after set." ); assert!( table.t_foot().is_none(), "New table element should have no tfoot element." ); table.create_t_foot(); assert!( table.t_foot().is_some(), "Table element should have tfoot element after create tfoot." ); table.delete_t_foot(); assert!( table.t_foot().is_none(), "Table element should have no tfoot element after delete tfoot." ); table.set_t_foot(Some(&new_tfoot())); assert!( table.t_foot().is_some(), "Table element should have tfoot element after set." ); assert!( table.t_bodies().length() == 0, "New table element should have no tbody element." ); table.create_t_body(); assert!( table.t_bodies().length() == 1, "Table element should have tbody element after create tbody." ); assert!( table.rows().length() == 0, "New table element should have no rows." ); table .insert_row_with_index(0) .expect("Failed to insert row at index 0"); assert!( table.rows().length() == 1, "Table element should have rows after insert row." ); table .delete_row(0) .expect("Failed to delete row at index 0"); assert!( table.rows().length() == 0, "Table element should have no rows after delete row." ); table.set_align("left"); assert_eq!( table.align(), "left", "Table element should have an align property of 'left'" ); table.set_border("10"); assert_eq!( table.border(), "10", "Table element should have a border property of '10'" ); table.set_frame("above"); assert_eq!( table.frame(), "above", "Table element should have an frame property of 'above'" ); table.set_rules("none"); assert_eq!( table.rules(), "none", "Table element should have an rules property of 'none'" ); table.set_summary("summary"); assert_eq!( table.summary(), "summary", "Table element should have an summary property of 'summary'" ); table.set_width("1000"); assert_eq!( table.width(), "1000", "Table element should have a width property of '1000'" ); table.set_bg_color("#ffffff"); assert_eq!( table.bg_color(), "#ffffff", "Table element should have an bgColor property of '#ffffff'" ); table.set_cell_padding("1"); assert_eq!( table.cell_padding(), "1", "Table element should have an cellPadding property of '1'" ); table.set_cell_spacing("1"); assert_eq!( table.cell_spacing(), "1", "Table element should have an cellSpacing property of '1'" ); } web-sys-0.3.55/tests/wasm/title_element.rs000064400000000000000000000007360072674642500166560ustar 00000000000000use wasm_bindgen::prelude::*; use wasm_bindgen_test::*; use web_sys::HtmlTitleElement; #[wasm_bindgen(module = "/tests/wasm/element.js")] extern "C" { fn new_title() -> HtmlTitleElement; } #[wasm_bindgen_test] fn title_element() { let element = new_title(); assert_eq!(element.text().unwrap(), "", "Shouldn't have an text"); assert_eq!(element.set_text("page text").unwrap(), ()); assert_eq!(element.text().unwrap(), "page text", "Should have an text"); } web-sys-0.3.55/tests/wasm/whitelisted_immutable_slices.rs000064400000000000000000000051610072674642500217470ustar 00000000000000//! When generating our web_sys APIs we default to setting slice references that //! get passed to JS as mutable in case they get mutated in JS. //! //! In certain cases we know for sure that the slice will not get mutated - for //! example when working with the WebGlRenderingContext APIs. //! //! These tests ensure that whitelisted methods do indeed accept immutable slices. //! Especially important since this whitelist is stringly typed and currently //! maintained by hand. //! //! @see https://github.com/rustwasm/wasm-bindgen/issues/1005 use wasm_bindgen::{JsCast, JsValue}; use web_sys::{WebGl2RenderingContext, WebGlRenderingContext, WebSocket}; // Ensure that our whitelisted WebGlRenderingContext methods compile with immutable slices. fn test_webgl_rendering_context_immutable_slices() { let gl = JsValue::null().unchecked_into::(); gl.vertex_attrib1fv_with_f32_array(0, &[1.]); gl.vertex_attrib2fv_with_f32_array(0, &[1.]); gl.vertex_attrib3fv_with_f32_array(0, &[1.]); gl.vertex_attrib4fv_with_f32_array(0, &[1.]); gl.uniform1fv_with_f32_array(None, &[1.]); gl.uniform2fv_with_f32_array(None, &[1.]); gl.uniform3fv_with_f32_array(None, &[1.]); gl.uniform4fv_with_f32_array(None, &[1.]); gl.uniform_matrix2fv_with_f32_array(None, false, &[1.]); gl.uniform_matrix3fv_with_f32_array(None, false, &[1.]); gl.uniform_matrix4fv_with_f32_array(None, false, &[1.]); gl.tex_image_2d_with_i32_and_i32_and_i32_and_format_and_type_and_opt_u8_array( 0, 0, 0, 0, 0, 0, 0, 0, Some(&[1]), ); gl.tex_sub_image_2d_with_i32_and_i32_and_u32_and_type_and_opt_u8_array( 0, 0, 0, 0, 0, 0, 0, 0, Some(&[1]), ); gl.compressed_tex_image_2d_with_u8_array(0, 0, 0, 0, 0, 0, &[1]); } // Ensure that our whitelisted WebGl2RenderingContext methods compile with immutable slices. fn test_webgl2_rendering_context_immutable_slices() { let gl = JsValue::null().unchecked_into::(); gl.tex_image_3d_with_opt_u8_array(0, 0, 0, 0, 0, 0, 0, 0, 0, Some(&[1])); gl.tex_sub_image_3d_with_opt_u8_array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, Some(&[1])); gl.compressed_tex_image_3d_with_u8_array(0, 0, 0, 0, 0, 0, 0, &[1]); } // Ensure that our whitelisted WebSocket methods compile with immutable slices. fn test_websocket_immutable_slices() { let ws = JsValue::null().unchecked_into::(); ws.send_with_u8_array(&[0]); } // TODO: //#[wasm_bindgen_test] //fn test_another_types_immutable_slices_here() { //} web-sys-0.3.55/tests/wasm/xpath_result.rs000064400000000000000000000011760072674642500165450ustar 00000000000000use wasm_bindgen::prelude::*; use wasm_bindgen_test::*; use web_sys::XPathResult; #[wasm_bindgen(module = "/tests/wasm/element.js")] extern "C" { fn new_xpath_result() -> XPathResult; } #[wasm_bindgen_test] fn test_xpath_result() { let xpath_result = new_xpath_result(); assert_eq!( xpath_result.result_type(), XPathResult::UNORDERED_NODE_ITERATOR_TYPE ); assert_eq!(xpath_result.invalid_iterator_state(), false); assert_eq!( xpath_result .iterate_next() .unwrap() .unwrap() .text_content() .unwrap(), "tomato" ); } web-sys-0.3.55/webidls/disabled/README.md000064400000000000000000000001240072674642500160130ustar 00000000000000These webidl files are intentionally disabled because they have not yet stabilized. web-sys-0.3.55/webidls/enabled/AbortController.webidl000064400000000000000000000010020072674642500206560ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * https://dom.spec.whatwg.org/#abortcontroller */ [Constructor(), Exposed=(Window,Worker,System)] interface AbortController { readonly attribute AbortSignal signal; undefined abort(); }; web-sys-0.3.55/webidls/enabled/AbortSignal.webidl000064400000000000000000000010030072674642500177510ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * https://dom.spec.whatwg.org/#abortsignal */ [Exposed=(Window,Worker,System)] interface AbortSignal : EventTarget { readonly attribute boolean aborted; attribute EventHandler onabort; }; web-sys-0.3.55/webidls/enabled/AbstractWorker.webidl000064400000000000000000000006100072674642500205040ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ [Exposed=(Window,Worker,System)] interface mixin AbstractWorker { attribute EventHandler onerror; }; web-sys-0.3.55/webidls/enabled/AnalyserNode.webidl000064400000000000000000000027360072674642500201460ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * https://webaudio.github.io/web-audio-api/ * * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ dictionary AnalyserOptions : AudioNodeOptions { unsigned long fftSize = 2048; double maxDecibels = -30; double minDecibels = -100; double smoothingTimeConstant = 0.8; }; [Pref="dom.webaudio.enabled", Constructor(BaseAudioContext context, optional AnalyserOptions options)] interface AnalyserNode : AudioNode { // Real-time frequency-domain data undefined getFloatFrequencyData(Float32Array array); undefined getByteFrequencyData(Uint8Array array); // Real-time waveform data undefined getFloatTimeDomainData(Float32Array array); undefined getByteTimeDomainData(Uint8Array array); [SetterThrows, Pure] attribute unsigned long fftSize; [Pure] readonly attribute unsigned long frequencyBinCount; [SetterThrows, Pure] attribute double minDecibels; [SetterThrows, Pure] attribute double maxDecibels; [SetterThrows, Pure] attribute double smoothingTimeConstant; }; web-sys-0.3.55/webidls/enabled/Animation.webidl000064400000000000000000000037610072674642500175000ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * https://drafts.csswg.org/web-animations/#animation * * Copyright © 2015 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ enum AnimationPlayState { "idle", "running", "paused", "finished" }; [Func="nsDocument::IsElementAnimateEnabled", Constructor (optional AnimationEffect? effect = null, optional AnimationTimeline? timeline)] interface Animation : EventTarget { attribute DOMString id; [Func="nsDocument::IsWebAnimationsEnabled", Pure] attribute AnimationEffect? effect; [Func="nsDocument::IsWebAnimationsEnabled"] attribute AnimationTimeline? timeline; [BinaryName="startTimeAsDouble"] attribute double? startTime; [SetterThrows, BinaryName="currentTimeAsDouble"] attribute double? currentTime; attribute double playbackRate; [BinaryName="playStateFromJS"] readonly attribute AnimationPlayState playState; [BinaryName="pendingFromJS"] readonly attribute boolean pending; [Func="nsDocument::IsWebAnimationsEnabled", Throws] readonly attribute Promise ready; [Func="nsDocument::IsWebAnimationsEnabled", Throws] readonly attribute Promise finished; attribute EventHandler onfinish; attribute EventHandler oncancel; undefined cancel (); [Throws] undefined finish (); [Throws, BinaryName="playFromJS"] undefined play (); [Throws, BinaryName="pauseFromJS"] undefined pause (); undefined updatePlaybackRate (double playbackRate); [Throws] undefined reverse (); }; // Non-standard extensions partial interface Animation { [ChromeOnly] readonly attribute boolean isRunningOnCompositor; }; web-sys-0.3.55/webidls/enabled/AnimationEffect.webidl000064400000000000000000000041130072674642500206050ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * https://drafts.csswg.org/web-animations/#animationeffectreadonly * * Copyright © 2015 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ enum FillMode { "none", "forwards", "backwards", "both", "auto" }; enum PlaybackDirection { "normal", "reverse", "alternate", "alternate-reverse" }; dictionary EffectTiming { double delay = 0.0; double endDelay = 0.0; FillMode fill = "auto"; double iterationStart = 0.0; unrestricted double iterations = 1.0; (unrestricted double or DOMString) duration = "auto"; PlaybackDirection direction = "normal"; DOMString easing = "linear"; }; dictionary OptionalEffectTiming { double delay; double endDelay; FillMode fill; double iterationStart; unrestricted double iterations; (unrestricted double or DOMString) duration; PlaybackDirection direction; DOMString easing; }; dictionary ComputedEffectTiming : EffectTiming { unrestricted double endTime = 0.0; unrestricted double activeDuration = 0.0; double? localTime = null; double? progress = null; unrestricted double? currentIteration = null; }; [Func="nsDocument::IsWebAnimationsEnabled"] interface AnimationEffect { EffectTiming getTiming(); [BinaryName="getComputedTimingAsDict"] ComputedEffectTiming getComputedTiming(); [Throws] undefined updateTiming(optional OptionalEffectTiming timing); }; web-sys-0.3.55/webidls/enabled/AnimationEvent.webidl000064400000000000000000000016760072674642500205050ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * http://www.w3.org/TR/css3-animations/#animation-events- * http://dev.w3.org/csswg/css3-animations/#animation-events- * * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ [Constructor(DOMString type, optional AnimationEventInit eventInitDict)] interface AnimationEvent : Event { readonly attribute DOMString animationName; readonly attribute float elapsedTime; readonly attribute DOMString pseudoElement; }; dictionary AnimationEventInit : EventInit { DOMString animationName = ""; float elapsedTime = 0; DOMString pseudoElement = ""; }; web-sys-0.3.55/webidls/enabled/AnimationPlaybackEvent.webidl000064400000000000000000000016120072674642500221420ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * https://drafts.csswg.org/web-animations/#animationplaybackevent * * Copyright © 2015 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ [Func="nsDocument::IsWebAnimationsEnabled", Constructor(DOMString type, optional AnimationPlaybackEventInit eventInitDict)] interface AnimationPlaybackEvent : Event { readonly attribute double? currentTime; readonly attribute double? timelineTime; }; dictionary AnimationPlaybackEventInit : EventInit { double? currentTime = null; double? timelineTime = null; }; web-sys-0.3.55/webidls/enabled/AnimationTimeline.webidl000064400000000000000000000012370072674642500211630ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * https://drafts.csswg.org/web-animations/#animationtimeline * * Copyright © 2015 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ [Func="nsDocument::IsWebAnimationsEnabled"] interface AnimationTimeline { [BinaryName="currentTimeAsDouble"] readonly attribute double? currentTime; }; web-sys-0.3.55/webidls/enabled/Attr.webidl000064400000000000000000000015700072674642500164670ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * http://www.w3.org/TR/2012/WD-dom-20120105/ * * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ interface Attr : Node { readonly attribute DOMString localName; [CEReactions, SetterNeedsSubjectPrincipal=NonSystem, SetterThrows] attribute DOMString value; [Constant] readonly attribute DOMString name; [Constant] readonly attribute DOMString? namespaceURI; [Constant] readonly attribute DOMString? prefix; readonly attribute boolean specified; }; web-sys-0.3.55/webidls/enabled/AudioBuffer.webidl000064400000000000000000000024110072674642500177430ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * https://webaudio.github.io/web-audio-api/ * * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ dictionary AudioBufferOptions { unsigned long numberOfChannels = 1; required unsigned long length; required float sampleRate; }; [Pref="dom.webaudio.enabled", Constructor(AudioBufferOptions options)] interface AudioBuffer { readonly attribute float sampleRate; readonly attribute unsigned long length; // in seconds readonly attribute double duration; readonly attribute unsigned long numberOfChannels; [Throws] Float32Array getChannelData(unsigned long channel); [Throws] undefined copyFromChannel(Float32Array destination, long channelNumber, optional unsigned long startInChannel = 0); [Throws] undefined copyToChannel(Float32Array source, long channelNumber, optional unsigned long startInChannel = 0); }; web-sys-0.3.55/webidls/enabled/AudioBufferSourceNode.webidl000064400000000000000000000026010072674642500217330ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * https://webaudio.github.io/web-audio-api/ * * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ dictionary AudioBufferSourceOptions { AudioBuffer? buffer; float detune = 0; boolean loop = false; double loopEnd = 0; double loopStart = 0; float playbackRate = 1; }; [Pref="dom.webaudio.enabled", Constructor(BaseAudioContext context, optional AudioBufferSourceOptions options)] interface AudioBufferSourceNode : AudioScheduledSourceNode { attribute AudioBuffer? buffer; readonly attribute AudioParam playbackRate; readonly attribute AudioParam detune; attribute boolean loop; attribute double loopStart; attribute double loopEnd; attribute EventHandler onended; [Throws] undefined start(optional double when = 0, optional double grainOffset = 0, optional double grainDuration); [Throws] undefined stop (optional double when = 0); }; web-sys-0.3.55/webidls/enabled/AudioContext.webidl000064400000000000000000000026300072674642500201610ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * https://webaudio.github.io/web-audio-api/ * * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ dictionary AudioContextOptions { float sampleRate = 0; }; [Pref="dom.webaudio.enabled", Constructor(optional AudioContextOptions contextOptions)] interface AudioContext : BaseAudioContext { // Bug 1324545: readonly attribute double outputLatency; // Bug 1324545: AudioTimestamp getOutputTimestamp (); [Throws] Promise suspend(); [Throws] Promise close(); [NewObject, Throws] MediaElementAudioSourceNode createMediaElementSource(HTMLMediaElement mediaElement); [NewObject, Throws] MediaStreamAudioSourceNode createMediaStreamSource(MediaStream mediaStream); // Bug 1324548: MediaStreamTrackAudioSourceNode createMediaStreamTrackSource (AudioMediaStreamTrack mediaStreamTrack); [NewObject, Throws] MediaStreamAudioDestinationNode createMediaStreamDestination(); }; AudioContext includes rustBaseAudioContext; web-sys-0.3.55/webidls/enabled/AudioDestinationNode.webidl000064400000000000000000000011710072674642500216230ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * https://webaudio.github.io/web-audio-api/ * * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ [Pref="dom.webaudio.enabled"] interface AudioDestinationNode : AudioNode { readonly attribute unsigned long maxChannelCount; }; web-sys-0.3.55/webidls/enabled/AudioListener.webidl000064400000000000000000000020630072674642500203220ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * https://webaudio.github.io/web-audio-api/ * * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ [Pref="dom.webaudio.enabled"] interface AudioListener { // same as OpenAL (default 1) [Deprecated="PannerNodeDoppler"] attribute double dopplerFactor; // in meters / second (default 343.3) [Deprecated="PannerNodeDoppler"] attribute double speedOfSound; // Uses a 3D cartesian coordinate system undefined setPosition(double x, double y, double z); undefined setOrientation(double x, double y, double z, double xUp, double yUp, double zUp); [Deprecated="PannerNodeDoppler"] undefined setVelocity(double x, double y, double z); }; web-sys-0.3.55/webidls/enabled/AudioNode.webidl000064400000000000000000000040040072674642500174170ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * https://webaudio.github.io/web-audio-api/ * * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ enum ChannelCountMode { "max", "clamped-max", "explicit" }; enum ChannelInterpretation { "speakers", "discrete" }; dictionary AudioNodeOptions { unsigned long channelCount; ChannelCountMode channelCountMode; ChannelInterpretation channelInterpretation; }; [Pref="dom.webaudio.enabled"] interface AudioNode : EventTarget { [Throws] AudioNode connect(AudioNode destination, optional unsigned long output = 0, optional unsigned long input = 0); [Throws] undefined connect(AudioParam destination, optional unsigned long output = 0); [Throws] undefined disconnect(); [Throws] undefined disconnect(unsigned long output); [Throws] undefined disconnect(AudioNode destination); [Throws] undefined disconnect(AudioNode destination, unsigned long output); [Throws] undefined disconnect(AudioNode destination, unsigned long output, unsigned long input); [Throws] undefined disconnect(AudioParam destination); [Throws] undefined disconnect(AudioParam destination, unsigned long output); readonly attribute BaseAudioContext context; readonly attribute unsigned long numberOfInputs; readonly attribute unsigned long numberOfOutputs; // Channel up-mixing and down-mixing rules for all inputs. [SetterThrows] attribute unsigned long channelCount; [SetterThrows] attribute ChannelCountMode channelCountMode; [SetterThrows] attribute ChannelInterpretation channelInterpretation; }; web-sys-0.3.55/webidls/enabled/AudioParam.webidl000064400000000000000000000031540072674642500175770ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * https://webaudio.github.io/web-audio-api/ * * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ [Pref="dom.webaudio.enabled"] interface AudioParam { attribute float value; readonly attribute float defaultValue; readonly attribute float minValue; readonly attribute float maxValue; // Parameter automation. [Throws] AudioParam setValueAtTime(float value, double startTime); [Throws] AudioParam linearRampToValueAtTime(float value, double endTime); [Throws] AudioParam exponentialRampToValueAtTime(float value, double endTime); // Exponentially approach the target value with a rate having the given time constant. [Throws] AudioParam setTargetAtTime(float target, double startTime, double timeConstant); // Sets an array of arbitrary parameter values starting at time for the given duration. // The number of values will be scaled to fit into the desired duration. [Throws] AudioParam setValueCurveAtTime(Float32Array values, double startTime, double duration); // Cancels all scheduled parameter changes with times greater than or equal to startTime. [Throws] AudioParam cancelScheduledValues(double startTime); }; web-sys-0.3.55/webidls/enabled/AudioParamMap.webidl000064400000000000000000000011540072674642500202330ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * https://webaudio.github.io/web-audio-api/#audioparammap * * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ [Pref="dom.audioworklet.enabled"] interface AudioParamMap { readonly maplike; }; web-sys-0.3.55/webidls/enabled/AudioProcessingEvent.webidl000064400000000000000000000013350072674642500216540ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * https://webaudio.github.io/web-audio-api/ * * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ [Pref="dom.webaudio.enabled"] interface AudioProcessingEvent : Event { readonly attribute double playbackTime; [Throws] readonly attribute AudioBuffer inputBuffer; [Throws] readonly attribute AudioBuffer outputBuffer; }; web-sys-0.3.55/webidls/enabled/AudioScheduledSourceNode.webidl000064400000000000000000000016660072674642500224340ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * https://webaudio.github.io/web-audio-api/#idl-def-AudioScheduledSourceNode * * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ [RustDeprecated="doesn't exist in Safari, use parent class methods instead"] interface AudioScheduledSourceNode : AudioNode { }; AudioScheduledSourceNode includes rustAudioScheduledSourceNode; interface mixin rustAudioScheduledSourceNode { attribute EventHandler onended; [Throws] undefined start (optional double when = 0); [Throws] undefined stop (optional double when = 0); }; web-sys-0.3.55/webidls/enabled/AudioStreamTrack.webidl000064400000000000000000000012460072674642500207570ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * http://dev.w3.org/2011/webrtc/editor/getusermedia.html * * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ // [Constructor(optional MediaTrackConstraints audioConstraints)] interface AudioStreamTrack : MediaStreamTrack { // static sequence getSourceIds (); }; web-sys-0.3.55/webidls/enabled/AudioTrack.webidl000064400000000000000000000011710072674642500176000ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * http://www.whatwg.org/specs/web-apps/current-work/#audiotrack */ [Pref="media.track.enabled"] interface AudioTrack { readonly attribute DOMString id; readonly attribute DOMString kind; readonly attribute DOMString label; readonly attribute DOMString language; attribute boolean enabled; }; web-sys-0.3.55/webidls/enabled/AudioTrackList.webidl000064400000000000000000000013360072674642500204370ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * http://www.whatwg.org/specs/web-apps/current-work/#audiotracklist */ [Pref="media.track.enabled"] interface AudioTrackList : EventTarget { readonly attribute unsigned long length; getter AudioTrack (unsigned long index); AudioTrack? getTrackById(DOMString id); attribute EventHandler onchange; attribute EventHandler onaddtrack; attribute EventHandler onremovetrack; }; web-sys-0.3.55/webidls/enabled/AudioWorklet.webidl000064400000000000000000000011300072674642500201560ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * https://webaudio.github.io/web-audio-api/ * * Copyright © 2018 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ [Exposed=Window, SecureContext, Pref="dom.audioworklet.enabled"] interface AudioWorklet : Worklet { };web-sys-0.3.55/webidls/enabled/AudioWorkletGlobalScope.webidl000064400000000000000000000013350072674642500223000ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * https://webaudio.github.io/web-audio-api/#audioworkletglobalscope */ [Global=(Worklet,AudioWorklet),Exposed=AudioWorklet] interface AudioWorkletGlobalScope : WorkletGlobalScope { undefined registerProcessor (DOMString name, VoidFunction processorCtor); readonly attribute unsigned long long currentFrame; readonly attribute double currentTime; readonly attribute float sampleRate; }; web-sys-0.3.55/webidls/enabled/AudioWorkletNode.webidl000064400000000000000000000023770072674642500210020ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * https://webaudio.github.io/web-audio-api/ * * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ dictionary AudioWorkletNodeOptions : AudioNodeOptions { unsigned long numberOfInputs = 1; unsigned long numberOfOutputs = 1; sequence outputChannelCount; record parameterData; object? processorOptions = null; }; [SecureContext, Pref="dom.audioworklet.enabled", Constructor (BaseAudioContext context, DOMString name, optional AudioWorkletNodeOptions options)] interface AudioWorkletNode : AudioNode { [Throws] readonly attribute AudioParamMap parameters; [Throws] readonly attribute MessagePort port; attribute EventHandler onprocessorerror; }; web-sys-0.3.55/webidls/enabled/AudioWorkletProcessor.webidl000064400000000000000000000012630072674642500220650ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * https://webaudio.github.io/web-audio-api/#audioworkletprocessor * * Copyright © 2018 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ [Exposed=AudioWorklet, Constructor (optional AudioWorkletNodeOptions options)] interface AudioWorkletProcessor { [Throws] readonly attribute MessagePort port; }; web-sys-0.3.55/webidls/enabled/AutocompleteInfo.webidl000064400000000000000000000010420072674642500210240ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ /** * This dictionary is used for the input, textarea and select element's * getAutocompleteInfo method. */ dictionary AutocompleteInfo { DOMString section = ""; DOMString addressType = ""; DOMString contactType = ""; DOMString fieldName = ""; }; web-sys-0.3.55/webidls/enabled/BarProp.webidl000064400000000000000000000005700072674642500171210ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ interface BarProp { [Throws, NeedsCallerType] attribute boolean visible; }; web-sys-0.3.55/webidls/enabled/BaseAudioContext.webidl000064400000000000000000000072750072674642500207660ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * https://webaudio.github.io/web-audio-api/#idl-def-BaseAudioContext * * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ callback DecodeSuccessCallback = undefined (AudioBuffer decodedData); callback DecodeErrorCallback = undefined (DOMException error); enum AudioContextState { "suspended", "running", "closed" }; [RustDeprecated="doesn't exist in Safari, use `AudioContext` instead now"] interface BaseAudioContext : EventTarget { }; BaseAudioContext includes rustBaseAudioContext; interface mixin rustBaseAudioContext { readonly attribute AudioDestinationNode destination; readonly attribute float sampleRate; readonly attribute double currentTime; readonly attribute AudioListener listener; readonly attribute AudioContextState state; [Throws, SameObject, SecureContext, Pref="dom.audioworklet.enabled"] readonly attribute AudioWorklet audioWorklet; // Bug 1324552: readonly attribute double baseLatency; [Throws] Promise resume(); attribute EventHandler onstatechange; [NewObject, Throws] AudioBuffer createBuffer (unsigned long numberOfChannels, unsigned long length, float sampleRate); [Throws] Promise decodeAudioData(ArrayBuffer audioData, optional DecodeSuccessCallback successCallback, optional DecodeErrorCallback errorCallback); // AudioNode creation [NewObject, Throws] AudioBufferSourceNode createBufferSource(); [NewObject, Throws] ConstantSourceNode createConstantSource(); [NewObject, Throws] ScriptProcessorNode createScriptProcessor(optional unsigned long bufferSize = 0, optional unsigned long numberOfInputChannels = 2, optional unsigned long numberOfOutputChannels = 2); [NewObject, Throws] AnalyserNode createAnalyser(); [NewObject, Throws] GainNode createGain(); [NewObject, Throws] DelayNode createDelay(optional double maxDelayTime = 1); // TODO: no = 1 [NewObject, Throws] BiquadFilterNode createBiquadFilter(); [NewObject, Throws] IIRFilterNode createIIRFilter(sequence feedforward, sequence feedback); [NewObject, Throws] WaveShaperNode createWaveShaper(); [NewObject, Throws] PannerNode createPanner(); [NewObject, Throws] StereoPannerNode createStereoPanner(); [NewObject, Throws] ConvolverNode createConvolver(); [NewObject, Throws] ChannelSplitterNode createChannelSplitter(optional unsigned long numberOfOutputs = 6); [NewObject, Throws] ChannelMergerNode createChannelMerger(optional unsigned long numberOfInputs = 6); [NewObject, Throws] DynamicsCompressorNode createDynamicsCompressor(); [NewObject, Throws] OscillatorNode createOscillator(); [NewObject, Throws] PeriodicWave createPeriodicWave(Float32Array real, Float32Array imag, optional PeriodicWaveConstraints constraints); }; web-sys-0.3.55/webidls/enabled/BaseKeyframeTypes.webidl000064400000000000000000000036630072674642500211450ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * https://drafts.csswg.org/web-animations/#the-compositeoperation-enumeration * https://drafts.csswg.org/web-animations/#dictdef-basepropertyindexedkeyframe * https://drafts.csswg.org/web-animations/#dictdef-basekeyframe * https://drafts.csswg.org/web-animations/#dictdef-basecomputedkeyframe * * Copyright © 2016 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ enum CompositeOperation { "replace", "add", "accumulate" }; // The following dictionary types are not referred to by other .webidl files, // but we use it for manual JS->IDL and IDL->JS conversions in KeyframeEffect's // implementation. dictionary BasePropertyIndexedKeyframe { (double? or sequence) offset = []; (DOMString or sequence) easing = []; (CompositeOperation? or sequence) composite = []; }; dictionary BaseKeyframe { double? offset = null; DOMString easing = "linear"; CompositeOperation? composite = null; // Non-standard extensions // Member to allow testing when StyleAnimationValue::ComputeValues fails. // // Note that we currently only apply this to shorthand properties since // it's easier to annotate shorthand property values and because we have // only ever observed ComputeValues failing on shorthand values. // // Bug 1216844 should remove this member since after that bug is fixed we will // have a well-defined behavior to use when animation endpoints are not // available. [ChromeOnly] boolean simulateComputeValuesFailure = false; }; dictionary BaseComputedKeyframe : BaseKeyframe { double computedOffset; }; web-sys-0.3.55/webidls/enabled/BasicCardPayment.webidl000064400000000000000000000014710072674642500207260ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this WebIDL file is * https://www.w3.org/TR/payment-request/#paymentrequest-interface */ enum BasicCardType { "credit", "debit", "prepaid" }; dictionary BasicCardRequest { sequence supportedNetworks; sequence supportedTypes; }; dictionary BasicCardResponse { DOMString cardholderName; required DOMString cardNumber; DOMString expiryMonth; DOMString expiryYear; DOMString cardSecurityCode; PaymentAddress? billingAddress; }; web-sys-0.3.55/webidls/enabled/BatteryManager.webidl000064400000000000000000000017620072674642500204650ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * http://www.w3.org/TR/battery-status/ * * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ interface BatteryManager : EventTarget { readonly attribute boolean charging; readonly attribute unrestricted double chargingTime; readonly attribute unrestricted double dischargingTime; readonly attribute double level; attribute EventHandler onchargingchange; attribute EventHandler onchargingtimechange; attribute EventHandler ondischargingtimechange; attribute EventHandler onlevelchange; }; web-sys-0.3.55/webidls/enabled/BeforeUnloadEvent.webidl000064400000000000000000000007540072674642500211270ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * For more information on this interface, please see * http://www.whatwg.org/specs/web-apps/current-work/#beforeunloadevent */ interface BeforeUnloadEvent : Event { attribute DOMString returnValue; }; web-sys-0.3.55/webidls/enabled/BiquadFilterNode.webidl000064400000000000000000000027230072674642500207370ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * https://webaudio.github.io/web-audio-api/ * * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ enum BiquadFilterType { "lowpass", "highpass", "bandpass", "lowshelf", "highshelf", "peaking", "notch", "allpass" }; dictionary BiquadFilterOptions : AudioNodeOptions { BiquadFilterType type = "lowpass"; float Q = 1; float detune = 0; float frequency = 350; float gain = 0; }; [Pref="dom.webaudio.enabled", Constructor(BaseAudioContext context, optional BiquadFilterOptions options)] interface BiquadFilterNode : AudioNode { attribute BiquadFilterType type; readonly attribute AudioParam frequency; // in Hertz readonly attribute AudioParam detune; // in Cents readonly attribute AudioParam Q; // Quality factor readonly attribute AudioParam gain; // in Decibels undefined getFrequencyResponse(Float32Array frequencyHz, Float32Array magResponse, Float32Array phaseResponse); }; web-sys-0.3.55/webidls/enabled/Blob.webidl000064400000000000000000000024030072674642500164270ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * https://w3c.github.io/FileAPI/#blob * * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ typedef (BufferSource or Blob or USVString) BlobPart; [Constructor(optional sequence blobParts, optional BlobPropertyBag options), Exposed=(Window,Worker)] interface Blob { [GetterThrows] readonly attribute unsigned long long size; readonly attribute DOMString type; //slice Blob into byte-ranged chunks [Throws] Blob slice([Clamp] optional long long start, [Clamp] optional long long end, optional DOMString contentType); // read from the Blob. [NewObject] ReadableStream stream(); [NewObject] Promise text(); [NewObject] Promise arrayBuffer(); }; enum EndingTypes { "transparent", "native" }; dictionary BlobPropertyBag { DOMString type = ""; EndingTypes endings = "transparent"; }; web-sys-0.3.55/webidls/enabled/BlobEvent.webidl000064400000000000000000000007450072674642500174400ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ [Constructor(DOMString type, optional BlobEventInit eventInitDict)] interface BlobEvent : Event { readonly attribute Blob? data; }; dictionary BlobEventInit : EventInit { Blob? data = null; }; web-sys-0.3.55/webidls/enabled/BroadcastChannel.webidl000064400000000000000000000012560072674642500207510ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * For more information on this interface, please see * https://html.spec.whatwg.org/#broadcastchannel */ [Constructor(DOMString channel), Exposed=(Window,Worker)] interface BroadcastChannel : EventTarget { readonly attribute DOMString name; [Throws] undefined postMessage(any message); undefined close(); attribute EventHandler onmessage; attribute EventHandler onmessageerror; }; web-sys-0.3.55/webidls/enabled/BrowserElement.webidl000064400000000000000000000077100072674642500205140ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ callback BrowserElementNextPaintEventCallback = undefined (); enum BrowserFindCaseSensitivity { "case-sensitive", "case-insensitive" }; enum BrowserFindDirection { "forward", "backward" }; dictionary BrowserElementDownloadOptions { DOMString? filename; DOMString? referrer; }; dictionary BrowserElementExecuteScriptOptions { DOMString? url; DOMString? origin; }; interface mixin BrowserElement { }; BrowserElement includes BrowserElementCommon; BrowserElement includes BrowserElementPrivileged; interface mixin BrowserElementCommon { [Throws, Pref="dom.mozBrowserFramesEnabled", ChromeOnly] undefined addNextPaintListener(BrowserElementNextPaintEventCallback listener); [Throws, Pref="dom.mozBrowserFramesEnabled", ChromeOnly] undefined removeNextPaintListener(BrowserElementNextPaintEventCallback listener); }; interface mixin BrowserElementPrivileged { [Throws, Pref="dom.mozBrowserFramesEnabled", ChromeOnly] undefined sendMouseEvent(DOMString type, unsigned long x, unsigned long y, unsigned long button, unsigned long clickCount, unsigned long modifiers); [Throws, Pref="dom.mozBrowserFramesEnabled", Func="TouchEvent::PrefEnabled", ChromeOnly] undefined sendTouchEvent(DOMString type, sequence identifiers, sequence x, sequence y, sequence rx, sequence ry, sequence rotationAngles, sequence forces, unsigned long count, unsigned long modifiers); [Throws, Pref="dom.mozBrowserFramesEnabled", ChromeOnly] undefined goBack(); [Throws, Pref="dom.mozBrowserFramesEnabled", ChromeOnly] undefined goForward(); [Throws, Pref="dom.mozBrowserFramesEnabled", ChromeOnly] undefined reload(optional boolean hardReload = false); [Throws, Pref="dom.mozBrowserFramesEnabled", ChromeOnly] undefined stop(); [Throws, Pref="dom.mozBrowserFramesEnabled", ChromeOnly] DOMRequest download(DOMString url, optional BrowserElementDownloadOptions options); [Throws, Pref="dom.mozBrowserFramesEnabled", ChromeOnly] DOMRequest purgeHistory(); [Throws, Pref="dom.mozBrowserFramesEnabled", ChromeOnly] DOMRequest getScreenshot([EnforceRange] unsigned long width, [EnforceRange] unsigned long height, optional DOMString mimeType=""); [Throws, Pref="dom.mozBrowserFramesEnabled", ChromeOnly] undefined zoom(float zoom); [Throws, Pref="dom.mozBrowserFramesEnabled", ChromeOnly] DOMRequest getCanGoBack(); [Throws, Pref="dom.mozBrowserFramesEnabled", ChromeOnly] DOMRequest getCanGoForward(); [Throws, Pref="dom.mozBrowserFramesEnabled", ChromeOnly] DOMRequest getContentDimensions(); [Throws, Pref="dom.mozBrowserFramesEnabled", ChromeOnly] undefined findAll(DOMString searchString, BrowserFindCaseSensitivity caseSensitivity); [Throws, Pref="dom.mozBrowserFramesEnabled", ChromeOnly] undefined findNext(BrowserFindDirection direction); [Throws, Pref="dom.mozBrowserFramesEnabled", ChromeOnly] undefined clearMatch(); [Throws, Pref="dom.mozBrowserFramesEnabled", ChromeOnly] DOMRequest executeScript(DOMString script, optional BrowserElementExecuteScriptOptions options); [Throws, Pref="dom.mozBrowserFramesEnabled", ChromeOnly] DOMRequest getWebManifest(); }; web-sys-0.3.55/webidls/enabled/BrowserElementDictionaries.webidl000064400000000000000000000011740072674642500230500ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ dictionary OpenWindowEventDetail { DOMString url = ""; DOMString name = ""; DOMString features = ""; Node? frameElement = null; }; dictionary DOMWindowResizeEventDetail { long width = 0; long height = 0; }; web-sys-0.3.55/webidls/enabled/BrowserFeedWriter.webidl000064400000000000000000000011650072674642500211610ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ [JSImplementation="@mozilla.org/browser/feeds/result-writer;1", Func="mozilla::FeedWriterEnabled::IsEnabled", Constructor] interface BrowserFeedWriter { /** * Writes the feed content, assumes that the feed writer is initialized. */ undefined writeContent(); /** * Uninitialize the feed writer. */ undefined close(); }; web-sys-0.3.55/webidls/enabled/CDATASection.webidl000064400000000000000000000005020072674642500177100ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ interface CDATASection : Text { }; web-sys-0.3.55/webidls/enabled/CSPDictionaries.webidl000064400000000000000000000022310072674642500205330ustar 00000000000000/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ /** * Dictionary used to display CSP info. */ dictionary CSP { boolean report-only = false; sequence default-src; sequence script-src; sequence object-src; sequence style-src; sequence img-src; sequence media-src; sequence frame-src; sequence font-src; sequence connect-src; sequence report-uri; sequence frame-ancestors; // sequence reflected-xss; // not supported in Firefox sequence base-uri; sequence form-action; sequence referrer; sequence manifest-src; sequence upgrade-insecure-requests; sequence child-src; sequence block-all-mixed-content; sequence require-sri-for; sequence sandbox; sequence worker-src; }; dictionary CSPPolicies { sequence csp-policies; }; web-sys-0.3.55/webidls/enabled/CSPReport.webidl000064400000000000000000000012130072674642500173700ustar 00000000000000/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ /** * This dictionary holds the parameters used to send * CSP reports in JSON format. */ dictionary CSPReportProperties { DOMString document-uri = ""; DOMString referrer = ""; DOMString blocked-uri = ""; DOMString violated-directive = ""; DOMString original-policy= ""; DOMString source-file; DOMString script-sample; long line-number; long column-number; }; dictionary CSPReport { CSPReportProperties csp-report; }; web-sys-0.3.55/webidls/enabled/CSS.webidl000064400000000000000000000014770072674642500162130ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * http://dev.w3.org/csswg/css3-conditional/ * http://dev.w3.org/csswg/cssom/#the-css.escape%28%29-method * * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ namespace CSS { [Throws] boolean supports(DOMString property, DOMString value); [Throws] boolean supports(DOMString conditionText); }; // http://dev.w3.org/csswg/cssom/#the-css.escape%28%29-method partial namespace CSS { DOMString escape(DOMString ident); }; web-sys-0.3.55/webidls/enabled/CSSAnimation.webidl000064400000000000000000000012760072674642500200500ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * http://dev.w3.org/csswg/css-animations-2/#the-CSSAnimation-interface * * Copyright © 2015 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ [Func="nsDocument::IsWebAnimationsEnabled", HeaderFile="nsAnimationManager.h"] interface CSSAnimation : Animation { [Constant] readonly attribute DOMString animationName; }; web-sys-0.3.55/webidls/enabled/CSSConditionRule.webidl000064400000000000000000000011040072674642500206750ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * https://drafts.csswg.org/css-conditional/#the-cssconditionrule-interface */ // https://drafts.csswg.org/css-conditional/#the-cssconditionrule-interface interface CSSConditionRule : CSSGroupingRule { [SetterThrows] attribute DOMString conditionText; }; web-sys-0.3.55/webidls/enabled/CSSCounterStyleRule.webidl000064400000000000000000000015540072674642500214200ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * https://drafts.csswg.org/css-counter-styles-3/#the-csscounterstylerule-interface */ // https://drafts.csswg.org/css-counter-styles-3/#the-csscounterstylerule-interface interface CSSCounterStyleRule : CSSRule { attribute DOMString name; attribute DOMString system; attribute DOMString symbols; attribute DOMString additiveSymbols; attribute DOMString negative; attribute DOMString prefix; attribute DOMString suffix; attribute DOMString range; attribute DOMString pad; attribute DOMString speakAs; attribute DOMString fallback; }; web-sys-0.3.55/webidls/enabled/CSSFontFaceRule.webidl000064400000000000000000000011730072674642500204420ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * https://drafts.csswg.org/css-fonts/#om-fontface */ // https://drafts.csswg.org/css-fonts/#om-fontface // But we implement a very old draft, apparently.... // See bug 1058408 for implementing the current spec. interface CSSFontFaceRule : CSSRule { [SameObject] readonly attribute CSSStyleDeclaration style; }; web-sys-0.3.55/webidls/enabled/CSSFontFeatureValuesRule.webidl000064400000000000000000000021370072674642500223600ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * https://drafts.csswg.org/css-fonts/#om-fontfeaturevalues */ // https://drafts.csswg.org/css-fonts/#om-fontfeaturevalues // but we don't implement anything remotely resembling the spec. interface CSSFontFeatureValuesRule : CSSRule { [SetterThrows] attribute DOMString fontFamily; // Not yet implemented // readonly attribute CSSFontFeatureValuesMap annotation; // readonly attribute CSSFontFeatureValuesMap ornaments; // readonly attribute CSSFontFeatureValuesMap stylistic; // readonly attribute CSSFontFeatureValuesMap swash; // readonly attribute CSSFontFeatureValuesMap characterVariant; // readonly attribute CSSFontFeatureValuesMap styleset; }; partial interface CSSFontFeatureValuesRule { // Gecko addition? [SetterThrows] attribute DOMString valueText; }; web-sys-0.3.55/webidls/enabled/CSSGroupingRule.webidl000064400000000000000000000012340072674642500205450ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * https://drafts.csswg.org/cssom/#cssgroupingrule */ // https://drafts.csswg.org/cssom/#cssgroupingrule interface CSSGroupingRule : CSSRule { [SameObject] readonly attribute CSSRuleList cssRules; [Throws] unsigned long insertRule(DOMString rule, optional unsigned long index = 0); [Throws] undefined deleteRule(unsigned long index); }; web-sys-0.3.55/webidls/enabled/CSSImportRule.webidl000064400000000000000000000017650072674642500202360ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * https://drafts.csswg.org/cssom/#cssimportrule */ // https://drafts.csswg.org/cssom/#cssimportrule interface CSSImportRule : CSSRule { readonly attribute DOMString href; // Per spec, the .media is never null, but in our implementation it can // be since stylesheet can be null, and in Stylo, media is derived from // the stylesheet. See . [SameObject, PutForwards=mediaText] readonly attribute MediaList? media; // Per spec, the .styleSheet is never null, but in our implementation it can // be. See . [SameObject] readonly attribute CSSStyleSheet? styleSheet; }; web-sys-0.3.55/webidls/enabled/CSSKeyframeRule.webidl000064400000000000000000000011330072674642500205140ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * https://drafts.csswg.org/css-animations/#interface-csskeyframerule */ // https://drafts.csswg.org/css-animations/#interface-csskeyframerule interface CSSKeyframeRule : CSSRule { attribute DOMString keyText; readonly attribute CSSStyleDeclaration style; }; web-sys-0.3.55/webidls/enabled/CSSKeyframesRule.webidl000064400000000000000000000013460072674642500207050ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * https://drafts.csswg.org/css-animations/#interface-csskeyframesrule */ // https://drafts.csswg.org/css-animations/#interface-csskeyframesrule interface CSSKeyframesRule : CSSRule { attribute DOMString name; readonly attribute CSSRuleList cssRules; undefined appendRule(DOMString rule); undefined deleteRule(DOMString select); CSSKeyframeRule? findRule(DOMString select); }; web-sys-0.3.55/webidls/enabled/CSSMediaRule.webidl000064400000000000000000000015250072674642500177750ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * https://drafts.csswg.org/cssom/#the-cssmediarule-interface * https://drafts.csswg.org/css-conditional/#the-cssmediarule-interface */ // https://drafts.csswg.org/cssom/#the-cssmediarule-interface and // https://drafts.csswg.org/css-conditional/#the-cssmediarule-interface // except they disagree with each other. We're taking the inheritance from // css-conditional and the PutForwards behavior from cssom. interface CSSMediaRule : CSSConditionRule { [SameObject, PutForwards=mediaText] readonly attribute MediaList media; }; web-sys-0.3.55/webidls/enabled/CSSMozDocumentRule.webidl000064400000000000000000000004360072674642500212220ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ web-sys-0.3.55/webidls/enabled/CSSNamespaceRule.webidl000064400000000000000000000010520072674642500206450ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * https://drafts.csswg.org/cssom/#cssnamespacerule */ // https://drafts.csswg.org/cssom/#cssnamespacerule interface CSSNamespaceRule : CSSRule { readonly attribute DOMString namespaceURI; readonly attribute DOMString prefix; }; web-sys-0.3.55/webidls/enabled/CSSPageRule.webidl000064400000000000000000000013450072674642500176320ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * https://drafts.csswg.org/cssom/#the-csspagerule-interface */ // https://drafts.csswg.org/cssom/#the-csspagerule-interface // Per spec, this should inherit from CSSGroupingRule, but we don't // implement this yet. interface CSSPageRule : CSSRule { // selectorText not implemented yet // attribute DOMString selectorText; [SameObject, PutForwards=cssText] readonly attribute CSSStyleDeclaration style; }; web-sys-0.3.55/webidls/enabled/CSSPseudoElement.webidl000064400000000000000000000021130072674642500206710ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * https://drafts.csswg.org/css-pseudo/#CSSPseudoElement-interface * https://drafts.csswg.org/cssom/#pseudoelement * * Copyright © 2015 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ // Both CSSOM and CSS Pseudo-Elements 4 provide contradictory definitions for // this interface. // What we implement here is a minimal subset of the two definitions which we // ship behind a pref until the specification issues have been resolved. [Func="nsDocument::IsWebAnimationsEnabled"] interface CSSPseudoElement { readonly attribute DOMString type; readonly attribute Element parentElement; }; // https://drafts.csswg.org/web-animations/#extensions-to-the-pseudoelement-interface CSSPseudoElement includes Animatable; web-sys-0.3.55/webidls/enabled/CSSRule.webidl000064400000000000000000000041450072674642500170360ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * https://drafts.csswg.org/cssom/#the-cssrule-interface * https://drafts.csswg.org/css-animations/#interface-cssrule * https://drafts.csswg.org/css-counter-styles-3/#extentions-to-cssrule-interface * https://drafts.csswg.org/css-conditional-3/#extentions-to-cssrule-interface * https://drafts.csswg.org/css-fonts-3/#om-fontfeaturevalues */ // https://drafts.csswg.org/cssom/#the-cssrule-interface interface CSSRule { const unsigned short STYLE_RULE = 1; const unsigned short CHARSET_RULE = 2; // historical const unsigned short IMPORT_RULE = 3; const unsigned short MEDIA_RULE = 4; const unsigned short FONT_FACE_RULE = 5; const unsigned short PAGE_RULE = 6; // FIXME: We don't support MARGIN_RULE yet. // XXXbz Should we expose the constant anyway? // const unsigned short MARGIN_RULE = 9; const unsigned short NAMESPACE_RULE = 10; readonly attribute unsigned short type; attribute DOMString cssText; readonly attribute CSSRule? parentRule; readonly attribute CSSStyleSheet? parentStyleSheet; }; // https://drafts.csswg.org/css-animations/#interface-cssrule partial interface CSSRule { const unsigned short KEYFRAMES_RULE = 7; const unsigned short KEYFRAME_RULE = 8; }; // https://drafts.csswg.org/css-counter-styles-3/#extentions-to-cssrule-interface partial interface CSSRule { const unsigned short COUNTER_STYLE_RULE = 11; }; // https://drafts.csswg.org/css-conditional-3/#extentions-to-cssrule-interface partial interface CSSRule { const unsigned short SUPPORTS_RULE = 12; }; // Non-standard extension for @-moz-document rules. partial interface CSSRule { [ChromeOnly] const unsigned short DOCUMENT_RULE = 13; }; // https://drafts.csswg.org/css-fonts-3/#om-fontfeaturevalues partial interface CSSRule { const unsigned short FONT_FEATURE_VALUES_RULE = 14; }; web-sys-0.3.55/webidls/enabled/CSSRuleList.webidl000064400000000000000000000006220072674642500176660ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ interface CSSRuleList { readonly attribute unsigned long length; getter CSSRule? item(unsigned long index); }; web-sys-0.3.55/webidls/enabled/CSSStyleDeclaration.webidl000064400000000000000000000023050072674642500213710ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * http://dev.w3.org/csswg/cssom/ */ // Because of getComputedStyle, many CSSStyleDeclaration objects can be // short-living. [ProbablyShortLivingWrapper] interface CSSStyleDeclaration { [CEReactions, SetterNeedsSubjectPrincipal=NonSystem, SetterThrows] attribute DOMString cssText; readonly attribute unsigned long length; getter DOMString item(unsigned long index); [Throws, ChromeOnly] sequence getCSSImageURLs(DOMString property); [Throws] DOMString getPropertyValue(DOMString property); DOMString getPropertyPriority(DOMString property); [CEReactions, NeedsSubjectPrincipal=NonSystem, Throws] undefined setProperty(DOMString property, [TreatNullAs=EmptyString] DOMString value, [TreatNullAs=EmptyString] optional DOMString priority = ""); [CEReactions, Throws] DOMString removeProperty(DOMString property); readonly attribute CSSRule? parentRule; }; web-sys-0.3.55/webidls/enabled/CSSStyleRule.webidl000064400000000000000000000011340072674642500200520ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * https://drafts.csswg.org/cssom/#the-cssstylerule-interface */ // https://drafts.csswg.org/cssom/#the-cssstylerule-interface interface CSSStyleRule : CSSRule { attribute DOMString selectorText; [SameObject, PutForwards=cssText] readonly attribute CSSStyleDeclaration style; }; web-sys-0.3.55/webidls/enabled/CSSStyleSheet.webidl000064400000000000000000000015710072674642500202200ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * http://dev.w3.org/csswg/cssom/ */ enum CSSStyleSheetParsingMode { "author", "user", "agent" }; interface CSSStyleSheet : StyleSheet { [Pure] readonly attribute CSSRule? ownerRule; [Throws, NeedsSubjectPrincipal] readonly attribute CSSRuleList cssRules; [ChromeOnly, BinaryName="parsingModeDOM"] readonly attribute CSSStyleSheetParsingMode parsingMode; [Throws, NeedsSubjectPrincipal] unsigned long insertRule(DOMString rule, optional unsigned long index = 0); [Throws, NeedsSubjectPrincipal] undefined deleteRule(unsigned long index); }; web-sys-0.3.55/webidls/enabled/CSSSupportsRule.webidl000064400000000000000000000010140072674642500206060ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * https://drafts.csswg.org/css-conditional/#the-csssupportsrule-interface */ // https://drafts.csswg.org/css-conditional/#the-csssupportsrule-interface interface CSSSupportsRule : CSSConditionRule { }; web-sys-0.3.55/webidls/enabled/CSSTransition.webidl000064400000000000000000000013070072674642500202560ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * http://dev.w3.org/csswg/css-transitions-2/#the-CSSTransition-interface * * Copyright © 2015 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ [Func="nsDocument::IsWebAnimationsEnabled", HeaderFile="nsTransitionManager.h"] interface CSSTransition : Animation { [Constant] readonly attribute DOMString transitionProperty; }; web-sys-0.3.55/webidls/enabled/Cache.webidl000064400000000000000000000030070072674642500165550ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * http://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html * */ // https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#cache [Exposed=(Window,Worker), Func="mozilla::dom::DOMPrefs::DOMCachesEnabled"] interface Cache { [NewObject] Promise match(RequestInfo request, optional CacheQueryOptions options); [NewObject] Promise> matchAll(optional RequestInfo request, optional CacheQueryOptions options); [NewObject, NeedsCallerType] Promise add(RequestInfo request); [NewObject, NeedsCallerType] Promise addAll(sequence requests); [NewObject] Promise put(RequestInfo request, Response response); [NewObject] Promise delete(RequestInfo request, optional CacheQueryOptions options); [NewObject] Promise> keys(optional RequestInfo request, optional CacheQueryOptions options); }; dictionary CacheQueryOptions { boolean ignoreSearch = false; boolean ignoreMethod = false; boolean ignoreVary = false; DOMString cacheName; }; dictionary CacheBatchOperation { DOMString type; Request request; Response response; CacheQueryOptions options; }; web-sys-0.3.55/webidls/enabled/CacheStorage.webidl000064400000000000000000000021660072674642500201070ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * http://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html * */ // https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#cache-storage // invalid widl // interface Principal; [Exposed=(Window,Worker), ChromeConstructor(CacheStorageNamespace namespace, Principal principal), Func="mozilla::dom::DOMPrefs::DOMCachesEnabled"] interface CacheStorage { [NewObject] Promise match(RequestInfo request, optional CacheQueryOptions options); [NewObject] Promise has(DOMString cacheName); [NewObject] Promise open(DOMString cacheName); [NewObject] Promise delete(DOMString cacheName); [NewObject] Promise> keys(); }; // chrome-only, gecko specific extension enum CacheStorageNamespace { "content", "chrome" }; web-sys-0.3.55/webidls/enabled/CanvasCaptureMediaStream.webidl000064400000000000000000000012660072674642500224320ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * https://w3c.github.io/mediacapture-fromelement/index.html * * Copyright © 2015 W3C® (MIT, ERCIM, Keio, Beihang), All Rights Reserved. * W3C liability, trademark and document use rules apply. */ [Pref="canvas.capturestream.enabled"] interface CanvasCaptureMediaStream : MediaStream { readonly attribute HTMLCanvasElement canvas; undefined requestFrame(); }; web-sys-0.3.55/webidls/enabled/CanvasRenderingContext2D.webidl000064400000000000000000000335760072674642500223740ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * http://www.whatwg.org/specs/web-apps/current-work/ * * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and * Opera Software ASA. You are granted a license to use, reproduce * and create derivative works of this document. */ enum CanvasWindingRule { "nonzero", "evenodd" }; dictionary ContextAttributes2D { // whether or not we're planning to do a lot of readback operations boolean willReadFrequently = false; // signal if the canvas contains an alpha channel boolean alpha = true; }; dictionary HitRegionOptions { Path2D? path = null; DOMString id = ""; Element? control = null; }; typedef (HTMLImageElement or SVGImageElement) HTMLOrSVGImageElement; typedef (HTMLOrSVGImageElement or HTMLCanvasElement or HTMLVideoElement or ImageBitmap) CanvasImageSource; interface CanvasRenderingContext2D { // back-reference to the canvas. Might be null if we're not // associated with a canvas. readonly attribute HTMLCanvasElement? canvas; // Show the caret if appropriate when drawing [Func="CanvasUtils::HasDrawWindowPrivilege"] const unsigned long DRAWWINDOW_DRAW_CARET = 0x01; // Don't flush pending layout notifications that could otherwise // be batched up [Func="CanvasUtils::HasDrawWindowPrivilege"] const unsigned long DRAWWINDOW_DO_NOT_FLUSH = 0x02; // Draw scrollbars and scroll the viewport if they are present [Func="CanvasUtils::HasDrawWindowPrivilege"] const unsigned long DRAWWINDOW_DRAW_VIEW = 0x04; // Use the widget layer manager if available. This means hardware // acceleration may be used, but it might actually be slower or // lower quality than normal. It will however more accurately reflect // the pixels rendered to the screen. [Func="CanvasUtils::HasDrawWindowPrivilege"] const unsigned long DRAWWINDOW_USE_WIDGET_LAYERS = 0x08; // Don't synchronously decode images - draw what we have [Func="CanvasUtils::HasDrawWindowPrivilege"] const unsigned long DRAWWINDOW_ASYNC_DECODE_IMAGES = 0x10; /** * Renders a region of a window into the canvas. The contents of * the window's viewport are rendered, ignoring viewport clipping * and scrolling. * * @param x * @param y * @param w * @param h specify the area of the window to render, in CSS * pixels. * * @param backgroundColor the canvas is filled with this color * before we render the window into it. This color may be * transparent/translucent. It is given as a CSS color string * (e.g., rgb() or rgba()). * * @param flags Used to better control the drawWindow call. * Flags can be ORed together. * * Of course, the rendering obeys the current scale, transform and * globalAlpha values. * * Hints: * -- If 'rgba(0,0,0,0)' is used for the background color, the * drawing will be transparent wherever the window is transparent. * -- Top-level browsed documents are usually not transparent * because the user's background-color preference is applied, * but IFRAMEs are transparent if the page doesn't set a background. * -- If an opaque color is used for the background color, rendering * will be faster because we won't have to compute the window's * transparency. * * This API cannot currently be used by Web content. It is chrome * and Web Extensions (with a permission) only. */ [Throws, Func="CanvasUtils::HasDrawWindowPrivilege"] undefined drawWindow(Window window, double x, double y, double w, double h, DOMString bgColor, optional unsigned long flags = 0); /** * This causes a context that is currently using a hardware-accelerated * backend to fallback to a software one. All state should be preserved. */ [ChromeOnly] undefined demote(); }; CanvasRenderingContext2D includes CanvasState; CanvasRenderingContext2D includes CanvasTransform; CanvasRenderingContext2D includes CanvasCompositing; CanvasRenderingContext2D includes CanvasImageSmoothing; CanvasRenderingContext2D includes CanvasFillStrokeStyles; CanvasRenderingContext2D includes CanvasShadowStyles; CanvasRenderingContext2D includes CanvasFilters; CanvasRenderingContext2D includes CanvasRect; CanvasRenderingContext2D includes CanvasDrawPath; CanvasRenderingContext2D includes CanvasUserInterface; CanvasRenderingContext2D includes CanvasText; CanvasRenderingContext2D includes CanvasDrawImage; CanvasRenderingContext2D includes CanvasImageData; CanvasRenderingContext2D includes CanvasPathDrawingStyles; CanvasRenderingContext2D includes CanvasTextDrawingStyles; CanvasRenderingContext2D includes CanvasPathMethods; CanvasRenderingContext2D includes CanvasHitRegions; interface mixin CanvasState { // state undefined save(); // push state on state stack undefined restore(); // pop state stack and restore state }; interface mixin CanvasTransform { // transformations (default transform is the identity matrix) // NOT IMPLEMENTED attribute SVGMatrix currentTransform; [Throws, LenientFloat] undefined scale(double x, double y); [Throws, LenientFloat] undefined rotate(double angle); [Throws, LenientFloat] undefined translate(double x, double y); [Throws, LenientFloat] undefined transform(double a, double b, double c, double d, double e, double f); [Throws, LenientFloat] undefined setTransform(double a, double b, double c, double d, double e, double f); [Throws] undefined resetTransform(); [NewObject, Throws] DOMMatrix getTransform(); }; [NoInterfaceObject] interface mixin CanvasCompositing { attribute unrestricted double globalAlpha; // (default 1.0) [Throws] attribute DOMString globalCompositeOperation; // (default source-over) }; interface mixin CanvasImageSmoothing { // drawing images attribute boolean imageSmoothingEnabled; }; interface mixin CanvasFillStrokeStyles { // colors and styles (see also the CanvasPathDrawingStyles interface) attribute (DOMString or CanvasGradient or CanvasPattern) strokeStyle; // (default black) attribute (DOMString or CanvasGradient or CanvasPattern) fillStyle; // (default black) [NewObject] CanvasGradient createLinearGradient(double x0, double y0, double x1, double y1); [NewObject, Throws] CanvasGradient createRadialGradient(double x0, double y0, double r0, double x1, double y1, double r1); [NewObject, Throws] CanvasPattern? createPattern(CanvasImageSource image, [TreatNullAs=EmptyString] DOMString repetition); }; interface mixin CanvasShadowStyles { [LenientFloat] attribute double shadowOffsetX; // (default 0) [LenientFloat] attribute double shadowOffsetY; // (default 0) [LenientFloat] attribute double shadowBlur; // (default 0) attribute DOMString shadowColor; // (default transparent black) }; interface mixin CanvasFilters { [Pref="canvas.filters.enabled", SetterThrows] attribute DOMString filter; // (default empty string = no filter) }; interface mixin CanvasRect { [LenientFloat] undefined clearRect(double x, double y, double w, double h); [LenientFloat] undefined fillRect(double x, double y, double w, double h); [LenientFloat] undefined strokeRect(double x, double y, double w, double h); }; interface mixin CanvasDrawPath { // path API (see also CanvasPathMethods) undefined beginPath(); undefined fill(optional CanvasWindingRule winding = "nonzero"); undefined fill(Path2D path, optional CanvasWindingRule winding = "nonzero"); undefined stroke(); undefined stroke(Path2D path); undefined clip(optional CanvasWindingRule winding = "nonzero"); undefined clip(Path2D path, optional CanvasWindingRule winding = "nonzero"); // NOT IMPLEMENTED undefined resetClip(); [NeedsSubjectPrincipal] boolean isPointInPath(unrestricted double x, unrestricted double y, optional CanvasWindingRule winding = "nonzero"); [NeedsSubjectPrincipal] // Only required because overloads can't have different extended attributes. boolean isPointInPath(Path2D path, unrestricted double x, unrestricted double y, optional CanvasWindingRule winding = "nonzero"); [NeedsSubjectPrincipal] boolean isPointInStroke(double x, double y); [NeedsSubjectPrincipal] // Only required because overloads can't have different extended attributes. boolean isPointInStroke(Path2D path, unrestricted double x, unrestricted double y); }; interface mixin CanvasUserInterface { [Pref="canvas.focusring.enabled", Throws] undefined drawFocusIfNeeded(Element element); // NOT IMPLEMENTED undefined drawSystemFocusRing(Path path, HTMLElement element); [Pref="canvas.customfocusring.enabled"] boolean drawCustomFocusRing(Element element); // NOT IMPLEMENTED boolean drawCustomFocusRing(Path path, HTMLElement element); // NOT IMPLEMENTED undefined scrollPathIntoView(); // NOT IMPLEMENTED undefined scrollPathIntoView(Path path); }; interface mixin CanvasText { // text (see also the CanvasPathDrawingStyles interface) [Throws, LenientFloat] undefined fillText(DOMString text, double x, double y, optional double maxWidth); [Throws, LenientFloat] undefined strokeText(DOMString text, double x, double y, optional double maxWidth); [NewObject, Throws] TextMetrics measureText(DOMString text); }; interface mixin CanvasDrawImage { [Throws, LenientFloat] undefined drawImage(CanvasImageSource image, double dx, double dy); [Throws, LenientFloat] undefined drawImage(CanvasImageSource image, double dx, double dy, double dw, double dh); [Throws, LenientFloat] undefined drawImage(CanvasImageSource image, double sx, double sy, double sw, double sh, double dx, double dy, double dw, double dh); }; interface mixin CanvasImageData { // pixel manipulation [NewObject, Throws] ImageData createImageData(double sw, double sh); [NewObject, Throws] ImageData createImageData(ImageData imagedata); [NewObject, Throws, NeedsSubjectPrincipal] ImageData getImageData(double sx, double sy, double sw, double sh); [Throws] undefined putImageData(ImageData imagedata, double dx, double dy); [Throws] undefined putImageData(ImageData imagedata, double dx, double dy, double dirtyX, double dirtyY, double dirtyWidth, double dirtyHeight); }; interface mixin CanvasPathDrawingStyles { // line caps/joins [LenientFloat] attribute double lineWidth; // (default 1) attribute DOMString lineCap; // "butt", "round", "square" (default "butt") [GetterThrows] attribute DOMString lineJoin; // "round", "bevel", "miter" (default "miter") [LenientFloat] attribute double miterLimit; // (default 10) // dashed lines [LenientFloat, Throws] undefined setLineDash(sequence segments); // default empty sequence getLineDash(); [LenientFloat] attribute double lineDashOffset; }; interface mixin CanvasTextDrawingStyles { // text [SetterThrows] attribute DOMString font; // (default 10px sans-serif) attribute DOMString textAlign; // "start", "end", "left", "right", "center" (default: "start") attribute DOMString textBaseline; // "top", "hanging", "middle", "alphabetic", "ideographic", "bottom" (default: "alphabetic") }; interface mixin CanvasPathMethods { // shared path API methods undefined closePath(); [LenientFloat] undefined moveTo(double x, double y); [LenientFloat] undefined lineTo(double x, double y); [LenientFloat] undefined quadraticCurveTo(double cpx, double cpy, double x, double y); [LenientFloat] undefined bezierCurveTo(double cp1x, double cp1y, double cp2x, double cp2y, double x, double y); [Throws, LenientFloat] undefined arcTo(double x1, double y1, double x2, double y2, double radius); // NOT IMPLEMENTED [LenientFloat] undefined arcTo(double x1, double y1, double x2, double y2, double radiusX, double radiusY, double rotation); [LenientFloat] undefined rect(double x, double y, double w, double h); [Throws, LenientFloat] undefined arc(double x, double y, double radius, double startAngle, double endAngle, optional boolean anticlockwise = false); [Throws, LenientFloat] undefined ellipse(double x, double y, double radiusX, double radiusY, double rotation, double startAngle, double endAngle, optional boolean anticlockwise = false); }; interface mixin CanvasHitRegions { // hit regions [Pref="canvas.hitregions.enabled", Throws] undefined addHitRegion(optional HitRegionOptions options); [Pref="canvas.hitregions.enabled"] undefined removeHitRegion(DOMString id); [Pref="canvas.hitregions.enabled"] undefined clearHitRegions(); }; interface CanvasGradient { // opaque object [Throws] // addColorStop should take a double undefined addColorStop(float offset, DOMString color); }; interface CanvasPattern { // opaque object // [Throws, LenientFloat] - could not do this overload because of bug 1020975 // undefined setTransform(double a, double b, double c, double d, double e, double f); // No throw necessary here - SVGMatrix is always good. undefined setTransform(SVGMatrix matrix); }; interface TextMetrics { // x-direction readonly attribute double width; // advance width readonly attribute double actualBoundingBoxLeft; readonly attribute double actualBoundingBoxRight; readonly attribute double fontBoundingBoxAscent; readonly attribute double fontBoundingBoxDescent; // y-direction readonly attribute double actualBoundingBoxAscent; readonly attribute double actualBoundingBoxDescent; /* * NOT IMPLEMENTED YET readonly attribute double emHeightAscent; readonly attribute double emHeightDescent; readonly attribute double hangingBaseline; readonly attribute double alphabeticBaseline; readonly attribute double ideographicBaseline; */ }; [Pref="canvas.path.enabled", Constructor, Constructor(Path2D other), Constructor(DOMString pathString)] interface Path2D { undefined addPath(Path2D path, optional SVGMatrix transformation); }; Path2D includes CanvasPathMethods; web-sys-0.3.55/webidls/enabled/CaretPosition.webidl000064400000000000000000000010310072674642500203300ustar 00000000000000/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ interface CaretPosition { /** * The offsetNode could potentially be null due to anonymous content. */ readonly attribute Node? offsetNode; readonly attribute unsigned long offset; }; /** * Gecko specific methods and properties for CaretPosition. */ partial interface CaretPosition { DOMRect? getClientRect(); }; web-sys-0.3.55/webidls/enabled/CaretStateChangedEvent.webidl000064400000000000000000000024670072674642500220760ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ enum CaretChangedReason { "visibilitychange", "updateposition", "longpressonemptycontent", "taponcaret", "presscaret", "releasecaret", "scroll" }; dictionary CaretStateChangedEventInit : EventInit { boolean collapsed = true; DOMRectReadOnly? boundingClientRect = null; CaretChangedReason reason = "visibilitychange"; boolean caretVisible = false; boolean caretVisuallyVisible = false; boolean selectionVisible = false; boolean selectionEditable = false; DOMString selectedTextContent = ""; }; [Constructor(DOMString type, optional CaretStateChangedEventInit eventInit), ChromeOnly] interface CaretStateChangedEvent : Event { readonly attribute boolean collapsed; readonly attribute DOMRectReadOnly? boundingClientRect; readonly attribute CaretChangedReason reason; readonly attribute boolean caretVisible; readonly attribute boolean caretVisuallyVisible; readonly attribute boolean selectionVisible; readonly attribute boolean selectionEditable; readonly attribute DOMString selectedTextContent; }; web-sys-0.3.55/webidls/enabled/ChannelMergerNode.webidl000064400000000000000000000013640072674642500210760ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * https://webaudio.github.io/web-audio-api/ * * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ dictionary ChannelMergerOptions : AudioNodeOptions { unsigned long numberOfInputs = 6; }; [Pref="dom.webaudio.enabled", Constructor(BaseAudioContext context, optional ChannelMergerOptions options)] interface ChannelMergerNode : AudioNode { }; web-sys-0.3.55/webidls/enabled/ChannelSplitterNode.webidl000064400000000000000000000013750072674642500214650ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * https://webaudio.github.io/web-audio-api/ * * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ dictionary ChannelSplitterOptions : AudioNodeOptions { unsigned long numberOfOutputs = 6; }; [Pref="dom.webaudio.enabled", Constructor(BaseAudioContext context, optional ChannelSplitterOptions options)] interface ChannelSplitterNode : AudioNode { }; web-sys-0.3.55/webidls/enabled/CharacterData.webidl000064400000000000000000000021440072674642500202410ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * http://dom.spec.whatwg.org/#characterdata * * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ interface CharacterData : Node { [TreatNullAs=EmptyString, Pure, SetterThrows] attribute DOMString data; [Pure] readonly attribute unsigned long length; [Throws] DOMString substringData(unsigned long offset, unsigned long count); [Throws] undefined appendData(DOMString data); [Throws] undefined insertData(unsigned long offset, DOMString data); [Throws] undefined deleteData(unsigned long offset, unsigned long count); [Throws] undefined replaceData(unsigned long offset, unsigned long count, DOMString data); }; CharacterData includes ChildNode; CharacterData includes NonDocumentTypeChildNode; web-sys-0.3.55/webidls/enabled/CheckerboardReportService.webidl000064400000000000000000000037640072674642500226550ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ /* * This file declares data structures used to communicate checkerboard reports * from C++ code to about:checkerboard (see bug 1238042). These dictionaries * are NOT exposed to standard web content. */ enum CheckerboardReason { "severe", "recent" }; // Individual checkerboard report. Contains fields for the severity of the // checkerboard event, the timestamp at which it was reported, the detailed // log of the event, and the reason this report was saved (currently either // "severe" or "recent"). dictionary CheckerboardReport { unsigned long severity; DOMTimeStamp timestamp; // milliseconds since epoch DOMString log; CheckerboardReason reason; }; // The guard function only allows creation of this interface on the // about:checkerboard page, and only if it's in the parent process. [Func="mozilla::dom::CheckerboardReportService::IsEnabled", Constructor] interface CheckerboardReportService { /** * Gets the available checkerboard reports. */ sequence getReports(); /** * Gets the state of the apz.record_checkerboarding pref. */ boolean isRecordingEnabled(); /** * Sets the state of the apz.record_checkerboarding pref. */ undefined setRecordingEnabled(boolean aEnabled); /** * Flush any in-progress checkerboard reports. Since this happens * asynchronously, the caller may register an observer with the observer * service to be notified when this operation is complete. The observer should * listen for the topic "APZ:FlushActiveCheckerboard:Done". Upon receiving * this notification, the caller may call getReports() to obtain the flushed * reports, along with any other reports that are available. */ undefined flushActiveReports(); }; web-sys-0.3.55/webidls/enabled/ChildNode.webidl000064400000000000000000000015670072674642500174140ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * http://dom.spec.whatwg.org/#interface-childnode */ interface mixin ChildNode { [CEReactions, Throws, Unscopable] undefined before((Node or DOMString)... nodes); [CEReactions, Throws, Unscopable] undefined after((Node or DOMString)... nodes); [CEReactions, Throws, Unscopable] undefined replaceWith((Node or DOMString)... nodes); [CEReactions, Unscopable] undefined remove(); }; interface mixin NonDocumentTypeChildNode { [Pure] readonly attribute Element? previousElementSibling; [Pure] readonly attribute Element? nextElementSibling; }; web-sys-0.3.55/webidls/enabled/ChildSHistory.webidl000064400000000000000000000021610072674642500203020ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ // invalid widl ///interface nsISHistory; /** * The ChildSHistory interface represents the child side of a browsing * context's session history. */ [ChromeOnly] interface ChildSHistory { [Pure] readonly attribute long count; [Pure] readonly attribute long index; boolean canGo(long aOffset); [Throws] undefined go(long aOffset); /** * Reload the current entry. The flags which should be passed to this * function are documented and defined in nsIWebNavigation.idl */ [Throws] undefined reload(unsigned long aReloadFlags); /** * Getter for the legacy nsISHistory implementation. * * This getter _will be going away_, but is needed while we finish * implementing all of the APIs which we will need in the content * process on ChildSHistory. */ readonly attribute nsISHistory legacySHistory; }; web-sys-0.3.55/webidls/enabled/Client.webidl000064400000000000000000000025340072674642500167740ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * https://w3c.github.io/ServiceWorker/#client-interface * */ [Exposed=ServiceWorker] interface Client { readonly attribute USVString url; // Remove frameType in bug 1290936 [BinaryName="GetFrameType"] readonly attribute FrameType frameType; readonly attribute ClientType type; readonly attribute DOMString id; // Implement reserved in bug 1264177 // readonly attribute boolean reserved; [Throws] undefined postMessage(any message, optional sequence transfer = []); }; [Exposed=ServiceWorker] interface WindowClient : Client { [BinaryName="GetVisibilityState"] readonly attribute VisibilityState visibilityState; readonly attribute boolean focused; // Implement ancestorOrigins in bug 1264180 // [SameObject] readonly attribute FrozenArray ancestorOrigins; [Throws, NewObject] Promise focus(); [Throws, NewObject] Promise navigate(USVString url); }; // Remove FrameType in bug 1290936 enum FrameType { "auxiliary", "top-level", "nested", "none" }; web-sys-0.3.55/webidls/enabled/Clients.webidl000064400000000000000000000017600072674642500171570ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * http://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html * */ [Exposed=ServiceWorker] interface Clients { // The objects returned will be new instances every time [NewObject] Promise get(DOMString id); [NewObject] Promise> matchAll(optional ClientQueryOptions options); [NewObject] Promise openWindow(USVString url); [NewObject] Promise claim(); }; dictionary ClientQueryOptions { boolean includeUncontrolled = false; ClientType type = "window"; }; enum ClientType { "window", "worker", "sharedworker", // https://github.com/w3c/ServiceWorker/issues/1036 "serviceworker", "all" }; web-sys-0.3.55/webidls/enabled/CloseEvent.webidl000064400000000000000000000016270072674642500176270ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The nsIDOMCloseEvent interface is the interface to the event * close on a WebSocket object. * * For more information on this interface, please see * http://www.whatwg.org/specs/web-apps/current-work/multipage/network.html#closeevent */ [Constructor(DOMString type, optional CloseEventInit eventInitDict),LegacyEventInit, Exposed=(Window,Worker)] interface CloseEvent : Event { readonly attribute boolean wasClean; readonly attribute unsigned short code; readonly attribute DOMString reason; }; dictionary CloseEventInit : EventInit { boolean wasClean = false; unsigned short code = 0; DOMString reason = ""; }; web-sys-0.3.55/webidls/enabled/Comment.webidl000064400000000000000000000010770072674642500171610ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * http://dom.spec.whatwg.org/#comment * * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ [Constructor(optional DOMString data = "")] interface Comment : CharacterData { }; web-sys-0.3.55/webidls/enabled/CompositionEvent.webidl000064400000000000000000000026070072674642500210640ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * https://w3c.github.io/uievents/#interface-compositionevent * * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ [Constructor(DOMString type, optional CompositionEventInit eventInitDict)] interface CompositionEvent : UIEvent { readonly attribute DOMString? data; // locale is currently non-standard readonly attribute DOMString locale; /** * ranges is trying to expose TextRangeArray in Gecko so a * js-plugin couble be able to know the clauses information */ [ChromeOnly,Cached,Pure] readonly attribute sequence ranges; }; dictionary CompositionEventInit : UIEventInit { DOMString data = ""; }; partial interface CompositionEvent { undefined initCompositionEvent(DOMString typeArg, optional boolean canBubbleArg = false, optional boolean cancelableArg = false, optional Window? viewArg = null, optional DOMString? dataArg = null, optional DOMString localeArg = ""); }; web-sys-0.3.55/webidls/enabled/Console.webidl000064400000000000000000000153550072674642500171650ustar 00000000000000/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set ts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * For more information on this interface, please see * https://console.spec.whatwg.org/#console-namespace */ [Exposed=(Window,Worker,WorkerDebugger,Worklet,System), ClassString="Console", ProtoObjectHack] namespace console { // NOTE: if you touch this namespace, remember to update the ConsoleInstance // interface as well! // Logging [UseCounter] undefined assert(optional boolean condition = false, any... data); [UseCounter] undefined clear(); [UseCounter] undefined count(optional DOMString label = "default"); [UseCounter] undefined countReset(optional DOMString label = "default"); [UseCounter] undefined debug(any... data); [UseCounter] undefined error(any... data); [UseCounter] undefined info(any... data); [UseCounter] undefined log(any... data); [UseCounter] undefined table(any... data); // FIXME: The spec is still unclear about this. [UseCounter] undefined trace(any... data); [UseCounter] undefined warn(any... data); [UseCounter] undefined dir(any... data); // FIXME: This doesn't follow the spec yet. [UseCounter] undefined dirxml(any... data); // Grouping [UseCounter] undefined group(any... data); [UseCounter] undefined groupCollapsed(any... data); [UseCounter] undefined groupEnd(); // Timing [UseCounter] undefined time(optional DOMString label = "default"); [UseCounter] undefined timeLog(optional DOMString label = "default", any... data); [UseCounter] undefined timeEnd(optional DOMString label = "default"); // Mozilla only or Webcompat methods [UseCounter] undefined _exception(any... data); [UseCounter] undefined timeStamp(optional any data); [UseCounter] undefined profile(any... data); [UseCounter] undefined profileEnd(any... data); // invalid widl // [ChromeOnly] // const boolean IS_NATIVE_CONSOLE = true; [ChromeOnly, NewObject] ConsoleInstance createInstance(optional ConsoleInstanceOptions options); }; // This is used to propagate console events to the observers. dictionary ConsoleEvent { (unsigned long long or DOMString) ID; (unsigned long long or DOMString) innerID; DOMString consoleID = ""; DOMString addonId = ""; DOMString level = ""; DOMString filename = ""; unsigned long lineNumber = 0; unsigned long columnNumber = 0; DOMString functionName = ""; double timeStamp = 0; sequence arguments; sequence styles; boolean private = false; // stacktrace is handled via a getter in some cases so we can construct it // lazily. Note that we're not making this whole thing an interface because // consumers expect to see own properties on it, which would mean making the // props unforgeable, which means lots of JSFunction allocations. Maybe we // should fix those consumers, of course.... // sequence stacktrace; DOMString groupName = ""; any timer = null; any counter = null; DOMString prefix = ""; }; // Event for profile operations dictionary ConsoleProfileEvent { DOMString action = ""; sequence arguments; }; // This dictionary is used to manage stack trace data. dictionary ConsoleStackEntry { DOMString filename = ""; unsigned long lineNumber = 0; unsigned long columnNumber = 0; DOMString functionName = ""; DOMString? asyncCause; }; dictionary ConsoleTimerStart { DOMString name = ""; }; dictionary ConsoleTimerLogOrEnd { DOMString name = ""; double duration = 0; }; dictionary ConsoleTimerError { DOMString error = ""; DOMString name = ""; }; dictionary ConsoleCounter { DOMString label = ""; unsigned long count = 0; }; dictionary ConsoleCounterError { DOMString label = ""; DOMString error = ""; }; [ChromeOnly, Exposed=(Window,Worker,WorkerDebugger,Worklet,System)] // This is basically a copy of the console namespace. interface ConsoleInstance { // Logging undefined assert(optional boolean condition = false, any... data); undefined clear(); undefined count(optional DOMString label = "default"); undefined countReset(optional DOMString label = "default"); undefined debug(any... data); undefined error(any... data); undefined info(any... data); undefined log(any... data); undefined table(any... data); // FIXME: The spec is still unclear about this. undefined trace(any... data); undefined warn(any... data); undefined dir(any... data); // FIXME: This doesn't follow the spec yet. undefined dirxml(any... data); // Grouping undefined group(any... data); undefined groupCollapsed(any... data); undefined groupEnd(); // Timing undefined time(optional DOMString label = "default"); undefined timeLog(optional DOMString label = "default", any... data); undefined timeEnd(optional DOMString label = "default"); // Mozilla only or Webcompat methods undefined _exception(any... data); undefined timeStamp(optional any data); undefined profile(any... data); undefined profileEnd(any... data); }; callback ConsoleInstanceDumpCallback = undefined (DOMString message); enum ConsoleLogLevel { "All", "Debug", "Log", "Info", "Clear", "Trace", "TimeLog", "TimeEnd", "Time", "Group", "GroupEnd", "Profile", "ProfileEnd", "Dir", "Dirxml", "Warn", "Error", "Off" }; dictionary ConsoleInstanceOptions { // An optional function to intercept all strings written to stdout. ConsoleInstanceDumpCallback dump; // An optional prefix string to be printed before the actual logged message. DOMString prefix = ""; // An ID representing the source of the message. Normally the inner ID of a // DOM window. DOMString innerID = ""; // String identified for the console, this will be passed through the console // notifications. DOMString consoleID = ""; // Identifier that allows to filter which messages are logged based on their // log level. ConsoleLogLevel maxLogLevel; // String pref name which contains the level to use for maxLogLevel. If the // pref doesn't exist, gets removed or it is used in workers, the maxLogLevel // will default to the value passed to this constructor (or "all" if it wasn't // specified). DOMString maxLogLevelPref = ""; }; enum ConsoleLevel { "log", "warning", "error" }; // this interface is just for testing partial interface ConsoleInstance { [ChromeOnly] undefined reportForServiceWorkerScope(DOMString scope, DOMString message, DOMString filename, unsigned long lineNumber, unsigned long columnNumber, ConsoleLevel level); }; web-sys-0.3.55/webidls/enabled/ConstantSourceNode.webidl000064400000000000000000000015110072674642500213300ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * https://webaudio.github.io/web-audio-api/ * * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ dictionary ConstantSourceOptions { float offset = 1; }; [Pref="dom.webaudio.enabled", Constructor(BaseAudioContext context, optional ConstantSourceOptions options)] interface ConstantSourceNode : AudioScheduledSourceNode { readonly attribute AudioParam offset; }; ConstantSourceNode includes rustAudioScheduledSourceNode; web-sys-0.3.55/webidls/enabled/ConvolverNode.webidl000064400000000000000000000015620072674642500203410ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * https://webaudio.github.io/web-audio-api/ * * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ dictionary ConvolverOptions : AudioNodeOptions { AudioBuffer? buffer; boolean disableNormalization = false; }; [Pref="dom.webaudio.enabled", Constructor(BaseAudioContext context, optional ConvolverOptions options)] interface ConvolverNode : AudioNode { [SetterThrows] attribute AudioBuffer? buffer; attribute boolean normalize; }; web-sys-0.3.55/webidls/enabled/Coordinates.webidl000064400000000000000000000014570072674642500200330ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * http://www.w3.org/TR/geolocation-API * * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ [NoInterfaceObject] interface Coordinates { readonly attribute double latitude; readonly attribute double longitude; readonly attribute double? altitude; readonly attribute double accuracy; readonly attribute double? altitudeAccuracy; readonly attribute double? heading; readonly attribute double? speed; }; web-sys-0.3.55/webidls/enabled/CreateOfferRequest.webidl000064400000000000000000000011430072674642500213070ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * This is an internal IDL file */ [ChromeOnly, JSImplementation="@mozilla.org/dom/createofferrequest;1"] interface CreateOfferRequest { readonly attribute unsigned long long windowID; readonly attribute unsigned long long innerWindowID; readonly attribute DOMString callID; readonly attribute boolean isSecure; }; web-sys-0.3.55/webidls/enabled/CredentialManagement.webidl000064400000000000000000000021770072674642500216300ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * https://www.w3.org/TR/credential-management-1/ */ [Exposed=Window, SecureContext, Pref="security.webauth.webauthn"] interface Credential { readonly attribute USVString id; readonly attribute DOMString type; }; [Exposed=Window, SecureContext, Pref="security.webauth.webauthn"] interface CredentialsContainer { [Throws] Promise get(optional CredentialRequestOptions options); [Throws] Promise create(optional CredentialCreationOptions options); [Throws] Promise store(Credential credential); [Throws] Promise preventSilentAccess(); }; dictionary CredentialRequestOptions { PublicKeyCredentialRequestOptions publicKey; AbortSignal signal; }; dictionary CredentialCreationOptions { PublicKeyCredentialCreationOptions publicKey; AbortSignal signal; }; web-sys-0.3.55/webidls/enabled/Crypto.webidl000064400000000000000000000012470072674642500170360ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html#crypto-interface */ [Exposed=(Window,Worker)] interface mixin GlobalCrypto { [Throws] readonly attribute Crypto crypto; }; [Exposed=(Window,Worker)] interface Crypto { readonly attribute SubtleCrypto subtle; [Throws] ArrayBufferView getRandomValues(ArrayBufferView array); }; web-sys-0.3.55/webidls/enabled/CustomElementRegistry.webidl000064400000000000000000000015720072674642500220740ustar 00000000000000/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ // https://html.spec.whatwg.org/#dom-window-customelements [Func="CustomElementRegistry::IsCustomElementEnabled"] interface CustomElementRegistry { [CEReactions, Throws] undefined define(DOMString name, Function functionConstructor, optional ElementDefinitionOptions options); [ChromeOnly, Throws] undefined setElementCreationCallback(DOMString name, CustomElementCreationCallback callback); any get(DOMString name); [Throws] Promise whenDefined(DOMString name); [CEReactions] undefined upgrade(Node root); }; dictionary ElementDefinitionOptions { DOMString extends; }; callback CustomElementCreationCallback = undefined (DOMString name); web-sys-0.3.55/webidls/enabled/CustomEvent.webidl000064400000000000000000000017560072674642500200370ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * http://www.w3.org/TR/2012/WD-dom-20120105/ * * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ [Constructor(DOMString type, optional CustomEventInit eventInitDict), Exposed=(Window, Worker)] interface CustomEvent : Event { readonly attribute any detail; // initCustomEvent is a Gecko specific deprecated method. undefined initCustomEvent(DOMString type, optional boolean canBubble = false, optional boolean cancelable = false, optional any detail = null); }; dictionary CustomEventInit : EventInit { any detail = null; }; web-sys-0.3.55/webidls/enabled/DOMError.webidl000064400000000000000000000013450072674642500172060ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * http://dom.spec.whatwg.org/#domerror * * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ [Constructor(DOMString name, optional DOMString message = ""), Exposed=(Window,Worker,System)] interface DOMError { [Constant, UseCounter] readonly attribute DOMString name; [Constant, UseCounter] readonly attribute DOMString message; }; web-sys-0.3.55/webidls/enabled/DOMException.webidl000064400000000000000000000102420072674642500200470ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * http://dom.spec.whatwg.org/#exception-domexception * * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ // This is the WebIDL version of nsIException. This is mostly legacy stuff. // invalid widl //interface StackFrame; [Exposed=(Window,Worker,System)] interface mixin ExceptionMembers { // The nsresult associated with this exception. readonly attribute unsigned long result; // Filename location. This is the location that caused the // error, which may or may not be a source file location. // For example, standard language errors would generally have // the same location as their top stack entry. File // parsers may put the location of the file they were parsing, // etc. // null indicates "no data" readonly attribute DOMString filename; // Valid line numbers begin at '1'. '0' indicates unknown. readonly attribute unsigned long lineNumber; // Valid column numbers begin at 0. // We don't have an unambiguous indicator for unknown. readonly attribute unsigned long columnNumber; // A stack trace, if available. nsIStackFrame does not have classinfo so // this was only ever usefully available to chrome JS. [ChromeOnly, Exposed=Window] readonly attribute StackFrame? location; // Arbitary data for the implementation. [Exposed=Window] readonly attribute nsISupports? data; // Formatted exception stack [Replaceable] readonly attribute DOMString stack; }; [NoInterfaceObject, Exposed=(Window,Worker)] interface Exception { // The name of the error code (ie, a string repr of |result|). readonly attribute DOMString name; // A custom message set by the thrower. readonly attribute DOMString message; // A generic formatter - make it suitable to print, etc. stringifier; }; Exception includes ExceptionMembers; // XXXkhuey this is an 'exception', not an interface, but we don't have any // parser or codegen mechanisms for dealing with exceptions. [ExceptionClass, Exposed=(Window, Worker,System), Constructor(optional DOMString message = "", optional DOMString name)] interface DOMException { // The name of the error code (ie, a string repr of |result|). readonly attribute DOMString name; // A custom message set by the thrower. readonly attribute DOMString message; readonly attribute unsigned short code; const unsigned short INDEX_SIZE_ERR = 1; const unsigned short DOMSTRING_SIZE_ERR = 2; // historical const unsigned short HIERARCHY_REQUEST_ERR = 3; const unsigned short WRONG_DOCUMENT_ERR = 4; const unsigned short INVALID_CHARACTER_ERR = 5; const unsigned short NO_DATA_ALLOWED_ERR = 6; // historical const unsigned short NO_MODIFICATION_ALLOWED_ERR = 7; const unsigned short NOT_FOUND_ERR = 8; const unsigned short NOT_SUPPORTED_ERR = 9; const unsigned short INUSE_ATTRIBUTE_ERR = 10; // historical const unsigned short INVALID_STATE_ERR = 11; const unsigned short SYNTAX_ERR = 12; const unsigned short INVALID_MODIFICATION_ERR = 13; const unsigned short NAMESPACE_ERR = 14; const unsigned short INVALID_ACCESS_ERR = 15; const unsigned short VALIDATION_ERR = 16; // historical const unsigned short TYPE_MISMATCH_ERR = 17; // historical; use JavaScript's TypeError instead const unsigned short SECURITY_ERR = 18; const unsigned short NETWORK_ERR = 19; const unsigned short ABORT_ERR = 20; const unsigned short URL_MISMATCH_ERR = 21; const unsigned short QUOTA_EXCEEDED_ERR = 22; const unsigned short TIMEOUT_ERR = 23; const unsigned short INVALID_NODE_TYPE_ERR = 24; const unsigned short DATA_CLONE_ERR = 25; }; // XXXkhuey copy all of Gecko's non-standard stuff onto DOMException, but leave // the prototype chain sane. DOMException includes ExceptionMembers; web-sys-0.3.55/webidls/enabled/DOMHighResTimeStamp.webidl000064400000000000000000000007760072674642500213010ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * http://w3c.github.io/hr-time/ * * Copyright © 2015 W3C® (MIT, ERCIM, Keio, Beihang). * W3C liability, trademark and document use rules apply. */ typedef double DOMHighResTimeStamp; web-sys-0.3.55/webidls/enabled/DOMImplementation.webidl000064400000000000000000000017470072674642500211100ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * http://dom.spec.whatwg.org/#interface-domimplementation * * Copyright: * To the extent possible under law, the editors have waived all copyright and * related or neighboring rights to this work. */ interface DOMImplementation { boolean hasFeature(); [Throws] DocumentType createDocumentType(DOMString qualifiedName, DOMString publicId, DOMString systemId); [Throws] Document createDocument(DOMString? namespace, [TreatNullAs=EmptyString] DOMString qualifiedName, optional DocumentType? doctype = null); [Throws] Document createHTMLDocument(optional DOMString title); }; web-sys-0.3.55/webidls/enabled/DOMMatrix.webidl000064400000000000000000000160030072674642500173560ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * http://dev.w3.org/fxtf/geometry/ * * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ [Pref="layout.css.DOMMatrix.enabled", Constructor(optional (DOMString or sequence) init)] interface DOMMatrixReadOnly { // These attributes are simple aliases for certain elements of the 4x4 matrix readonly attribute unrestricted double a; readonly attribute unrestricted double b; readonly attribute unrestricted double c; readonly attribute unrestricted double d; readonly attribute unrestricted double e; readonly attribute unrestricted double f; readonly attribute unrestricted double m11; readonly attribute unrestricted double m12; readonly attribute unrestricted double m13; readonly attribute unrestricted double m14; readonly attribute unrestricted double m21; readonly attribute unrestricted double m22; readonly attribute unrestricted double m23; readonly attribute unrestricted double m24; readonly attribute unrestricted double m31; readonly attribute unrestricted double m32; readonly attribute unrestricted double m33; readonly attribute unrestricted double m34; readonly attribute unrestricted double m41; readonly attribute unrestricted double m42; readonly attribute unrestricted double m43; readonly attribute unrestricted double m44; // Immutable transform methods DOMMatrix translate(unrestricted double tx, unrestricted double ty, optional unrestricted double tz = 0); DOMMatrix scale(unrestricted double scale, optional unrestricted double originX = 0, optional unrestricted double originY = 0); DOMMatrix scale3d(unrestricted double scale, optional unrestricted double originX = 0, optional unrestricted double originY = 0, optional unrestricted double originZ = 0); DOMMatrix scaleNonUniform(unrestricted double scaleX, optional unrestricted double scaleY = 1, optional unrestricted double scaleZ = 1, optional unrestricted double originX = 0, optional unrestricted double originY = 0, optional unrestricted double originZ = 0); DOMMatrix rotate(unrestricted double angle, optional unrestricted double originX = 0, optional unrestricted double originY = 0); DOMMatrix rotateFromVector(unrestricted double x, unrestricted double y); DOMMatrix rotateAxisAngle(unrestricted double x, unrestricted double y, unrestricted double z, unrestricted double angle); DOMMatrix skewX(unrestricted double sx); DOMMatrix skewY(unrestricted double sy); DOMMatrix multiply(DOMMatrix other); DOMMatrix flipX(); DOMMatrix flipY(); DOMMatrix inverse(); // Helper methods readonly attribute boolean is2D; readonly attribute boolean isIdentity; DOMPoint transformPoint(optional DOMPointInit point); [Throws] Float32Array toFloat32Array(); [Throws] Float64Array toFloat64Array(); stringifier; [Default] object toJSON(); }; [Pref="layout.css.DOMMatrix.enabled", Constructor, Constructor(DOMString transformList), Constructor(DOMMatrixReadOnly other), Constructor(Float32Array array32), Constructor(Float64Array array64), Constructor(sequence numberSequence)] interface DOMMatrix : DOMMatrixReadOnly { // These attributes are simple aliases for certain elements of the 4x4 matrix inherit attribute unrestricted double a; inherit attribute unrestricted double b; inherit attribute unrestricted double c; inherit attribute unrestricted double d; inherit attribute unrestricted double e; inherit attribute unrestricted double f; inherit attribute unrestricted double m11; inherit attribute unrestricted double m12; inherit attribute unrestricted double m13; inherit attribute unrestricted double m14; inherit attribute unrestricted double m21; inherit attribute unrestricted double m22; inherit attribute unrestricted double m23; inherit attribute unrestricted double m24; inherit attribute unrestricted double m31; inherit attribute unrestricted double m32; inherit attribute unrestricted double m33; inherit attribute unrestricted double m34; inherit attribute unrestricted double m41; inherit attribute unrestricted double m42; inherit attribute unrestricted double m43; inherit attribute unrestricted double m44; // Mutable transform methods DOMMatrix multiplySelf(DOMMatrix other); DOMMatrix preMultiplySelf(DOMMatrix other); DOMMatrix translateSelf(unrestricted double tx, unrestricted double ty, optional unrestricted double tz = 0); DOMMatrix scaleSelf(unrestricted double scale, optional unrestricted double originX = 0, optional unrestricted double originY = 0); DOMMatrix scale3dSelf(unrestricted double scale, optional unrestricted double originX = 0, optional unrestricted double originY = 0, optional unrestricted double originZ = 0); DOMMatrix scaleNonUniformSelf(unrestricted double scaleX, optional unrestricted double scaleY = 1, optional unrestricted double scaleZ = 1, optional unrestricted double originX = 0, optional unrestricted double originY = 0, optional unrestricted double originZ = 0); DOMMatrix rotateSelf(unrestricted double angle, optional unrestricted double originX = 0, optional unrestricted double originY = 0); DOMMatrix rotateFromVectorSelf(unrestricted double x, unrestricted double y); DOMMatrix rotateAxisAngleSelf(unrestricted double x, unrestricted double y, unrestricted double z, unrestricted double angle); DOMMatrix skewXSelf(unrestricted double sx); DOMMatrix skewYSelf(unrestricted double sy); DOMMatrix invertSelf(); [Throws] DOMMatrix setMatrixValue(DOMString transformList); }; web-sys-0.3.55/webidls/enabled/DOMParser.webidl000064400000000000000000000014360072674642500173520ustar 00000000000000/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * http://domparsing.spec.whatwg.org/#the-domparser-interface */ // invalid widl // interface Principal; // interface URI; // interface InputStream; enum SupportedType { "text/html", "text/xml", "application/xml", "application/xhtml+xml", "image/svg+xml" }; [Constructor] interface DOMParser { [NewObject, Throws] Document parseFromString(DOMString str, SupportedType type); // Can be used to allow a DOMParser to parse XUL/XBL no matter what // principal it's using for the document. [ChromeOnly] undefined forceEnableXULXBL(); }; web-sys-0.3.55/webidls/enabled/DOMPoint.webidl000064400000000000000000000032260072674642500172060ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * http://dev.w3.org/fxtf/geometry/ * * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ [Pref="layout.css.DOMPoint.enabled", Constructor(optional unrestricted double x = 0, optional unrestricted double y = 0, optional unrestricted double z = 0, optional unrestricted double w = 1)] interface DOMPointReadOnly { [NewObject] static DOMPointReadOnly fromPoint(optional DOMPointInit other); readonly attribute unrestricted double x; readonly attribute unrestricted double y; readonly attribute unrestricted double z; readonly attribute unrestricted double w; [Default] object toJSON(); }; [Pref="layout.css.DOMPoint.enabled", Constructor(optional unrestricted double x = 0, optional unrestricted double y = 0, optional unrestricted double z = 0, optional unrestricted double w = 1)] interface DOMPoint : DOMPointReadOnly { [NewObject] static DOMPoint fromPoint(optional DOMPointInit other); inherit attribute unrestricted double x; inherit attribute unrestricted double y; inherit attribute unrestricted double z; inherit attribute unrestricted double w; }; dictionary DOMPointInit { unrestricted double x = 0; unrestricted double y = 0; unrestricted double z = 0; unrestricted double w = 1; }; web-sys-0.3.55/webidls/enabled/DOMQuad.webidl000064400000000000000000000024040072674642500170040ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * http://dev.w3.org/fxtf/geometry/ * * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ [Pref="layout.css.DOMQuad.enabled", Constructor(optional DOMPointInit p1, optional DOMPointInit p2, optional DOMPointInit p3, optional DOMPointInit p4), Constructor(DOMRectReadOnly rect)] interface DOMQuad { [SameObject] readonly attribute DOMPoint p1; [SameObject] readonly attribute DOMPoint p2; [SameObject] readonly attribute DOMPoint p3; [SameObject] readonly attribute DOMPoint p4; [NewObject] DOMRectReadOnly getBounds(); [SameObject, Deprecated=DOMQuadBoundsAttr] readonly attribute DOMRectReadOnly bounds; DOMQuadJSON toJSON(); }; dictionary DOMQuadJSON { DOMPoint p1; DOMPoint p2; DOMPoint p3; DOMPoint p4; }; dictionary DOMQuadInit { DOMPointInit p1; DOMPointInit p2; DOMPointInit p3; DOMPointInit p4; }; web-sys-0.3.55/webidls/enabled/DOMRect.webidl000064400000000000000000000032750072674642500170160ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * http://dev.w3.org/fxtf/geometry/ * * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ [Constructor(optional unrestricted double x = 0, optional unrestricted double y = 0, optional unrestricted double width = 0, optional unrestricted double height = 0)] interface DOMRect : DOMRectReadOnly { inherit attribute unrestricted double x; inherit attribute unrestricted double y; inherit attribute unrestricted double width; inherit attribute unrestricted double height; }; [ProbablyShortLivingWrapper, Constructor(optional unrestricted double x = 0, optional unrestricted double y = 0, optional unrestricted double width = 0, optional unrestricted double height = 0)] interface DOMRectReadOnly { readonly attribute unrestricted double x; readonly attribute unrestricted double y; readonly attribute unrestricted double width; readonly attribute unrestricted double height; readonly attribute unrestricted double top; readonly attribute unrestricted double right; readonly attribute unrestricted double bottom; readonly attribute unrestricted double left; [Default] object toJSON(); }; dictionary DOMRectInit { unrestricted double x = 0; unrestricted double y = 0; unrestricted double width = 0; unrestricted double height = 0; }; web-sys-0.3.55/webidls/enabled/DOMRectList.webidl000064400000000000000000000006220072674642500176430ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ interface DOMRectList { readonly attribute unsigned long length; getter DOMRect? item(unsigned long index); }; web-sys-0.3.55/webidls/enabled/DOMRequest.webidl000064400000000000000000000022630072674642500175450ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ enum DOMRequestReadyState { "pending", "done" }; [Exposed=(Window,Worker,System)] interface mixin DOMRequestShared { readonly attribute DOMRequestReadyState readyState; readonly attribute any result; readonly attribute DOMException? error; attribute EventHandler onsuccess; attribute EventHandler onerror; }; [Exposed=(Window,Worker,System)] interface DOMRequest : EventTarget { // The [TreatNonCallableAsNull] annotation is required since then() should do // nothing instead of throwing errors when non-callable arguments are passed. // See documentation for Promise.then to see why we return "any". [NewObject, Throws] any then([TreatNonCallableAsNull] optional AnyCallback? fulfillCallback = null, [TreatNonCallableAsNull] optional AnyCallback? rejectCallback = null); [ChromeOnly] undefined fireDetailedError(DOMException aError); }; DOMRequest includes DOMRequestShared; web-sys-0.3.55/webidls/enabled/DOMStringList.webidl000064400000000000000000000012610072674642500202140ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * http://www.w3.org/TR/2012/WD-dom-20120105/ * * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ [Exposed=(Window,Worker,System)] interface DOMStringList { readonly attribute unsigned long length; getter DOMString? item(unsigned long index); boolean contains(DOMString string); }; web-sys-0.3.55/webidls/enabled/DOMStringMap.webidl000064400000000000000000000015040072674642500200160ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * http://www.whatwg.org/specs/web-apps/current-work/multipage/common-dom-interfaces.html#domstringmap-0 * * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and * Opera Software ASA. You are granted a license to use, reproduce * and create derivative works of this document. */ [OverrideBuiltins] interface DOMStringMap { getter DOMString (DOMString name); [CEReactions, Throws] setter undefined (DOMString name, DOMString value); [CEReactions] deleter undefined (DOMString name); }; web-sys-0.3.55/webidls/enabled/DOMTokenList.webidl000064400000000000000000000022240072674642500200260ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * http://www.w3.org/TR/2012/WD-dom-20120105/ * * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ // updated using https://dom.spec.whatwg.org/#interface-domtokenlist interface DOMTokenList { readonly attribute unsigned long length; getter DOMString? item(unsigned long index); boolean contains(DOMString token); [CEReactions, Throws] undefined add(DOMString... tokens); [CEReactions, Throws] undefined remove(DOMString... tokens); [CEReactions, Throws] boolean replace(DOMString token, DOMString newToken); [CEReactions, Throws] boolean toggle(DOMString token, optional boolean force); [Throws] boolean supports(DOMString token); [CEReactions, SetterThrows] attribute DOMString value; stringifier DOMString (); iterable; }; web-sys-0.3.55/webidls/enabled/DataTransfer.webidl000064400000000000000000000030000072674642500201210ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is: * http://www.whatwg.org/specs/web-apps/current-work/#the-datatransfer-interface */ [Constructor] interface DataTransfer { attribute DOMString dropEffect; attribute DOMString effectAllowed; readonly attribute DataTransferItemList items; undefined setDragImage(Element image, long x, long y); // ReturnValueNeedsContainsHack on .types because lots of extension // code was expecting .contains() back when it was a DOMStringList. [Pure, Cached, Frozen, NeedsCallerType, ReturnValueNeedsContainsHack] readonly attribute sequence types; [Throws, NeedsSubjectPrincipal] DOMString getData(DOMString format); [Throws, NeedsSubjectPrincipal] undefined setData(DOMString format, DOMString data); [Throws, NeedsSubjectPrincipal] undefined clearData(optional DOMString format); [NeedsSubjectPrincipal] readonly attribute FileList? files; }; partial interface DataTransfer { [Throws, Pref="dom.input.dirpicker", NeedsSubjectPrincipal] Promise> getFilesAndDirectories(); [Throws, Pref="dom.input.dirpicker", NeedsSubjectPrincipal] Promise> getFiles(optional boolean recursiveFlag = false); }; web-sys-0.3.55/webidls/enabled/DataTransferItem.webidl000064400000000000000000000016260072674642500207540ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is: * https://html.spec.whatwg.org/multipage/interaction.html#the-datatransferitem-interface */ interface DataTransferItem { readonly attribute DOMString kind; readonly attribute DOMString type; [Throws, NeedsSubjectPrincipal] undefined getAsString(FunctionStringCallback? _callback); [Throws, NeedsSubjectPrincipal] File? getAsFile(); }; callback FunctionStringCallback = undefined (DOMString data); partial interface DataTransferItem { [Pref="dom.webkitBlink.filesystem.enabled", BinaryName="getAsEntry", Throws, NeedsSubjectPrincipal] FileSystemEntry? webkitGetAsEntry(); }; web-sys-0.3.55/webidls/enabled/DataTransferItemList.webidl000064400000000000000000000015060072674642500216050ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is: * https://html.spec.whatwg.org/multipage/interaction.html#the-datatransferitemlist-interface */ interface DataTransferItemList { readonly attribute unsigned long length; getter DataTransferItem (unsigned long index); [Throws, NeedsSubjectPrincipal] DataTransferItem? add(DOMString data, DOMString type); [Throws, NeedsSubjectPrincipal] DataTransferItem? add(File data); [Throws, NeedsSubjectPrincipal] undefined remove(unsigned long index); [Throws, NeedsSubjectPrincipal] undefined clear(); }; web-sys-0.3.55/webidls/enabled/DecoderDoctorNotification.webidl000064400000000000000000000021610072674642500226410ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ enum DecoderDoctorNotificationType { "cannot-play", "platform-decoder-not-found", "can-play-but-some-missing-decoders", "cannot-initialize-pulseaudio", "unsupported-libavcodec", "decode-error", "decode-warning", }; dictionary DecoderDoctorNotification { required DecoderDoctorNotificationType type; // True when the issue has been solved. required boolean isSolved; // Key from dom.properties, used for telemetry and prefs. required DOMString decoderDoctorReportId; // If provided, formats (or key systems) at issue. DOMString formats; // If provided, technical details about the decode-error/warning. DOMString decodeIssue; // If provided, URL of the document where the issue happened. DOMString docURL; // If provided, URL of the media resource that caused a decode-error/warning. DOMString resourceURL; }; web-sys-0.3.55/webidls/enabled/DedicatedWorkerGlobalScope.webidl000064400000000000000000000017470072674642500227360ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html#the-workerglobalscope-common-interface * * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and Opera * Software ASA. * You are granted a license to use, reproduce and create derivative works of * this document. */ [Global=(Worker,DedicatedWorker), Exposed=DedicatedWorker] interface DedicatedWorkerGlobalScope : WorkerGlobalScope { [Replaceable] readonly attribute DOMString name; [Throws] undefined postMessage(any message, optional sequence transfer = []); undefined close(); attribute EventHandler onmessage; attribute EventHandler onmessageerror; }; web-sys-0.3.55/webidls/enabled/DelayNode.webidl000064400000000000000000000014450072674642500174220ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * https://webaudio.github.io/web-audio-api/ * * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ dictionary DelayOptions : AudioNodeOptions { double maxDelayTime = 1; double delayTime = 0; }; [Pref="dom.webaudio.enabled", Constructor(BaseAudioContext context, optional DelayOptions options)] interface DelayNode : AudioNode { readonly attribute AudioParam delayTime; }; web-sys-0.3.55/webidls/enabled/DeviceLightEvent.webidl000064400000000000000000000011720072674642500207440ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ [Pref="device.sensors.ambientLight.enabled", Func="nsGlobalWindowInner::DeviceSensorsEnabled", Constructor(DOMString type, optional DeviceLightEventInit eventInitDict)] interface DeviceLightEvent : Event { readonly attribute unrestricted double value; }; dictionary DeviceLightEventInit : EventInit { unrestricted double value = Infinity; }; web-sys-0.3.55/webidls/enabled/DeviceMotionEvent.webidl000064400000000000000000000026470072674642500211520ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ [NoInterfaceObject] interface DeviceAcceleration { readonly attribute double? x; readonly attribute double? y; readonly attribute double? z; }; [NoInterfaceObject] interface DeviceRotationRate { readonly attribute double? alpha; readonly attribute double? beta; readonly attribute double? gamma; }; [Pref="device.sensors.motion.enabled", Func="nsGlobalWindowInner::DeviceSensorsEnabled", Constructor(DOMString type, optional DeviceMotionEventInit eventInitDict)] interface DeviceMotionEvent : Event { readonly attribute DeviceAcceleration? acceleration; readonly attribute DeviceAcceleration? accelerationIncludingGravity; readonly attribute DeviceRotationRate? rotationRate; readonly attribute double? interval; }; dictionary DeviceAccelerationInit { double? x = null; double? y = null; double? z = null; }; dictionary DeviceRotationRateInit { double? alpha = null; double? beta = null; double? gamma = null; }; dictionary DeviceMotionEventInit : EventInit { DeviceAccelerationInit acceleration; DeviceAccelerationInit accelerationIncludingGravity; DeviceRotationRateInit rotationRate; double? interval = null; }; web-sys-0.3.55/webidls/enabled/DeviceOrientationEvent.webidl000064400000000000000000000025150072674642500221720ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ [Pref="device.sensors.orientation.enabled", Func="nsGlobalWindowInner::DeviceSensorsEnabled", Constructor(DOMString type, optional DeviceOrientationEventInit eventInitDict), LegacyEventInit] interface DeviceOrientationEvent : Event { readonly attribute double? alpha; readonly attribute double? beta; readonly attribute double? gamma; readonly attribute boolean absolute; // initDeviceOrientationEvent is a Gecko specific deprecated method. undefined initDeviceOrientationEvent(DOMString type, optional boolean canBubble = false, optional boolean cancelable = false, optional double? alpha = null, optional double? beta = null, optional double? gamma = null, optional boolean absolute = false); }; dictionary DeviceOrientationEventInit : EventInit { double? alpha = null; double? beta = null; double? gamma = null; boolean absolute = false; }; web-sys-0.3.55/webidls/enabled/DeviceProximityEvent.webidl000064400000000000000000000014050072674642500217000ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ [Pref="device.sensors.proximity.enabled", Func="nsGlobalWindowInner::DeviceSensorsEnabled", Constructor(DOMString type, optional DeviceProximityEventInit eventInitDict)] interface DeviceProximityEvent : Event { readonly attribute double value; readonly attribute double min; readonly attribute double max; }; dictionary DeviceProximityEventInit : EventInit { unrestricted double value = Infinity; unrestricted double min = -Infinity; unrestricted double max = Infinity; }; web-sys-0.3.55/webidls/enabled/Directory.webidl000064400000000000000000000035250072674642500175230ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ /* * All functions on Directory that accept DOMString arguments for file or * directory names only allow relative path to current directory itself. The * path should be a descendent path like "path/to/file.txt" and not contain a * segment of ".." or ".". So the paths aren't allowed to walk up the directory * tree. For example, paths like "../foo", "..", "/foo/bar" or "foo/../bar" are * not allowed. * * http://w3c.github.io/filesystem-api/#idl-def-Directory * https://microsoftedge.github.io/directory-upload/proposal.html#directory-interface */ // This chromeConstructor is used by the MockFilePicker for testing only. [ChromeConstructor(DOMString path), Exposed=(Window,Worker)] interface Directory { /* * The leaf name of the directory. */ [Throws] readonly attribute DOMString name; }; [Exposed=(Window,Worker)] partial interface Directory { // Already defined in the main interface declaration: //readonly attribute DOMString name; /* * The path of the Directory (includes both its basename and leafname). * The path begins with the name of the ancestor Directory that was * originally exposed to content (say via a directory picker) and traversed * to obtain this Directory. Full filesystem paths are not exposed to * unprivilaged content. */ [Throws] readonly attribute DOMString path; /* * Getter for the immediate children of this directory. */ [Throws] Promise> getFilesAndDirectories(); [Throws] Promise> getFiles(optional boolean recursiveFlag = false); }; web-sys-0.3.55/webidls/enabled/Document.webidl000064400000000000000000000335420072674642500173370ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * https://dom.spec.whatwg.org/#interface-document * https://html.spec.whatwg.org/multipage/dom.html#the-document-object * https://html.spec.whatwg.org/multipage/obsolete.html#other-elements%2C-attributes-and-apis * https://fullscreen.spec.whatwg.org/#api * https://w3c.github.io/pointerlock/#extensions-to-the-document-interface * https://w3c.github.io/pointerlock/#extensions-to-the-documentorshadowroot-mixin * https://w3c.github.io/page-visibility/#extensions-to-the-document-interface * https://drafts.csswg.org/cssom/#extensions-to-the-document-interface * https://drafts.csswg.org/cssom-view/#extensions-to-the-document-interface */ /*TODO interface WindowProxy; interface nsISupports; interface URI; interface nsIDocShell; interface nsILoadGroup; */ enum VisibilityState { "hidden", "visible" }; /* https://dom.spec.whatwg.org/#dictdef-elementcreationoptions */ dictionary ElementCreationOptions { DOMString is; [ChromeOnly] DOMString pseudo; }; /* https://dom.spec.whatwg.org/#interface-document */ [Constructor] interface Document : Node { [Throws] readonly attribute DOMImplementation implementation; [Pure, Throws, BinaryName="documentURIFromJS", NeedsCallerType] readonly attribute DOMString URL; [Pure, Throws, BinaryName="documentURIFromJS", NeedsCallerType] readonly attribute DOMString documentURI; [Pure] readonly attribute DOMString compatMode; [Pure] readonly attribute DOMString characterSet; [Pure,BinaryName="characterSet"] readonly attribute DOMString charset; // legacy alias of .characterSet [Pure,BinaryName="characterSet"] readonly attribute DOMString inputEncoding; // legacy alias of .characterSet [Pure] readonly attribute DOMString contentType; [Pure] readonly attribute DocumentType? doctype; [Pure] readonly attribute Element? documentElement; [Pure] HTMLCollection getElementsByTagName(DOMString localName); [Pure, Throws] HTMLCollection getElementsByTagNameNS(DOMString? namespace, DOMString localName); [Pure] HTMLCollection getElementsByClassName(DOMString classNames); [Pure] Element? getElementById(DOMString elementId); [CEReactions, NewObject, Throws] Element createElement(DOMString localName, optional (ElementCreationOptions or DOMString) options); [CEReactions, NewObject, Throws] Element createElementNS(DOMString? namespace, DOMString qualifiedName, optional (ElementCreationOptions or DOMString) options); [NewObject] DocumentFragment createDocumentFragment(); [NewObject] Text createTextNode(DOMString data); [NewObject] Comment createComment(DOMString data); [NewObject, Throws] ProcessingInstruction createProcessingInstruction(DOMString target, DOMString data); [CEReactions, Throws] Node importNode(Node node, optional boolean deep = false); [CEReactions, Throws] Node adoptNode(Node node); [NewObject, Throws, NeedsCallerType] Event createEvent(DOMString interface); [NewObject, Throws] Range createRange(); // NodeFilter.SHOW_ALL = 0xFFFFFFFF [NewObject, Throws] NodeIterator createNodeIterator(Node root, optional unsigned long whatToShow = 0xFFFFFFFF, optional NodeFilter? filter = null); [NewObject, Throws] TreeWalker createTreeWalker(Node root, optional unsigned long whatToShow = 0xFFFFFFFF, optional NodeFilter? filter = null); // NEW // No support for prepend/append yet // undefined prepend((Node or DOMString)... nodes); // undefined append((Node or DOMString)... nodes); // These are not in the spec, but leave them for now for backwards compat. // So sort of like Gecko extensions [NewObject, Throws] CDATASection createCDATASection(DOMString data); [NewObject, Throws] Attr createAttribute(DOMString name); [NewObject, Throws] Attr createAttributeNS(DOMString? namespace, DOMString name); }; // https://html.spec.whatwg.org/multipage/dom.html#the-document-object partial interface Document { [PutForwards=href, Unforgeable] readonly attribute Location? location; //(HTML only) attribute DOMString domain; readonly attribute DOMString referrer; //(HTML only) attribute DOMString cookie; readonly attribute DOMString lastModified; readonly attribute DOMString readyState; // DOM tree accessors //(Not proxy yet)getter object (DOMString name); [CEReactions, SetterThrows, Pure] attribute DOMString title; [CEReactions, Pure] attribute DOMString dir; [CEReactions, Pure, SetterThrows] attribute HTMLElement? body; [Pure] readonly attribute HTMLHeadElement? head; [SameObject] readonly attribute HTMLCollection images; [SameObject] readonly attribute HTMLCollection embeds; [SameObject] readonly attribute HTMLCollection plugins; [SameObject] readonly attribute HTMLCollection links; [SameObject] readonly attribute HTMLCollection forms; [SameObject] readonly attribute HTMLCollection scripts; [Pure] NodeList getElementsByName(DOMString elementName); //(Not implemented)readonly attribute DOMElementMap cssElementMap; // dynamic markup insertion //(HTML only)Document open(optional DOMString type, optional DOMString replace); //(HTML only)WindowProxy open(DOMString url, DOMString name, DOMString features, optional boolean replace); //(HTML only)undefined close(); //(HTML only)undefined write(DOMString... text); //(HTML only)undefined writeln(DOMString... text); // user interaction [Pure] readonly attribute WindowProxy? defaultView; [Throws] boolean hasFocus(); //(HTML only) attribute DOMString designMode; //(HTML only)boolean execCommand(DOMString commandId); //(HTML only)boolean execCommand(DOMString commandId, boolean showUI); //(HTML only)boolean execCommand(DOMString commandId, boolean showUI, DOMString value); //(HTML only)boolean queryCommandEnabled(DOMString commandId); //(HTML only)boolean queryCommandIndeterm(DOMString commandId); //(HTML only)boolean queryCommandState(DOMString commandId); //(HTML only)boolean queryCommandSupported(DOMString commandId); //(HTML only)DOMString queryCommandValue(DOMString commandId); //(Not implemented)readonly attribute HTMLCollection commands; // special event handler IDL attributes that only apply to Document objects [LenientThis] attribute EventHandler onreadystatechange; // Gecko extensions? attribute EventHandler onbeforescriptexecute; attribute EventHandler onafterscriptexecute; [Pref="dom.select_events.enabled"] attribute EventHandler onselectionchange; /** * Returns the script element whose script is currently being processed. * * @see */ [Pure] readonly attribute Element? currentScript; /** * Release the current mouse capture if it is on an element within this * document. * * @see */ undefined releaseCapture(); [ChromeOnly] readonly attribute URI? documentURIObject; /** * Current referrer policy - one of the REFERRER_POLICY_* constants * from nsIHttpChannel. */ [ChromeOnly] readonly attribute unsigned long referrerPolicy; }; // https://html.spec.whatwg.org/multipage/obsolete.html#other-elements%2C-attributes-and-apis partial interface Document { //(HTML only)[CEReactions] attribute [TreatNullAs=EmptyString] DOMString fgColor; //(HTML only)[CEReactions] attribute [TreatNullAs=EmptyString] DOMString linkColor; //(HTML only)[CEReactions] attribute [TreatNullAs=EmptyString] DOMString vlinkColor; //(HTML only)[CEReactions] attribute [TreatNullAs=EmptyString] DOMString alinkColor; //(HTML only)[CEReactions] attribute [TreatNullAs=EmptyString] DOMString bgColor; [SameObject] readonly attribute HTMLCollection anchors; [SameObject] readonly attribute HTMLCollection applets; //(HTML only)undefined clear(); //(HTML only)undefined captureEvents(); //(HTML only)undefined releaseEvents(); //(HTML only)[SameObject] readonly attribute HTMLAllCollection all; }; // https://fullscreen.spec.whatwg.org/#api partial interface Document { // Note: Per spec the 'S' in these two is lowercase, but the "Moz" // versions have it uppercase. [LenientSetter, Unscopable, Func="nsDocument::IsUnprefixedFullscreenEnabled"] readonly attribute boolean fullscreen; [LenientSetter, Func="nsDocument::IsUnprefixedFullscreenEnabled", NeedsCallerType] readonly attribute boolean fullscreenEnabled; [Func="nsDocument::IsUnprefixedFullscreenEnabled"] undefined exitFullscreen(); // Events handlers [Func="nsDocument::IsUnprefixedFullscreenEnabled"] attribute EventHandler onfullscreenchange; [Func="nsDocument::IsUnprefixedFullscreenEnabled"] attribute EventHandler onfullscreenerror; }; // https://w3c.github.io/pointerlock/#extensions-to-the-document-interface // https://w3c.github.io/pointerlock/#extensions-to-the-documentorshadowroot-mixin partial interface Document { undefined exitPointerLock(); // Event handlers attribute EventHandler onpointerlockchange; attribute EventHandler onpointerlockerror; }; // https://w3c.github.io/page-visibility/#extensions-to-the-document-interface partial interface Document { readonly attribute boolean hidden; readonly attribute VisibilityState visibilityState; attribute EventHandler onvisibilitychange; }; // https://drafts.csswg.org/cssom/#extensions-to-the-document-interface partial interface Document { attribute DOMString? selectedStyleSheetSet; readonly attribute DOMString? lastStyleSheetSet; readonly attribute DOMString? preferredStyleSheetSet; [Constant] readonly attribute DOMStringList styleSheetSets; undefined enableStyleSheetsForSet (DOMString? name); }; // https://drafts.csswg.org/cssom-view/#extensions-to-the-document-interface partial interface Document { CaretPosition? caretPositionFromPoint (float x, float y); readonly attribute Element? scrollingElement; }; // http://dev.w3.org/2006/webapi/selectors-api2/#interface-definitions partial interface Document { [Throws, Pure] Element? querySelector(DOMString selectors); [Throws, Pure] NodeList querySelectorAll(DOMString selectors); //(Not implemented)Element? find(DOMString selectors, optional (Element or sequence)? refNodes); //(Not implemented)NodeList findAll(DOMString selectors, optional (Element or sequence)? refNodes); }; // https://drafts.csswg.org/web-animations/#extensions-to-the-document-interface partial interface Document { [Func="nsDocument::IsWebAnimationsEnabled"] readonly attribute DocumentTimeline timeline; [Func="nsDocument::IsWebAnimationsEnabled"] sequence getAnimations(); }; // https://svgwg.org/svg2-draft/struct.html#InterfaceDocumentExtensions partial interface Document { [BinaryName="SVGRootElement"] readonly attribute SVGSVGElement? rootElement; }; dictionary BlockParsingOptions { /** * If true, blocks script-created parsers (created via document.open()) in * addition to network-created parsers. */ boolean blockScriptCreated = true; }; // Extension to give chrome JS the ability to determine when a document was // created to satisfy an iframe with srcdoc attribute. partial interface Document { [ChromeOnly] readonly attribute boolean isSrcdocDocument; }; // Extension to give chrome JS the ability to get the underlying // sandbox flag attribute partial interface Document { [ChromeOnly] readonly attribute DOMString? sandboxFlagsAsString; }; /** * Chrome document anonymous content management. * This is a Chrome-only API that allows inserting fixed positioned anonymous * content on top of the current page displayed in the document. * The supplied content is cloned and inserted into the document's CanvasFrame. * Note that this only works for HTML documents. */ partial interface Document { /** * Deep-clones the provided element and inserts it into the CanvasFrame. * Returns an AnonymousContent instance that can be used to manipulate the * inserted element. */ [ChromeOnly, NewObject, Throws] AnonymousContent insertAnonymousContent(Element aElement); /** * Removes the element inserted into the CanvasFrame given an AnonymousContent * instance. */ [ChromeOnly, Throws] undefined removeAnonymousContent(AnonymousContent aContent); }; // http://w3c.github.io/selection-api/#extensions-to-document-interface partial interface Document { [Throws] Selection? getSelection(); }; // Extension to give chrome JS the ability to determine whether // the user has interacted with the document or not. partial interface Document { [ChromeOnly] readonly attribute boolean userHasInteracted; }; // Extension to give chrome JS the ability to simulate activate the docuement // by user gesture. partial interface Document { [ChromeOnly] undefined notifyUserGestureActivation(); }; // For more information on Flash classification, see // toolkit/components/url-classifier/flash-block-lists.rst enum FlashClassification { "unclassified", // Denotes a classification that has not yet been computed. // Allows for lazy classification. "unknown", // Site is not on the whitelist or blacklist "allowed", // Site is on the Flash whitelist "denied" // Site is on the Flash blacklist }; partial interface Document { [ChromeOnly] readonly attribute FlashClassification documentFlashClassification; }; Document includes XPathEvaluator; Document includes GlobalEventHandlers; Document includes DocumentAndElementEventHandlers; Document includes TouchEventHandlers; Document includes ParentNode; Document includes OnErrorEventHandlerForNodes; Document includes GeometryUtils; Document includes FontFaceSource; Document includes DocumentOrShadowRoot; web-sys-0.3.55/webidls/enabled/DocumentFragment.webidl000064400000000000000000000017300072674642500210150ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * http://www.w3.org/TR/2012/WD-dom-20120405/#interface-documentfragment * http://www.w3.org/TR/2012/WD-selectors-api-20120628/#interface-definitions * * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ [Constructor] interface DocumentFragment : Node { Element? getElementById(DOMString elementId); }; // http://www.w3.org/TR/2012/WD-selectors-api-20120628/#interface-definitions partial interface DocumentFragment { [Throws] Element? querySelector(DOMString selectors); [Throws] NodeList querySelectorAll(DOMString selectors); }; DocumentFragment includes ParentNode; web-sys-0.3.55/webidls/enabled/DocumentOrShadowRoot.webidl000064400000000000000000000020420072674642500216410ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * https://dom.spec.whatwg.org/#documentorshadowroot * http://w3c.github.io/webcomponents/spec/shadow/#extensions-to-the-documentorshadowroot-mixin */ interface mixin DocumentOrShadowRoot { // Not implemented yet: bug 1430308. // Selection? getSelection(); Element? elementFromPoint (float x, float y); sequence elementsFromPoint (float x, float y); // Not implemented yet: bug 1430307. // CaretPosition? caretPositionFromPoint (float x, float y); readonly attribute Element? activeElement; readonly attribute StyleSheetList styleSheets; readonly attribute Element? pointerLockElement; [LenientSetter, Func="nsIDocument::IsUnprefixedFullscreenEnabled"] readonly attribute Element? fullscreenElement; }; web-sys-0.3.55/webidls/enabled/DocumentTimeline.webidl000064400000000000000000000013520072674642500210200ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * https://drafts.csswg.org/web-animations/#documenttimeline * * Copyright © 2015 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ dictionary DocumentTimelineOptions { DOMHighResTimeStamp originTime = 0; }; [Func="nsDocument::IsWebAnimationsEnabled", Constructor (optional DocumentTimelineOptions options)] interface DocumentTimeline : AnimationTimeline { }; web-sys-0.3.55/webidls/enabled/DocumentType.webidl000064400000000000000000000012550072674642500201750ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * http://dom.spec.whatwg.org/#documenttype * * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ interface DocumentType : Node { readonly attribute DOMString name; readonly attribute DOMString publicId; readonly attribute DOMString systemId; }; DocumentType includes ChildNode; web-sys-0.3.55/webidls/enabled/DragEvent.webidl000064400000000000000000000025640072674642500174400ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ [Constructor(DOMString type, optional DragEventInit eventInitDict)] interface DragEvent : MouseEvent { readonly attribute DataTransfer? dataTransfer; undefined initDragEvent(DOMString type, optional boolean canBubble = false, optional boolean cancelable = false, optional Window? aView = null, optional long aDetail = 0, optional long aScreenX = 0, optional long aScreenY = 0, optional long aClientX = 0, optional long aClientY = 0, optional boolean aCtrlKey = false, optional boolean aAltKey = false, optional boolean aShiftKey = false, optional boolean aMetaKey = false, optional unsigned short aButton = 0, optional EventTarget? aRelatedTarget = null, optional DataTransfer? aDataTransfer = null); }; dictionary DragEventInit : MouseEventInit { DataTransfer? dataTransfer = null; }; web-sys-0.3.55/webidls/enabled/DynamicsCompressorNode.webidl000064400000000000000000000023160072674642500222060ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * https://webaudio.github.io/web-audio-api/ * * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ dictionary DynamicsCompressorOptions : AudioNodeOptions { float attack = 0.003; float knee = 30; float ratio = 12; float release = 0.25; float threshold = -24; }; [Pref="dom.webaudio.enabled", Constructor(BaseAudioContext context, optional DynamicsCompressorOptions options)] interface DynamicsCompressorNode : AudioNode { readonly attribute AudioParam threshold; // in Decibels readonly attribute AudioParam knee; // in Decibels readonly attribute AudioParam ratio; // unit-less readonly attribute float reduction; // in Decibels readonly attribute AudioParam attack; // in Seconds readonly attribute AudioParam release; // in Seconds }; web-sys-0.3.55/webidls/enabled/Element.webidl000064400000000000000000000220070072674642500171440ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * http://dom.spec.whatwg.org/#element and * http://domparsing.spec.whatwg.org/ and * http://dev.w3.org/csswg/cssom-view/ and * http://www.w3.org/TR/selectors-api/ * * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ interface Element : Node { [Constant] readonly attribute DOMString? namespaceURI; [Constant] readonly attribute DOMString? prefix; [Constant] readonly attribute DOMString localName; // Not [Constant] because it depends on which document we're in [Pure] readonly attribute DOMString tagName; [CEReactions, Pure] attribute DOMString id; [CEReactions, Pure] attribute DOMString className; [Constant, PutForwards=value] readonly attribute DOMTokenList classList; [SameObject] readonly attribute NamedNodeMap attributes; [Pure] sequence getAttributeNames(); [Pure] DOMString? getAttribute(DOMString name); [Pure] DOMString? getAttributeNS(DOMString? namespace, DOMString localName); [CEReactions, NeedsSubjectPrincipal=NonSystem, Throws] boolean toggleAttribute(DOMString name, optional boolean force); [CEReactions, NeedsSubjectPrincipal=NonSystem, Throws] undefined setAttribute(DOMString name, DOMString value); [CEReactions, NeedsSubjectPrincipal=NonSystem, Throws] undefined setAttributeNS(DOMString? namespace, DOMString name, DOMString value); [CEReactions, Throws] undefined removeAttribute(DOMString name); [CEReactions, Throws] undefined removeAttributeNS(DOMString? namespace, DOMString localName); [Pure] boolean hasAttribute(DOMString name); [Pure] boolean hasAttributeNS(DOMString? namespace, DOMString localName); [Pure] boolean hasAttributes(); [Throws, Pure] Element? closest(DOMString selector); [Throws, Pure] boolean matches(DOMString selector); [Throws, Pure, BinaryName="matches"] boolean webkitMatchesSelector(DOMString selector); [Pure] HTMLCollection getElementsByTagName(DOMString localName); [Throws, Pure] HTMLCollection getElementsByTagNameNS(DOMString? namespace, DOMString localName); [Pure] HTMLCollection getElementsByClassName(DOMString classNames); [ChromeOnly, Pure] sequence getElementsWithGrid(); [CEReactions, Throws, Pure] Element? insertAdjacentElement(DOMString where, Element element); // historical [Throws] undefined insertAdjacentText(DOMString where, DOMString data); // historical /** * The ratio of font-size-inflated text font size to computed font * size for this element. This will query the element for its primary frame, * and then use this to get font size inflation information about the frame. * This will be 1.0 if font size inflation is not enabled, and -1.0 if an * error occurred during the retrieval of the font size inflation. * * @note The font size inflation ratio that is returned is actually the * font size inflation data for the element's _primary frame_, not the * element itself, but for most purposes, this should be sufficient. */ [ChromeOnly] readonly attribute float fontSizeInflation; // Selectors API // Pointer events methods. [Throws, Pref="dom.w3c_pointer_events.enabled"] undefined setPointerCapture(long pointerId); [Throws, Pref="dom.w3c_pointer_events.enabled"] undefined releasePointerCapture(long pointerId); [Pref="dom.w3c_pointer_events.enabled"] boolean hasPointerCapture(long pointerId); // Proprietary extensions /** * Set this during a mousedown event to grab and retarget all mouse events * to this element until the mouse button is released or releaseCapture is * called. If retargetToElement is true, then all events are targetted at * this element. If false, events can also fire at descendants of this * element. * */ undefined setCapture(optional boolean retargetToElement = false); /** * If this element has captured the mouse, release the capture. If another * element has captured the mouse, this method has no effect. */ undefined releaseCapture(); /* * Chrome-only version of setCapture that works outside of a mousedown event. */ [ChromeOnly] undefined setCaptureAlways(optional boolean retargetToElement = false); // Obsolete methods. Attr? getAttributeNode(DOMString name); [CEReactions, Throws] Attr? setAttributeNode(Attr newAttr); [CEReactions, Throws] Attr? removeAttributeNode(Attr oldAttr); Attr? getAttributeNodeNS(DOMString? namespaceURI, DOMString localName); [CEReactions, Throws] Attr? setAttributeNodeNS(Attr newAttr); [ChromeOnly] /** * Scrolls the element by (dx, dy) CSS pixels without doing any * layout flushing. */ boolean scrollByNoFlush(long dx, long dy); // Support reporting of Flexbox properties /** * If this element has a display:flex or display:inline-flex style, * this property returns an object with computed values for flex * properties, as well as a property that exposes the flex lines * in this container. */ [ChromeOnly, Pure] Flex? getAsFlexContainer(); // Support reporting of Grid properties /** * If this element has a display:grid or display:inline-grid style, * this property returns an object with computed values for grid * tracks and lines. */ [ChromeOnly, Pure] sequence getGridFragments(); [ChromeOnly] DOMMatrixReadOnly getTransformToAncestor(Element ancestor); [ChromeOnly] DOMMatrixReadOnly getTransformToParent(); [ChromeOnly] DOMMatrixReadOnly getTransformToViewport(); }; // http://dev.w3.org/csswg/cssom-view/ enum ScrollLogicalPosition { "start", "center", "end", "nearest" }; dictionary ScrollIntoViewOptions : ScrollOptions { ScrollLogicalPosition block = "start"; ScrollLogicalPosition inline = "nearest"; }; // http://dev.w3.org/csswg/cssom-view/#extensions-to-the-element-interface partial interface Element { DOMRectList getClientRects(); DOMRect getBoundingClientRect(); // scrolling undefined scrollIntoView(optional (boolean or ScrollIntoViewOptions) arg); // None of the CSSOM attributes are [Pure], because they flush attribute long scrollTop; // scroll on setting attribute long scrollLeft; // scroll on setting readonly attribute long scrollWidth; readonly attribute long scrollHeight; undefined scroll(unrestricted double x, unrestricted double y); undefined scroll(optional ScrollToOptions options); undefined scrollTo(unrestricted double x, unrestricted double y); undefined scrollTo(optional ScrollToOptions options); undefined scrollBy(unrestricted double x, unrestricted double y); undefined scrollBy(optional ScrollToOptions options); readonly attribute long clientTop; readonly attribute long clientLeft; readonly attribute long clientWidth; readonly attribute long clientHeight; }; // http://domparsing.spec.whatwg.org/#extensions-to-the-element-interface partial interface Element { [CEReactions, SetterNeedsSubjectPrincipal=NonSystem, Pure, SetterThrows, GetterCanOOM, TreatNullAs=EmptyString] attribute DOMString innerHTML; [CEReactions, Pure,SetterThrows,TreatNullAs=EmptyString] attribute DOMString outerHTML; [CEReactions, Throws] undefined insertAdjacentHTML(DOMString position, DOMString text); }; // http://www.w3.org/TR/selectors-api/#interface-definitions partial interface Element { [Throws, Pure] Element? querySelector(DOMString selectors); [Throws, Pure] NodeList querySelectorAll(DOMString selectors); }; // https://dom.spec.whatwg.org/#dictdef-shadowrootinit dictionary ShadowRootInit { required ShadowRootMode mode; }; // https://dom.spec.whatwg.org/#element partial interface Element { // Shadow DOM v1 [Throws, Func="nsDocument::IsShadowDOMEnabled"] ShadowRoot attachShadow(ShadowRootInit shadowRootInitDict); [BinaryName="shadowRootByMode", Func="nsDocument::IsShadowDOMEnabled"] readonly attribute ShadowRoot? shadowRoot; [ChromeOnly, Func="nsDocument::IsShadowDOMEnabled", BinaryName="shadowRoot"] readonly attribute ShadowRoot? openOrClosedShadowRoot; [BinaryName="assignedSlotByMode", Func="nsDocument::IsShadowDOMEnabled"] readonly attribute HTMLSlotElement? assignedSlot; [CEReactions, Unscopable, SetterThrows, Func="nsDocument::IsShadowDOMEnabled"] attribute DOMString slot; }; Element includes ChildNode; Element includes NonDocumentTypeChildNode; Element includes ParentNode; Element includes Animatable; Element includes GeometryUtils; // https://fullscreen.spec.whatwg.org/#api partial interface Element { [Throws, Func="nsDocument::IsUnprefixedFullscreenEnabled", NeedsCallerType] undefined requestFullscreen(); }; // https://w3c.github.io/pointerlock/#extensions-to-the-element-interface partial interface Element { [NeedsCallerType] undefined requestPointerLock(); }; web-sys-0.3.55/webidls/enabled/ErrorEvent.webidl000064400000000000000000000014300072674642500176430ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ [Constructor(DOMString type, optional ErrorEventInit eventInitDict), Exposed=(Window,Worker,System)] interface ErrorEvent : Event { readonly attribute DOMString message; readonly attribute DOMString filename; readonly attribute unsigned long lineno; readonly attribute unsigned long colno; readonly attribute any error; }; dictionary ErrorEventInit : EventInit { DOMString message = ""; DOMString filename = ""; unsigned long lineno = 0; unsigned long colno = 0; any error = null; }; web-sys-0.3.55/webidls/enabled/Event.webidl000064400000000000000000000037110072674642500166350ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * http://www.w3.org/TR/2012/WD-dom-20120105/ * * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ [Constructor(DOMString type, optional EventInit eventInitDict), Exposed=(Window,Worker,System), ProbablyShortLivingWrapper] interface Event { [Pure] readonly attribute DOMString type; [Pure, BindingAlias="srcElement"] readonly attribute EventTarget? target; [Pure] readonly attribute EventTarget? currentTarget; sequence composedPath(); const unsigned short NONE = 0; const unsigned short CAPTURING_PHASE = 1; const unsigned short AT_TARGET = 2; const unsigned short BUBBLING_PHASE = 3; [Pure] readonly attribute unsigned short eventPhase; undefined stopPropagation(); undefined stopImmediatePropagation(); [Pure] readonly attribute boolean bubbles; [Pure] readonly attribute boolean cancelable; [NeedsCallerType] undefined preventDefault(); [Pure, NeedsCallerType] readonly attribute boolean defaultPrevented; [ChromeOnly, Pure] readonly attribute boolean defaultPreventedByChrome; [ChromeOnly, Pure] readonly attribute boolean defaultPreventedByContent; [Pure] readonly attribute boolean composed; [Unforgeable, Pure] readonly attribute boolean isTrusted; [Pure] readonly attribute DOMHighResTimeStamp timeStamp; undefined initEvent(DOMString type, optional boolean bubbles = false, optional boolean cancelable = false); attribute boolean cancelBubble; }; dictionary EventInit { boolean bubbles = false; boolean cancelable = false; boolean composed = false; }; web-sys-0.3.55/webidls/enabled/EventHandler.webidl000064400000000000000000000164660072674642500201460ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * http://www.whatwg.org/specs/web-apps/current-work/#eventhandler * * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and * Opera Software ASA. You are granted a license to use, reproduce * and create derivative works of this document. */ [TreatNonObjectAsNull] callback EventHandlerNonNull = any (Event event); typedef EventHandlerNonNull? EventHandler; [TreatNonObjectAsNull] callback OnBeforeUnloadEventHandlerNonNull = DOMString? (Event event); typedef OnBeforeUnloadEventHandlerNonNull? OnBeforeUnloadEventHandler; [TreatNonObjectAsNull] callback OnErrorEventHandlerNonNull = any ((Event or DOMString) event, optional DOMString source, optional unsigned long lineno, optional unsigned long column, optional any error); typedef OnErrorEventHandlerNonNull? OnErrorEventHandler; interface mixin GlobalEventHandlers { attribute EventHandler onabort; attribute EventHandler onblur; // We think the spec is wrong here. See OnErrorEventHandlerForNodes/Window // below. // attribute OnErrorEventHandler onerror; attribute EventHandler onfocus; //(Not implemented)attribute EventHandler oncancel; attribute EventHandler onauxclick; attribute EventHandler oncanplay; attribute EventHandler oncanplaythrough; attribute EventHandler onchange; attribute EventHandler onclick; attribute EventHandler onclose; attribute EventHandler oncontextmenu; //(Not implemented)attribute EventHandler oncuechange; attribute EventHandler ondblclick; attribute EventHandler ondrag; attribute EventHandler ondragend; attribute EventHandler ondragenter; attribute EventHandler ondragexit; attribute EventHandler ondragleave; attribute EventHandler ondragover; attribute EventHandler ondragstart; attribute EventHandler ondrop; attribute EventHandler ondurationchange; attribute EventHandler onemptied; attribute EventHandler onended; attribute EventHandler oninput; attribute EventHandler oninvalid; attribute EventHandler onkeydown; attribute EventHandler onkeypress; attribute EventHandler onkeyup; attribute EventHandler onload; attribute EventHandler onloadeddata; attribute EventHandler onloadedmetadata; attribute EventHandler onloadend; attribute EventHandler onloadstart; attribute EventHandler onmousedown; [LenientThis] attribute EventHandler onmouseenter; [LenientThis] attribute EventHandler onmouseleave; attribute EventHandler onmousemove; attribute EventHandler onmouseout; attribute EventHandler onmouseover; attribute EventHandler onmouseup; attribute EventHandler onwheel; attribute EventHandler onpause; attribute EventHandler onplay; attribute EventHandler onplaying; attribute EventHandler onprogress; attribute EventHandler onratechange; attribute EventHandler onreset; attribute EventHandler onresize; attribute EventHandler onscroll; attribute EventHandler onseeked; attribute EventHandler onseeking; attribute EventHandler onselect; attribute EventHandler onshow; //(Not implemented)attribute EventHandler onsort; attribute EventHandler onstalled; attribute EventHandler onsubmit; attribute EventHandler onsuspend; attribute EventHandler ontimeupdate; attribute EventHandler onvolumechange; attribute EventHandler onwaiting; [Pref="dom.select_events.enabled"] attribute EventHandler onselectstart; attribute EventHandler ontoggle; // Pointer events handlers [Pref="dom.w3c_pointer_events.enabled"] attribute EventHandler onpointercancel; [Pref="dom.w3c_pointer_events.enabled"] attribute EventHandler onpointerdown; [Pref="dom.w3c_pointer_events.enabled"] attribute EventHandler onpointerup; [Pref="dom.w3c_pointer_events.enabled"] attribute EventHandler onpointermove; [Pref="dom.w3c_pointer_events.enabled"] attribute EventHandler onpointerout; [Pref="dom.w3c_pointer_events.enabled"] attribute EventHandler onpointerover; [Pref="dom.w3c_pointer_events.enabled"] attribute EventHandler onpointerenter; [Pref="dom.w3c_pointer_events.enabled"] attribute EventHandler onpointerleave; [Pref="dom.w3c_pointer_events.enabled"] attribute EventHandler ongotpointercapture; [Pref="dom.w3c_pointer_events.enabled"] attribute EventHandler onlostpointercapture; // CSS-Animation and CSS-Transition handlers. attribute EventHandler onanimationcancel; attribute EventHandler onanimationend; attribute EventHandler onanimationiteration; attribute EventHandler onanimationstart; attribute EventHandler ontransitioncancel; attribute EventHandler ontransitionend; attribute EventHandler ontransitionrun; attribute EventHandler ontransitionstart; // CSS-Animation and CSS-Transition legacy handlers. // This handler isn't standard. attribute EventHandler onwebkitanimationend; attribute EventHandler onwebkitanimationiteration; attribute EventHandler onwebkitanimationstart; attribute EventHandler onwebkittransitionend; }; interface mixin WindowEventHandlers { attribute EventHandler onafterprint; attribute EventHandler onbeforeprint; attribute OnBeforeUnloadEventHandler onbeforeunload; attribute EventHandler onhashchange; attribute EventHandler onlanguagechange; attribute EventHandler onmessage; attribute EventHandler onmessageerror; attribute EventHandler onoffline; attribute EventHandler ononline; attribute EventHandler onpagehide; attribute EventHandler onpageshow; attribute EventHandler onpopstate; attribute EventHandler onstorage; attribute EventHandler onunload; }; interface mixin DocumentAndElementEventHandlers { attribute EventHandler oncopy; attribute EventHandler oncut; attribute EventHandler onpaste; }; // The spec has |attribute OnErrorEventHandler onerror;| on // GlobalEventHandlers, and calls the handler differently depending on // whether an ErrorEvent was fired. We don't do that, and until we do we'll // need to distinguish between onerror on Window or on nodes. interface mixin OnErrorEventHandlerForNodes { attribute EventHandler onerror; }; interface mixin OnErrorEventHandlerForWindow { attribute OnErrorEventHandler onerror; }; web-sys-0.3.55/webidls/enabled/EventListener.webidl000064400000000000000000000010770072674642500203460ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * http://www.w3.org/TR/2012/WD-dom-20120105/ * * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ callback interface EventListener { undefined handleEvent(Event event); }; web-sys-0.3.55/webidls/enabled/EventSource.webidl000064400000000000000000000023400072674642500200130ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * https://html.spec.whatwg.org/multipage/comms.html#the-eventsource-interface * * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and * Opera Software ASA. You are granted a license to use, reproduce * and create derivative works of this document. */ [Exposed=(Window,DedicatedWorker,SharedWorker), Constructor(USVString url, optional EventSourceInit eventSourceInitDict)] interface EventSource : EventTarget { [Constant] readonly attribute DOMString url; [Constant] readonly attribute boolean withCredentials; // ready state const unsigned short CONNECTING = 0; const unsigned short OPEN = 1; const unsigned short CLOSED = 2; readonly attribute unsigned short readyState; // networking attribute EventHandler onopen; attribute EventHandler onmessage; attribute EventHandler onerror; undefined close(); }; dictionary EventSourceInit { boolean withCredentials = false; }; web-sys-0.3.55/webidls/enabled/EventTarget.webidl000064400000000000000000000027310072674642500200050ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * http://www.w3.org/TR/2012/WD-dom-20120105/ * * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ dictionary EventListenerOptions { boolean capture = false; }; dictionary AddEventListenerOptions : EventListenerOptions { boolean passive; boolean once = false; }; [Constructor, Exposed=(Window,Worker,WorkerDebugger,AudioWorklet,System)] interface EventTarget { /* Passing null for wantsUntrusted means "default behavior", which differs in content and chrome. In content that default boolean value is true, while in chrome the default boolean value is false. */ [Throws] undefined addEventListener(DOMString type, EventListener listener, optional (AddEventListenerOptions or boolean) options, optional boolean? wantsUntrusted = null); [Throws] undefined removeEventListener(DOMString type, EventListener listener, optional (EventListenerOptions or boolean) options); [Throws, NeedsCallerType] boolean dispatchEvent(Event event); }; web-sys-0.3.55/webidls/enabled/ExtendableEvent.webidl000064400000000000000000000014230072674642500206270ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * For more information on this interface, please see * http://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html */ [Constructor(DOMString type, optional ExtendableEventInit eventInitDict), Exposed=ServiceWorker] interface ExtendableEvent : Event { // https://github.com/slightlyoff/ServiceWorker/issues/261 [Throws] undefined waitUntil(Promise p); }; dictionary ExtendableEventInit : EventInit { // Defined for the forward compatibility across the derived events }; web-sys-0.3.55/webidls/enabled/ExtendableMessageEvent.webidl000064400000000000000000000025360072674642500221420ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * For more information on this interface, please see * https://w3c.github.io/ServiceWorker/#extendablemessage-event-section */ [Constructor(DOMString type, optional ExtendableMessageEventInit eventInitDict), Exposed=(ServiceWorker)] interface ExtendableMessageEvent : ExtendableEvent { /** * Custom data associated with this event. */ [GetterThrows] readonly attribute any data; /** * The origin of the site from which this event originated. */ readonly attribute DOMString origin; /** * The last event ID string of the event source. */ readonly attribute DOMString lastEventId; /** * The client, service worker or port which originated this event. */ readonly attribute (Client or ServiceWorker or MessagePort)? source; [Constant, Cached, Frozen] readonly attribute sequence ports; }; dictionary ExtendableMessageEventInit : ExtendableEventInit { any data = null; DOMString origin = ""; DOMString lastEventId = ""; (Client or ServiceWorker or MessagePort)? source = null; sequence ports = []; }; web-sys-0.3.55/webidls/enabled/External.webidl000064400000000000000000000007610072674642500173400ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ [NoInterfaceObject, JSImplementation="@mozilla.org/sidebar;1"] interface External { undefined AddSearchProvider(DOMString aDescriptionURL); unsigned long IsSearchProviderInstalled(DOMString aSearchURL); }; web-sys-0.3.55/webidls/enabled/FakePluginTagInit.webidl000064400000000000000000000032360072674642500210630ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ /** * A fake plugin is fundamentally identified by its handlerURI. * * In addition to that, a fake plugin registration needs to provide at least one * FakePluginMimeEntry so we'll know what types(s) the plugin is registered for. * Other information is optional, though having usable niceName is highly * recommended. */ dictionary FakePluginTagInit { required DOMString handlerURI; required sequence mimeEntries; // The niceName should really be provided, and be unique, if possible; it can // be used as a key to persist state for this plug-in. DOMString niceName = ""; // Other things can be provided but don't really matter that much. DOMString fullPath = ""; DOMString name = ""; DOMString description = ""; DOMString fileName = ""; DOMString version = ""; /** * Optional script to run in a sandbox when instantiating a plugin. The script * runs in a sandbox with system principal in the process that contains the * element that instantiates the plugin (ie the EMBED or OBJECT element). The * sandbox global has a 'pluginElement' property that the script can use to * access the element that instantiates the plugin. */ DOMString sandboxScript = ""; }; /** * A single MIME entry for the fake plugin. */ dictionary FakePluginMimeEntry { required DOMString type; DOMString description = ""; DOMString extension = ""; }; web-sys-0.3.55/webidls/enabled/Fetch.webidl000064400000000000000000000021660072674642500166100ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * http://fetch.spec.whatwg.org/ */ typedef object JSON; typedef (Blob or BufferSource or FormData or URLSearchParams or USVString or ReadableStream) BodyInit; [Exposed=(Window,Worker)] interface mixin Body { readonly attribute boolean bodyUsed; [Throws] Promise arrayBuffer(); [Throws] Promise blob(); [Throws] Promise formData(); [Throws] Promise json(); [Throws] Promise text(); readonly attribute ReadableStream? body; }; // These are helper dictionaries for the parsing of a // getReader().read().then(data) parsing. // See more about how these 2 helpers are used in // dom/fetch/FetchStreamReader.cpp dictionary FetchReadableStreamReadDataDone { boolean done = false; }; dictionary FetchReadableStreamReadDataArray { Uint8Array value; }; web-sys-0.3.55/webidls/enabled/FetchEvent.webidl000064400000000000000000000016050072674642500176070ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * For more information on this interface, please see * http://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html */ [Constructor(DOMString type, FetchEventInit eventInitDict), Func="ServiceWorkerVisible", Exposed=(ServiceWorker)] interface FetchEvent : ExtendableEvent { [SameObject] readonly attribute Request request; readonly attribute DOMString? clientId; readonly attribute boolean isReload; [Throws] undefined respondWith(Promise r); }; dictionary FetchEventInit : EventInit { required Request request; DOMString? clientId = null; boolean isReload = false; }; web-sys-0.3.55/webidls/enabled/FetchObserver.webidl000064400000000000000000000014470072674642500203210ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ callback interface ObserverCallback { undefined handleEvent(FetchObserver observer); }; enum FetchState { // Pending states "requesting", "responding", // Final states "aborted", "errored", "complete" }; [Exposed=(Window,Worker), Func="mozilla::dom::DOMPrefs::FetchObserverEnabled"] interface FetchObserver : EventTarget { readonly attribute FetchState state; // Events attribute EventHandler onstatechange; attribute EventHandler onrequestprogress; attribute EventHandler onresponseprogress; }; web-sys-0.3.55/webidls/enabled/File.webidl000064400000000000000000000015330072674642500164330ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * https://w3c.github.io/FileAPI/#file */ // invalid widl //interface nsIFile; [Constructor(sequence fileBits, USVString fileName, optional FilePropertyBag options), Exposed=(Window,Worker)] interface File : Blob { readonly attribute DOMString name; [GetterThrows] readonly attribute long long lastModified; }; dictionary FilePropertyBag { DOMString type = ""; long long lastModified; }; dictionary ChromeFilePropertyBag : FilePropertyBag { DOMString name = ""; boolean existenceCheck = true; }; web-sys-0.3.55/webidls/enabled/FileList.webidl000064400000000000000000000011660072674642500172710ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * http://dev.w3.org/2006/webapi/FileAPI/ * * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ [Exposed=(Window,Worker)] interface FileList { getter File? item(unsigned long index); readonly attribute unsigned long length; }; web-sys-0.3.55/webidls/enabled/FileReader.webidl000064400000000000000000000026670072674642500175670ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * https://w3c.github.io/FileAPI/#APIASynch * * Copyright © 2013 W3C® (MIT, ERCIM, Keio, Beihang), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ [Constructor, Exposed=(Window,Worker,System)] interface FileReader : EventTarget { // async read methods [Throws] undefined readAsArrayBuffer(Blob blob); [Throws] undefined readAsBinaryString(Blob filedata); [Throws] undefined readAsText(Blob blob, optional DOMString label); [Throws] undefined readAsDataURL(Blob blob); undefined abort(); // states const unsigned short EMPTY = 0; const unsigned short LOADING = 1; const unsigned short DONE = 2; readonly attribute unsigned short readyState; // File or Blob data // bug 858217: readonly attribute (DOMString or ArrayBuffer)? result; [Throws] readonly attribute any result; readonly attribute DOMException? error; // event handler attributes attribute EventHandler onloadstart; attribute EventHandler onprogress; attribute EventHandler onload; attribute EventHandler onabort; attribute EventHandler onerror; attribute EventHandler onloadend; }; web-sys-0.3.55/webidls/enabled/FileReaderSync.webidl000064400000000000000000000015210072674642500204100ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * http://dev.w3.org/2006/webapi/FileAPI/ * * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ [Constructor, Exposed=(DedicatedWorker,SharedWorker)] interface FileReaderSync { // Synchronously return strings [Throws] ArrayBuffer readAsArrayBuffer(Blob blob); [Throws] DOMString readAsBinaryString(Blob blob); [Throws] DOMString readAsText(Blob blob, optional DOMString encoding); [Throws] DOMString readAsDataURL(Blob blob); }; web-sys-0.3.55/webidls/enabled/FileSystem.webidl000064400000000000000000000013630072674642500176410ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ dictionary FileSystemFlags { boolean create = false; boolean exclusive = false; }; callback interface FileSystemEntryCallback { undefined handleEvent(FileSystemEntry entry); }; callback interface VoidCallback { undefined handleEvent(); }; callback interface ErrorCallback { undefined handleEvent(DOMException err); }; interface FileSystem { readonly attribute USVString name; readonly attribute FileSystemDirectoryEntry root; }; web-sys-0.3.55/webidls/enabled/FileSystemDirectoryEntry.webidl000064400000000000000000000015310072674642500225450ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ interface FileSystemDirectoryEntry : FileSystemEntry { FileSystemDirectoryReader createReader(); undefined getFile(optional USVString? path, optional FileSystemFlags options, optional FileSystemEntryCallback successCallback, optional ErrorCallback errorCallback); undefined getDirectory(optional USVString? path, optional FileSystemFlags options, optional FileSystemEntryCallback successCallback, optional ErrorCallback errorCallback); }; web-sys-0.3.55/webidls/enabled/FileSystemDirectoryReader.webidl000064400000000000000000000012310072674642500226430ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ callback interface FileSystemEntriesCallback { undefined handleEvent(sequence entries); }; interface FileSystemDirectoryReader { // readEntries can be called just once. The second time it returns no data. [Throws] undefined readEntries(FileSystemEntriesCallback successCallback, optional ErrorCallback errorCallback); }; web-sys-0.3.55/webidls/enabled/FileSystemEntry.webidl000064400000000000000000000012770072674642500206670ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ interface FileSystemEntry { readonly attribute boolean isFile; readonly attribute boolean isDirectory; [GetterThrows] readonly attribute USVString name; [GetterThrows] readonly attribute USVString fullPath; readonly attribute FileSystem filesystem; undefined getParent(optional FileSystemEntryCallback successCallback, optional ErrorCallback errorCallback); }; web-sys-0.3.55/webidls/enabled/FileSystemFileEntry.webidl000064400000000000000000000010430072674642500214560ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ callback interface FileCallback { undefined handleEvent(File file); }; interface FileSystemFileEntry : FileSystemEntry { [BinaryName="GetFile"] undefined file (FileCallback successCallback, optional ErrorCallback errorCallback); }; web-sys-0.3.55/webidls/enabled/Flex.webidl000064400000000000000000000027560072674642500164620ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ /** * These objects support visualization of flex containers by the * dev tools. */ [ChromeOnly] interface Flex { sequence getLines(); }; /** * Lines with items that have been shrunk are shrinking; with items * that have grown are growing, and all others are unchanged. */ enum FlexLineGrowthState { "unchanged", "shrinking", "growing" }; [ChromeOnly] interface FlexLine { readonly attribute FlexLineGrowthState growthState; readonly attribute double crossStart; readonly attribute double crossSize; // firstBaselineOffset measures from flex-start edge. readonly attribute double firstBaselineOffset; // lastBaselineOffset measures from flex-end edge. readonly attribute double lastBaselineOffset; /** * getItems() returns FlexItems only for the Elements in this Flex * container -- ignoring struts and abs-pos Elements. */ sequence getItems(); }; [ChromeOnly] interface FlexItem { readonly attribute Node? node; readonly attribute double mainBaseSize; readonly attribute double mainDeltaSize; readonly attribute double mainMinSize; readonly attribute double mainMaxSize; readonly attribute double crossMinSize; readonly attribute double crossMaxSize; }; web-sys-0.3.55/webidls/enabled/FocusEvent.webidl000064400000000000000000000014730072674642500176400ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * For more information on this interface please see * http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html * * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ [Constructor(DOMString typeArg, optional FocusEventInit focusEventInitDict)] interface FocusEvent : UIEvent { // Introduced in DOM Level 3: readonly attribute EventTarget? relatedTarget; }; dictionary FocusEventInit : UIEventInit { EventTarget? relatedTarget = null; }; web-sys-0.3.55/webidls/enabled/FontFace.webidl000064400000000000000000000035660072674642500172510ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * http://dev.w3.org/csswg/css-font-loading/#fontface-interface * * Copyright © 2014 W3C® (MIT, ERCIM, Keio, Beihang), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ typedef (ArrayBuffer or ArrayBufferView) BinaryData; dictionary FontFaceDescriptors { DOMString style = "normal"; DOMString weight = "normal"; DOMString stretch = "normal"; DOMString unicodeRange = "U+0-10FFFF"; DOMString variant = "normal"; DOMString featureSettings = "normal"; DOMString variationSettings = "normal"; DOMString display = "auto"; }; enum FontFaceLoadStatus { "unloaded", "loading", "loaded", "error" }; // Bug 1072107 is for exposing this in workers. // [Exposed=(Window,Worker)] [Constructor(DOMString family, (DOMString or BinaryData) source, optional FontFaceDescriptors descriptors), Pref="layout.css.font-loading-api.enabled"] interface FontFace { [SetterThrows] attribute DOMString family; [SetterThrows] attribute DOMString style; [SetterThrows] attribute DOMString weight; [SetterThrows] attribute DOMString stretch; [SetterThrows] attribute DOMString unicodeRange; [SetterThrows] attribute DOMString variant; [SetterThrows] attribute DOMString featureSettings; [SetterThrows, Pref="layout.css.font-variations.enabled"] attribute DOMString variationSettings; [SetterThrows, Pref="layout.css.font-display.enabled"] attribute DOMString display; readonly attribute FontFaceLoadStatus status; [Throws] Promise load(); [Throws] readonly attribute Promise loaded; }; web-sys-0.3.55/webidls/enabled/FontFaceSet.webidl000064400000000000000000000046040072674642500177170ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * http://dev.w3.org/csswg/css-font-loading/#FontFaceSet-interface * * Copyright © 2014 W3C® (MIT, ERCIM, Keio, Beihang), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ // To implement FontFaceSet's iterator until we can use setlike. dictionary FontFaceSetIteratorResult { required any value; required boolean done; }; // To implement FontFaceSet's iterator until we can use setlike. [NoInterfaceObject] interface FontFaceSetIterator { [Throws] FontFaceSetIteratorResult next(); }; callback FontFaceSetForEachCallback = undefined (FontFace value, FontFace key, FontFaceSet set); enum FontFaceSetLoadStatus { "loading", "loaded" }; // Bug 1072762 is for the FontFaceSet constructor. // [Constructor(sequence initialFaces)] [Pref="layout.css.font-loading-api.enabled"] interface FontFaceSet : EventTarget { // Emulate setlike behavior until we can use that directly. readonly attribute unsigned long size; [Throws] undefined add(FontFace font); boolean has(FontFace font); boolean delete(FontFace font); undefined clear(); [NewObject] FontFaceSetIterator entries(); // Iterator keys(); [NewObject, Alias=keys, Alias="@@iterator"] FontFaceSetIterator values(); [Throws] undefined forEach(FontFaceSetForEachCallback cb, optional any thisArg); // -- events for when loading state changes attribute EventHandler onloading; attribute EventHandler onloadingdone; attribute EventHandler onloadingerror; // check and start loads if appropriate // and fulfill promise when all loads complete [NewObject] Promise> load(DOMString font, optional DOMString text = " "); // return whether all fonts in the fontlist are loaded // (does not initiate load if not available) [Throws] boolean check(DOMString font, optional DOMString text = " "); // async notification that font loading and layout operations are done [Throws] readonly attribute Promise ready; // loading state, "loading" while one or more fonts loading, "loaded" otherwise readonly attribute FontFaceSetLoadStatus status; }; web-sys-0.3.55/webidls/enabled/FontFaceSetLoadEvent.webidl000064400000000000000000000015420072674642500215170ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * http://dev.w3.org/csswg/css-font-loading/#FontFaceSet-interface * * Copyright © 2014 W3C® (MIT, ERCIM, Keio, Beihang), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ dictionary FontFaceSetLoadEventInit : EventInit { sequence fontfaces = []; }; [Constructor(DOMString type, optional FontFaceSetLoadEventInit eventInitDict), Pref="layout.css.font-loading-api.enabled"] interface FontFaceSetLoadEvent : Event { [Cached, Constant, Frozen] readonly attribute sequence fontfaces; }; web-sys-0.3.55/webidls/enabled/FontFaceSource.webidl000064400000000000000000000012070072674642500204200ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * http://dev.w3.org/csswg/css-font-loading/#font-face-source * * Copyright © 2014 W3C® (MIT, ERCIM, Keio, Beihang), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ interface mixin FontFaceSource { [Pref="layout.css.font-loading-api.enabled"] readonly attribute FontFaceSet fonts; }; web-sys-0.3.55/webidls/enabled/FormData.webidl000064400000000000000000000017710072674642500172550ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * http://xhr.spec.whatwg.org */ typedef (Blob or Directory or USVString) FormDataEntryValue; [Constructor(optional HTMLFormElement form), Exposed=(Window,Worker)] interface FormData { [Throws] undefined append(USVString name, Blob value, optional USVString filename); [Throws] undefined append(USVString name, USVString value); undefined delete(USVString name); FormDataEntryValue? get(USVString name); sequence getAll(USVString name); boolean has(USVString name); [Throws] undefined set(USVString name, Blob value, optional USVString filename); [Throws] undefined set(USVString name, USVString value); iterable; }; web-sys-0.3.55/webidls/enabled/FrameLoader.webidl000064400000000000000000000152310072674642500177350ustar 00000000000000/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ // invalid widl //interface LoadContext; //interface TabParent; //interface URI; //interface nsIDocShell; //interface nsIPrintSettings; //interface nsIWebBrowserPersistDocumentReceiver; //interface nsIWebProgressListener; [ChromeOnly] interface FrameLoader { /** * Get the docshell from the frame loader. */ [GetterThrows] readonly attribute nsIDocShell? docShell; /** * Get this frame loader's TabParent, if it has a remote frame. Otherwise, * returns null. */ readonly attribute TabParent? tabParent; /** * Get an nsILoadContext for the top-level docshell. For remote * frames, a shim is returned that contains private browsing and app * information. */ readonly attribute LoadContext loadContext; /** * Get the ParentSHistory for the nsFrameLoader. May return null if this * frameloader is not for a toplevel frame. */ readonly attribute ParentSHistory? parentSHistory; /** * Adds a blocking promise for the current cross process navigation. * This method can only be called while the "BrowserWillChangeProcess" event * is being fired. */ [Throws] undefined addProcessChangeBlockingPromise(Promise aPromise); /** * Find out whether the loader's frame is at too great a depth in * the frame tree. This can be used to decide what operations may * or may not be allowed on the loader's docshell. */ [Pure] readonly attribute boolean depthTooGreat; /** * Activate remote frame. * Throws an exception with non-remote frames. */ [Throws] undefined activateRemoteFrame(); /** * Deactivate remote frame. * Throws an exception with non-remote frames. */ [Throws] undefined deactivateRemoteFrame(); /** * @see nsIDOMWindowUtils sendMouseEvent. */ [Throws] undefined sendCrossProcessMouseEvent(DOMString aType, float aX, float aY, long aButton, long aClickCount, long aModifiers, optional boolean aIgnoreRootScrollFrame = false); /** * Activate event forwarding from client (remote frame) to parent. */ [Throws] undefined activateFrameEvent(DOMString aType, boolean capture); // Note, when frameloaders are swapped, also messageManagers are swapped. readonly attribute MessageSender? messageManager; /** * Request that the next time a remote layer transaction has been * received by the Compositor, a MozAfterRemoteFrame event be sent * to the window. */ undefined requestNotifyAfterRemotePaint(); /** * Close the window through the ownerElement. */ [Throws] undefined requestFrameLoaderClose(); /** * Force a remote browser to recompute its dimension and screen position. */ [Throws] undefined requestUpdatePosition(); /** * Print the current document. * * @param aOuterWindowID the ID of the outer window to print * @param aPrintSettings optional print settings to use; printSilent can be * set to prevent prompting. * @param aProgressListener optional print progress listener. */ [Throws] undefined print(unsigned long long aOuterWindowID, nsIPrintSettings aPrintSettings, optional nsIWebProgressListener? aProgressListener = null); /** * If false, then the subdocument is not clipped to its CSS viewport, and the * subdocument's viewport scrollbar(s) are not rendered. * Defaults to true. */ attribute boolean clipSubdocument; /** * If false, then the subdocument's scroll coordinates will not be clamped * to their scroll boundaries. * Defaults to true. */ attribute boolean clampScrollPosition; /** * The element which owns this frame loader. * * For example, if this is a frame loader for an