#[repr(C)]pub struct NSRect {
pub origin: NSPoint,
pub size: NSSize,
}
👎Deprecated: use the objc2-foundation crate instead
Fields§
§origin: NSPoint
👎Deprecated: use the objc2-foundation crate instead
§size: NSSize
👎Deprecated: use the objc2-foundation crate instead
Implementations§
Source§impl NSRect
impl NSRect
pub fn new(origin: NSPoint, size: NSSize) -> NSRect
👎Deprecated: use the objc2-foundation crate instead
pub fn as_CGRect(&self) -> &CGRect
👎Deprecated: use the objc2-foundation crate instead
pub fn inset(&self, x: CGFloat, y: CGFloat) -> NSRect
👎Deprecated: use the objc2-foundation crate instead
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NSRect
impl RefUnwindSafe for NSRect
impl Send for NSRect
impl Sync for NSRect
impl Unpin for NSRect
impl UnwindSafe for NSRect
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