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