pub struct AXTextMarkerRange { /* private fields */ }AXUIElement only.Expand description
An AXTextMarkerRangeRef is a CFType. Like all CFTypes, they are reference counted (
//apple_ref/c/func/CFRetain CFRetain,
//apple_ref/c/func/CFRelease CFRelease).
See also Apple’s documentation
Implementations§
Source§impl AXTextMarkerRange
impl AXTextMarkerRange
Sourcepub unsafe fn new(
allocator: Option<&CFAllocator>,
start_marker: &AXTextMarker,
end_marker: &AXTextMarker,
) -> CFRetained<AXTextMarkerRange>
Available on crate feature HIServices only.
pub unsafe fn new( allocator: Option<&CFAllocator>, start_marker: &AXTextMarker, end_marker: &AXTextMarker, ) -> CFRetained<AXTextMarkerRange>
HIServices only.Creates a new text marker given a start and end marker
Parameter startMarker: The text marker for the beginning of the range
Parameter endMarker: The text marker for the end of the range
Returns: The text marker range object
Sourcepub unsafe fn with_bytes(
allocator: Option<&CFAllocator>,
start_marker_bytes: NonNull<u8>,
start_marker_length: CFIndex,
end_marker_bytes: NonNull<u8>,
end_marker_length: CFIndex,
) -> CFRetained<AXTextMarkerRange>
Available on crate feature HIServices only.
pub unsafe fn with_bytes( allocator: Option<&CFAllocator>, start_marker_bytes: NonNull<u8>, start_marker_length: CFIndex, end_marker_bytes: NonNull<u8>, end_marker_length: CFIndex, ) -> CFRetained<AXTextMarkerRange>
HIServices only.Creates a new text marker given the bytes for a start marker and an end marker
Parameter startMarkerBytes: The data used to identify the start marker location in text
Parameter startMarkerLength: The length of the start marker data
Parameter endMarkeBytes: The data used to identify the end marker location in text
Parameter endMarkerLength: The length of the end marker data
Returns: The text marker range object
§Safety
start_marker_bytesmust be a valid pointer.end_marker_bytesmust be a valid pointer.
Sourcepub unsafe fn start_marker(&self) -> CFRetained<AXTextMarker>
Available on crate feature HIServices only.
pub unsafe fn start_marker(&self) -> CFRetained<AXTextMarker>
HIServices only.Copies the start marker from a text marker range
Parameter textMarkerRange: The text marker range
Returns: The start text marker object
Sourcepub unsafe fn end_marker(&self) -> CFRetained<AXTextMarker>
Available on crate feature HIServices only.
pub unsafe fn end_marker(&self) -> CFRetained<AXTextMarker>
HIServices only.Copies the end marker from a text marker range
Parameter textMarkerRange: The text marker range
Returns: The end text marker object
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<AXTextMarkerRange> for AXTextMarkerRange
Available on crate feature HIServices only.
impl AsRef<AXTextMarkerRange> for AXTextMarkerRange
HIServices only.Source§impl AsRef<AnyObject> for AXTextMarkerRange
Available on crate feature HIServices only.
impl AsRef<AnyObject> for AXTextMarkerRange
HIServices only.Source§impl AsRef<CFType> for AXTextMarkerRange
Available on crate feature HIServices only.
impl AsRef<CFType> for AXTextMarkerRange
HIServices only.Source§impl Borrow<AnyObject> for AXTextMarkerRange
Available on crate feature HIServices only.
impl Borrow<AnyObject> for AXTextMarkerRange
HIServices only.Source§impl Borrow<CFType> for AXTextMarkerRange
Available on crate feature HIServices only.
impl Borrow<CFType> for AXTextMarkerRange
HIServices only.Source§impl ConcreteType for AXTextMarkerRange
Available on crate feature HIServices only.
impl ConcreteType for AXTextMarkerRange
HIServices only.Source§impl Debug for AXTextMarkerRange
Available on crate feature HIServices only.
impl Debug for AXTextMarkerRange
HIServices only.Source§impl Deref for AXTextMarkerRange
Available on crate feature HIServices only.
impl Deref for AXTextMarkerRange
HIServices only.Source§impl Hash for AXTextMarkerRange
Available on crate feature HIServices only.
impl Hash for AXTextMarkerRange
HIServices only.Source§impl Message for AXTextMarkerRange
Available on crate feature HIServices only.
impl Message for AXTextMarkerRange
HIServices only.Source§impl PartialEq for AXTextMarkerRange
Available on crate feature HIServices only.
impl PartialEq for AXTextMarkerRange
HIServices only.Source§impl RefEncode for AXTextMarkerRange
Available on crate feature HIServices only.
impl RefEncode for AXTextMarkerRange
HIServices only.Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
Source§impl Type for AXTextMarkerRange
Available on crate feature HIServices only.
impl Type for AXTextMarkerRange
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 AXTextMarkerRange
HIServices only.