Struct core_text::framesetter::CTFramesetter[][src]

pub struct CTFramesetter(_);

Implementations

impl CTFramesetter[src]

pub fn new_with_attributed_string(string: CFAttributedStringRef) -> Self[src]

pub fn create_frame(&self, string_range: CFRange, path: &CGPathRef) -> CTFrame[src]

pub fn suggest_frame_size_with_constraints(
    &self,
    string_range: CFRange,
    frame_attributes: CFDictionaryRef,
    constraints: CGSize
) -> (CGSize, CFRange)
[src]

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.

Trait Implementations

impl Clone for CTFramesetter[src]

impl ConcreteCFType for CTFramesetter[src]

impl Debug for CTFramesetter[src]

impl Drop for CTFramesetter[src]

impl Eq for CTFramesetter[src]

impl PartialEq<CTFramesetter> for CTFramesetter[src]

impl TCFType for CTFramesetter[src]

type Ref = CTFramesetterRef

The reference type wrapped inside this type.

impl<'a> ToVoid<CTFramesetter> for &'a CTFramesetter[src]

impl ToVoid<CTFramesetter> for CTFramesetter[src]

impl ToVoid<CTFramesetter> for CTFramesetterRef[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> FromMutVoid for T where
    T: TCFType
[src]

impl<T> FromVoid for T where
    T: TCFType
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.