pub trait VTTRegionMethods<D: DomTypes> {
Show 17 methods // Required methods fn Id(&self) -> DOMString; fn SetId(&self, value: DOMString); fn Width(&self) -> Finite<f64>; fn SetWidth(&self, value: Finite<f64>) -> Result<(), Error>; fn Lines(&self) -> u32; fn SetLines(&self, value: u32) -> Result<(), Error>; fn RegionAnchorX(&self) -> Finite<f64>; fn SetRegionAnchorX(&self, value: Finite<f64>) -> Result<(), Error>; fn RegionAnchorY(&self) -> Finite<f64>; fn SetRegionAnchorY(&self, value: Finite<f64>) -> Result<(), Error>; fn ViewportAnchorX(&self) -> Finite<f64>; fn SetViewportAnchorX(&self, value: Finite<f64>) -> Result<(), Error>; fn ViewportAnchorY(&self) -> Finite<f64>; fn SetViewportAnchorY(&self, value: Finite<f64>) -> Result<(), Error>; fn Scroll(&self) -> ScrollSetting; fn SetScroll(&self, value: ScrollSetting); fn Constructor( global: &Window, proto: Option<HandleObject<'_>>, can_gc: CanGc, ) -> Result<Root<Dom<VTTRegion>>, Error>;
}

Required Methods§

source

fn Id(&self) -> DOMString

source

fn SetId(&self, value: DOMString)

source

fn Width(&self) -> Finite<f64>

source

fn SetWidth(&self, value: Finite<f64>) -> Result<(), Error>

source

fn Lines(&self) -> u32

source

fn SetLines(&self, value: u32) -> Result<(), Error>

source

fn RegionAnchorX(&self) -> Finite<f64>

source

fn SetRegionAnchorX(&self, value: Finite<f64>) -> Result<(), Error>

source

fn RegionAnchorY(&self) -> Finite<f64>

source

fn SetRegionAnchorY(&self, value: Finite<f64>) -> Result<(), Error>

source

fn ViewportAnchorX(&self) -> Finite<f64>

source

fn SetViewportAnchorX(&self, value: Finite<f64>) -> Result<(), Error>

source

fn ViewportAnchorY(&self) -> Finite<f64>

source

fn SetViewportAnchorY(&self, value: Finite<f64>) -> Result<(), Error>

source

fn Scroll(&self) -> ScrollSetting

source

fn SetScroll(&self, value: ScrollSetting)

source

fn Constructor( global: &Window, proto: Option<HandleObject<'_>>, can_gc: CanGc, ) -> Result<Root<Dom<VTTRegion>>, Error>

Object Safety§

This trait is not object safe.

Implementors§