#[repr(C)]pub struct VTTRegion {
reflector_: Reflector,
id: DomRefCell<DOMString>,
width: Cell<f64>,
lines: Cell<u32>,
region_anchor_x: Cell<f64>,
region_anchor_y: Cell<f64>,
viewport_anchor_x: Cell<f64>,
viewport_anchor_y: Cell<f64>,
scroll: Cell<ScrollSetting>,
}
Fields
reflector_: Reflector
id: DomRefCell<DOMString>
width: Cell<f64>
lines: Cell<u32>
region_anchor_x: Cell<f64>
region_anchor_y: Cell<f64>
viewport_anchor_x: Cell<f64>
viewport_anchor_y: Cell<f64>
scroll: Cell<ScrollSetting>
Implementations
sourceimpl VTTRegion
impl VTTRegion
fn __assert_parent_type(&self)
Trait Implementations
sourceimpl DomObjectWrap for VTTRegion
impl DomObjectWrap for VTTRegion
sourceconst WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Box<Self>) -> Root<Dom<Self>> = {dom::bindings::codegen::Bindings::VTTRegionBinding::VTTRegionBinding::Wrap as for<'a> unsafe fn(script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::boxed::Box<dom::vttregion::VTTRegion>) -> dom::bindings::root::Root<dom::bindings::root::Dom<dom::vttregion::VTTRegion>>}
const WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Box<Self>) -> Root<Dom<Self>> = {dom::bindings::codegen::Bindings::VTTRegionBinding::VTTRegionBinding::Wrap as for<'a> unsafe fn(script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::boxed::Box<dom::vttregion::VTTRegion>) -> dom::bindings::root::Root<dom::bindings::root::Dom<dom::vttregion::VTTRegion>>}
Function pointer to the general wrap function type
sourceimpl IDLInterface for VTTRegion
impl IDLInterface for VTTRegion
sourceimpl MallocSizeOf for VTTRegion
impl MallocSizeOf for VTTRegion
sourcefn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself. Read more
sourceimpl MutDomObject for VTTRegion
impl MutDomObject for VTTRegion
sourceunsafe fn init_reflector(&self, obj: *mut JSObject)
unsafe fn init_reflector(&self, obj: *mut JSObject)
Initializes the Reflector
sourceimpl ToJSValConvertible for VTTRegion
impl ToJSValConvertible for VTTRegion
sourceunsafe fn to_jsval(&self, cx: *mut JSContext, rval: MutableHandleValue<'_>)
unsafe fn to_jsval(&self, cx: *mut JSContext, rval: MutableHandleValue<'_>)
Convert
self
to a JSVal
. JSAPI failure causes a panic.sourceimpl VTTRegionMethods for VTTRegion
impl VTTRegionMethods for VTTRegion
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)
Auto Trait Implementations
impl !RefUnwindSafe for VTTRegion
impl !Send for VTTRegion
impl !Sync for VTTRegion
impl Unpin for VTTRegion
impl UnwindSafe for VTTRegion
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> MaybeBoxed<Box<T, Global>> for T
impl<T> MaybeBoxed<Box<T, Global>> for T
sourcefn maybe_boxed(self) -> Box<T, Global>
fn maybe_boxed(self) -> Box<T, Global>
Convert
sourceimpl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
sourcefn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert