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 for PasteExOption
impl PartialEq 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 ==
.impl Copy for PasteExOption
impl StructuralPartialEq for PasteExOption
Auto Trait Implementations§
impl RefUnwindSafe for PasteExOption
impl Send for PasteExOption
impl Sync for PasteExOption
impl Unpin for PasteExOption
impl UnwindSafe for PasteExOption
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more