Struct macroquad::shapes::DrawRectangleParams
source · pub struct DrawRectangleParams {
pub offset: Vec2,
pub rotation: f32,
pub color: Color,
}
Fields§
§offset: Vec2
Adds an offset to the position E.g. offset (0,0) positions the rectangle at the top left corner of the screen, while offset (0.5, 0.5) centers it
rotation: f32
Rotation in radians
color: Color
Trait Implementations§
source§impl Clone for DrawRectangleParams
impl Clone for DrawRectangleParams
source§fn clone(&self) -> DrawRectangleParams
fn clone(&self) -> DrawRectangleParams
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 DrawRectangleParams
impl Debug for DrawRectangleParams
Auto Trait Implementations§
impl RefUnwindSafe for DrawRectangleParams
impl Send for DrawRectangleParams
impl Sync for DrawRectangleParams
impl Unpin for DrawRectangleParams
impl UnwindSafe for DrawRectangleParams
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