pub struct WindowSurface<'window> { /* private fields */ }
Expand description

A Surface made from the Window.

Implementations§

Applies the surface into the original window.

Errors

Returns Err if failed to copy the window surface to the screen.

Applies the surface into the original window area only where rects.

Errors

Returns Err if failed to copy areas of the window surface to the screen.

Trait Implementations§

Formats the value using the given formatter. Read more
Returns the raw non-null pointer.
Clones the surface.
Clips the surface by area.
Changes blend mode of the surface.
Modifies the alpha of the surface.
Modifies the color of the surface.
Fills in the area with the color, or whole if area is None.
Fills in the areas with the color.
Overwrites the palette of the surface.
Copies src_area area in the surface into dst_pos on another surface.
Run-length encodes the surface.

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.