pub fn suggest_frame_size_with_constraints(
        &self,
        string_range: CFRange,
        frame_attributes: CFDictionaryRef,
        constraints: CGSize,
    ) -> (CGSize, CFRange) {
        unsafe {
            let mut fit_range = CFRange::init(0, 0);
            let size = CTFramesetterSuggestFrameSizeWithConstraints(
                self.as_concrete_TypeRef(),
                string_range,
                frame_attributes,
                constraints,
                &mut fit_range,
            );
            (size, fit_range)
        }
    }
/// Suggest an appropriate frame size for displaying a text range.
///
/// Returns a tuple containing an appropriate size (that should be smaller
/// than the provided constraints) as well as the range of text that fits in
/// this frame.
Suggest an appropriate frame size for displaying a text range.
Returns a tuple containing an appropriate size (that should be smaller
than the provided constraints) as well as the range of text that fits in
this frame.
Suggest an appropriate frame size for displaying a text range . Returns a tuple containing an appropriate size ( that should be smaller than the provided constraints ) as well as the range of text that fits in this frame .
pub fn suggest_frame_size_with_constraints(
        &self,
        string_range: CFRange,
        frame_attributes: CFDictionaryRef,
        constraints: CGSize,
    ) -> (CGSize, CFRange) {
        unsafe {
            let mut fit_range = CFRange::init(0, 0);
            let size = CTFramesetterSuggestFrameSizeWithConstraints(
                self.as_concrete_TypeRef(),
                string_range,
                frame_attributes,
                constraints,
                &mut fit_range,
            );
            (size, fit_range)
        }
    }
pub fn suggest_frame_size_with_constraints ( & self , string_range : CFRange , frame_attributes : CFDictionaryRef , constraints : CGSize , ) -> ( CGSize , CFRange ) { unsafe { let mut fit_range = CFRange :: init ( 0 , 0 ) ; let size = CTFramesetterSuggestFrameSizeWithConstraints ( self . as_concrete_TypeRef ( ) , string_range , frame_attributes , constraints , & mut fit_range , ) ; ( size , fit_range ) } }
Suggest an appropriate frame size for displaying a text range.
Suggest an appropriate frame size for displaying a text range .
&self
string_range
CFRange
frame_attributes
CFDictionaryRef
constraints
CGSize