pub struct BannerKeyframe {
pub flip_vertically: bool,
pub flip_horizontally: bool,
pub palette: usize,
pub bitmap: usize,
pub frame_duration: usize,
}Expand description
Keyframe for animated icon.
Fields§
§flip_vertically: boolFlips the bitmap vertically.
flip_horizontally: boolFlips the bitmap horizontally.
palette: usizePalette index.
bitmap: usizeBitmap index.
frame_duration: usizeDuration in frames.
Implementations§
Source§impl BannerKeyframe
impl BannerKeyframe
Sourcepub fn build(&self) -> BannerKeyframe
pub fn build(&self) -> BannerKeyframe
Builds a raw keyframe.
§Panics
Panics if the frame duration, bitmap index or palette do not fit in the raw keyframe.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BannerKeyframe
impl<'de> Deserialize<'de> for BannerKeyframe
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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
Mutably borrows from an owned value. Read more