[][src]Struct web_sys::SvgsvgElement

#[repr(transparent)]pub struct SvgsvgElement { /* fields omitted */ }

The SvgsvgElement class.

MDN Documentation

This API requires the following crate features to be activated: SvgsvgElement

Methods

impl SvgsvgElement[src]

pub fn x(&self) -> SvgAnimatedLength[src]

Getter for the x field of this object.

MDN Documentation

This API requires the following crate features to be activated: SvgAnimatedLength, SvgsvgElement

impl SvgsvgElement[src]

pub fn y(&self) -> SvgAnimatedLength[src]

Getter for the y field of this object.

MDN Documentation

This API requires the following crate features to be activated: SvgAnimatedLength, SvgsvgElement

impl SvgsvgElement[src]

pub fn width(&self) -> SvgAnimatedLength[src]

Getter for the width field of this object.

MDN Documentation

This API requires the following crate features to be activated: SvgAnimatedLength, SvgsvgElement

impl SvgsvgElement[src]

pub fn height(&self) -> SvgAnimatedLength[src]

Getter for the height field of this object.

MDN Documentation

This API requires the following crate features to be activated: SvgAnimatedLength, SvgsvgElement

impl SvgsvgElement[src]

pub fn use_current_view(&self) -> bool[src]

Getter for the useCurrentView field of this object.

MDN Documentation

This API requires the following crate features to be activated: SvgsvgElement

impl SvgsvgElement[src]

pub fn current_scale(&self) -> f32[src]

Getter for the currentScale field of this object.

MDN Documentation

This API requires the following crate features to be activated: SvgsvgElement

impl SvgsvgElement[src]

pub fn set_current_scale(&self, value: f32)[src]

Setter for the currentScale field of this object.

MDN Documentation

This API requires the following crate features to be activated: SvgsvgElement

impl SvgsvgElement[src]

pub fn current_translate(&self) -> SvgPoint[src]

Getter for the currentTranslate field of this object.

MDN Documentation

This API requires the following crate features to be activated: SvgPoint, SvgsvgElement

impl SvgsvgElement[src]

pub fn view_box(&self) -> SvgAnimatedRect[src]

Getter for the viewBox field of this object.

MDN Documentation

This API requires the following crate features to be activated: SvgAnimatedRect, SvgsvgElement

impl SvgsvgElement[src]

pub fn preserve_aspect_ratio(&self) -> SvgAnimatedPreserveAspectRatio[src]

Getter for the preserveAspectRatio field of this object.

MDN Documentation

This API requires the following crate features to be activated: SvgAnimatedPreserveAspectRatio, SvgsvgElement

impl SvgsvgElement[src]

pub fn zoom_and_pan(&self) -> u16[src]

Getter for the zoomAndPan field of this object.

MDN Documentation

This API requires the following crate features to be activated: SvgsvgElement

impl SvgsvgElement[src]

pub fn set_zoom_and_pan(&self, value: u16)[src]

Setter for the zoomAndPan field of this object.

MDN Documentation

This API requires the following crate features to be activated: SvgsvgElement

impl SvgsvgElement[src]

pub fn animations_paused(&self) -> bool[src]

The animationsPaused() method.

MDN Documentation

This API requires the following crate features to be activated: SvgsvgElement

impl SvgsvgElement[src]

pub fn create_svg_angle(&self) -> SvgAngle[src]

The createSVGAngle() method.

MDN Documentation

This API requires the following crate features to be activated: SvgAngle, SvgsvgElement

impl SvgsvgElement[src]

pub fn create_svg_length(&self) -> SvgLength[src]

The createSVGLength() method.

MDN Documentation

This API requires the following crate features to be activated: SvgLength, SvgsvgElement

impl SvgsvgElement[src]

pub fn create_svg_matrix(&self) -> SvgMatrix[src]

The createSVGMatrix() method.

MDN Documentation

This API requires the following crate features to be activated: SvgMatrix, SvgsvgElement

impl SvgsvgElement[src]

pub fn create_svg_number(&self) -> SvgNumber[src]

The createSVGNumber() method.

MDN Documentation

This API requires the following crate features to be activated: SvgNumber, SvgsvgElement

impl SvgsvgElement[src]

pub fn create_svg_point(&self) -> SvgPoint[src]

The createSVGPoint() method.

MDN Documentation

This API requires the following crate features to be activated: SvgPoint, SvgsvgElement

impl SvgsvgElement[src]

pub fn create_svg_rect(&self) -> SvgRect[src]

The createSVGRect() method.

MDN Documentation

This API requires the following crate features to be activated: SvgRect, SvgsvgElement

impl SvgsvgElement[src]

pub fn create_svg_transform(&self) -> SvgTransform[src]

The createSVGTransform() method.

MDN Documentation

This API requires the following crate features to be activated: SvgTransform, SvgsvgElement

impl SvgsvgElement[src]

pub fn create_svg_transform_from_matrix(
    &self,
    matrix: &SvgMatrix
) -> SvgTransform
[src]

The createSVGTransformFromMatrix() method.

MDN Documentation

This API requires the following crate features to be activated: SvgMatrix, SvgTransform, SvgsvgElement

impl SvgsvgElement[src]

pub fn deselect_all(&self)[src]

The deselectAll() method.

MDN Documentation

This API requires the following crate features to be activated: SvgsvgElement

impl SvgsvgElement[src]

pub fn force_redraw(&self)[src]

The forceRedraw() method.

MDN Documentation

This API requires the following crate features to be activated: SvgsvgElement

impl SvgsvgElement[src]

pub fn get_current_time(&self) -> f32[src]

The getCurrentTime() method.

MDN Documentation

This API requires the following crate features to be activated: SvgsvgElement

impl SvgsvgElement[src]

pub fn get_element_by_id(&self, element_id: &str) -> Option<Element>[src]

The getElementById() method.

MDN Documentation

This API requires the following crate features to be activated: SvgsvgElement

impl SvgsvgElement[src]

pub fn pause_animations(&self)[src]

The pauseAnimations() method.

MDN Documentation

This API requires the following crate features to be activated: SvgsvgElement

impl SvgsvgElement[src]

pub fn set_current_time(&self, seconds: f32)[src]

The setCurrentTime() method.

MDN Documentation

This API requires the following crate features to be activated: SvgsvgElement

impl SvgsvgElement[src]

pub fn suspend_redraw(&self, max_wait_milliseconds: u32) -> u32[src]

The suspendRedraw() method.

MDN Documentation

This API requires the following crate features to be activated: SvgsvgElement

impl SvgsvgElement[src]

pub fn unpause_animations(&self)[src]

The unpauseAnimations() method.

MDN Documentation

This API requires the following crate features to be activated: SvgsvgElement

impl SvgsvgElement[src]

pub fn unsuspend_redraw(&self, suspend_handle_id: u32)[src]

The unsuspendRedraw() method.

MDN Documentation

This API requires the following crate features to be activated: SvgsvgElement

impl SvgsvgElement[src]

pub fn unsuspend_redraw_all(&self)[src]

The unsuspendRedrawAll() method.

MDN Documentation

This API requires the following crate features to be activated: SvgsvgElement

impl SvgsvgElement[src]

pub const SVG_ZOOMANDPAN_UNKNOWN: u16[src]

The SVGSVGElement.SVG_ZOOMANDPAN_UNKNOWN const.

This API requires the following crate features to be activated: SvgsvgElement

pub const SVG_ZOOMANDPAN_DISABLE: u16[src]

The SVGSVGElement.SVG_ZOOMANDPAN_DISABLE const.

This API requires the following crate features to be activated: SvgsvgElement

pub const SVG_ZOOMANDPAN_MAGNIFY: u16[src]

The SVGSVGElement.SVG_ZOOMANDPAN_MAGNIFY const.

This API requires the following crate features to be activated: SvgsvgElement

Methods from Deref<Target = SvgGraphicsElement>

pub fn transform(&self) -> SvgAnimatedTransformList[src]

Getter for the transform field of this object.

MDN Documentation

This API requires the following crate features to be activated: SvgAnimatedTransformList, SvgGraphicsElement

pub fn nearest_viewport_element(&self) -> Option<SvgElement>[src]

Getter for the nearestViewportElement field of this object.

MDN Documentation

This API requires the following crate features to be activated: SvgGraphicsElement

pub fn farthest_viewport_element(&self) -> Option<SvgElement>[src]

Getter for the farthestViewportElement field of this object.

MDN Documentation

This API requires the following crate features to be activated: SvgGraphicsElement

pub fn required_features(&self) -> SvgStringList[src]

Getter for the requiredFeatures field of this object.

MDN Documentation

This API requires the following crate features to be activated: SvgGraphicsElement, SvgStringList

pub fn required_extensions(&self) -> SvgStringList[src]

Getter for the requiredExtensions field of this object.

MDN Documentation

This API requires the following crate features to be activated: SvgGraphicsElement, SvgStringList

pub fn system_language(&self) -> SvgStringList[src]

Getter for the systemLanguage field of this object.

MDN Documentation

This API requires the following crate features to be activated: SvgGraphicsElement, SvgStringList

pub fn get_b_box(&self) -> Result<SvgRect, JsValue>[src]

The getBBox() method.

MDN Documentation

This API requires the following crate features to be activated: SvgGraphicsElement, SvgRect

pub fn get_b_box_with_a_options(
    &self,
    a_options: &SvgBoundingBoxOptions
) -> Result<SvgRect, JsValue>
[src]

The getBBox() method.

MDN Documentation

This API requires the following crate features to be activated: SvgBoundingBoxOptions, SvgGraphicsElement, SvgRect

pub fn get_ctm(&self) -> Option<SvgMatrix>[src]

The getCTM() method.

MDN Documentation

This API requires the following crate features to be activated: SvgGraphicsElement, SvgMatrix

pub fn get_screen_ctm(&self) -> Option<SvgMatrix>[src]

The getScreenCTM() method.

MDN Documentation

This API requires the following crate features to be activated: SvgGraphicsElement, SvgMatrix

pub fn get_transform_to_element(
    &self,
    element: &SvgGraphicsElement
) -> Result<SvgMatrix, JsValue>
[src]

The getTransformToElement() method.

MDN Documentation

This API requires the following crate features to be activated: SvgGraphicsElement, SvgMatrix

pub fn has_extension(&self, extension: &str) -> bool[src]

The hasExtension() method.

MDN Documentation

This API requires the following crate features to be activated: SvgGraphicsElement

Trait Implementations

impl AsRef<Element> for SvgsvgElement[src]

impl AsRef<EventTarget> for SvgsvgElement[src]

impl AsRef<JsValue> for SvgsvgElement[src]

impl AsRef<Node> for SvgsvgElement[src]

impl AsRef<Object> for SvgsvgElement[src]

impl AsRef<SvgElement> for SvgsvgElement[src]

impl AsRef<SvgGraphicsElement> for SvgsvgElement[src]

impl AsRef<SvgsvgElement> for SvgsvgElement[src]

impl Clone for SvgsvgElement[src]

impl Debug for SvgsvgElement[src]

impl Deref for SvgsvgElement[src]

type Target = SvgGraphicsElement

The resulting type after dereferencing.

impl Eq for SvgsvgElement[src]

impl From<JsValue> for SvgsvgElement[src]

impl From<SvgsvgElement> for JsValue[src]

impl From<SvgsvgElement> for SvgGraphicsElement[src]

impl From<SvgsvgElement> for SvgElement[src]

impl From<SvgsvgElement> for Element[src]

impl From<SvgsvgElement> for Node[src]

impl From<SvgsvgElement> for EventTarget[src]

impl From<SvgsvgElement> for Object[src]

impl FromWasmAbi for SvgsvgElement[src]

type Abi = <JsValue as FromWasmAbi>::Abi

The wasm ABI type that this converts from when coming back out from the ABI boundary. Read more

impl IntoWasmAbi for SvgsvgElement[src]

type Abi = <JsValue as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl<'a> IntoWasmAbi for &'a SvgsvgElement[src]

type Abi = <&'a JsValue as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl JsCast for SvgsvgElement[src]

impl OptionFromWasmAbi for SvgsvgElement[src]

impl OptionIntoWasmAbi for SvgsvgElement[src]

impl<'a> OptionIntoWasmAbi for &'a SvgsvgElement[src]

impl PartialEq<SvgsvgElement> for SvgsvgElement[src]

impl RefFromWasmAbi for SvgsvgElement[src]

type Abi = <JsValue as RefFromWasmAbi>::Abi

The wasm ABI type references to Self are recovered from.

type Anchor = ManuallyDrop<SvgsvgElement>

The type that holds the reference to 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 more

impl StructuralEq for SvgsvgElement[src]

impl StructuralPartialEq for SvgsvgElement[src]

impl WasmDescribe for SvgsvgElement[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ReturnWasmAbi for T where
    T: IntoWasmAbi
[src]

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.