[][src]Struct gift::block::GraphicControl

pub struct GraphicControl { /* fields omitted */ }

The graphic control extension block contains animation parameters for one frame.

Methods

impl GraphicControl[src]

pub fn set_flags(&mut self, flags: u8)[src]

Set the graphic control flags

pub fn flags(&self) -> u8[src]

Get the graphic control flags

pub fn disposal_method(&self) -> DisposalMethod[src]

Get the frame disposal method

pub fn set_disposal_method(&mut self, disposal_method: DisposalMethod)[src]

Set the frame disposal method

pub fn user_input(&self) -> bool[src]

Get the user input flag

pub fn set_user_input(&mut self, user_input: bool)[src]

Set the user input flag

pub fn delay_time_cs(&self) -> u16[src]

Get the frame delay time (centiseconds)

pub fn set_delay_time_cs(&mut self, delay_time_cs: u16)[src]

Set the frame delay time (centiseconds)

pub fn transparent_color(&self) -> Option<u8>[src]

Get the transparent color, if any

pub fn transparent_color_idx(&self) -> u8[src]

Get the transparent color index

pub fn set_transparent_color_idx(&mut self, transparent_color_idx: u8)[src]

Set the transparent color index

pub fn set_transparent_color(&mut self, transparent_color: Option<u8>)[src]

Set the transparent color

Trait Implementations

impl PartialEq<GraphicControl> for GraphicControl[src]

impl From<GraphicControl> for Block[src]

impl Clone for GraphicControl[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Default for GraphicControl[src]

impl Debug for GraphicControl[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]