[−][src]Struct core_text::frame::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]
&self,
range: impl Into<Option<CFRange>>
) -> Vec<CGPoint>
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.
fn as_concrete_TypeRef(&self) -> CTFrameRef[src]
unsafe fn wrap_under_get_rule(reference: CTFrameRef) -> Self[src]
fn as_CFTypeRef(&self) -> CFTypeRef[src]
unsafe fn wrap_under_create_rule(reference: CTFrameRef) -> Self[src]
fn type_id() -> CFTypeID[src]
fn as_CFType(&self) -> CFType[src]
fn into_CFType(self) -> CFType[src]
fn retain_count(&self) -> isize[src]
fn type_of(&self) -> usize[src]
fn show(&self)[src]
fn instance_of<OtherCFType>(&self) -> bool where
OtherCFType: TCFType, [src]
OtherCFType: TCFType,
impl<'a> ToVoid<CTFrame> for &'a CTFrame[src]
impl ToVoid<CTFrame> for CTFrame[src]
impl ToVoid<CTFrame> for CTFrameRef[src]
Auto Trait Implementations
impl RefUnwindSafe for CTFrame
impl !Send for CTFrame
impl !Sync for CTFrame
impl Unpin for CTFrame
impl UnwindSafe for CTFrame
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T> FromMutVoid for T where
T: TCFType, [src]
T: TCFType,
unsafe fn from_mut_void<'a>(x: *mut c_void) -> ItemMutRef<'a, T>[src]
impl<T> FromVoid for T where
T: TCFType, [src]
T: TCFType,
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,