pub struct Window { /* private fields */ }
Expand description

A window

Implementations

Create a new window

Create a new window with flags

Pops the content of the last drop event from the window.

Get x

Get y

Get title

Set cursor visibility

Set mouse grabbing

Set mouse relative mode

Set position

Set size

Set title

Blocking iterator over events

Returns the id

Trait Implementations

Executes the destructor for this type. Read more

Get width

Get height

Access pixel buffer

Access pixel buffer mutably

Flip the window buffer

Set/get mode

Draw a pixel
Draw a piece of an arc. Negative radius will fill in the inside
Draw a circle. Negative radius will fill in the inside
Draw a line
Draw a path (GraphicsPath)
Draw a character, using the loaded font
Set entire window to a color
Sets the whole window to black
Display an image
Display an image overwriting a portion of window starting at given line : very quick!!
Display an image using non transparent method
Draw a linear gradient in a rectangular region
Draw a rect with rounded corners
Draws antialiased line
Draws antialiased circle
Gets pixel color at x,y position

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.