Struct adi_screen::Window [] [src]

pub struct Window { /* fields omitted */ }

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

Methods

impl Window
[src]

[src]

Update fog distance.

[src]

Set the background color of the window.

[src]

Adjust the location and direction of the camera.

[src]

Get the minimal x and y dimension for a widget.

[src]

Update the window and return the user input. This should run in a loop. Returns None when done looping through input. After None is returned, the next call will update the screen.

[src]

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

[src]

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.

[src]

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.

[src]

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.

[src]

Get the time passed since the previous window frame.

[src]

Return the current number of FPS the window is running at.

Trait Implementations

impl Drop for Window
[src]

[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl !Send for Window

impl !Sync for Window