Struct gpg_tui::app::splash::SplashScreen[][src]

pub struct SplashScreen {
    pub image: DynamicImage,
    pub step: i32,
    // some fields omitted
}
Expand description

Splash screen data.

Fields

image: DynamicImage

Image that will be used for constructing the color data.

step: i32

Rendering step of the splash screen.

Implementations

Constructs a new instance of SplashScreen.

Returns the color data based on the rendering step.

At the 12th render step, the image is at the darkest and has the max blurriness. Between the render steps 6-12, the image is getting brighter and less blurry. From rendering step 0 to 6, the image is returned without any additional effects. Image is returned as grayscale if colored argument is false.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

The error type produced by a failed conversion.

Convert the given value into an approximately equivalent representation.

The error type produced by a failed conversion.

Convert the subject into an approximately equivalent representation.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Approximate the subject with the default scheme.

Approximate the subject with a specific scheme.

Approximate the subject to a given type with the default scheme.

Approximate the subject to a given type with a specific scheme.

Convert the subject to a given type.

Attempt to convert the subject to a given type.

Attempt a value conversion of the subject to a given type.

Performs the conversion.

Performs the conversion.

The error type produced by a failed conversion.

Convert the given value into the subject type.

The type returned in the event of a conversion error.

Performs the conversion.

The error type produced by a failed conversion.

Convert the subject into the destination type.

The type returned in the event of a conversion error.

Performs the conversion.

The error type produced by a failed conversion.

Convert the given value into an exactly equivalent representation.

The error type produced by a failed conversion.

Convert the subject into an exactly equivalent representation.