#[repr(C)]pub struct SDL_FRect {
pub x: c_float,
pub y: c_float,
pub w: c_float,
pub h: c_float,
}Expand description
A rectangle stored using floating point values.
The origin of the coordinate space is in the top-left, with increasing
values moving down and right. The properties x and y represent the
coordinates of the top-left corner of the rectangle.
§Availability
This struct is available since SDL 3.2.0.
§See also
Fields§
§x: c_float§y: c_float§w: c_float§h: c_floatTrait Implementations§
impl Copy for SDL_FRect
impl StructuralPartialEq for SDL_FRect
Auto Trait Implementations§
impl Freeze for SDL_FRect
impl RefUnwindSafe for SDL_FRect
impl Send for SDL_FRect
impl Sync for SDL_FRect
impl Unpin for SDL_FRect
impl UnwindSafe for SDL_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