Function CTRubyAnnotationGetTextForPosition

Source
pub unsafe extern "C-unwind" fn CTRubyAnnotationGetTextForPosition(
    ruby_annotation: &CTRubyAnnotation,
    position: CTRubyPosition,
) -> Option<CFRetained<CFString>>
Available on crate feature CTRubyAnnotation only.
Expand description

Get the ruby text for a particular position in a ruby annotation.

Parameter rubyAnnotation: The ruby annotation object.

Parameter position: The position for which you want to get the ruby text.

Returns: If the “rubyAnnotation” reference and the position are valid, then this function will return a CFStringRef for the text. Otherwise it will return NULL.