Trait FontFaceMethods

Source
pub(crate) trait FontFaceMethods<D>
where D: DomTypes,
{
Show 26 methods // Required methods fn Family(&self) -> DOMString; fn SetFamily(&self, value: DOMString) -> Result<(), Error>; fn Style(&self) -> DOMString; fn SetStyle(&self, value: DOMString) -> Result<(), Error>; fn Weight(&self) -> DOMString; fn SetWeight(&self, value: DOMString) -> Result<(), Error>; fn Stretch(&self) -> DOMString; fn SetStretch(&self, value: DOMString) -> Result<(), Error>; fn UnicodeRange(&self) -> DOMString; fn SetUnicodeRange(&self, value: DOMString) -> Result<(), Error>; fn FeatureSettings(&self) -> DOMString; fn SetFeatureSettings(&self, value: DOMString) -> Result<(), Error>; fn VariationSettings(&self) -> DOMString; fn SetVariationSettings(&self, value: DOMString) -> Result<(), Error>; fn Display(&self) -> DOMString; fn SetDisplay(&self, value: DOMString) -> Result<(), Error>; fn AscentOverride(&self) -> DOMString; fn SetAscentOverride(&self, value: DOMString) -> Result<(), Error>; fn DescentOverride(&self) -> DOMString; fn SetDescentOverride(&self, value: DOMString) -> Result<(), Error>; fn LineGapOverride(&self) -> DOMString; fn SetLineGapOverride(&self, value: DOMString) -> Result<(), Error>; fn Status(&self) -> FontFaceLoadStatus; fn Load(&self) -> Rc<<D as DomTypes>::Promise>; fn Loaded(&self) -> Rc<<D as DomTypes>::Promise>; fn Constructor( global: &<D as DomTypes>::Window, proto: Option<Handle<'_, *mut JSObject>>, can_gc: CanGc, family: DOMString, source: StringOrArrayBufferViewOrArrayBuffer, descriptors: &FontFaceDescriptors, ) -> Root<Dom<<D as DomTypes>::FontFace>>;
}

Required Methods§

Source

fn Family(&self) -> DOMString

Source

fn SetFamily(&self, value: DOMString) -> Result<(), Error>

Source

fn Style(&self) -> DOMString

Source

fn SetStyle(&self, value: DOMString) -> Result<(), Error>

Source

fn Weight(&self) -> DOMString

Source

fn SetWeight(&self, value: DOMString) -> Result<(), Error>

Source

fn Stretch(&self) -> DOMString

Source

fn SetStretch(&self, value: DOMString) -> Result<(), Error>

Source

fn UnicodeRange(&self) -> DOMString

Source

fn SetUnicodeRange(&self, value: DOMString) -> Result<(), Error>

Source

fn FeatureSettings(&self) -> DOMString

Source

fn SetFeatureSettings(&self, value: DOMString) -> Result<(), Error>

Source

fn VariationSettings(&self) -> DOMString

Source

fn SetVariationSettings(&self, value: DOMString) -> Result<(), Error>

Source

fn Display(&self) -> DOMString

Source

fn SetDisplay(&self, value: DOMString) -> Result<(), Error>

Source

fn AscentOverride(&self) -> DOMString

Source

fn SetAscentOverride(&self, value: DOMString) -> Result<(), Error>

Source

fn DescentOverride(&self) -> DOMString

Source

fn SetDescentOverride(&self, value: DOMString) -> Result<(), Error>

Source

fn LineGapOverride(&self) -> DOMString

Source

fn SetLineGapOverride(&self, value: DOMString) -> Result<(), Error>

Source

fn Status(&self) -> FontFaceLoadStatus

Source

fn Load(&self) -> Rc<<D as DomTypes>::Promise>

Source

fn Loaded(&self) -> Rc<<D as DomTypes>::Promise>

Source

fn Constructor( global: &<D as DomTypes>::Window, proto: Option<Handle<'_, *mut JSObject>>, can_gc: CanGc, family: DOMString, source: StringOrArrayBufferViewOrArrayBuffer, descriptors: &FontFaceDescriptors, ) -> Root<Dom<<D as DomTypes>::FontFace>>

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.

Implementors§