Struct web_sys::SvgGraphicsElement
source · #[repr(transparent)]pub struct SvgGraphicsElement { /* private fields */ }
Expand description
The SVGGraphicsElement
object
This API requires the following crate features to be activated: SvgGraphicsElement
Implementations§
source§impl SvgGraphicsElement
impl SvgGraphicsElement
sourcepub fn get_b_box_with_a_options(
&self,
a_options: &SvgBoundingBoxOptions
) -> Result<SvgRect, JsValue>
pub fn get_b_box_with_a_options(
&self,
a_options: &SvgBoundingBoxOptions
) -> Result<SvgRect, JsValue>
The getBBox()
method
This API requires the following crate features to be activated: SvgBoundingBoxOptions
, SvgGraphicsElement
, SvgRect
source§impl SvgGraphicsElement
impl SvgGraphicsElement
source§impl SvgGraphicsElement
impl SvgGraphicsElement
sourcepub fn get_screen_ctm(&self) -> Option<SvgMatrix>
pub fn get_screen_ctm(&self) -> Option<SvgMatrix>
The getScreenCTM()
method
This API requires the following crate features to be activated: SvgGraphicsElement
, SvgMatrix
source§impl SvgGraphicsElement
impl SvgGraphicsElement
sourcepub fn get_transform_to_element(
&self,
element: &SvgGraphicsElement
) -> Result<SvgMatrix, JsValue>
pub fn get_transform_to_element(
&self,
element: &SvgGraphicsElement
) -> Result<SvgMatrix, JsValue>
The getTransformToElement()
method
This API requires the following crate features to be activated: SvgGraphicsElement
, SvgMatrix
source§impl SvgGraphicsElement
impl SvgGraphicsElement
sourcepub fn transform(&self) -> SvgAnimatedTransformList
pub fn transform(&self) -> SvgAnimatedTransformList
The transform
getter
This API requires the following crate features to be activated: SvgAnimatedTransformList
, SvgGraphicsElement
source§impl SvgGraphicsElement
impl SvgGraphicsElement
sourcepub fn nearest_viewport_element(&self) -> Option<SvgElement>
pub fn nearest_viewport_element(&self) -> Option<SvgElement>
The nearestViewportElement
getter
This API requires the following crate features to be activated: SvgElement
, SvgGraphicsElement
source§impl SvgGraphicsElement
impl SvgGraphicsElement
sourcepub fn farthest_viewport_element(&self) -> Option<SvgElement>
pub fn farthest_viewport_element(&self) -> Option<SvgElement>
The farthestViewportElement
getter
This API requires the following crate features to be activated: SvgElement
, SvgGraphicsElement
source§impl SvgGraphicsElement
impl SvgGraphicsElement
sourcepub fn has_extension(&self, extension: &str) -> bool
pub fn has_extension(&self, extension: &str) -> bool
The hasExtension()
method
This API requires the following crate features to be activated: SvgGraphicsElement
source§impl SvgGraphicsElement
impl SvgGraphicsElement
sourcepub fn required_features(&self) -> SvgStringList
pub fn required_features(&self) -> SvgStringList
The requiredFeatures
getter
This API requires the following crate features to be activated: SvgGraphicsElement
, SvgStringList
source§impl SvgGraphicsElement
impl SvgGraphicsElement
sourcepub fn required_extensions(&self) -> SvgStringList
pub fn required_extensions(&self) -> SvgStringList
The requiredExtensions
getter
This API requires the following crate features to be activated: SvgGraphicsElement
, SvgStringList
source§impl SvgGraphicsElement
impl SvgGraphicsElement
sourcepub fn system_language(&self) -> SvgStringList
pub fn system_language(&self) -> SvgStringList
The systemLanguage
getter
This API requires the following crate features to be activated: SvgGraphicsElement
, SvgStringList
Trait Implementations§
source§impl AsRef<Element> for SvgGraphicsElement
impl AsRef<Element> for SvgGraphicsElement
source§impl AsRef<EventTarget> for SvgGraphicsElement
impl AsRef<EventTarget> for SvgGraphicsElement
source§fn as_ref(&self) -> &EventTarget
fn as_ref(&self) -> &EventTarget
source§impl AsRef<JsValue> for SvgGraphicsElement
impl AsRef<JsValue> for SvgGraphicsElement
source§impl AsRef<Node> for SvgGraphicsElement
impl AsRef<Node> for SvgGraphicsElement
source§impl AsRef<Object> for SvgGraphicsElement
impl AsRef<Object> for SvgGraphicsElement
source§impl AsRef<SvgElement> for SvgGraphicsElement
impl AsRef<SvgElement> for SvgGraphicsElement
source§fn as_ref(&self) -> &SvgElement
fn as_ref(&self) -> &SvgElement
source§impl AsRef<SvgGraphicsElement> for SvgCircleElement
impl AsRef<SvgGraphicsElement> for SvgCircleElement
source§fn as_ref(&self) -> &SvgGraphicsElement
fn as_ref(&self) -> &SvgGraphicsElement
source§impl AsRef<SvgGraphicsElement> for SvgDefsElement
impl AsRef<SvgGraphicsElement> for SvgDefsElement
source§fn as_ref(&self) -> &SvgGraphicsElement
fn as_ref(&self) -> &SvgGraphicsElement
source§impl AsRef<SvgGraphicsElement> for SvgEllipseElement
impl AsRef<SvgGraphicsElement> for SvgEllipseElement
source§fn as_ref(&self) -> &SvgGraphicsElement
fn as_ref(&self) -> &SvgGraphicsElement
source§impl AsRef<SvgGraphicsElement> for SvgForeignObjectElement
impl AsRef<SvgGraphicsElement> for SvgForeignObjectElement
source§fn as_ref(&self) -> &SvgGraphicsElement
fn as_ref(&self) -> &SvgGraphicsElement
source§impl AsRef<SvgGraphicsElement> for SvgGeometryElement
impl AsRef<SvgGraphicsElement> for SvgGeometryElement
source§fn as_ref(&self) -> &SvgGraphicsElement
fn as_ref(&self) -> &SvgGraphicsElement
source§impl AsRef<SvgGraphicsElement> for SvgImageElement
impl AsRef<SvgGraphicsElement> for SvgImageElement
source§fn as_ref(&self) -> &SvgGraphicsElement
fn as_ref(&self) -> &SvgGraphicsElement
source§impl AsRef<SvgGraphicsElement> for SvgLineElement
impl AsRef<SvgGraphicsElement> for SvgLineElement
source§fn as_ref(&self) -> &SvgGraphicsElement
fn as_ref(&self) -> &SvgGraphicsElement
source§impl AsRef<SvgGraphicsElement> for SvgPathElement
impl AsRef<SvgGraphicsElement> for SvgPathElement
source§fn as_ref(&self) -> &SvgGraphicsElement
fn as_ref(&self) -> &SvgGraphicsElement
source§impl AsRef<SvgGraphicsElement> for SvgPolygonElement
impl AsRef<SvgGraphicsElement> for SvgPolygonElement
source§fn as_ref(&self) -> &SvgGraphicsElement
fn as_ref(&self) -> &SvgGraphicsElement
source§impl AsRef<SvgGraphicsElement> for SvgPolylineElement
impl AsRef<SvgGraphicsElement> for SvgPolylineElement
source§fn as_ref(&self) -> &SvgGraphicsElement
fn as_ref(&self) -> &SvgGraphicsElement
source§impl AsRef<SvgGraphicsElement> for SvgRectElement
impl AsRef<SvgGraphicsElement> for SvgRectElement
source§fn as_ref(&self) -> &SvgGraphicsElement
fn as_ref(&self) -> &SvgGraphicsElement
source§impl AsRef<SvgGraphicsElement> for SvgSwitchElement
impl AsRef<SvgGraphicsElement> for SvgSwitchElement
source§fn as_ref(&self) -> &SvgGraphicsElement
fn as_ref(&self) -> &SvgGraphicsElement
source§impl AsRef<SvgGraphicsElement> for SvgTextContentElement
impl AsRef<SvgGraphicsElement> for SvgTextContentElement
source§fn as_ref(&self) -> &SvgGraphicsElement
fn as_ref(&self) -> &SvgGraphicsElement
source§impl AsRef<SvgGraphicsElement> for SvgTextElement
impl AsRef<SvgGraphicsElement> for SvgTextElement
source§fn as_ref(&self) -> &SvgGraphicsElement
fn as_ref(&self) -> &SvgGraphicsElement
source§impl AsRef<SvgGraphicsElement> for SvgTextPathElement
impl AsRef<SvgGraphicsElement> for SvgTextPathElement
source§fn as_ref(&self) -> &SvgGraphicsElement
fn as_ref(&self) -> &SvgGraphicsElement
source§impl AsRef<SvgGraphicsElement> for SvgTextPositioningElement
impl AsRef<SvgGraphicsElement> for SvgTextPositioningElement
source§fn as_ref(&self) -> &SvgGraphicsElement
fn as_ref(&self) -> &SvgGraphicsElement
source§impl AsRef<SvgGraphicsElement> for SvgUseElement
impl AsRef<SvgGraphicsElement> for SvgUseElement
source§fn as_ref(&self) -> &SvgGraphicsElement
fn as_ref(&self) -> &SvgGraphicsElement
source§impl AsRef<SvgGraphicsElement> for SvgaElement
impl AsRef<SvgGraphicsElement> for SvgaElement
source§fn as_ref(&self) -> &SvgGraphicsElement
fn as_ref(&self) -> &SvgGraphicsElement
source§impl AsRef<SvgGraphicsElement> for SvggElement
impl AsRef<SvgGraphicsElement> for SvggElement
source§fn as_ref(&self) -> &SvgGraphicsElement
fn as_ref(&self) -> &SvgGraphicsElement
source§impl AsRef<SvgGraphicsElement> for SvgsvgElement
impl AsRef<SvgGraphicsElement> for SvgsvgElement
source§fn as_ref(&self) -> &SvgGraphicsElement
fn as_ref(&self) -> &SvgGraphicsElement
source§impl AsRef<SvgGraphicsElement> for SvgtSpanElement
impl AsRef<SvgGraphicsElement> for SvgtSpanElement
source§fn as_ref(&self) -> &SvgGraphicsElement
fn as_ref(&self) -> &SvgGraphicsElement
source§impl Clone for SvgGraphicsElement
impl Clone for SvgGraphicsElement
source§fn clone(&self) -> SvgGraphicsElement
fn clone(&self) -> SvgGraphicsElement
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SvgGraphicsElement
impl Debug for SvgGraphicsElement
source§impl From<JsValue> for SvgGraphicsElement
impl From<JsValue> for SvgGraphicsElement
source§fn from(obj: JsValue) -> SvgGraphicsElement
fn from(obj: JsValue) -> SvgGraphicsElement
source§impl From<SvgCircleElement> for SvgGraphicsElement
impl From<SvgCircleElement> for SvgGraphicsElement
source§fn from(obj: SvgCircleElement) -> SvgGraphicsElement
fn from(obj: SvgCircleElement) -> SvgGraphicsElement
source§impl From<SvgDefsElement> for SvgGraphicsElement
impl From<SvgDefsElement> for SvgGraphicsElement
source§fn from(obj: SvgDefsElement) -> SvgGraphicsElement
fn from(obj: SvgDefsElement) -> SvgGraphicsElement
source§impl From<SvgEllipseElement> for SvgGraphicsElement
impl From<SvgEllipseElement> for SvgGraphicsElement
source§fn from(obj: SvgEllipseElement) -> SvgGraphicsElement
fn from(obj: SvgEllipseElement) -> SvgGraphicsElement
source§impl From<SvgForeignObjectElement> for SvgGraphicsElement
impl From<SvgForeignObjectElement> for SvgGraphicsElement
source§fn from(obj: SvgForeignObjectElement) -> SvgGraphicsElement
fn from(obj: SvgForeignObjectElement) -> SvgGraphicsElement
source§impl From<SvgGeometryElement> for SvgGraphicsElement
impl From<SvgGeometryElement> for SvgGraphicsElement
source§fn from(obj: SvgGeometryElement) -> SvgGraphicsElement
fn from(obj: SvgGeometryElement) -> SvgGraphicsElement
source§impl From<SvgGraphicsElement> for Element
impl From<SvgGraphicsElement> for Element
source§fn from(obj: SvgGraphicsElement) -> Element
fn from(obj: SvgGraphicsElement) -> Element
source§impl From<SvgGraphicsElement> for EventTarget
impl From<SvgGraphicsElement> for EventTarget
source§fn from(obj: SvgGraphicsElement) -> EventTarget
fn from(obj: SvgGraphicsElement) -> EventTarget
source§impl From<SvgGraphicsElement> for JsValue
impl From<SvgGraphicsElement> for JsValue
source§fn from(obj: SvgGraphicsElement) -> JsValue
fn from(obj: SvgGraphicsElement) -> JsValue
source§impl From<SvgGraphicsElement> for Node
impl From<SvgGraphicsElement> for Node
source§fn from(obj: SvgGraphicsElement) -> Node
fn from(obj: SvgGraphicsElement) -> Node
source§impl From<SvgGraphicsElement> for Object
impl From<SvgGraphicsElement> for Object
source§fn from(obj: SvgGraphicsElement) -> Object
fn from(obj: SvgGraphicsElement) -> Object
source§impl From<SvgGraphicsElement> for SvgElement
impl From<SvgGraphicsElement> for SvgElement
source§fn from(obj: SvgGraphicsElement) -> SvgElement
fn from(obj: SvgGraphicsElement) -> SvgElement
source§impl From<SvgImageElement> for SvgGraphicsElement
impl From<SvgImageElement> for SvgGraphicsElement
source§fn from(obj: SvgImageElement) -> SvgGraphicsElement
fn from(obj: SvgImageElement) -> SvgGraphicsElement
source§impl From<SvgLineElement> for SvgGraphicsElement
impl From<SvgLineElement> for SvgGraphicsElement
source§fn from(obj: SvgLineElement) -> SvgGraphicsElement
fn from(obj: SvgLineElement) -> SvgGraphicsElement
source§impl From<SvgPathElement> for SvgGraphicsElement
impl From<SvgPathElement> for SvgGraphicsElement
source§fn from(obj: SvgPathElement) -> SvgGraphicsElement
fn from(obj: SvgPathElement) -> SvgGraphicsElement
source§impl From<SvgPolygonElement> for SvgGraphicsElement
impl From<SvgPolygonElement> for SvgGraphicsElement
source§fn from(obj: SvgPolygonElement) -> SvgGraphicsElement
fn from(obj: SvgPolygonElement) -> SvgGraphicsElement
source§impl From<SvgPolylineElement> for SvgGraphicsElement
impl From<SvgPolylineElement> for SvgGraphicsElement
source§fn from(obj: SvgPolylineElement) -> SvgGraphicsElement
fn from(obj: SvgPolylineElement) -> SvgGraphicsElement
source§impl From<SvgRectElement> for SvgGraphicsElement
impl From<SvgRectElement> for SvgGraphicsElement
source§fn from(obj: SvgRectElement) -> SvgGraphicsElement
fn from(obj: SvgRectElement) -> SvgGraphicsElement
source§impl From<SvgSwitchElement> for SvgGraphicsElement
impl From<SvgSwitchElement> for SvgGraphicsElement
source§fn from(obj: SvgSwitchElement) -> SvgGraphicsElement
fn from(obj: SvgSwitchElement) -> SvgGraphicsElement
source§impl From<SvgTextContentElement> for SvgGraphicsElement
impl From<SvgTextContentElement> for SvgGraphicsElement
source§fn from(obj: SvgTextContentElement) -> SvgGraphicsElement
fn from(obj: SvgTextContentElement) -> SvgGraphicsElement
source§impl From<SvgTextElement> for SvgGraphicsElement
impl From<SvgTextElement> for SvgGraphicsElement
source§fn from(obj: SvgTextElement) -> SvgGraphicsElement
fn from(obj: SvgTextElement) -> SvgGraphicsElement
source§impl From<SvgTextPathElement> for SvgGraphicsElement
impl From<SvgTextPathElement> for SvgGraphicsElement
source§fn from(obj: SvgTextPathElement) -> SvgGraphicsElement
fn from(obj: SvgTextPathElement) -> SvgGraphicsElement
source§impl From<SvgTextPositioningElement> for SvgGraphicsElement
impl From<SvgTextPositioningElement> for SvgGraphicsElement
source§fn from(obj: SvgTextPositioningElement) -> SvgGraphicsElement
fn from(obj: SvgTextPositioningElement) -> SvgGraphicsElement
source§impl From<SvgUseElement> for SvgGraphicsElement
impl From<SvgUseElement> for SvgGraphicsElement
source§fn from(obj: SvgUseElement) -> SvgGraphicsElement
fn from(obj: SvgUseElement) -> SvgGraphicsElement
source§impl From<SvgaElement> for SvgGraphicsElement
impl From<SvgaElement> for SvgGraphicsElement
source§fn from(obj: SvgaElement) -> SvgGraphicsElement
fn from(obj: SvgaElement) -> SvgGraphicsElement
source§impl From<SvggElement> for SvgGraphicsElement
impl From<SvggElement> for SvgGraphicsElement
source§fn from(obj: SvggElement) -> SvgGraphicsElement
fn from(obj: SvggElement) -> SvgGraphicsElement
source§impl From<SvgsvgElement> for SvgGraphicsElement
impl From<SvgsvgElement> for SvgGraphicsElement
source§fn from(obj: SvgsvgElement) -> SvgGraphicsElement
fn from(obj: SvgsvgElement) -> SvgGraphicsElement
source§impl From<SvgtSpanElement> for SvgGraphicsElement
impl From<SvgtSpanElement> for SvgGraphicsElement
source§fn from(obj: SvgtSpanElement) -> SvgGraphicsElement
fn from(obj: SvgtSpanElement) -> SvgGraphicsElement
source§impl FromWasmAbi for SvgGraphicsElement
impl FromWasmAbi for SvgGraphicsElement
source§impl<'a> IntoWasmAbi for &'a SvgGraphicsElement
impl<'a> IntoWasmAbi for &'a SvgGraphicsElement
source§impl IntoWasmAbi for SvgGraphicsElement
impl IntoWasmAbi for SvgGraphicsElement
source§impl JsCast for SvgGraphicsElement
impl JsCast for SvgGraphicsElement
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<'a> OptionIntoWasmAbi for &'a SvgGraphicsElement
impl<'a> OptionIntoWasmAbi for &'a SvgGraphicsElement
source§impl RefFromWasmAbi for SvgGraphicsElement
impl RefFromWasmAbi for SvgGraphicsElement
§type Abi = <JsValue as RefFromWasmAbi>::Abi
type Abi = <JsValue as RefFromWasmAbi>::Abi
Self
are recovered from.§type Anchor = ManuallyDrop<SvgGraphicsElement>
type Anchor = ManuallyDrop<SvgGraphicsElement>
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 SvgGraphicsElement
impl !Send for SvgGraphicsElement
impl !Sync for SvgGraphicsElement
impl Unpin for SvgGraphicsElement
impl UnwindSafe for SvgGraphicsElement
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