Struct web_sys::SvgsvgElement
source · #[repr(transparent)]pub struct SvgsvgElement { /* private fields */ }
Expand description
The SVGSVGElement
object
This API requires the following crate features to be activated: SvgsvgElement
Implementations§
source§impl SvgsvgElement
impl SvgsvgElement
sourcepub fn animations_paused(&self) -> bool
pub fn animations_paused(&self) -> bool
The animationsPaused()
method
This API requires the following crate features to be activated: SvgsvgElement
source§impl SvgsvgElement
impl SvgsvgElement
sourcepub fn create_svg_angle(&self) -> SvgAngle
pub fn create_svg_angle(&self) -> SvgAngle
The createSVGAngle()
method
This API requires the following crate features to be activated: SvgAngle
, SvgsvgElement
source§impl SvgsvgElement
impl SvgsvgElement
sourcepub fn create_svg_length(&self) -> SvgLength
pub fn create_svg_length(&self) -> SvgLength
The createSVGLength()
method
This API requires the following crate features to be activated: SvgLength
, SvgsvgElement
source§impl SvgsvgElement
impl SvgsvgElement
sourcepub fn create_svg_matrix(&self) -> SvgMatrix
pub fn create_svg_matrix(&self) -> SvgMatrix
The createSVGMatrix()
method
This API requires the following crate features to be activated: SvgMatrix
, SvgsvgElement
source§impl SvgsvgElement
impl SvgsvgElement
sourcepub fn create_svg_number(&self) -> SvgNumber
pub fn create_svg_number(&self) -> SvgNumber
The createSVGNumber()
method
This API requires the following crate features to be activated: SvgNumber
, SvgsvgElement
source§impl SvgsvgElement
impl SvgsvgElement
sourcepub fn create_svg_point(&self) -> SvgPoint
pub fn create_svg_point(&self) -> SvgPoint
The createSVGPoint()
method
This API requires the following crate features to be activated: SvgPoint
, SvgsvgElement
source§impl SvgsvgElement
impl SvgsvgElement
sourcepub fn create_svg_rect(&self) -> SvgRect
pub fn create_svg_rect(&self) -> SvgRect
The createSVGRect()
method
This API requires the following crate features to be activated: SvgRect
, SvgsvgElement
source§impl SvgsvgElement
impl SvgsvgElement
sourcepub fn create_svg_transform(&self) -> SvgTransform
pub fn create_svg_transform(&self) -> SvgTransform
The createSVGTransform()
method
This API requires the following crate features to be activated: SvgTransform
, SvgsvgElement
source§impl SvgsvgElement
impl SvgsvgElement
sourcepub fn create_svg_transform_from_matrix(
&self,
matrix: &SvgMatrix
) -> SvgTransform
pub fn create_svg_transform_from_matrix(
&self,
matrix: &SvgMatrix
) -> SvgTransform
The createSVGTransformFromMatrix()
method
This API requires the following crate features to be activated: SvgMatrix
, SvgTransform
, SvgsvgElement
source§impl SvgsvgElement
impl SvgsvgElement
sourcepub fn deselect_all(&self)
pub fn deselect_all(&self)
The deselectAll()
method
This API requires the following crate features to be activated: SvgsvgElement
source§impl SvgsvgElement
impl SvgsvgElement
sourcepub fn force_redraw(&self)
pub fn force_redraw(&self)
The forceRedraw()
method
This API requires the following crate features to be activated: SvgsvgElement
source§impl SvgsvgElement
impl SvgsvgElement
sourcepub fn get_current_time(&self) -> f32
pub fn get_current_time(&self) -> f32
The getCurrentTime()
method
This API requires the following crate features to be activated: SvgsvgElement
source§impl SvgsvgElement
impl SvgsvgElement
sourcepub fn get_element_by_id(&self, element_id: &str) -> Option<Element>
pub fn get_element_by_id(&self, element_id: &str) -> Option<Element>
The getElementById()
method
This API requires the following crate features to be activated: Element
, SvgsvgElement
source§impl SvgsvgElement
impl SvgsvgElement
sourcepub fn pause_animations(&self)
pub fn pause_animations(&self)
The pauseAnimations()
method
This API requires the following crate features to be activated: SvgsvgElement
source§impl SvgsvgElement
impl SvgsvgElement
sourcepub fn set_current_time(&self, seconds: f32)
pub fn set_current_time(&self, seconds: f32)
The setCurrentTime()
method
This API requires the following crate features to be activated: SvgsvgElement
source§impl SvgsvgElement
impl SvgsvgElement
sourcepub fn suspend_redraw(&self, max_wait_milliseconds: u32) -> u32
pub fn suspend_redraw(&self, max_wait_milliseconds: u32) -> u32
The suspendRedraw()
method
This API requires the following crate features to be activated: SvgsvgElement
source§impl SvgsvgElement
impl SvgsvgElement
sourcepub fn unpause_animations(&self)
pub fn unpause_animations(&self)
The unpauseAnimations()
method
This API requires the following crate features to be activated: SvgsvgElement
source§impl SvgsvgElement
impl SvgsvgElement
sourcepub fn unsuspend_redraw(&self, suspend_handle_id: u32)
pub fn unsuspend_redraw(&self, suspend_handle_id: u32)
The unsuspendRedraw()
method
This API requires the following crate features to be activated: SvgsvgElement
source§impl SvgsvgElement
impl SvgsvgElement
sourcepub fn unsuspend_redraw_all(&self)
pub fn unsuspend_redraw_all(&self)
The unsuspendRedrawAll()
method
This API requires the following crate features to be activated: SvgsvgElement
source§impl SvgsvgElement
impl SvgsvgElement
sourcepub fn x(&self) -> SvgAnimatedLength
pub fn x(&self) -> SvgAnimatedLength
The x
getter
This API requires the following crate features to be activated: SvgAnimatedLength
, SvgsvgElement
source§impl SvgsvgElement
impl SvgsvgElement
sourcepub fn y(&self) -> SvgAnimatedLength
pub fn y(&self) -> SvgAnimatedLength
The y
getter
This API requires the following crate features to be activated: SvgAnimatedLength
, SvgsvgElement
source§impl SvgsvgElement
impl SvgsvgElement
sourcepub fn width(&self) -> SvgAnimatedLength
pub fn width(&self) -> SvgAnimatedLength
The width
getter
This API requires the following crate features to be activated: SvgAnimatedLength
, SvgsvgElement
source§impl SvgsvgElement
impl SvgsvgElement
sourcepub fn height(&self) -> SvgAnimatedLength
pub fn height(&self) -> SvgAnimatedLength
The height
getter
This API requires the following crate features to be activated: SvgAnimatedLength
, SvgsvgElement
source§impl SvgsvgElement
impl SvgsvgElement
sourcepub fn use_current_view(&self) -> bool
pub fn use_current_view(&self) -> bool
The useCurrentView
getter
This API requires the following crate features to be activated: SvgsvgElement
source§impl SvgsvgElement
impl SvgsvgElement
sourcepub fn current_scale(&self) -> f32
pub fn current_scale(&self) -> f32
The currentScale
getter
This API requires the following crate features to be activated: SvgsvgElement
source§impl SvgsvgElement
impl SvgsvgElement
sourcepub fn set_current_scale(&self, current_scale: f32)
pub fn set_current_scale(&self, current_scale: f32)
The currentScale
setter
This API requires the following crate features to be activated: SvgsvgElement
source§impl SvgsvgElement
impl SvgsvgElement
sourcepub fn current_translate(&self) -> SvgPoint
pub fn current_translate(&self) -> SvgPoint
The currentTranslate
getter
This API requires the following crate features to be activated: SvgPoint
, SvgsvgElement
source§impl SvgsvgElement
impl SvgsvgElement
sourcepub fn view_box(&self) -> SvgAnimatedRect
pub fn view_box(&self) -> SvgAnimatedRect
The viewBox
getter
This API requires the following crate features to be activated: SvgAnimatedRect
, SvgsvgElement
source§impl SvgsvgElement
impl SvgsvgElement
sourcepub fn preserve_aspect_ratio(&self) -> SvgAnimatedPreserveAspectRatio
pub fn preserve_aspect_ratio(&self) -> SvgAnimatedPreserveAspectRatio
The preserveAspectRatio
getter
This API requires the following crate features to be activated: SvgAnimatedPreserveAspectRatio
, SvgsvgElement
source§impl SvgsvgElement
impl SvgsvgElement
sourcepub fn zoom_and_pan(&self) -> u16
pub fn zoom_and_pan(&self) -> u16
The zoomAndPan
getter
This API requires the following crate features to be activated: SvgsvgElement
source§impl SvgsvgElement
impl SvgsvgElement
sourcepub fn set_zoom_and_pan(&self, zoom_and_pan: u16)
pub fn set_zoom_and_pan(&self, zoom_and_pan: u16)
The zoomAndPan
setter
This API requires the following crate features to be activated: SvgsvgElement
source§impl SvgsvgElement
impl SvgsvgElement
pub const SVG_ZOOMANDPAN_UNKNOWN: u16 = 0u16
source§impl SvgsvgElement
impl SvgsvgElement
pub const SVG_ZOOMANDPAN_DISABLE: u16 = 1u16
source§impl SvgsvgElement
impl SvgsvgElement
pub const SVG_ZOOMANDPAN_MAGNIFY: u16 = 2u16
Trait Implementations§
source§impl AsRef<Element> for SvgsvgElement
impl AsRef<Element> for SvgsvgElement
source§impl AsRef<EventTarget> for SvgsvgElement
impl AsRef<EventTarget> for SvgsvgElement
source§fn as_ref(&self) -> &EventTarget
fn as_ref(&self) -> &EventTarget
source§impl AsRef<JsValue> for SvgsvgElement
impl AsRef<JsValue> for SvgsvgElement
source§impl AsRef<Node> for SvgsvgElement
impl AsRef<Node> for SvgsvgElement
source§impl AsRef<Object> for SvgsvgElement
impl AsRef<Object> for SvgsvgElement
source§impl AsRef<SvgElement> for SvgsvgElement
impl AsRef<SvgElement> for SvgsvgElement
source§fn as_ref(&self) -> &SvgElement
fn as_ref(&self) -> &SvgElement
source§impl AsRef<SvgGraphicsElement> for SvgsvgElement
impl AsRef<SvgGraphicsElement> for SvgsvgElement
source§fn as_ref(&self) -> &SvgGraphicsElement
fn as_ref(&self) -> &SvgGraphicsElement
source§impl Clone for SvgsvgElement
impl Clone for SvgsvgElement
source§fn clone(&self) -> SvgsvgElement
fn clone(&self) -> SvgsvgElement
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SvgsvgElement
impl Debug for SvgsvgElement
source§impl From<JsValue> for SvgsvgElement
impl From<JsValue> for SvgsvgElement
source§fn from(obj: JsValue) -> SvgsvgElement
fn from(obj: JsValue) -> SvgsvgElement
source§impl From<SvgsvgElement> for Element
impl From<SvgsvgElement> for Element
source§fn from(obj: SvgsvgElement) -> Element
fn from(obj: SvgsvgElement) -> Element
source§impl From<SvgsvgElement> for EventTarget
impl From<SvgsvgElement> for EventTarget
source§fn from(obj: SvgsvgElement) -> EventTarget
fn from(obj: SvgsvgElement) -> EventTarget
source§impl From<SvgsvgElement> for JsValue
impl From<SvgsvgElement> for JsValue
source§fn from(obj: SvgsvgElement) -> JsValue
fn from(obj: SvgsvgElement) -> JsValue
source§impl From<SvgsvgElement> for Node
impl From<SvgsvgElement> for Node
source§fn from(obj: SvgsvgElement) -> Node
fn from(obj: SvgsvgElement) -> Node
source§impl From<SvgsvgElement> for Object
impl From<SvgsvgElement> for Object
source§fn from(obj: SvgsvgElement) -> Object
fn from(obj: SvgsvgElement) -> Object
source§impl From<SvgsvgElement> for SvgElement
impl From<SvgsvgElement> for SvgElement
source§fn from(obj: SvgsvgElement) -> SvgElement
fn from(obj: SvgsvgElement) -> SvgElement
source§impl From<SvgsvgElement> for SvgGraphicsElement
impl From<SvgsvgElement> for SvgGraphicsElement
source§fn from(obj: SvgsvgElement) -> SvgGraphicsElement
fn from(obj: SvgsvgElement) -> SvgGraphicsElement
source§impl FromWasmAbi for SvgsvgElement
impl FromWasmAbi for SvgsvgElement
source§impl<'a> IntoWasmAbi for &'a SvgsvgElement
impl<'a> IntoWasmAbi for &'a SvgsvgElement
source§impl IntoWasmAbi for SvgsvgElement
impl IntoWasmAbi for SvgsvgElement
source§impl JsCast for SvgsvgElement
impl JsCast for SvgsvgElement
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 SvgsvgElement
impl OptionFromWasmAbi for SvgsvgElement
source§impl<'a> OptionIntoWasmAbi for &'a SvgsvgElement
impl<'a> OptionIntoWasmAbi for &'a SvgsvgElement
source§impl OptionIntoWasmAbi for SvgsvgElement
impl OptionIntoWasmAbi for SvgsvgElement
source§impl RefFromWasmAbi for SvgsvgElement
impl RefFromWasmAbi for SvgsvgElement
§type Abi = <JsValue as RefFromWasmAbi>::Abi
type Abi = <JsValue as RefFromWasmAbi>::Abi
Self
are recovered from.§type Anchor = ManuallyDrop<SvgsvgElement>
type Anchor = ManuallyDrop<SvgsvgElement>
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 SvgsvgElement
impl !Send for SvgsvgElement
impl !Sync for SvgsvgElement
impl Unpin for SvgsvgElement
impl UnwindSafe for SvgsvgElement
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::Abi
source§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