[][src]Struct gift::block::LogicalScreenDesc

pub struct LogicalScreenDesc { /* fields omitted */ }

The logical screen descriptor contains properties which apply to all frames in the file.

Methods

impl LogicalScreenDesc[src]

pub fn with_screen_width(self, screen_width: u16) -> Self[src]

Set the screen width

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

Get the screen width

pub fn with_screen_height(self, screen_height: u16) -> Self[src]

Set the screen height

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

Get the screen height

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

Set the flags which control the global color table configuration

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

Get the flags which control the global color table configuration

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

Get the color resolution (obsolete GIF feature)

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

Get the global color table configuration

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

Set the global color table configuration

pub fn with_background_color_idx(self, background_color_idx: u8) -> Self[src]

Set the background color index

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

Get the background color index

pub fn with_pixel_aspect_ratio(self, pixel_aspect_ratio: u8) -> Self[src]

Set the pixel aspect ratio (obsolete GIF feature)

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

Get the pixel aspect ratio (obsolete GIF feature)

Trait Implementations

impl From<LogicalScreenDesc> for Block[src]

impl PartialEq<LogicalScreenDesc> for LogicalScreenDesc[src]

impl Clone for LogicalScreenDesc[src]

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

Performs copy-assignment from source. Read more

impl Default for LogicalScreenDesc[src]

impl Debug for LogicalScreenDesc[src]

Auto Trait Implementations

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]