[][src]Struct quicksilver::lifecycle::Window

pub struct Window { /* fields omitted */ }

The window currently in use

Methods

impl Window
[src]

Transition temporary input states (Pressed, Released) into sustained ones (Held, NotPressed)

Get the view from the window

Set the view the window uses

Get the resize strategy used by the window

Switch the strategy the window uses to display content when the available area changes

Get the screen size

Get the unprojection matrix according to the View

Get the projection matrix according to the View

Get a reference to the keyboard

Get an instance of a mouse, projected into the current View

Clear the screen to a given color

The blend mode is also automatically reset, and any un-flushed draw calls are dropped.

Clear the screen to a given color, with a given letterbox color

The blend mode is also automatically reset, and any un-flushed draw calls are dropped.

Flush the current buffered draw calls

Attributes like z-ordering will be reset: all items drawn after a flush will always draw over all items drawn before a flush.

Note that calling this can be an expensive operation

Set the blend mode for the window

This will flush all of the drawn items to the screen and switch to the new blend mode.

Reset the blend mode for the window to the default alpha blending

This will flush all of the drawn items to the screen

Get a reference to the connected gamepads

Draw a Drawable to the window, which will be finalized on the next flush

Draw a Drawable to the window with more options provided (draw exhaustive)

The mesh the window uses to draw

The ideal delay between two calls to update in milliseconds

Set the desired time between two calls to update in milliseconds

The ideal delay between two calls to draw in milliseconds

Set the desired time between two calls to draw in milliseconds

Get the delay between the last two draw frames

Get the average framerate over the history of the app

Get the maximum number of updates that are allowed to run in a frame

0 means no limitation

Set the maximum number of updates that are allowed to run in a frame

0 means no limitation

Deprecated since 0.3.5

: please use set_cursor instead

Set if the cursor should be visible when over the application

Set current cursor

Set the title of the window (or tab on mobile)

Get if the application is currently fullscreen

Set if the application is currently fullscreen

Resize the window to the given size

Close the application without triggering the onclose handler

On desktop, this closes the window, and on the web it removes the canvas from the page

Create a screenshot as an image

If a surface is active, an image of that surface is generated. If no surface is activated, an image of what has been drawn to the window is generated. Taking a screenshot in the midst of a draw call may have unexpected results.

Auto Trait Implementations

impl !Send for Window

impl !Sync for Window

Blanket Implementations

impl<T> From for T
[src]

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> SetParameter for T

Sets value as a parameter of self.

impl<T> Erased for T

impl<T> Same for T

Should always be Self

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 
[src]