pub trait VTTCueMethods<D>where
    D: DomTypes,{
Show 22 methods
    // Required methods
    fn GetRegion(&self) -> Option<Root<Dom<<D as DomTypes>::VTTRegion>>>;
    fn SetRegion(&self, value: Option<&<D as DomTypes>::VTTRegion>);
    fn Vertical(&self) -> DirectionSetting;
    fn SetVertical(&self, value: DirectionSetting);
    fn SnapToLines(&self) -> bool;
    fn SetSnapToLines(&self, value: bool);
    fn Line(&self) -> DoubleOrAutoKeyword;
    fn SetLine(&self, value: DoubleOrAutoKeyword);
    fn LineAlign(&self) -> LineAlignSetting;
    fn SetLineAlign(&self, value: LineAlignSetting);
    fn Position(&self) -> DoubleOrAutoKeyword;
    fn SetPosition(&self, value: DoubleOrAutoKeyword) -> Result<(), Error>;
    fn PositionAlign(&self) -> PositionAlignSetting;
    fn SetPositionAlign(&self, value: PositionAlignSetting);
    fn Size(&self) -> Finite<f64>;
    fn SetSize(&self, value: Finite<f64>) -> Result<(), Error>;
    fn Align(&self) -> AlignSetting;
    fn SetAlign(&self, value: AlignSetting);
    fn Text(&self) -> DOMString;
    fn SetText(&self, value: DOMString);
    fn GetCueAsHTML(&self) -> Root<Dom<<D as DomTypes>::DocumentFragment>>;
    fn Constructor(
        global: &<D as DomTypes>::Window,
        proto: Option<Handle<'_, *mut JSObject>>,
        can_gc: CanGc,
        startTime: Finite<f64>,
        endTime: Finite<f64>,
        text: DOMString,
    ) -> Root<Dom<<D as DomTypes>::VTTCue>>;
}Required Methods§
fn GetRegion(&self) -> Option<Root<Dom<<D as DomTypes>::VTTRegion>>>
fn SetRegion(&self, value: Option<&<D as DomTypes>::VTTRegion>)
fn Vertical(&self) -> DirectionSetting
fn SetVertical(&self, value: DirectionSetting)
fn SnapToLines(&self) -> bool
fn SetSnapToLines(&self, value: bool)
fn Line(&self) -> DoubleOrAutoKeyword
fn SetLine(&self, value: DoubleOrAutoKeyword)
fn LineAlign(&self) -> LineAlignSetting
fn SetLineAlign(&self, value: LineAlignSetting)
fn Position(&self) -> DoubleOrAutoKeyword
fn SetPosition(&self, value: DoubleOrAutoKeyword) -> Result<(), Error>
fn PositionAlign(&self) -> PositionAlignSetting
fn SetPositionAlign(&self, value: PositionAlignSetting)
fn Size(&self) -> Finite<f64>
fn SetSize(&self, value: Finite<f64>) -> Result<(), Error>
fn Align(&self) -> AlignSetting
fn SetAlign(&self, value: AlignSetting)
fn Text(&self) -> DOMString
fn SetText(&self, value: DOMString)
fn GetCueAsHTML(&self) -> Root<Dom<<D as DomTypes>::DocumentFragment>>
fn Constructor( global: &<D as DomTypes>::Window, proto: Option<Handle<'_, *mut JSObject>>, can_gc: CanGc, startTime: Finite<f64>, endTime: Finite<f64>, text: DOMString, ) -> Root<Dom<<D as DomTypes>::VTTCue>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.