#[repr(C)]pub struct SkRect {
pub left: f32,
pub top: f32,
pub right: f32,
pub bottom: f32,
}Fields§
§left: f32The x coordinate of the rectangle’s left edge.
top: f32The y coordinate of the rectangle’s top edge.
right: f32The x coordinate of the rectangle’s right edge.
bottom: f32The y coordinate of the rectangle’s bottom edge.
Implementations§
Source§impl Rect
impl Rect
pub fn new(_left: f32, _top: f32, _right: f32, _bottom: f32) -> Self
pub fn x(&self) -> f32
pub fn y(&self) -> f32
pub fn width(&self) -> f32
pub fn height(&self) -> f32
pub fn with_outset(&self, _delta: impl Into<Point>) -> Self
pub fn round_in(&self) -> IRect
pub fn from_xywh(x: f32, y: f32, w: f32, h: f32) -> IRect
Trait Implementations§
impl Copy for Rect
impl StructuralPartialEq for Rect
Auto Trait Implementations§
impl Freeze for Rect
impl RefUnwindSafe for Rect
impl Send for Rect
impl Sync for Rect
impl Unpin for Rect
impl UnwindSafe for Rect
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