Struct core_graphics::geometry::CGRect
source · #[repr(C)]pub struct CGRect {
pub origin: CGPoint,
pub size: CGSize,
}
Fields§
§origin: CGPoint
§size: CGSize
Implementations§
source§impl CGRect
impl CGRect
pub fn new(origin: &CGPoint, size: &CGSize) -> CGRect
pub fn inset(&self, size: &CGSize) -> CGRect
pub fn from_dict_representation(dict: &CFDictionary) -> Option<CGRect>
pub fn is_empty(&self) -> bool
pub fn is_intersects(&self, other: &CGRect) -> bool
pub fn apply_transform(&self, t: &CGAffineTransform) -> CGRect
pub fn contains(&self, point: &CGPoint) -> bool
Trait Implementations§
impl Copy for CGRect
Auto Trait Implementations§
impl Freeze for CGRect
impl RefUnwindSafe for CGRect
impl Send for CGRect
impl Sync for CGRect
impl Unpin for CGRect
impl UnwindSafe for CGRect
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)