Struct png::FrameControl
source · 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,
}
Expand description
Frame control information
Fields§
§sequence_number: u32
Sequence number of the animation chunk, starting from 0
width: u32
Width of the following frame
height: u32
Height of the following frame
x_offset: u32
X position at which to render the following frame
y_offset: u32
Y position at which to render the following frame
delay_num: u16
Frame delay fraction numerator
delay_den: u16
Frame delay fraction denominator
dispose_op: DisposeOp
Type of frame area disposal to be done after rendering this frame
blend_op: BlendOp
Type of frame area rendering for this frame
Implementations§
source§impl FrameControl
impl FrameControl
pub fn set_seq_num(&mut self, s: u32)
pub fn inc_seq_num(&mut self, i: u32)
pub fn encode<W: Write>(self, w: &mut W) -> Result<(), EncodingError>
Trait Implementations§
source§impl Clone for FrameControl
impl Clone for FrameControl
source§fn clone(&self) -> FrameControl
fn clone(&self) -> FrameControl
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 FrameControl
impl Debug for FrameControl
source§impl Default for FrameControl
impl Default for FrameControl
source§fn default() -> FrameControl
fn default() -> FrameControl
Returns the “default value” for a type. Read more
impl Copy for 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 UnwindSafe for FrameControl
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)