pub struct BannerKeyframe(/* private fields */);Expand description
A keyframe for BannerAnimation.
Implementations§
source§impl BannerKeyframe
impl BannerKeyframe
sourcepub const fn frame_duration(&self) -> u8
pub const fn frame_duration(&self) -> u8
How long to show this keyframe for, in frames.
Bits: 0..8
sourcepub const fn with_frame_duration(self, value: u8) -> Self
pub const fn with_frame_duration(self, value: u8) -> Self
How long to show this keyframe for, in frames.
Bits: 0..8
sourcepub fn set_frame_duration(&mut self, value: u8)
pub fn set_frame_duration(&mut self, value: u8)
How long to show this keyframe for, in frames.
Bits: 0..8
sourcepub const fn bitmap_index(&self) -> u8
pub const fn bitmap_index(&self) -> u8
Which of the 8 bitmaps to show.
Bits: 8..11
sourcepub const fn with_bitmap_index(self, value: u8) -> Self
pub const fn with_bitmap_index(self, value: u8) -> Self
Which of the 8 bitmaps to show.
Bits: 8..11
sourcepub fn set_bitmap_index(&mut self, value: u8)
pub fn set_bitmap_index(&mut self, value: u8)
Which of the 8 bitmaps to show.
Bits: 8..11
sourcepub const fn palette_index(&self) -> u8
pub const fn palette_index(&self) -> u8
Which of the 8 palettes to use.
Bits: 11..14
sourcepub const fn with_palette_index(self, value: u8) -> Self
pub const fn with_palette_index(self, value: u8) -> Self
Which of the 8 palettes to use.
Bits: 11..14
sourcepub fn set_palette_index(&mut self, value: u8)
pub fn set_palette_index(&mut self, value: u8)
Which of the 8 palettes to use.
Bits: 11..14
sourcepub const fn flip_horizontally(&self) -> bool
pub const fn flip_horizontally(&self) -> bool
Flips the bitmap horizontally.
Bits: 14..15
sourcepub const fn with_flip_horizontally(self, value: bool) -> Self
pub const fn with_flip_horizontally(self, value: bool) -> Self
Flips the bitmap horizontally.
Bits: 14..15
sourcepub fn set_flip_horizontally(&mut self, value: bool)
pub fn set_flip_horizontally(&mut self, value: bool)
Flips the bitmap horizontally.
Bits: 14..15
sourcepub const fn flip_vertically(&self) -> bool
pub const fn flip_vertically(&self) -> bool
Flips the bitmap vertically.
Bits: 15..16
sourcepub const fn with_flip_vertically(self, value: bool) -> Self
pub const fn with_flip_vertically(self, value: bool) -> Self
Flips the bitmap vertically.
Bits: 15..16
sourcepub fn set_flip_vertically(&mut self, value: bool)
pub fn set_flip_vertically(&mut self, value: bool)
Flips the bitmap vertically.
Bits: 15..16
Trait Implementations§
source§impl Clone for BannerKeyframe
impl Clone for BannerKeyframe
source§fn clone(&self) -> BannerKeyframe
fn clone(&self) -> BannerKeyframe
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for BannerKeyframe
impl Debug for BannerKeyframe
source§impl Default for BannerKeyframe
impl Default for BannerKeyframe
source§impl From<BannerKeyframe> for u16
impl From<BannerKeyframe> for u16
source§fn from(v: BannerKeyframe) -> u16
fn from(v: BannerKeyframe) -> u16
Converts to this type from the input type.
source§impl From<u16> for BannerKeyframe
impl From<u16> for BannerKeyframe
impl Copy for BannerKeyframe
impl Pod for BannerKeyframe
Auto Trait Implementations§
impl Freeze for BannerKeyframe
impl RefUnwindSafe for BannerKeyframe
impl Send for BannerKeyframe
impl Sync for BannerKeyframe
impl Unpin for BannerKeyframe
impl UnwindSafe for BannerKeyframe
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)