[][src]Struct web_sys::SvgTextContentElement

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

The SVGTextContentElement object

MDN Documentation

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

Methods

impl SvgTextContentElement[src]

pub fn get_char_num_at_position(&self, point: &SvgPoint) -> i32[src]

The getCharNumAtPosition() method

MDN Documentation

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

impl SvgTextContentElement[src]

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

The getComputedTextLength() method

MDN Documentation

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

impl SvgTextContentElement[src]

pub fn get_end_position_of_char(
    &self,
    charnum: u32
) -> Result<SvgPoint, JsValue>
[src]

The getEndPositionOfChar() method

MDN Documentation

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

impl SvgTextContentElement[src]

pub fn get_extent_of_char(&self, charnum: u32) -> Result<SvgRect, JsValue>[src]

The getExtentOfChar() method

MDN Documentation

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

impl SvgTextContentElement[src]

pub fn get_number_of_chars(&self) -> i32[src]

The getNumberOfChars() method

MDN Documentation

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

impl SvgTextContentElement[src]

pub fn get_rotation_of_char(&self, charnum: u32) -> Result<f32, JsValue>[src]

The getRotationOfChar() method

MDN Documentation

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

impl SvgTextContentElement[src]

pub fn get_start_position_of_char(
    &self,
    charnum: u32
) -> Result<SvgPoint, JsValue>
[src]

The getStartPositionOfChar() method

MDN Documentation

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

impl SvgTextContentElement[src]

pub fn get_sub_string_length(
    &self,
    charnum: u32,
    nchars: u32
) -> Result<f32, JsValue>
[src]

The getSubStringLength() method

MDN Documentation

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

impl SvgTextContentElement[src]

pub fn select_sub_string(
    &self,
    charnum: u32,
    nchars: u32
) -> Result<(), JsValue>
[src]

The selectSubString() method

MDN Documentation

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

impl SvgTextContentElement[src]

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

The textLength getter

MDN Documentation

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

impl SvgTextContentElement[src]

pub fn length_adjust(&self) -> SvgAnimatedEnumeration[src]

The lengthAdjust getter

MDN Documentation

This API requires the following crate features to be activated: SvgAnimatedEnumeration, SvgTextContentElement

impl SvgTextContentElement[src]

impl SvgTextContentElement[src]

impl SvgTextContentElement[src]

Methods from Deref<Target = SvgGraphicsElement>

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 transform(&self) -> SvgAnimatedTransformList[src]

The transform getter

MDN Documentation

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

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

The nearestViewportElement getter

MDN Documentation

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

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

The farthestViewportElement getter

MDN Documentation

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

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

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

The requiredFeatures getter

MDN Documentation

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

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

The requiredExtensions getter

MDN Documentation

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

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

The systemLanguage getter

MDN Documentation

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

Trait Implementations

impl AsRef<Element> for SvgTextContentElement[src]

impl AsRef<EventTarget> for SvgTextContentElement[src]

impl AsRef<JsValue> for SvgTextContentElement[src]

impl AsRef<Node> for SvgTextContentElement[src]

impl AsRef<Object> for SvgTextContentElement[src]

impl AsRef<SvgElement> for SvgTextContentElement[src]

impl AsRef<SvgGraphicsElement> for SvgTextContentElement[src]

impl AsRef<SvgTextContentElement> for SvgtSpanElement[src]

impl AsRef<SvgTextContentElement> for SvgTextContentElement[src]

impl AsRef<SvgTextContentElement> for SvgTextElement[src]

impl AsRef<SvgTextContentElement> for SvgTextPathElement[src]

impl AsRef<SvgTextContentElement> for SvgTextPositioningElement[src]

impl Clone for SvgTextContentElement[src]

impl Debug for SvgTextContentElement[src]

impl Deref for SvgTextContentElement[src]

type Target = SvgGraphicsElement

The resulting type after dereferencing.

impl Eq for SvgTextContentElement[src]

impl From<JsValue> for SvgTextContentElement[src]

impl From<SvgTextContentElement> for JsValue[src]

impl From<SvgTextContentElement> for SvgGraphicsElement[src]

impl From<SvgTextContentElement> for SvgElement[src]

impl From<SvgTextContentElement> for Element[src]

impl From<SvgTextContentElement> for Node[src]

impl From<SvgTextContentElement> for EventTarget[src]

impl From<SvgTextContentElement> for Object[src]

impl From<SvgTextElement> for SvgTextContentElement[src]

impl From<SvgTextPathElement> for SvgTextContentElement[src]

impl From<SvgTextPositioningElement> for SvgTextContentElement[src]

impl From<SvgtSpanElement> for SvgTextContentElement[src]

impl FromWasmAbi for SvgTextContentElement[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 SvgTextContentElement[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 SvgTextContentElement[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 SvgTextContentElement[src]

impl OptionFromWasmAbi for SvgTextContentElement[src]

impl OptionIntoWasmAbi for SvgTextContentElement[src]

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

impl PartialEq<SvgTextContentElement> for SvgTextContentElement[src]

impl RefFromWasmAbi for SvgTextContentElement[src]

type Abi = <JsValue as RefFromWasmAbi>::Abi

The wasm ABI type references to Self are recovered from.

type Anchor = ManuallyDrop<SvgTextContentElement>

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 SvgTextContentElement[src]

impl StructuralPartialEq for SvgTextContentElement[src]

impl WasmDescribe for SvgTextContentElement[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.