Struct rog_anime::AnimeDiagonal[][src]

pub struct AnimeDiagonal(_, _);

Mostly intended to be used with ASUS gifs, but can be used for other purposes (like images)

Implementations

impl AnimeDiagonal[src]

pub fn new(duration: Option<Duration>) -> Self[src]

pub fn get_mut(&mut self) -> &mut [[u8; 74]; 36][src]

pub fn from_png(
    path: &Path,
    duration: Option<Duration>,
    bright: f32
) -> Result<Self, AnimeError>
[src]

Generate the base image from inputs. The result can be displayed as is or updated via scale, position, or angle then displayed again after update().

Trait Implementations

impl Clone for AnimeDiagonal[src]

impl Debug for AnimeDiagonal[src]

impl Default for AnimeDiagonal[src]

impl From<&'_ AnimeDiagonal> for AnimeDataBuffer[src]

fn from(anime: &AnimeDiagonal) -> Self[src]

Do conversion from the nested Vec in AnimeMatrix to the two required packets suitable for sending over USB

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.