Trait rich_sdl2_rust::renderer::PasteExt
source · pub trait PasteExt {
fn paste(&self, texture: &Texture<'_>, target_area: Option<Rect>);
fn paste_ex(&self, texture: &Texture<'_>, options: PasteExOption);
}
Expand description
An extension for Renderer
to paste from another texture.
Required Methods§
sourcefn paste(&self, texture: &Texture<'_>, target_area: Option<Rect>)
fn paste(&self, texture: &Texture<'_>, target_area: Option<Rect>)
Pastes the texture into target_area
, or whole if None
.
sourcefn paste_ex(&self, texture: &Texture<'_>, options: PasteExOption)
fn paste_ex(&self, texture: &Texture<'_>, options: PasteExOption)
Pastes the texture with options PasteExOption
.