pub struct HIMutableShape { /* private fields */ }HIShape only.Expand description
Implementations§
Source§impl HIMutableShape
impl HIMutableShape
pub unsafe fn new() -> Option<CFRetained<HIMutableShape>>
HIServices only.pub unsafe fn new_copy(in_orig: &HIShape) -> Option<CFRetained<HIMutableShape>>
HIServices only.Sourcepub unsafe fn with_rect(
in_rect: *const CGRect,
) -> Option<CFRetained<HIMutableShape>>
Available on crate feature HIServices only.
pub unsafe fn with_rect( in_rect: *const CGRect, ) -> Option<CFRetained<HIMutableShape>>
HIServices only.§Safety
in_rect must be a valid pointer.
Sourcepub unsafe fn set_empty(in_shape: Option<&HIMutableShape>) -> u32
Available on crate feature HIServices only.
pub unsafe fn set_empty(in_shape: Option<&HIMutableShape>) -> u32
HIServices only.§Safety
in_shape might not allow None.
Sourcepub unsafe fn set_with_shape(
in_dest_shape: Option<&HIMutableShape>,
in_src_shape: Option<&HIShape>,
) -> u32
Available on crate feature HIServices only.
pub unsafe fn set_with_shape( in_dest_shape: Option<&HIMutableShape>, in_src_shape: Option<&HIShape>, ) -> u32
HIServices only.§Safety
in_dest_shapemight not allowNone.in_src_shapemight not allowNone.
Source§impl HIMutableShape
impl HIMutableShape
Sourcepub unsafe fn offset(
in_shape: Option<&HIMutableShape>,
in_dx: CGFloat,
in_dy: CGFloat,
) -> u32
Available on crate feature HIServices only.
pub unsafe fn offset( in_shape: Option<&HIMutableShape>, in_dx: CGFloat, in_dy: CGFloat, ) -> u32
HIServices only.§Safety
in_shape might not allow None.
Sourcepub unsafe fn inset(
in_shape: Option<&HIMutableShape>,
in_dx: CGFloat,
in_dy: CGFloat,
) -> u32
Available on crate feature HIServices only.
pub unsafe fn inset( in_shape: Option<&HIMutableShape>, in_dx: CGFloat, in_dy: CGFloat, ) -> u32
HIServices only.§Safety
in_shape might not allow None.
Sourcepub unsafe fn union_with_rect(
in_shape: Option<&HIMutableShape>,
in_rect: *const CGRect,
) -> u32
Available on crate feature HIServices only.
pub unsafe fn union_with_rect( in_shape: Option<&HIMutableShape>, in_rect: *const CGRect, ) -> u32
HIServices only.§Safety
in_shapemight not allowNone.in_rectmust be a valid pointer.
Methods from Deref<Target = HIShape>§
pub unsafe fn copy(&self) -> Option<CFRetained<HIShape>>
HIServices only.Sourcepub unsafe fn intersection(
&self,
in_shape2: Option<&HIShape>,
) -> Option<CFRetained<HIShape>>
Available on crate feature HIServices only.
pub unsafe fn intersection( &self, in_shape2: Option<&HIShape>, ) -> Option<CFRetained<HIShape>>
HIServices only.§Safety
in_shape2 might not allow None.
Sourcepub unsafe fn create_difference(
&self,
in_shape2: Option<&HIShape>,
) -> Option<CFRetained<HIShape>>
Available on crate feature HIServices only.
pub unsafe fn create_difference( &self, in_shape2: Option<&HIShape>, ) -> Option<CFRetained<HIShape>>
HIServices only.§Safety
in_shape2 might not allow None.
Sourcepub unsafe fn create_union(
&self,
in_shape2: Option<&HIShape>,
) -> Option<CFRetained<HIShape>>
Available on crate feature HIServices only.
pub unsafe fn create_union( &self, in_shape2: Option<&HIShape>, ) -> Option<CFRetained<HIShape>>
HIServices only.§Safety
in_shape2 might not allow None.
Sourcepub unsafe fn create_xor(
&self,
in_shape2: Option<&HIShape>,
) -> Option<CFRetained<HIShape>>
Available on crate feature HIServices only.
pub unsafe fn create_xor( &self, in_shape2: Option<&HIShape>, ) -> Option<CFRetained<HIShape>>
HIServices only.§Safety
in_shape2 might not allow None.
pub unsafe fn is_empty(&self) -> bool
HIServices only.pub unsafe fn is_rectangular(&self) -> bool
HIServices only.Sourcepub unsafe fn contains_point(&self, in_point: *const CGPoint) -> bool
Available on crate feature HIServices only.
pub unsafe fn contains_point(&self, in_point: *const CGPoint) -> bool
HIServices only.§Safety
in_point must be a valid pointer.
Sourcepub unsafe fn intersects_rect(&self, in_rect: *const CGRect) -> bool
Available on crate feature HIServices only.
pub unsafe fn intersects_rect(&self, in_rect: *const CGRect) -> bool
HIServices only.§Safety
in_rect must be a valid pointer.
Sourcepub unsafe fn bounds(&self, out_rect: *mut CGRect) -> *mut CGRect
Available on crate feature HIServices only.
pub unsafe fn bounds(&self, out_rect: *mut CGRect) -> *mut CGRect
HIServices only.§Safety
out_rect must be a valid pointer.
Sourcepub unsafe fn replace_path_in_cg_context(
&self,
in_context: Option<&CGContext>,
) -> u32
Available on crate features HIServices and objc2-core-graphics only.
pub unsafe fn replace_path_in_cg_context( &self, in_context: Option<&CGContext>, ) -> u32
HIServices and objc2-core-graphics only.§Safety
in_context might not allow None.
Sourcepub unsafe fn enumerate(
&self,
in_options: u32,
in_proc: HIShapeEnumerateProcPtr,
in_refcon: *mut c_void,
) -> u32
Available on crate feature HIServices only.
pub unsafe fn enumerate( &self, in_options: u32, in_proc: HIShapeEnumerateProcPtr, in_refcon: *mut c_void, ) -> u32
HIServices only.§Safety
in_procmust be implemented correctly.in_refconmust be a valid pointer.
Sourcepub unsafe fn intersect(
&self,
in_shape2: Option<&HIShape>,
out_result: Option<&HIMutableShape>,
) -> u32
Available on crate feature HIServices only.
pub unsafe fn intersect( &self, in_shape2: Option<&HIShape>, out_result: Option<&HIMutableShape>, ) -> u32
HIServices only.§Safety
in_shape2might not allowNone.out_resultmight not allowNone.
Sourcepub unsafe fn difference(
&self,
in_shape2: Option<&HIShape>,
out_result: Option<&HIMutableShape>,
) -> u32
Available on crate feature HIServices only.
pub unsafe fn difference( &self, in_shape2: Option<&HIShape>, out_result: Option<&HIMutableShape>, ) -> u32
HIServices only.§Safety
in_shape2might not allowNone.out_resultmight not allowNone.
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 CFNumbers, small CFStrings 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 HIMutableShape
Available on crate feature HIServices only.
impl AsRef<AnyObject> for HIMutableShape
HIServices only.Source§impl AsRef<CFType> for HIMutableShape
Available on crate feature HIServices only.
impl AsRef<CFType> for HIMutableShape
HIServices only.Source§impl AsRef<HIMutableShape> for HIMutableShape
Available on crate feature HIServices only.
impl AsRef<HIMutableShape> for HIMutableShape
HIServices only.Source§impl AsRef<HIShape> for HIMutableShape
Available on crate feature HIServices only.
impl AsRef<HIShape> for HIMutableShape
HIServices only.Source§impl Borrow<AnyObject> for HIMutableShape
Available on crate feature HIServices only.
impl Borrow<AnyObject> for HIMutableShape
HIServices only.Source§impl Borrow<CFType> for HIMutableShape
Available on crate feature HIServices only.
impl Borrow<CFType> for HIMutableShape
HIServices only.Source§impl Borrow<HIShape> for HIMutableShape
Available on crate feature HIServices only.
impl Borrow<HIShape> for HIMutableShape
HIServices only.Source§impl Debug for HIMutableShape
Available on crate feature HIServices only.
impl Debug for HIMutableShape
HIServices only.Source§impl Deref for HIMutableShape
Available on crate feature HIServices only.
impl Deref for HIMutableShape
HIServices only.Source§impl Hash for HIMutableShape
Available on crate feature HIServices only.
impl Hash for HIMutableShape
HIServices only.Source§impl Message for HIMutableShape
Available on crate feature HIServices only.
impl Message for HIMutableShape
HIServices only.Source§impl PartialEq for HIMutableShape
Available on crate feature HIServices only.
impl PartialEq for HIMutableShape
HIServices only.Source§impl RefEncode for HIMutableShape
Available on crate feature HIServices only.
impl RefEncode for HIMutableShape
HIServices only.Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
Source§impl Type for HIMutableShape
Available on crate feature HIServices only.
impl Type for HIMutableShape
HIServices only.Source§fn retain(&self) -> CFRetained<Self>where
Self: Sized,
fn retain(&self) -> CFRetained<Self>where
Self: Sized,
Source§fn as_concrete_TypeRef(&self) -> &Self
fn as_concrete_TypeRef(&self) -> &Self
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,
core-foundation crate. Read moreSource§fn as_CFTypeRef(&self) -> &CFType
fn as_CFTypeRef(&self) -> &CFType
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,
core-foundation crate. Read moreimpl Eq for HIMutableShape
HIServices only.