Struct FrameControl
pub struct FrameControl { pub sequence_number: u32, pub width: u32, pub height: u32, pub x_offset: u32, pub y_offset: u32, pub delay_num: u16, pub delay_den: u16, pub dispose_op: DisposeOp, pub blend_op: BlendOp }
Frame control information
Fields
sequence_number: u32Sequence number of the animation chunk, starting from 0
width: u32Width of the following frame
height: u32Height of the following frame
x_offset: u32X position at which to render the following frame
y_offset: u32Y position at which to render the following frame
delay_num: u16Frame delay fraction numerator
delay_den: u16Frame delay fraction denominator
dispose_op: DisposeOpType of frame area disposal to be done after rendering this frame
blend_op: BlendOpType of frame area rendering for this frame
Implementations
impl FrameControl
fn set_seq_num(&mut self, s: u32)fn inc_seq_num(&mut self, i: u32)fn encode<W: Write>(self, w: &mut W) -> Result<(), EncodingError>
Trait Implementations
impl Clone for FrameControl
fn clone(&self) -> Self
impl Copy for FrameControl
impl Debug for FrameControl
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for FrameControl
fn default() -> FrameControl
Auto Trait Implementations
impl Freeze for FrameControl
impl RefUnwindSafe for FrameControl
impl Send for FrameControl
impl Sync for FrameControl
impl Unpin for FrameControl
impl UnsafeUnpin for FrameControl
impl UnwindSafe for FrameControl
Blanket Implementations
impl<T> Any for FrameControl
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for FrameControl
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for FrameControl
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for FrameControl
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for FrameControl
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for FrameControl
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for FrameControl
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for FrameControl
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for FrameControl
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>