Struct druid::piet::image_crate::Frame
pub struct Frame { /* private fields */ }
Expand description
A single animation frame
Implementations§
§impl Frame
impl Frame
pub fn new(buffer: ImageBuffer<Rgba<u8>, Vec<u8, Global>>) -> Frame
pub fn new(buffer: ImageBuffer<Rgba<u8>, Vec<u8, Global>>) -> Frame
Constructs a new frame without any delay.
pub fn from_parts(
buffer: ImageBuffer<Rgba<u8>, Vec<u8, Global>>,
left: u32,
top: u32,
delay: Delay
) -> Frame
pub fn from_parts( buffer: ImageBuffer<Rgba<u8>, Vec<u8, Global>>, left: u32, top: u32, delay: Delay ) -> Frame
Constructs a new frame
pub fn buffer_mut(&mut self) -> &mut ImageBuffer<Rgba<u8>, Vec<u8, Global>>
pub fn buffer_mut(&mut self) -> &mut ImageBuffer<Rgba<u8>, Vec<u8, Global>>
Returns a mutable image buffer
pub fn into_buffer(self) -> ImageBuffer<Rgba<u8>, Vec<u8, Global>>
pub fn into_buffer(self) -> ImageBuffer<Rgba<u8>, Vec<u8, Global>>
Returns the image buffer
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnwindSafe for Frame
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
§impl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
§fn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere U: RoundFrom<T>,
§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.