pub struct FRect {
pub x: f32,
pub y: f32,
pub w: f32,
pub h: f32,
}Fields§
§x: f32§y: f32§w: f32§h: f32Implementations§
Source§impl FRect
impl FRect
pub fn new(x: f32, y: f32, w: f32, h: f32) -> FRect
pub fn to_ll(&self) -> SDL_FRect
pub fn set_x(&mut self, update: f32)
pub fn set_y(&mut self, update: f32)
pub fn set_w(&mut self, update: f32)
pub fn set_h(&mut self, update: f32)
pub fn set_xy(&mut self, update: FPoint)
Trait Implementations§
impl Copy for FRect
impl StructuralPartialEq for FRect
Auto Trait Implementations§
impl Freeze for FRect
impl RefUnwindSafe for FRect
impl Send for FRect
impl Sync for FRect
impl Unpin for FRect
impl UnwindSafe for FRect
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