[−][src]Struct gift::block::GraphicControl
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]
fn eq(&self, other: &GraphicControl) -> bool
[src]
fn ne(&self, other: &GraphicControl) -> bool
[src]
impl From<GraphicControl> for Block
[src]
fn from(b: GraphicControl) -> Self
[src]
impl Clone for GraphicControl
[src]
fn clone(&self) -> 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]
fn default() -> GraphicControl
[src]
impl Debug for GraphicControl
[src]
Auto Trait Implementations
impl Send for GraphicControl
impl Sync for GraphicControl
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,