Struct adi_screen::Window [] [src]

pub struct Window {
    pub vw: Vw,
    pub window: NativeWindow,
    pub sprites: Vec<Shape>,
    pub input: Vec<Input>,
    pub joystick: Joystick,
    // some fields omitted
}

Window represents a connection to a display that can also recieve input.

Fields

Methods

impl Window
[src]

Create a window for drawing to. name is the name of the window. icon is the window's icon in ppm format. shaders is a list of custom shaders.

Set the background color of the window.

Get the minimal x and y dimension for a widget.

Update the window and return the user input. This should run in a loop.

Returns a number between 0-1. This function is used for animations. It will take rate_spr seconds to go from 0 to 1.

Returns a number between 0-1. This function is used for animations. It will take rate_spr seconds to go from 0 to 1 and back to 0.

Returns a number between 0-1. This function is used for animations. It will take rate_spr seconds to go from 0 to 1. It uses cosine underneath to make the animation look smooth, by making the beginning and end of the animation slower than the middle.

Returns a number between 0-1. This function is used for animations. It will take rate_spr seconds to go from 0 to 1 and back to 0. It uses cosine underneath to make the animation look smooth, by making the beginning and end of the animation slower than the middle.

Trait Implementations

impl Drop for Window
[src]

A method called when the value goes out of scope. Read more