[][src]Struct gift::block::ImageDesc

pub struct ImageDesc { /* fields omitted */ }

The image descriptor block contains properties which apply to one frame.

Methods

impl ImageDesc[src]

pub fn with_left(self, left: u16) -> Self[src]

Set the left position

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

Get the left position

pub fn with_top(self, top: u16) -> Self[src]

Set the top position

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

Get the top position

pub fn with_width(self, width: u16) -> Self[src]

Set the width

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

Get the width

pub fn with_height(self, height: u16) -> Self[src]

Set the height

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

Get the height

pub fn with_flags(self, flags: u8) -> Self[src]

Set the flags which control the interlace value and the local color table configuration.

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

Get the flags which control the interlace value and the local color table configuration.

pub fn with_interlaced(self, interlaced: bool) -> Self[src]

Set the interlaced flag

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

Get the interlaced flag

pub fn color_table_config(&self) -> ColorTableConfig[src]

Get the local color table configuration

pub fn with_color_table_config(self, tbl: &ColorTableConfig) -> Self[src]

Set the local color table configuration

pub fn image_sz(&self) -> usize[src]

Get the image size (bytes)

Trait Implementations

impl From<ImageDesc> for Block[src]

impl PartialEq<ImageDesc> for ImageDesc[src]

impl Clone for ImageDesc[src]

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

Performs copy-assignment from source. Read more

impl Default for ImageDesc[src]

impl Debug for ImageDesc[src]

Auto Trait Implementations

impl Send for ImageDesc

impl Sync for ImageDesc

Blanket Implementations

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

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> 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]