pub struct KittyImageFrame {
pub x: Option<u32>,
pub y: Option<u32>,
pub base_frame: Option<u32>,
pub frame_number: Option<u32>,
pub duration_ms: Option<u32>,
pub composition_mode: KittyFrameCompositionMode,
pub background_pixel: Option<u32>,
}
Fields
x: Option<u32>
Left edge in pixels to update
y: Option<u32>
Top edge in pixels to update
base_frame: Option<u32>
1-based number of the frame which should be the base data for the new frame being created. If omitted, use background_pixel to specify color. c=…
frame_number: Option<u32>
1-based number of the frame which should be edited. If omitted, a new frame is created. r=…
duration_ms: Option<u32>
Gap in milliseconds of this frame from the next one. Zero or omitted values are interpreted as 40ms. z=…
composition_mode: KittyFrameCompositionMode
Composition mode. Default is AlphaBlending X=…
background_pixel: Option<u32>
Background color for pixels not specified in the frame data. If omitted, use a black, fully-transparent pixel (0) Y=…
Trait Implementations
sourceimpl Clone for KittyImageFrame
impl Clone for KittyImageFrame
sourcefn clone(&self) -> KittyImageFrame
fn clone(&self) -> KittyImageFrame
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for KittyImageFrame
impl Debug for KittyImageFrame
sourceimpl PartialEq<KittyImageFrame> for KittyImageFrame
impl PartialEq<KittyImageFrame> for KittyImageFrame
sourcefn eq(&self, other: &KittyImageFrame) -> bool
fn eq(&self, other: &KittyImageFrame) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &KittyImageFrame) -> bool
fn ne(&self, other: &KittyImageFrame) -> bool
This method tests for !=
.
impl Eq for KittyImageFrame
impl StructuralEq for KittyImageFrame
impl StructuralPartialEq for KittyImageFrame
Auto Trait Implementations
impl RefUnwindSafe for KittyImageFrame
impl Send for KittyImageFrame
impl Sync for KittyImageFrame
impl Unpin for KittyImageFrame
impl UnwindSafe for KittyImageFrame
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more