Type Alias read_fonts::tables::colr::PaintComposite

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

Aliased Type§

struct PaintComposite<'a> { /* private fields */ }

Implementations§

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 instace 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.