Struct core_text::frame::CTFrame[][src]

pub struct CTFrame(_);

Implementations

impl CTFrame[src]

pub fn get_path(&self) -> CGPath[src]

The CGPath used to create this CTFrame.

pub fn get_lines(&self) -> Vec<CTLine>[src]

Returns an owned copy of the underlying lines.

Each line is retained, and will remain valid past the life of this CTFrame.

pub fn get_line_origins(
    &self,
    range: impl Into<Option<CFRange>>
) -> Vec<CGPoint>
[src]

Return the origin of each line in a given range.

If no range is provided, returns the origin of each line in the frame.

If the length of the range is 0, returns the origin of all lines from the range's start to the end.

The origin is the position relative to the path used to create this CTFFrame; to get the path use get_path.

pub fn draw(&self, context: &CGContextRef)[src]

Trait Implementations

impl Clone for CTFrame[src]

impl ConcreteCFType for CTFrame[src]

impl Debug for CTFrame[src]

impl Drop for CTFrame[src]

impl Eq for CTFrame[src]

impl PartialEq<CTFrame> for CTFrame[src]

impl TCFType for CTFrame[src]

type Ref = CTFrameRef

The reference type wrapped inside this type.

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

impl ToVoid<CTFrame> for CTFrame[src]

impl ToVoid<CTFrame> for CTFrameRef[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.