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]

Update fog distance.

Set the background color of the window.

Adjust the location and direction of the camera.

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 None when done looping through input. After None is returned, the next call will update the screen.

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.

Get the time passed since the previous window frame.

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

Auto Trait Implementations

impl !Send for Window

impl !Sync for Window