#[repr(C)]pub struct CGMutablePath { /* private fields */ }
Available on crate feature
CGPath
only.Expand description
Implementations§
Source§impl CGMutablePath
impl CGMutablePath
pub unsafe fn new() -> CFRetained<CGMutablePath>
Source§impl CGMutablePath
impl CGMutablePath
pub unsafe fn new_copy( path: Option<&CGPath>, ) -> Option<CFRetained<CGMutablePath>>
pub unsafe fn new_copy_by_transforming_path( path: Option<&CGPath>, transform: *const CGAffineTransform, ) -> Option<CFRetained<CGMutablePath>>
Source§impl CGMutablePath
impl CGMutablePath
pub unsafe fn add_rounded_rect( path: Option<&CGMutablePath>, transform: *const CGAffineTransform, rect: CGRect, corner_width: CGFloat, corner_height: CGFloat, )
Source§impl CGMutablePath
impl CGMutablePath
Sourcepub unsafe fn move_to_point(
path: Option<&CGMutablePath>,
m: *const CGAffineTransform,
x: CGFloat,
y: CGFloat,
)
pub unsafe fn move_to_point( path: Option<&CGMutablePath>, m: *const CGAffineTransform, x: CGFloat, y: CGFloat, )
- Path construction functions. **
pub unsafe fn add_line_to_point( path: Option<&CGMutablePath>, m: *const CGAffineTransform, x: CGFloat, y: CGFloat, )
pub unsafe fn add_quad_curve_to_point( path: Option<&CGMutablePath>, m: *const CGAffineTransform, cpx: CGFloat, cpy: CGFloat, x: CGFloat, y: CGFloat, )
pub unsafe fn add_curve_to_point( path: Option<&CGMutablePath>, m: *const CGAffineTransform, cp1x: CGFloat, cp1y: CGFloat, cp2x: CGFloat, cp2y: CGFloat, x: CGFloat, y: CGFloat, )
pub unsafe fn close_subpath(path: Option<&CGMutablePath>)
Sourcepub unsafe fn add_rect(
path: Option<&CGMutablePath>,
m: *const CGAffineTransform,
rect: CGRect,
)
pub unsafe fn add_rect( path: Option<&CGMutablePath>, m: *const CGAffineTransform, rect: CGRect, )
- Path construction convenience functions. **
pub unsafe fn add_rects( path: Option<&CGMutablePath>, m: *const CGAffineTransform, rects: *const CGRect, count: usize, )
pub unsafe fn add_lines( path: Option<&CGMutablePath>, m: *const CGAffineTransform, points: *const CGPoint, count: usize, )
pub unsafe fn add_ellipse_in_rect( path: Option<&CGMutablePath>, m: *const CGAffineTransform, rect: CGRect, )
pub unsafe fn add_relative_arc( path: Option<&CGMutablePath>, matrix: *const CGAffineTransform, x: CGFloat, y: CGFloat, radius: CGFloat, start_angle: CGFloat, delta: CGFloat, )
pub unsafe fn add_arc( path: Option<&CGMutablePath>, m: *const CGAffineTransform, x: CGFloat, y: CGFloat, radius: CGFloat, start_angle: CGFloat, end_angle: CGFloat, clockwise: bool, )
pub unsafe fn add_arc_to_point( path: Option<&CGMutablePath>, m: *const CGAffineTransform, x1: CGFloat, y1: CGFloat, x2: CGFloat, y2: CGFloat, radius: CGFloat, )
pub unsafe fn add_path( path1: Option<&CGMutablePath>, m: *const CGAffineTransform, path2: Option<&CGPath>, )
Methods from Deref<Target = CGPath>§
pub unsafe fn apply_with_block(self: &CGPath, block: CGPathApplyBlock)
Available on crate feature
block2
only.Methods from Deref<Target = CFType>§
Sourcepub fn downcast_ref<T>(&self) -> Option<&T>where
T: ConcreteType,
pub fn downcast_ref<T>(&self) -> Option<&T>where
T: ConcreteType,
Attempt to downcast the type to that of type T
.
This is the reference-variant. Use CFRetained::downcast
if you
want to convert a retained type. See also ConcreteType
for more
details on which types support being converted to.
Sourcepub fn retain_count(&self) -> usize
pub fn retain_count(&self) -> usize
Get the reference count of the object.
This function may be useful for debugging. You normally do not use this function otherwise.
Beware that some things (like CFNumber
s, small CFString
s etc.) may
not have a normal retain count for optimization purposes, and can
return usize::MAX
in that case.
Trait Implementations§
Source§impl AsRef<AnyObject> for CGMutablePath
impl AsRef<AnyObject> for CGMutablePath
Source§impl AsRef<CFType> for CGMutablePath
impl AsRef<CFType> for CGMutablePath
Source§impl AsRef<CGMutablePath> for CGMutablePath
impl AsRef<CGMutablePath> for CGMutablePath
Source§impl AsRef<CGPath> for CGMutablePath
impl AsRef<CGPath> for CGMutablePath
Source§impl Borrow<AnyObject> for CGMutablePath
impl Borrow<AnyObject> for CGMutablePath
Source§impl Borrow<CFType> for CGMutablePath
impl Borrow<CFType> for CGMutablePath
Source§impl Borrow<CGPath> for CGMutablePath
impl Borrow<CGPath> for CGMutablePath
Source§impl Debug for CGMutablePath
impl Debug for CGMutablePath
Source§impl Deref for CGMutablePath
impl Deref for CGMutablePath
Source§impl Hash for CGMutablePath
impl Hash for CGMutablePath
Source§impl Message for CGMutablePath
impl Message for CGMutablePath
Source§impl PartialEq for CGMutablePath
impl PartialEq for CGMutablePath
Source§impl RefEncode for CGMutablePath
impl RefEncode for CGMutablePath
Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
Source§impl Type for CGMutablePath
impl Type for CGMutablePath
Source§fn retain(&self) -> CFRetained<Self>where
Self: Sized,
fn retain(&self) -> CFRetained<Self>where
Self: Sized,
Increment the reference count of the receiver. Read more
Source§fn as_concrete_TypeRef(&self) -> &Self
fn as_concrete_TypeRef(&self) -> &Self
👎Deprecated: this is redundant
Helper for easier transition from the
core-foundation
crate.Source§unsafe fn wrap_under_get_rule(ptr: *const Self) -> CFRetained<Self>where
Self: Sized,
unsafe fn wrap_under_get_rule(ptr: *const Self) -> CFRetained<Self>where
Self: Sized,
👎Deprecated: use CFRetained::retain
Helper for easier transition from the
core-foundation
crate. Read moreSource§fn as_CFTypeRef(&self) -> &CFType
fn as_CFTypeRef(&self) -> &CFType
👎Deprecated: this is redundant (CF types deref to CFType)
Helper for easier transition from the
core-foundation
crate.Source§unsafe fn wrap_under_create_rule(ptr: *const Self) -> CFRetained<Self>where
Self: Sized,
unsafe fn wrap_under_create_rule(ptr: *const Self) -> CFRetained<Self>where
Self: Sized,
👎Deprecated: use CFRetained::from_raw
Helper for easier transition from the
core-foundation
crate. Read moreimpl 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