Struct read_fonts::tables::colr::VarColorStop
source · #[repr(C)]#[repr(packed)]pub struct VarColorStop {
pub stop_offset: BigEndian<F2Dot14>,
pub palette_index: BigEndian<u16>,
pub alpha: BigEndian<F2Dot14>,
pub var_index_base: BigEndian<u32>,
}Expand description
VarColorStop record
Fields§
§stop_offset: BigEndian<F2Dot14>Position on a color line. For variation, use varIndexBase + 0.
palette_index: BigEndian<u16>Index for a CPAL palette entry.
alpha: BigEndian<F2Dot14>Alpha value. For variation, use varIndexBase + 1.
var_index_base: BigEndian<u32>Base index into DeltaSetIndexMap.
Implementations§
source§impl VarColorStop
impl VarColorStop
sourcepub fn stop_offset(&self) -> F2Dot14
pub fn stop_offset(&self) -> F2Dot14
Position on a color line. For variation, use varIndexBase + 0.
sourcepub fn palette_index(&self) -> u16
pub fn palette_index(&self) -> u16
Index for a CPAL palette entry.
sourcepub fn var_index_base(&self) -> u32
pub fn var_index_base(&self) -> u32
Base index into DeltaSetIndexMap.
Trait Implementations§
source§impl Clone for VarColorStop
impl Clone for VarColorStop
source§fn clone(&self) -> VarColorStop
fn clone(&self) -> VarColorStop
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for VarColorStop
impl Debug for VarColorStop
source§impl FixedSize for VarColorStop
impl FixedSize for VarColorStop
source§const RAW_BYTE_LEN: usize = 10usize
const RAW_BYTE_LEN: usize = 10usize
The raw size of this type, in bytes. Read more
source§impl<'a> SomeRecord<'a> for VarColorStop
impl<'a> SomeRecord<'a> for VarColorStop
fn traverse(self, data: FontData<'a>) -> RecordResolver<'a>
Auto Trait Implementations§
impl RefUnwindSafe for VarColorStop
impl Send for VarColorStop
impl Sync for VarColorStop
impl Unpin for VarColorStop
impl UnwindSafe for VarColorStop
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more