Struct rich_sdl2_rust::renderer::PasteExOption
source · pub struct PasteExOption {
pub target_area: Option<Rect>,
pub rotation_degrees: f64,
pub center: Option<Point>,
pub flip: PasteExFlip,
}
Expand description
An option for PasteExt::paste_ex
.
Fields§
§target_area: Option<Rect>
The target area of pasting, or whole if None
.
rotation_degrees: f64
The degrees of rotating another texture.
center: Option<Point>
The center point of pasting.
flip: PasteExFlip
The flip mode of pasting.
Trait Implementations§
source§impl Clone for PasteExOption
impl Clone for PasteExOption
source§fn clone(&self) -> PasteExOption
fn clone(&self) -> PasteExOption
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PasteExOption
impl Debug for PasteExOption
source§impl Default for PasteExOption
impl Default for PasteExOption
source§fn default() -> PasteExOption
fn default() -> PasteExOption
Returns the “default value” for a type. Read more
source§impl PartialEq<PasteExOption> for PasteExOption
impl PartialEq<PasteExOption> for PasteExOption
source§fn eq(&self, other: &PasteExOption) -> bool
fn eq(&self, other: &PasteExOption) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.