pub struct CGMutablePath(/* private fields */);
Implementations§
Source§impl CGMutablePath
impl CGMutablePath
pub fn new() -> CGMutablePath
pub fn add_rounded_rect( &self, transform: Option<&CGAffineTransform>, rect: CGRect, corner_width: CGFloat, corner_height: CGFloat, )
pub fn add_line_to_point( &self, transform: Option<&CGAffineTransform>, x: CGFloat, y: CGFloat, )
pub fn add_quad_curve_to_point( &self, transform: Option<&CGAffineTransform>, cpx: CGFloat, cpy: CGFloat, x: CGFloat, y: CGFloat, )
pub fn add_curve_to_point( &self, transform: Option<&CGAffineTransform>, cp1x: CGFloat, cp1y: CGFloat, cp2x: CGFloat, cp2y: CGFloat, x: CGFloat, y: CGFloat, )
pub fn add_rect(&self, transform: Option<&CGAffineTransform>, rect: CGRect)
pub fn add_rects(&self, transform: Option<&CGAffineTransform>, rects: &[CGRect])
pub fn add_lines( &self, transform: Option<&CGAffineTransform>, points: &[CGPoint], )
pub fn add_ellipse_in_rect( &self, transform: Option<&CGAffineTransform>, rect: CGRect, )
pub fn add_relative_arc( &self, transform: Option<&CGAffineTransform>, x: CGFloat, y: CGFloat, radius: CGFloat, start_angle: CGFloat, delta: CGFloat, )
pub fn add_arc( &self, transform: Option<&CGAffineTransform>, x: CGFloat, y: CGFloat, radius: CGFloat, start_angle: CGFloat, end_angle: CGFloat, clockwise: bool, )
pub fn add_arc_to_point( &self, transform: Option<&CGAffineTransform>, x1: CGFloat, y1: CGFloat, x2: CGFloat, y2: CGFloat, radius: CGFloat, )
pub fn add_path(&self, transform: Option<&CGAffineTransform>, path: &CGPath)
pub fn close_subpath(&self)
pub fn move_to_point( &self, transform: Option<&CGAffineTransform>, x: CGFloat, y: CGFloat, )
pub fn to_immutable(&self) -> CGPath
Trait Implementations§
Source§impl Clone for CGMutablePath
impl Clone for CGMutablePath
Source§fn clone(&self) -> CGMutablePath
fn clone(&self) -> CGMutablePath
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CGMutablePath
impl Debug for CGMutablePath
Source§impl Drop for CGMutablePath
impl Drop for CGMutablePath
Source§impl PartialEq for CGMutablePath
impl PartialEq for CGMutablePath
Source§impl TCFType for CGMutablePath
impl TCFType for CGMutablePath
Source§fn as_concrete_TypeRef(&self) -> CGMutablePathRef
fn as_concrete_TypeRef(&self) -> CGMutablePathRef
Returns the object as its concrete
TypeRef
.Source§unsafe fn wrap_under_get_rule(reference: CGMutablePathRef) -> Self
unsafe fn wrap_under_get_rule(reference: CGMutablePathRef) -> Self
Returns an instance of the object, wrapping the underlying
CFTypeRef
subclass. Use this
when following Core Foundation’s “Get Rule”. The reference count is bumped.Source§fn as_CFTypeRef(&self) -> CFTypeRef
fn as_CFTypeRef(&self) -> CFTypeRef
Returns the object as a raw
CFTypeRef
. The reference count is not adjusted.Source§unsafe fn wrap_under_create_rule(reference: CGMutablePathRef) -> Self
unsafe fn wrap_under_create_rule(reference: CGMutablePathRef) -> Self
Returns an instance of the object, wrapping the underlying
CFTypeRef
subclass. Use this
when following Core Foundation’s “Create Rule”. The reference count is not bumped.Source§fn as_CFType(&self) -> CFType
fn as_CFType(&self) -> CFType
Returns the object as a wrapped
CFType
. The reference count is incremented by one.Source§fn into_CFType(self) -> CFTypewhere
Self: Sized,
fn into_CFType(self) -> CFTypewhere
Self: Sized,
Returns the object as a wrapped
CFType
. Consumes self and avoids changing the reference
count.Source§fn retain_count(&self) -> isize
fn retain_count(&self) -> isize
Returns the reference count of the object. It is unwise to do anything other than test
whether the return value of this method is greater than zero.
Source§fn instance_of<OtherCFType>(&self) -> boolwhere
OtherCFType: TCFType,
fn instance_of<OtherCFType>(&self) -> boolwhere
OtherCFType: TCFType,
Returns
true
if this value is an instance of another type.Source§impl<'a> ToVoid<CGMutablePath> for &'a CGMutablePath
impl<'a> ToVoid<CGMutablePath> for &'a CGMutablePath
Source§impl ToVoid<CGMutablePath> for CGMutablePathRef
impl ToVoid<CGMutablePath> for CGMutablePathRef
Source§impl ToVoid<CGMutablePath> for CGMutablePath
impl ToVoid<CGMutablePath> for CGMutablePath
impl ConcreteCFType for CGMutablePath
impl Eq for CGMutablePath
Auto Trait Implementations§
impl Freeze for CGMutablePath
impl RefUnwindSafe for CGMutablePath
impl !Send for CGMutablePath
impl !Sync for CGMutablePath
impl Unpin for CGMutablePath
impl UnwindSafe for CGMutablePath
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