[−][src]Struct gift::block::ImageDesc
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 Default for ImageDesc
[src]
impl Clone for ImageDesc
[src]
fn clone(&self) -> ImageDesc
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq<ImageDesc> for ImageDesc
[src]
impl From<ImageDesc> for Block
[src]
impl Debug for ImageDesc
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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> 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> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,