Struct core_text::framesetter::CTFramesetter [−][src]
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]
&self,
string_range: CFRange,
frame_attributes: CFDictionaryRef,
constraints: CGSize
) -> (CGSize, CFRange)
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]
fn clone(&self) -> CTFramesetter
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[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]
fn eq(&self, other: &CTFramesetter) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl TCFType for CTFramesetter
[src]
type Ref = CTFramesetterRef
The reference type wrapped inside this type.
fn as_concrete_TypeRef(&self) -> CTFramesetterRef
[src]
unsafe fn wrap_under_get_rule(reference: CTFramesetterRef) -> Self
[src]
fn as_CFTypeRef(&self) -> CFTypeRef
[src]
unsafe fn wrap_under_create_rule(reference: CTFramesetterRef) -> Self
[src]
fn type_id() -> CFTypeID
[src]
pub fn as_CFType(&self) -> CFType
[src]
pub fn into_CFType(self) -> CFType
[src]
pub fn retain_count(&self) -> isize
[src]
pub fn type_of(&self) -> usize
[src]
pub fn show(&self)
[src]
pub fn instance_of<OtherCFType>(&self) -> bool where
OtherCFType: TCFType,
[src]
OtherCFType: TCFType,
impl<'a> ToVoid<CTFramesetter> for &'a CTFramesetter
[src]
impl ToVoid<CTFramesetter> for CTFramesetter
[src]
impl ToVoid<CTFramesetter> for CTFramesetterRef
[src]
Auto Trait Implementations
impl RefUnwindSafe for CTFramesetter
[src]
impl !Send for CTFramesetter
[src]
impl !Sync for CTFramesetter
[src]
impl Unpin for CTFramesetter
[src]
impl UnwindSafe for CTFramesetter
[src]
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,
pub 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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,