#[repr(C)]pub struct SDL_FRect {
pub x: f32,
pub y: f32,
pub w: f32,
pub h: f32,
}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.
Available Since: This struct is available since SDL 3.2.0.
See Also: SDL_RectEmptyFloat See Also: SDL_RectsEqualFloat See Also: SDL_RectsEqualEpsilon See Also: SDL_HasRectIntersectionFloat See Also: SDL_GetRectIntersectionFloat See Also: SDL_GetRectAndLineIntersectionFloat See Also: SDL_GetRectUnionFloat See Also: SDL_GetRectEnclosingPointsFloat See Also: SDL_PointInRectFloat
Fields§
§x: f32§y: f32§w: f32§h: f32Trait Implementations§
impl Copy 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 UnsafeUnpin 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