#[repr(transparent)]pub struct Window { /* private fields */ }Expand description
The Window object
This API requires the following crate features to be activated: Window
Implementations§
source§impl Window
impl Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn cancel_idle_callback(&self, handle: u32)
pub fn cancel_idle_callback(&self, handle: u32)
The cancelIdleCallback() method
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn capture_events(&self)
pub fn capture_events(&self)
The captureEvents() method
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn get_computed_style(
&self,
elt: &Element
) -> Result<Option<CssStyleDeclaration>, JsValue>
pub fn get_computed_style(
&self,
elt: &Element
) -> Result<Option<CssStyleDeclaration>, JsValue>
The getComputedStyle() method
This API requires the following crate features to be activated: CssStyleDeclaration, Element, Window
source§impl Window
impl Window
sourcepub fn get_computed_style_with_pseudo_elt(
&self,
elt: &Element,
pseudo_elt: &str
) -> Result<Option<CssStyleDeclaration>, JsValue>
pub fn get_computed_style_with_pseudo_elt(
&self,
elt: &Element,
pseudo_elt: &str
) -> Result<Option<CssStyleDeclaration>, JsValue>
The getComputedStyle() method
This API requires the following crate features to be activated: CssStyleDeclaration, Element, Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn match_media(&self, query: &str) -> Result<Option<MediaQueryList>, JsValue>
pub fn match_media(&self, query: &str) -> Result<Option<MediaQueryList>, JsValue>
The matchMedia() method
This API requires the following crate features to be activated: MediaQueryList, Window
source§impl Window
impl Window
source§impl Window
impl Window
source§impl Window
impl Window
source§impl Window
impl Window
source§impl Window
impl Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn release_events(&self)
pub fn release_events(&self)
The releaseEvents() method
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn request_idle_callback_with_options(
&self,
callback: &Function,
options: &IdleRequestOptions
) -> Result<u32, JsValue>
pub fn request_idle_callback_with_options(
&self,
callback: &Function,
options: &IdleRequestOptions
) -> Result<u32, JsValue>
The requestIdleCallback() method
This API requires the following crate features to be activated: IdleRequestOptions, Window
source§impl Window
impl Window
sourcepub fn scroll_with_x_and_y(&self, x: f64, y: f64)
pub fn scroll_with_x_and_y(&self, x: f64, y: f64)
The scroll() method
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn scroll_with_scroll_to_options(&self, options: &ScrollToOptions)
pub fn scroll_with_scroll_to_options(&self, options: &ScrollToOptions)
The scroll() method
This API requires the following crate features to be activated: ScrollToOptions, Window
source§impl Window
impl Window
sourcepub fn scroll_by_with_x_and_y(&self, x: f64, y: f64)
pub fn scroll_by_with_x_and_y(&self, x: f64, y: f64)
The scrollBy() method
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn scroll_by_with_scroll_to_options(&self, options: &ScrollToOptions)
pub fn scroll_by_with_scroll_to_options(&self, options: &ScrollToOptions)
The scrollBy() method
This API requires the following crate features to be activated: ScrollToOptions, Window
source§impl Window
impl Window
sourcepub fn scroll_to_with_x_and_y(&self, x: f64, y: f64)
pub fn scroll_to_with_x_and_y(&self, x: f64, y: f64)
The scrollTo() method
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn scroll_to_with_scroll_to_options(&self, options: &ScrollToOptions)
pub fn scroll_to_with_scroll_to_options(&self, options: &ScrollToOptions)
The scrollTo() method
This API requires the following crate features to be activated: ScrollToOptions, Window
source§impl Window
impl Window
source§impl Window
impl Window
source§impl Window
impl Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn custom_elements(&self) -> CustomElementRegistry
pub fn custom_elements(&self) -> CustomElementRegistry
The customElements getter
This API requires the following crate features to be activated: CustomElementRegistry, Window
source§impl Window
impl Window
sourcepub fn locationbar(&self) -> Result<BarProp, JsValue>
pub fn locationbar(&self) -> Result<BarProp, JsValue>
The locationbar getter
This API requires the following crate features to be activated: BarProp, Window
source§impl Window
impl Window
The menubar getter
This API requires the following crate features to be activated: BarProp, Window
source§impl Window
impl Window
sourcepub fn personalbar(&self) -> Result<BarProp, JsValue>
pub fn personalbar(&self) -> Result<BarProp, JsValue>
The personalbar getter
This API requires the following crate features to be activated: BarProp, Window
source§impl Window
impl Window
sourcepub fn scrollbars(&self) -> Result<BarProp, JsValue>
pub fn scrollbars(&self) -> Result<BarProp, JsValue>
The scrollbars getter
This API requires the following crate features to be activated: BarProp, Window
source§impl Window
impl Window
source§impl Window
impl Window
source§impl Window
impl Window
source§impl Window
impl Window
source§impl Window
impl Window
source§impl Window
impl Window
The navigator getter
This API requires the following crate features to be activated: Navigator, Window
source§impl Window
impl Window
sourcepub fn onappinstalled(&self) -> Option<Function>
pub fn onappinstalled(&self) -> Option<Function>
The onappinstalled getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_onappinstalled(&self, onappinstalled: Option<&Function>)
pub fn set_onappinstalled(&self, onappinstalled: Option<&Function>)
The onappinstalled setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn inner_width(&self) -> Result<JsValue, JsValue>
pub fn inner_width(&self) -> Result<JsValue, JsValue>
The innerWidth getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn inner_height(&self) -> Result<JsValue, JsValue>
pub fn inner_height(&self) -> Result<JsValue, JsValue>
The innerHeight getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn page_x_offset(&self) -> Result<f64, JsValue>
pub fn page_x_offset(&self) -> Result<f64, JsValue>
The pageXOffset getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn page_y_offset(&self) -> Result<f64, JsValue>
pub fn page_y_offset(&self) -> Result<f64, JsValue>
The pageYOffset getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn outer_width(&self) -> Result<JsValue, JsValue>
pub fn outer_width(&self) -> Result<JsValue, JsValue>
The outerWidth getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn outer_height(&self) -> Result<JsValue, JsValue>
pub fn outer_height(&self) -> Result<JsValue, JsValue>
The outerHeight getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn device_pixel_ratio(&self) -> f64
pub fn device_pixel_ratio(&self) -> f64
The devicePixelRatio getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn performance(&self) -> Option<Performance>
pub fn performance(&self) -> Option<Performance>
The performance getter
This API requires the following crate features to be activated: Performance, Window
source§impl Window
impl Window
sourcepub fn orientation(&self) -> i16
pub fn orientation(&self) -> i16
The orientation getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn onorientationchange(&self) -> Option<Function>
pub fn onorientationchange(&self) -> Option<Function>
The onorientationchange getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_onorientationchange(&self, onorientationchange: Option<&Function>)
pub fn set_onorientationchange(&self, onorientationchange: Option<&Function>)
The onorientationchange setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn onvrdisplayconnect(&self) -> Option<Function>
pub fn onvrdisplayconnect(&self) -> Option<Function>
The onvrdisplayconnect getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_onvrdisplayconnect(&self, onvrdisplayconnect: Option<&Function>)
pub fn set_onvrdisplayconnect(&self, onvrdisplayconnect: Option<&Function>)
The onvrdisplayconnect setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn onvrdisplaydisconnect(&self) -> Option<Function>
pub fn onvrdisplaydisconnect(&self) -> Option<Function>
The onvrdisplaydisconnect getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_onvrdisplaydisconnect(&self, onvrdisplaydisconnect: Option<&Function>)
pub fn set_onvrdisplaydisconnect(&self, onvrdisplaydisconnect: Option<&Function>)
The onvrdisplaydisconnect setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn onvrdisplayactivate(&self) -> Option<Function>
pub fn onvrdisplayactivate(&self) -> Option<Function>
The onvrdisplayactivate getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_onvrdisplayactivate(&self, onvrdisplayactivate: Option<&Function>)
pub fn set_onvrdisplayactivate(&self, onvrdisplayactivate: Option<&Function>)
The onvrdisplayactivate setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn onvrdisplaydeactivate(&self) -> Option<Function>
pub fn onvrdisplaydeactivate(&self) -> Option<Function>
The onvrdisplaydeactivate getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_onvrdisplaydeactivate(&self, onvrdisplaydeactivate: Option<&Function>)
pub fn set_onvrdisplaydeactivate(&self, onvrdisplaydeactivate: Option<&Function>)
The onvrdisplaydeactivate setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn onvrdisplaypresentchange(&self) -> Option<Function>
pub fn onvrdisplaypresentchange(&self) -> Option<Function>
The onvrdisplaypresentchange getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_onvrdisplaypresentchange(
&self,
onvrdisplaypresentchange: Option<&Function>
)
pub fn set_onvrdisplaypresentchange(
&self,
onvrdisplaypresentchange: Option<&Function>
)
The onvrdisplaypresentchange setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn paint_worklet(&self) -> Result<Worklet, JsValue>
pub fn paint_worklet(&self) -> Result<Worklet, JsValue>
The paintWorklet getter
This API requires the following crate features to be activated: Window, Worklet
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn set_onabort(&self, onabort: Option<&Function>)
pub fn set_onabort(&self, onabort: Option<&Function>)
The onabort setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn set_onblur(&self, onblur: Option<&Function>)
pub fn set_onblur(&self, onblur: Option<&Function>)
The onblur setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn set_onfocus(&self, onfocus: Option<&Function>)
pub fn set_onfocus(&self, onfocus: Option<&Function>)
The onfocus setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn onauxclick(&self) -> Option<Function>
pub fn onauxclick(&self) -> Option<Function>
The onauxclick getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_onauxclick(&self, onauxclick: Option<&Function>)
pub fn set_onauxclick(&self, onauxclick: Option<&Function>)
The onauxclick setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn set_oncanplay(&self, oncanplay: Option<&Function>)
pub fn set_oncanplay(&self, oncanplay: Option<&Function>)
The oncanplay setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn oncanplaythrough(&self) -> Option<Function>
pub fn oncanplaythrough(&self) -> Option<Function>
The oncanplaythrough getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_oncanplaythrough(&self, oncanplaythrough: Option<&Function>)
pub fn set_oncanplaythrough(&self, oncanplaythrough: Option<&Function>)
The oncanplaythrough setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn set_onchange(&self, onchange: Option<&Function>)
pub fn set_onchange(&self, onchange: Option<&Function>)
The onchange setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn set_onclick(&self, onclick: Option<&Function>)
pub fn set_onclick(&self, onclick: Option<&Function>)
The onclick setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn set_onclose(&self, onclose: Option<&Function>)
pub fn set_onclose(&self, onclose: Option<&Function>)
The onclose setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
The oncontextmenu getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
The oncontextmenu setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn ondblclick(&self) -> Option<Function>
pub fn ondblclick(&self) -> Option<Function>
The ondblclick getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_ondblclick(&self, ondblclick: Option<&Function>)
pub fn set_ondblclick(&self, ondblclick: Option<&Function>)
The ondblclick setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn set_ondrag(&self, ondrag: Option<&Function>)
pub fn set_ondrag(&self, ondrag: Option<&Function>)
The ondrag setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn set_ondragend(&self, ondragend: Option<&Function>)
pub fn set_ondragend(&self, ondragend: Option<&Function>)
The ondragend setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn ondragenter(&self) -> Option<Function>
pub fn ondragenter(&self) -> Option<Function>
The ondragenter getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_ondragenter(&self, ondragenter: Option<&Function>)
pub fn set_ondragenter(&self, ondragenter: Option<&Function>)
The ondragenter setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn ondragexit(&self) -> Option<Function>
pub fn ondragexit(&self) -> Option<Function>
The ondragexit getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_ondragexit(&self, ondragexit: Option<&Function>)
pub fn set_ondragexit(&self, ondragexit: Option<&Function>)
The ondragexit setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn ondragleave(&self) -> Option<Function>
pub fn ondragleave(&self) -> Option<Function>
The ondragleave getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_ondragleave(&self, ondragleave: Option<&Function>)
pub fn set_ondragleave(&self, ondragleave: Option<&Function>)
The ondragleave setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn ondragover(&self) -> Option<Function>
pub fn ondragover(&self) -> Option<Function>
The ondragover getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_ondragover(&self, ondragover: Option<&Function>)
pub fn set_ondragover(&self, ondragover: Option<&Function>)
The ondragover setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn ondragstart(&self) -> Option<Function>
pub fn ondragstart(&self) -> Option<Function>
The ondragstart getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_ondragstart(&self, ondragstart: Option<&Function>)
pub fn set_ondragstart(&self, ondragstart: Option<&Function>)
The ondragstart setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn set_ondrop(&self, ondrop: Option<&Function>)
pub fn set_ondrop(&self, ondrop: Option<&Function>)
The ondrop setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn ondurationchange(&self) -> Option<Function>
pub fn ondurationchange(&self) -> Option<Function>
The ondurationchange getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_ondurationchange(&self, ondurationchange: Option<&Function>)
pub fn set_ondurationchange(&self, ondurationchange: Option<&Function>)
The ondurationchange setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn set_onemptied(&self, onemptied: Option<&Function>)
pub fn set_onemptied(&self, onemptied: Option<&Function>)
The onemptied setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn set_onended(&self, onended: Option<&Function>)
pub fn set_onended(&self, onended: Option<&Function>)
The onended setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn set_oninput(&self, oninput: Option<&Function>)
pub fn set_oninput(&self, oninput: Option<&Function>)
The oninput setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn set_oninvalid(&self, oninvalid: Option<&Function>)
pub fn set_oninvalid(&self, oninvalid: Option<&Function>)
The oninvalid setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn set_onkeydown(&self, onkeydown: Option<&Function>)
pub fn set_onkeydown(&self, onkeydown: Option<&Function>)
The onkeydown setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn onkeypress(&self) -> Option<Function>
pub fn onkeypress(&self) -> Option<Function>
The onkeypress getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_onkeypress(&self, onkeypress: Option<&Function>)
pub fn set_onkeypress(&self, onkeypress: Option<&Function>)
The onkeypress setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn set_onkeyup(&self, onkeyup: Option<&Function>)
pub fn set_onkeyup(&self, onkeyup: Option<&Function>)
The onkeyup setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn set_onload(&self, onload: Option<&Function>)
pub fn set_onload(&self, onload: Option<&Function>)
The onload setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn onloadeddata(&self) -> Option<Function>
pub fn onloadeddata(&self) -> Option<Function>
The onloadeddata getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_onloadeddata(&self, onloadeddata: Option<&Function>)
pub fn set_onloadeddata(&self, onloadeddata: Option<&Function>)
The onloadeddata setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn onloadedmetadata(&self) -> Option<Function>
pub fn onloadedmetadata(&self) -> Option<Function>
The onloadedmetadata getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_onloadedmetadata(&self, onloadedmetadata: Option<&Function>)
pub fn set_onloadedmetadata(&self, onloadedmetadata: Option<&Function>)
The onloadedmetadata setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn set_onloadend(&self, onloadend: Option<&Function>)
pub fn set_onloadend(&self, onloadend: Option<&Function>)
The onloadend setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn onloadstart(&self) -> Option<Function>
pub fn onloadstart(&self) -> Option<Function>
The onloadstart getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_onloadstart(&self, onloadstart: Option<&Function>)
pub fn set_onloadstart(&self, onloadstart: Option<&Function>)
The onloadstart setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn onmousedown(&self) -> Option<Function>
pub fn onmousedown(&self) -> Option<Function>
The onmousedown getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_onmousedown(&self, onmousedown: Option<&Function>)
pub fn set_onmousedown(&self, onmousedown: Option<&Function>)
The onmousedown setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn onmouseenter(&self) -> Option<Function>
pub fn onmouseenter(&self) -> Option<Function>
The onmouseenter getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_onmouseenter(&self, onmouseenter: Option<&Function>)
pub fn set_onmouseenter(&self, onmouseenter: Option<&Function>)
The onmouseenter setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn onmouseleave(&self) -> Option<Function>
pub fn onmouseleave(&self) -> Option<Function>
The onmouseleave getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_onmouseleave(&self, onmouseleave: Option<&Function>)
pub fn set_onmouseleave(&self, onmouseleave: Option<&Function>)
The onmouseleave setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn onmousemove(&self) -> Option<Function>
pub fn onmousemove(&self) -> Option<Function>
The onmousemove getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_onmousemove(&self, onmousemove: Option<&Function>)
pub fn set_onmousemove(&self, onmousemove: Option<&Function>)
The onmousemove setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn onmouseout(&self) -> Option<Function>
pub fn onmouseout(&self) -> Option<Function>
The onmouseout getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_onmouseout(&self, onmouseout: Option<&Function>)
pub fn set_onmouseout(&self, onmouseout: Option<&Function>)
The onmouseout setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn onmouseover(&self) -> Option<Function>
pub fn onmouseover(&self) -> Option<Function>
The onmouseover getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_onmouseover(&self, onmouseover: Option<&Function>)
pub fn set_onmouseover(&self, onmouseover: Option<&Function>)
The onmouseover setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn set_onmouseup(&self, onmouseup: Option<&Function>)
pub fn set_onmouseup(&self, onmouseup: Option<&Function>)
The onmouseup setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn set_onwheel(&self, onwheel: Option<&Function>)
pub fn set_onwheel(&self, onwheel: Option<&Function>)
The onwheel setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn set_onpause(&self, onpause: Option<&Function>)
pub fn set_onpause(&self, onpause: Option<&Function>)
The onpause setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn set_onplay(&self, onplay: Option<&Function>)
pub fn set_onplay(&self, onplay: Option<&Function>)
The onplay setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn set_onplaying(&self, onplaying: Option<&Function>)
pub fn set_onplaying(&self, onplaying: Option<&Function>)
The onplaying setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn onprogress(&self) -> Option<Function>
pub fn onprogress(&self) -> Option<Function>
The onprogress getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_onprogress(&self, onprogress: Option<&Function>)
pub fn set_onprogress(&self, onprogress: Option<&Function>)
The onprogress setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn onratechange(&self) -> Option<Function>
pub fn onratechange(&self) -> Option<Function>
The onratechange getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_onratechange(&self, onratechange: Option<&Function>)
pub fn set_onratechange(&self, onratechange: Option<&Function>)
The onratechange setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn set_onreset(&self, onreset: Option<&Function>)
pub fn set_onreset(&self, onreset: Option<&Function>)
The onreset setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn set_onresize(&self, onresize: Option<&Function>)
pub fn set_onresize(&self, onresize: Option<&Function>)
The onresize setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn set_onscroll(&self, onscroll: Option<&Function>)
pub fn set_onscroll(&self, onscroll: Option<&Function>)
The onscroll setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn set_onseeked(&self, onseeked: Option<&Function>)
pub fn set_onseeked(&self, onseeked: Option<&Function>)
The onseeked setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn set_onseeking(&self, onseeking: Option<&Function>)
pub fn set_onseeking(&self, onseeking: Option<&Function>)
The onseeking setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn set_onselect(&self, onselect: Option<&Function>)
pub fn set_onselect(&self, onselect: Option<&Function>)
The onselect setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn set_onshow(&self, onshow: Option<&Function>)
pub fn set_onshow(&self, onshow: Option<&Function>)
The onshow setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn set_onstalled(&self, onstalled: Option<&Function>)
pub fn set_onstalled(&self, onstalled: Option<&Function>)
The onstalled setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn set_onsubmit(&self, onsubmit: Option<&Function>)
pub fn set_onsubmit(&self, onsubmit: Option<&Function>)
The onsubmit setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn set_onsuspend(&self, onsuspend: Option<&Function>)
pub fn set_onsuspend(&self, onsuspend: Option<&Function>)
The onsuspend setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn ontimeupdate(&self) -> Option<Function>
pub fn ontimeupdate(&self) -> Option<Function>
The ontimeupdate getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_ontimeupdate(&self, ontimeupdate: Option<&Function>)
pub fn set_ontimeupdate(&self, ontimeupdate: Option<&Function>)
The ontimeupdate setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn onvolumechange(&self) -> Option<Function>
pub fn onvolumechange(&self) -> Option<Function>
The onvolumechange getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_onvolumechange(&self, onvolumechange: Option<&Function>)
pub fn set_onvolumechange(&self, onvolumechange: Option<&Function>)
The onvolumechange setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn set_onwaiting(&self, onwaiting: Option<&Function>)
pub fn set_onwaiting(&self, onwaiting: Option<&Function>)
The onwaiting setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn onselectstart(&self) -> Option<Function>
pub fn onselectstart(&self) -> Option<Function>
The onselectstart getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_onselectstart(&self, onselectstart: Option<&Function>)
pub fn set_onselectstart(&self, onselectstart: Option<&Function>)
The onselectstart setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn set_ontoggle(&self, ontoggle: Option<&Function>)
pub fn set_ontoggle(&self, ontoggle: Option<&Function>)
The ontoggle setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn onpointercancel(&self) -> Option<Function>
pub fn onpointercancel(&self) -> Option<Function>
The onpointercancel getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_onpointercancel(&self, onpointercancel: Option<&Function>)
pub fn set_onpointercancel(&self, onpointercancel: Option<&Function>)
The onpointercancel setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn onpointerdown(&self) -> Option<Function>
pub fn onpointerdown(&self) -> Option<Function>
The onpointerdown getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_onpointerdown(&self, onpointerdown: Option<&Function>)
pub fn set_onpointerdown(&self, onpointerdown: Option<&Function>)
The onpointerdown setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn onpointerup(&self) -> Option<Function>
pub fn onpointerup(&self) -> Option<Function>
The onpointerup getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_onpointerup(&self, onpointerup: Option<&Function>)
pub fn set_onpointerup(&self, onpointerup: Option<&Function>)
The onpointerup setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn onpointermove(&self) -> Option<Function>
pub fn onpointermove(&self) -> Option<Function>
The onpointermove getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_onpointermove(&self, onpointermove: Option<&Function>)
pub fn set_onpointermove(&self, onpointermove: Option<&Function>)
The onpointermove setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn onpointerout(&self) -> Option<Function>
pub fn onpointerout(&self) -> Option<Function>
The onpointerout getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_onpointerout(&self, onpointerout: Option<&Function>)
pub fn set_onpointerout(&self, onpointerout: Option<&Function>)
The onpointerout setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn onpointerover(&self) -> Option<Function>
pub fn onpointerover(&self) -> Option<Function>
The onpointerover getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_onpointerover(&self, onpointerover: Option<&Function>)
pub fn set_onpointerover(&self, onpointerover: Option<&Function>)
The onpointerover setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn onpointerenter(&self) -> Option<Function>
pub fn onpointerenter(&self) -> Option<Function>
The onpointerenter getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_onpointerenter(&self, onpointerenter: Option<&Function>)
pub fn set_onpointerenter(&self, onpointerenter: Option<&Function>)
The onpointerenter setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn onpointerleave(&self) -> Option<Function>
pub fn onpointerleave(&self) -> Option<Function>
The onpointerleave getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_onpointerleave(&self, onpointerleave: Option<&Function>)
pub fn set_onpointerleave(&self, onpointerleave: Option<&Function>)
The onpointerleave setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn ongotpointercapture(&self) -> Option<Function>
pub fn ongotpointercapture(&self) -> Option<Function>
The ongotpointercapture getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_ongotpointercapture(&self, ongotpointercapture: Option<&Function>)
pub fn set_ongotpointercapture(&self, ongotpointercapture: Option<&Function>)
The ongotpointercapture setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn onlostpointercapture(&self) -> Option<Function>
pub fn onlostpointercapture(&self) -> Option<Function>
The onlostpointercapture getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_onlostpointercapture(&self, onlostpointercapture: Option<&Function>)
pub fn set_onlostpointercapture(&self, onlostpointercapture: Option<&Function>)
The onlostpointercapture setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn onanimationcancel(&self) -> Option<Function>
pub fn onanimationcancel(&self) -> Option<Function>
The onanimationcancel getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_onanimationcancel(&self, onanimationcancel: Option<&Function>)
pub fn set_onanimationcancel(&self, onanimationcancel: Option<&Function>)
The onanimationcancel setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn onanimationend(&self) -> Option<Function>
pub fn onanimationend(&self) -> Option<Function>
The onanimationend getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_onanimationend(&self, onanimationend: Option<&Function>)
pub fn set_onanimationend(&self, onanimationend: Option<&Function>)
The onanimationend setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn onanimationiteration(&self) -> Option<Function>
pub fn onanimationiteration(&self) -> Option<Function>
The onanimationiteration getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_onanimationiteration(&self, onanimationiteration: Option<&Function>)
pub fn set_onanimationiteration(&self, onanimationiteration: Option<&Function>)
The onanimationiteration setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn onanimationstart(&self) -> Option<Function>
pub fn onanimationstart(&self) -> Option<Function>
The onanimationstart getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_onanimationstart(&self, onanimationstart: Option<&Function>)
pub fn set_onanimationstart(&self, onanimationstart: Option<&Function>)
The onanimationstart setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn ontransitioncancel(&self) -> Option<Function>
pub fn ontransitioncancel(&self) -> Option<Function>
The ontransitioncancel getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_ontransitioncancel(&self, ontransitioncancel: Option<&Function>)
pub fn set_ontransitioncancel(&self, ontransitioncancel: Option<&Function>)
The ontransitioncancel setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn ontransitionend(&self) -> Option<Function>
pub fn ontransitionend(&self) -> Option<Function>
The ontransitionend getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_ontransitionend(&self, ontransitionend: Option<&Function>)
pub fn set_ontransitionend(&self, ontransitionend: Option<&Function>)
The ontransitionend setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn ontransitionrun(&self) -> Option<Function>
pub fn ontransitionrun(&self) -> Option<Function>
The ontransitionrun getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_ontransitionrun(&self, ontransitionrun: Option<&Function>)
pub fn set_ontransitionrun(&self, ontransitionrun: Option<&Function>)
The ontransitionrun setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn ontransitionstart(&self) -> Option<Function>
pub fn ontransitionstart(&self) -> Option<Function>
The ontransitionstart getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_ontransitionstart(&self, ontransitionstart: Option<&Function>)
pub fn set_ontransitionstart(&self, ontransitionstart: Option<&Function>)
The ontransitionstart setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn onwebkitanimationend(&self) -> Option<Function>
pub fn onwebkitanimationend(&self) -> Option<Function>
The onwebkitanimationend getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_onwebkitanimationend(&self, onwebkitanimationend: Option<&Function>)
pub fn set_onwebkitanimationend(&self, onwebkitanimationend: Option<&Function>)
The onwebkitanimationend setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn onwebkitanimationiteration(&self) -> Option<Function>
pub fn onwebkitanimationiteration(&self) -> Option<Function>
The onwebkitanimationiteration getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_onwebkitanimationiteration(
&self,
onwebkitanimationiteration: Option<&Function>
)
pub fn set_onwebkitanimationiteration(
&self,
onwebkitanimationiteration: Option<&Function>
)
The onwebkitanimationiteration setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn onwebkitanimationstart(&self) -> Option<Function>
pub fn onwebkitanimationstart(&self) -> Option<Function>
The onwebkitanimationstart getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_onwebkitanimationstart(
&self,
onwebkitanimationstart: Option<&Function>
)
pub fn set_onwebkitanimationstart(
&self,
onwebkitanimationstart: Option<&Function>
)
The onwebkitanimationstart setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn onwebkittransitionend(&self) -> Option<Function>
pub fn onwebkittransitionend(&self) -> Option<Function>
The onwebkittransitionend getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_onwebkittransitionend(&self, onwebkittransitionend: Option<&Function>)
pub fn set_onwebkittransitionend(&self, onwebkittransitionend: Option<&Function>)
The onwebkittransitionend setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn set_onerror(&self, onerror: Option<&Function>)
pub fn set_onerror(&self, onerror: Option<&Function>)
The onerror setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn speech_synthesis(&self) -> Result<SpeechSynthesis, JsValue>
pub fn speech_synthesis(&self) -> Result<SpeechSynthesis, JsValue>
The speechSynthesis getter
This API requires the following crate features to be activated: SpeechSynthesis, Window
source§impl Window
impl Window
sourcepub fn ontouchstart(&self) -> Option<Function>
pub fn ontouchstart(&self) -> Option<Function>
The ontouchstart getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_ontouchstart(&self, ontouchstart: Option<&Function>)
pub fn set_ontouchstart(&self, ontouchstart: Option<&Function>)
The ontouchstart setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn ontouchend(&self) -> Option<Function>
pub fn ontouchend(&self) -> Option<Function>
The ontouchend getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_ontouchend(&self, ontouchend: Option<&Function>)
pub fn set_ontouchend(&self, ontouchend: Option<&Function>)
The ontouchend setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn ontouchmove(&self) -> Option<Function>
pub fn ontouchmove(&self) -> Option<Function>
The ontouchmove getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_ontouchmove(&self, ontouchmove: Option<&Function>)
pub fn set_ontouchmove(&self, ontouchmove: Option<&Function>)
The ontouchmove setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn ontouchcancel(&self) -> Option<Function>
pub fn ontouchcancel(&self) -> Option<Function>
The ontouchcancel getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_ontouchcancel(&self, ontouchcancel: Option<&Function>)
pub fn set_ontouchcancel(&self, ontouchcancel: Option<&Function>)
The ontouchcancel setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn onafterprint(&self) -> Option<Function>
pub fn onafterprint(&self) -> Option<Function>
The onafterprint getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_onafterprint(&self, onafterprint: Option<&Function>)
pub fn set_onafterprint(&self, onafterprint: Option<&Function>)
The onafterprint setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn onbeforeprint(&self) -> Option<Function>
pub fn onbeforeprint(&self) -> Option<Function>
The onbeforeprint getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_onbeforeprint(&self, onbeforeprint: Option<&Function>)
pub fn set_onbeforeprint(&self, onbeforeprint: Option<&Function>)
The onbeforeprint setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn onbeforeunload(&self) -> Option<Function>
pub fn onbeforeunload(&self) -> Option<Function>
The onbeforeunload getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_onbeforeunload(&self, onbeforeunload: Option<&Function>)
pub fn set_onbeforeunload(&self, onbeforeunload: Option<&Function>)
The onbeforeunload setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn onhashchange(&self) -> Option<Function>
pub fn onhashchange(&self) -> Option<Function>
The onhashchange getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_onhashchange(&self, onhashchange: Option<&Function>)
pub fn set_onhashchange(&self, onhashchange: Option<&Function>)
The onhashchange setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn onlanguagechange(&self) -> Option<Function>
pub fn onlanguagechange(&self) -> Option<Function>
The onlanguagechange getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_onlanguagechange(&self, onlanguagechange: Option<&Function>)
pub fn set_onlanguagechange(&self, onlanguagechange: Option<&Function>)
The onlanguagechange setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn set_onmessage(&self, onmessage: Option<&Function>)
pub fn set_onmessage(&self, onmessage: Option<&Function>)
The onmessage setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn onmessageerror(&self) -> Option<Function>
pub fn onmessageerror(&self) -> Option<Function>
The onmessageerror getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_onmessageerror(&self, onmessageerror: Option<&Function>)
pub fn set_onmessageerror(&self, onmessageerror: Option<&Function>)
The onmessageerror setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn set_onoffline(&self, onoffline: Option<&Function>)
pub fn set_onoffline(&self, onoffline: Option<&Function>)
The onoffline setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn set_ononline(&self, ononline: Option<&Function>)
pub fn set_ononline(&self, ononline: Option<&Function>)
The ononline setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn onpagehide(&self) -> Option<Function>
pub fn onpagehide(&self) -> Option<Function>
The onpagehide getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_onpagehide(&self, onpagehide: Option<&Function>)
pub fn set_onpagehide(&self, onpagehide: Option<&Function>)
The onpagehide setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn onpageshow(&self) -> Option<Function>
pub fn onpageshow(&self) -> Option<Function>
The onpageshow getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_onpageshow(&self, onpageshow: Option<&Function>)
pub fn set_onpageshow(&self, onpageshow: Option<&Function>)
The onpageshow setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn onpopstate(&self) -> Option<Function>
pub fn onpopstate(&self) -> Option<Function>
The onpopstate getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_onpopstate(&self, onpopstate: Option<&Function>)
pub fn set_onpopstate(&self, onpopstate: Option<&Function>)
The onpopstate setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn set_onstorage(&self, onstorage: Option<&Function>)
pub fn set_onstorage(&self, onstorage: Option<&Function>)
The onstorage setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn set_onunload(&self, onunload: Option<&Function>)
pub fn set_onunload(&self, onunload: Option<&Function>)
The onunload setter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn clear_interval(&self)
pub fn clear_interval(&self)
The clearInterval() method
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn clear_interval_with_handle(&self, handle: i32)
pub fn clear_interval_with_handle(&self, handle: i32)
The clearInterval() method
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn clear_timeout(&self)
pub fn clear_timeout(&self)
The clearTimeout() method
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn clear_timeout_with_handle(&self, handle: i32)
pub fn clear_timeout_with_handle(&self, handle: i32)
The clearTimeout() method
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn create_image_bitmap_with_html_image_element(
&self,
a_image: &HtmlImageElement
) -> Result<Promise, JsValue>
pub fn create_image_bitmap_with_html_image_element(
&self,
a_image: &HtmlImageElement
) -> Result<Promise, JsValue>
The createImageBitmap() method
This API requires the following crate features to be activated: HtmlImageElement, Window
source§impl Window
impl Window
sourcepub fn create_image_bitmap_with_html_video_element(
&self,
a_image: &HtmlVideoElement
) -> Result<Promise, JsValue>
pub fn create_image_bitmap_with_html_video_element(
&self,
a_image: &HtmlVideoElement
) -> Result<Promise, JsValue>
The createImageBitmap() method
This API requires the following crate features to be activated: HtmlVideoElement, Window
source§impl Window
impl Window
sourcepub fn create_image_bitmap_with_html_canvas_element(
&self,
a_image: &HtmlCanvasElement
) -> Result<Promise, JsValue>
pub fn create_image_bitmap_with_html_canvas_element(
&self,
a_image: &HtmlCanvasElement
) -> Result<Promise, JsValue>
The createImageBitmap() method
This API requires the following crate features to be activated: HtmlCanvasElement, Window
source§impl Window
impl Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn create_image_bitmap_with_canvas_rendering_context_2d(
&self,
a_image: &CanvasRenderingContext2d
) -> Result<Promise, JsValue>
pub fn create_image_bitmap_with_canvas_rendering_context_2d(
&self,
a_image: &CanvasRenderingContext2d
) -> Result<Promise, JsValue>
The createImageBitmap() method
This API requires the following crate features to be activated: CanvasRenderingContext2d, Window
source§impl Window
impl Window
sourcepub fn create_image_bitmap_with_image_bitmap(
&self,
a_image: &ImageBitmap
) -> Result<Promise, JsValue>
pub fn create_image_bitmap_with_image_bitmap(
&self,
a_image: &ImageBitmap
) -> Result<Promise, JsValue>
The createImageBitmap() method
This API requires the following crate features to be activated: ImageBitmap, Window
source§impl Window
impl Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn create_image_bitmap_with_html_image_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh(
&self,
a_image: &HtmlImageElement,
a_sx: i32,
a_sy: i32,
a_sw: i32,
a_sh: i32
) -> Result<Promise, JsValue>
pub fn create_image_bitmap_with_html_image_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh(
&self,
a_image: &HtmlImageElement,
a_sx: i32,
a_sy: i32,
a_sw: i32,
a_sh: i32
) -> Result<Promise, JsValue>
The createImageBitmap() method
This API requires the following crate features to be activated: HtmlImageElement, Window
source§impl Window
impl Window
sourcepub fn create_image_bitmap_with_html_video_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh(
&self,
a_image: &HtmlVideoElement,
a_sx: i32,
a_sy: i32,
a_sw: i32,
a_sh: i32
) -> Result<Promise, JsValue>
pub fn create_image_bitmap_with_html_video_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh(
&self,
a_image: &HtmlVideoElement,
a_sx: i32,
a_sy: i32,
a_sw: i32,
a_sh: i32
) -> Result<Promise, JsValue>
The createImageBitmap() method
This API requires the following crate features to be activated: HtmlVideoElement, Window
source§impl Window
impl Window
sourcepub fn create_image_bitmap_with_html_canvas_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh(
&self,
a_image: &HtmlCanvasElement,
a_sx: i32,
a_sy: i32,
a_sw: i32,
a_sh: i32
) -> Result<Promise, JsValue>
pub fn create_image_bitmap_with_html_canvas_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh(
&self,
a_image: &HtmlCanvasElement,
a_sx: i32,
a_sy: i32,
a_sw: i32,
a_sh: i32
) -> Result<Promise, JsValue>
The createImageBitmap() method
This API requires the following crate features to be activated: HtmlCanvasElement, Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn create_image_bitmap_with_canvas_rendering_context_2d_and_a_sx_and_a_sy_and_a_sw_and_a_sh(
&self,
a_image: &CanvasRenderingContext2d,
a_sx: i32,
a_sy: i32,
a_sw: i32,
a_sh: i32
) -> Result<Promise, JsValue>
pub fn create_image_bitmap_with_canvas_rendering_context_2d_and_a_sx_and_a_sy_and_a_sw_and_a_sh(
&self,
a_image: &CanvasRenderingContext2d,
a_sx: i32,
a_sy: i32,
a_sw: i32,
a_sh: i32
) -> Result<Promise, JsValue>
The createImageBitmap() method
This API requires the following crate features to be activated: CanvasRenderingContext2d, Window
source§impl Window
impl Window
sourcepub fn create_image_bitmap_with_image_bitmap_and_a_sx_and_a_sy_and_a_sw_and_a_sh(
&self,
a_image: &ImageBitmap,
a_sx: i32,
a_sy: i32,
a_sw: i32,
a_sh: i32
) -> Result<Promise, JsValue>
pub fn create_image_bitmap_with_image_bitmap_and_a_sx_and_a_sy_and_a_sw_and_a_sh(
&self,
a_image: &ImageBitmap,
a_sx: i32,
a_sy: i32,
a_sw: i32,
a_sh: i32
) -> Result<Promise, JsValue>
The createImageBitmap() method
This API requires the following crate features to be activated: ImageBitmap, Window
source§impl Window
impl Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn fetch_with_request(&self, input: &Request) -> Promise
pub fn fetch_with_request(&self, input: &Request) -> Promise
The fetch() method
This API requires the following crate features to be activated: Request, Window
source§impl Window
impl Window
sourcepub fn fetch_with_str(&self, input: &str) -> Promise
pub fn fetch_with_str(&self, input: &str) -> Promise
The fetch() method
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn fetch_with_request_and_init(
&self,
input: &Request,
init: &RequestInit
) -> Promise
pub fn fetch_with_request_and_init(
&self,
input: &Request,
init: &RequestInit
) -> Promise
The fetch() method
This API requires the following crate features to be activated: Request, RequestInit, Window
source§impl Window
impl Window
sourcepub fn fetch_with_str_and_init(&self, input: &str, init: &RequestInit) -> Promise
pub fn fetch_with_str_and_init(&self, input: &str, init: &RequestInit) -> Promise
The fetch() method
This API requires the following crate features to be activated: RequestInit, Window
source§impl Window
impl Window
source§impl Window
impl Window
source§impl Window
impl Window
source§impl Window
impl Window
source§impl Window
impl Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn set_interval_with_callback_and_timeout_and_arguments_4(
&self,
handler: &Function,
timeout: i32,
arguments_1: &JsValue,
arguments_2: &JsValue,
arguments_3: &JsValue,
arguments_4: &JsValue
) -> Result<i32, JsValue>
pub fn set_interval_with_callback_and_timeout_and_arguments_4(
&self,
handler: &Function,
timeout: i32,
arguments_1: &JsValue,
arguments_2: &JsValue,
arguments_3: &JsValue,
arguments_4: &JsValue
) -> Result<i32, JsValue>
The setInterval() method
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_interval_with_callback_and_timeout_and_arguments_5(
&self,
handler: &Function,
timeout: i32,
arguments_1: &JsValue,
arguments_2: &JsValue,
arguments_3: &JsValue,
arguments_4: &JsValue,
arguments_5: &JsValue
) -> Result<i32, JsValue>
pub fn set_interval_with_callback_and_timeout_and_arguments_5(
&self,
handler: &Function,
timeout: i32,
arguments_1: &JsValue,
arguments_2: &JsValue,
arguments_3: &JsValue,
arguments_4: &JsValue,
arguments_5: &JsValue
) -> Result<i32, JsValue>
The setInterval() method
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_interval_with_callback_and_timeout_and_arguments_6(
&self,
handler: &Function,
timeout: i32,
arguments_1: &JsValue,
arguments_2: &JsValue,
arguments_3: &JsValue,
arguments_4: &JsValue,
arguments_5: &JsValue,
arguments_6: &JsValue
) -> Result<i32, JsValue>
pub fn set_interval_with_callback_and_timeout_and_arguments_6(
&self,
handler: &Function,
timeout: i32,
arguments_1: &JsValue,
arguments_2: &JsValue,
arguments_3: &JsValue,
arguments_4: &JsValue,
arguments_5: &JsValue,
arguments_6: &JsValue
) -> Result<i32, JsValue>
The setInterval() method
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_interval_with_callback_and_timeout_and_arguments_7(
&self,
handler: &Function,
timeout: i32,
arguments_1: &JsValue,
arguments_2: &JsValue,
arguments_3: &JsValue,
arguments_4: &JsValue,
arguments_5: &JsValue,
arguments_6: &JsValue,
arguments_7: &JsValue
) -> Result<i32, JsValue>
pub fn set_interval_with_callback_and_timeout_and_arguments_7(
&self,
handler: &Function,
timeout: i32,
arguments_1: &JsValue,
arguments_2: &JsValue,
arguments_3: &JsValue,
arguments_4: &JsValue,
arguments_5: &JsValue,
arguments_6: &JsValue,
arguments_7: &JsValue
) -> Result<i32, JsValue>
The setInterval() method
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
source§impl Window
impl Window
source§impl Window
impl Window
source§impl Window
impl Window
source§impl Window
impl Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn set_interval_with_str_and_timeout_and_unused_5(
&self,
handler: &str,
timeout: i32,
unused_1: &JsValue,
unused_2: &JsValue,
unused_3: &JsValue,
unused_4: &JsValue,
unused_5: &JsValue
) -> Result<i32, JsValue>
pub fn set_interval_with_str_and_timeout_and_unused_5(
&self,
handler: &str,
timeout: i32,
unused_1: &JsValue,
unused_2: &JsValue,
unused_3: &JsValue,
unused_4: &JsValue,
unused_5: &JsValue
) -> Result<i32, JsValue>
The setInterval() method
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_interval_with_str_and_timeout_and_unused_6(
&self,
handler: &str,
timeout: i32,
unused_1: &JsValue,
unused_2: &JsValue,
unused_3: &JsValue,
unused_4: &JsValue,
unused_5: &JsValue,
unused_6: &JsValue
) -> Result<i32, JsValue>
pub fn set_interval_with_str_and_timeout_and_unused_6(
&self,
handler: &str,
timeout: i32,
unused_1: &JsValue,
unused_2: &JsValue,
unused_3: &JsValue,
unused_4: &JsValue,
unused_5: &JsValue,
unused_6: &JsValue
) -> Result<i32, JsValue>
The setInterval() method
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_interval_with_str_and_timeout_and_unused_7(
&self,
handler: &str,
timeout: i32,
unused_1: &JsValue,
unused_2: &JsValue,
unused_3: &JsValue,
unused_4: &JsValue,
unused_5: &JsValue,
unused_6: &JsValue,
unused_7: &JsValue
) -> Result<i32, JsValue>
pub fn set_interval_with_str_and_timeout_and_unused_7(
&self,
handler: &str,
timeout: i32,
unused_1: &JsValue,
unused_2: &JsValue,
unused_3: &JsValue,
unused_4: &JsValue,
unused_5: &JsValue,
unused_6: &JsValue,
unused_7: &JsValue
) -> Result<i32, JsValue>
The setInterval() method
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
source§impl Window
impl Window
source§impl Window
impl Window
source§impl Window
impl Window
source§impl Window
impl Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn set_timeout_with_callback_and_timeout_and_arguments_4(
&self,
handler: &Function,
timeout: i32,
arguments_1: &JsValue,
arguments_2: &JsValue,
arguments_3: &JsValue,
arguments_4: &JsValue
) -> Result<i32, JsValue>
pub fn set_timeout_with_callback_and_timeout_and_arguments_4(
&self,
handler: &Function,
timeout: i32,
arguments_1: &JsValue,
arguments_2: &JsValue,
arguments_3: &JsValue,
arguments_4: &JsValue
) -> Result<i32, JsValue>
The setTimeout() method
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_timeout_with_callback_and_timeout_and_arguments_5(
&self,
handler: &Function,
timeout: i32,
arguments_1: &JsValue,
arguments_2: &JsValue,
arguments_3: &JsValue,
arguments_4: &JsValue,
arguments_5: &JsValue
) -> Result<i32, JsValue>
pub fn set_timeout_with_callback_and_timeout_and_arguments_5(
&self,
handler: &Function,
timeout: i32,
arguments_1: &JsValue,
arguments_2: &JsValue,
arguments_3: &JsValue,
arguments_4: &JsValue,
arguments_5: &JsValue
) -> Result<i32, JsValue>
The setTimeout() method
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_timeout_with_callback_and_timeout_and_arguments_6(
&self,
handler: &Function,
timeout: i32,
arguments_1: &JsValue,
arguments_2: &JsValue,
arguments_3: &JsValue,
arguments_4: &JsValue,
arguments_5: &JsValue,
arguments_6: &JsValue
) -> Result<i32, JsValue>
pub fn set_timeout_with_callback_and_timeout_and_arguments_6(
&self,
handler: &Function,
timeout: i32,
arguments_1: &JsValue,
arguments_2: &JsValue,
arguments_3: &JsValue,
arguments_4: &JsValue,
arguments_5: &JsValue,
arguments_6: &JsValue
) -> Result<i32, JsValue>
The setTimeout() method
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_timeout_with_callback_and_timeout_and_arguments_7(
&self,
handler: &Function,
timeout: i32,
arguments_1: &JsValue,
arguments_2: &JsValue,
arguments_3: &JsValue,
arguments_4: &JsValue,
arguments_5: &JsValue,
arguments_6: &JsValue,
arguments_7: &JsValue
) -> Result<i32, JsValue>
pub fn set_timeout_with_callback_and_timeout_and_arguments_7(
&self,
handler: &Function,
timeout: i32,
arguments_1: &JsValue,
arguments_2: &JsValue,
arguments_3: &JsValue,
arguments_4: &JsValue,
arguments_5: &JsValue,
arguments_6: &JsValue,
arguments_7: &JsValue
) -> Result<i32, JsValue>
The setTimeout() method
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
source§impl Window
impl Window
source§impl Window
impl Window
source§impl Window
impl Window
source§impl Window
impl Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn set_timeout_with_str_and_timeout_and_unused_5(
&self,
handler: &str,
timeout: i32,
unused_1: &JsValue,
unused_2: &JsValue,
unused_3: &JsValue,
unused_4: &JsValue,
unused_5: &JsValue
) -> Result<i32, JsValue>
pub fn set_timeout_with_str_and_timeout_and_unused_5(
&self,
handler: &str,
timeout: i32,
unused_1: &JsValue,
unused_2: &JsValue,
unused_3: &JsValue,
unused_4: &JsValue,
unused_5: &JsValue
) -> Result<i32, JsValue>
The setTimeout() method
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_timeout_with_str_and_timeout_and_unused_6(
&self,
handler: &str,
timeout: i32,
unused_1: &JsValue,
unused_2: &JsValue,
unused_3: &JsValue,
unused_4: &JsValue,
unused_5: &JsValue,
unused_6: &JsValue
) -> Result<i32, JsValue>
pub fn set_timeout_with_str_and_timeout_and_unused_6(
&self,
handler: &str,
timeout: i32,
unused_1: &JsValue,
unused_2: &JsValue,
unused_3: &JsValue,
unused_4: &JsValue,
unused_5: &JsValue,
unused_6: &JsValue
) -> Result<i32, JsValue>
The setTimeout() method
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn set_timeout_with_str_and_timeout_and_unused_7(
&self,
handler: &str,
timeout: i32,
unused_1: &JsValue,
unused_2: &JsValue,
unused_3: &JsValue,
unused_4: &JsValue,
unused_5: &JsValue,
unused_6: &JsValue,
unused_7: &JsValue
) -> Result<i32, JsValue>
pub fn set_timeout_with_str_and_timeout_and_unused_7(
&self,
handler: &str,
timeout: i32,
unused_1: &JsValue,
unused_2: &JsValue,
unused_3: &JsValue,
unused_4: &JsValue,
unused_5: &JsValue,
unused_6: &JsValue,
unused_7: &JsValue
) -> Result<i32, JsValue>
The setTimeout() method
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
source§impl Window
impl Window
sourcepub fn is_secure_context(&self) -> bool
pub fn is_secure_context(&self) -> bool
The isSecureContext getter
This API requires the following crate features to be activated: Window
source§impl Window
impl Window
sourcepub fn indexed_db(&self) -> Result<Option<IdbFactory>, JsValue>
pub fn indexed_db(&self) -> Result<Option<IdbFactory>, JsValue>
The indexedDB getter
This API requires the following crate features to be activated: IdbFactory, Window
source§impl Window
impl Window
sourcepub fn caches(&self) -> Result<CacheStorage, JsValue>
pub fn caches(&self) -> Result<CacheStorage, JsValue>
The caches getter
This API requires the following crate features to be activated: CacheStorage, Window
Trait Implementations§
source§impl AsRef<EventTarget> for Window
impl AsRef<EventTarget> for Window
source§fn as_ref(&self) -> &EventTarget
fn as_ref(&self) -> &EventTarget
source§impl From<Window> for EventTarget
impl From<Window> for EventTarget
source§fn from(obj: Window) -> EventTarget
fn from(obj: Window) -> EventTarget
source§impl FromWasmAbi for Window
impl FromWasmAbi for Window
source§impl<'a> IntoWasmAbi for &'a Window
impl<'a> IntoWasmAbi for &'a Window
source§impl IntoWasmAbi for Window
impl IntoWasmAbi for Window
source§impl JsCast for Window
impl JsCast for Window
source§fn instanceof(val: &JsValue) -> bool
fn instanceof(val: &JsValue) -> bool
instanceof check to see whether the JsValue
provided is an instance of this type. Read moresource§fn unchecked_from_js(val: JsValue) -> Self
fn unchecked_from_js(val: JsValue) -> Self
source§fn unchecked_from_js_ref(val: &JsValue) -> &Self
fn unchecked_from_js_ref(val: &JsValue) -> &Self
source§fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
T. Read moresource§fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
T. Read moresource§fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
T. Read moresource§fn unchecked_into<T>(self) -> Twhere
T: JsCast,
fn unchecked_into<T>(self) -> Twhere
T: JsCast,
source§impl OptionFromWasmAbi for Window
impl OptionFromWasmAbi for Window
source§impl<'a> OptionIntoWasmAbi for &'a Window
impl<'a> OptionIntoWasmAbi for &'a Window
source§impl OptionIntoWasmAbi for Window
impl OptionIntoWasmAbi for Window
source§impl RefFromWasmAbi for Window
impl RefFromWasmAbi for Window
§type Abi = <JsValue as RefFromWasmAbi>::Abi
type Abi = <JsValue as RefFromWasmAbi>::Abi
Self are recovered from.§type Anchor = ManuallyDrop<Window>
type Anchor = ManuallyDrop<Window>
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous. Read moreAuto Trait Implementations§
impl RefUnwindSafe for Window
impl !Send for Window
impl !Sync for Window
impl Unpin for Window
impl UnwindSafe for Window
Blanket Implementations§
source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
IntoWasmAbi::Abisource§fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err. Read more