Struct core_graphics::geometry::CGRect
[−]
[src]
#[repr(C)]pub struct CGRect { pub origin: CGPoint, pub size: CGSize, }
Fields
origin: CGPoint
size: CGSize
Methods
impl CGRect
[src]
pub fn new(origin: &CGPoint, size: &CGSize) -> CGRect
[src]
pub fn inset(&self, size: &CGSize) -> CGRect
[src]
pub fn from_dict_representation(dict: &CFDictionary) -> Option<CGRect>
[src]
pub fn is_empty(&self) -> bool
[src]
pub fn is_intersects(&self, other: &CGRect) -> bool
[src]
pub fn apply_transform(&self, t: &CGAffineTransform) -> CGRect
[src]
Trait Implementations
impl Clone for CGRect
[src]
fn clone(&self) -> CGRect
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for CGRect
[src]
impl Debug for CGRect
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more