Type Alias PaintComposite

Source
pub type PaintComposite<'a> = TableRef<'a, PaintCompositeMarker>;
Expand description

Aliased Type§

pub struct PaintComposite<'a> {
    pub(crate) shape: PaintCompositeMarker,
    pub(crate) data: FontData<'a>,
}

Fields§

§shape: PaintCompositeMarker§data: FontData<'a>

Implementations§

Source§

impl PaintComposite<'_>

Source

fn v1_closure(&self, c: &mut Colrv1ClosureContext<'_>)

Source§

impl<'a> PaintComposite<'a>

Source

pub fn format(&self) -> u8

Set to 32.

Source

pub fn source_paint_offset(&self) -> Offset24

Offset to a source Paint table.

Source

pub fn source_paint(&self) -> Result<Paint<'a>, ReadError>

Attempt to resolve source_paint_offset.

Source

pub fn composite_mode(&self) -> CompositeMode

A CompositeMode enumeration value.

Source

pub fn backdrop_paint_offset(&self) -> Offset24

Offset to a backdrop Paint table.

Source

pub fn backdrop_paint(&self) -> Result<Paint<'a>, ReadError>

Attempt to resolve backdrop_paint_offset.

Trait Implementations§

Source§

impl<'a> Debug for PaintComposite<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> FontRead<'a> for PaintComposite<'a>

Source§

fn read(data: FontData<'a>) -> Result<Self, ReadError>

Read an instance of Self from the provided data, performing validation. Read more
Source§

impl<'a> SomeTable<'a> for PaintComposite<'a>

Source§

fn type_name(&self) -> &str

The name of this table
Source§

fn get_field(&self, idx: usize) -> Option<Field<'a>>

Access this table’s fields, in declaration order.