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_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_frame_duration_checked(self, value: u8) -> Result<Self, ()>
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 const fn set_frame_duration(&mut self, value: u8)
pub const fn set_frame_duration(&mut self, value: u8)
How long to show this keyframe for, in frames.
Bits: 0..8
Sourcepub const fn set_frame_duration_checked(&mut self, value: u8) -> Result<(), ()>
pub const fn set_frame_duration_checked(&mut self, value: u8) -> Result<(), ()>
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_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_bitmap_index_checked(self, value: u8) -> Result<Self, ()>
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 const fn set_bitmap_index(&mut self, value: u8)
pub const fn set_bitmap_index(&mut self, value: u8)
Which of the 8 bitmaps to show.
Bits: 8..11
Sourcepub const fn set_bitmap_index_checked(&mut self, value: u8) -> Result<(), ()>
pub const fn set_bitmap_index_checked(&mut self, value: u8) -> Result<(), ()>
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_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_palette_index_checked(self, value: u8) -> Result<Self, ()>
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 const fn set_palette_index(&mut self, value: u8)
pub const fn set_palette_index(&mut self, value: u8)
Which of the 8 palettes to use.
Bits: 11..14
Sourcepub const fn set_palette_index_checked(&mut self, value: u8) -> Result<(), ()>
pub const fn set_palette_index_checked(&mut self, value: u8) -> Result<(), ()>
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_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_flip_horizontally_checked( self, value: bool, ) -> Result<Self, ()>
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 const fn set_flip_horizontally(&mut self, value: bool)
pub const fn set_flip_horizontally(&mut self, value: bool)
Flips the bitmap horizontally.
Bits: 14..15
Sourcepub const fn set_flip_horizontally_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_flip_horizontally_checked( &mut self, value: bool, ) -> Result<(), ()>
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_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_flip_vertically_checked(self, value: bool) -> Result<Self, ()>
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 const fn set_flip_vertically(&mut self, value: bool)
pub const 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
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
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 UnsafeUnpin 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
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
bits
as &Self.