Struct core_text::line::CTLine[][src]

pub struct CTLine(_);

Implementations

impl CTLine[src]

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

pub fn glyph_runs(&self) -> CFArray<CTRun>[src]

pub fn get_string_range(&self) -> CFRange[src]

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

pub fn get_image_bounds(&self, context: &CGContext) -> CGRect[src]

pub fn get_typographic_bounds(&self) -> TypographicBounds[src]

pub fn get_string_index_for_position(&self, position: CGPoint) -> CFIndex[src]

pub fn get_string_offset_for_string_index(&self, charIndex: CFIndex) -> CGFloat[src]

Trait Implementations

impl Clone for CTLine[src]

impl ConcreteCFType for CTLine[src]

impl Debug for CTLine[src]

impl Drop for CTLine[src]

impl Eq for CTLine[src]

impl PartialEq<CTLine> for CTLine[src]

impl TCFType for CTLine[src]

type Ref = CTLineRef

The reference type wrapped inside this type.

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

impl ToVoid<CTLine> for CTLine[src]

impl ToVoid<CTLine> for CTLineRef[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.