Type Alias PaintSolid

Source
pub type PaintSolid<'a> = TableRef<'a, PaintSolidMarker>;
Expand description

PaintSolid table

Aliased Type§

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

Fields§

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

Implementations§

Source§

impl PaintSolid<'_>

Source

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

Source§

impl<'a> PaintSolid<'a>

Source

pub fn format(&self) -> u8

Set to 2.

Source

pub fn palette_index(&self) -> u16

Index for a CPAL palette entry.

Source

pub fn alpha(&self) -> F2Dot14

Alpha value.

Trait Implementations§

Source§

impl<'a> Debug for PaintSolid<'a>

Source§

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

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

impl<'a> FontRead<'a> for PaintSolid<'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 PaintSolid<'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.