Trait script::dom::bindings::codegen::Bindings::VTTRegionBinding::VTTRegion_Binding::VTTRegionMethods
source · 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§
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>
Object Safety§
This trait is not object safe.