pub struct DrawTextureParams {
pub source: Option<Rectangle>,
pub scale: Vector2,
pub origin: Vector2,
pub rotation: f32,
pub tint: Color,
}
Expand description
A struct containing the info for drawing textures.
Fields§
§source: Option<Rectangle>
Part of texture to draw. If None - draw the whole texture. Default: None
scale: Vector2
Default: (1.0, 1.0)
origin: Vector2
Rotate around this point. Default: (0, 0)
rotation: f32
Default: 0.0
tint: Color
Default: white.
Trait Implementations§
Source§impl Clone for DrawTextureParams
impl Clone for DrawTextureParams
Source§fn clone(&self) -> DrawTextureParams
fn clone(&self) -> DrawTextureParams
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 DrawTextureParams
impl Debug for DrawTextureParams
Auto Trait Implementations§
impl Freeze for DrawTextureParams
impl RefUnwindSafe for DrawTextureParams
impl Send for DrawTextureParams
impl Sync for DrawTextureParams
impl Unpin for DrawTextureParams
impl UnwindSafe for DrawTextureParams
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