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

A SDL2 renderer. This is often used for rendering with pen::Pen.

Implementations§

Constructs a renderer from the window.

Returns the borrowing window.

Returns the geometry size of the output from the renderer.

Clips the renderer by area.

Returns the logical size of the renderer if available.

Sets the logical size of the renderer.

Returns whether integer scaled is forced.

Sets whether integer scaled is forced.

Returns the scale of th renderer.

Sets the scale of the renderer.

Returns the viewport rectangle of the renderer.

Sets the viewport rectangle of the renderer.

Sets the render target to the texture.

Resets the render target to the original window.

Trait Implementations§

Formats the value using the given formatter. Read more
Executes the destructor for this type. Read more
Pastes the texture into target_area, or whole if None.
Pastes the texture with options PasteExOption.
Returns the information of the renderer.

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.