pub struct CMTextFormatDescription(/* private fields */);
Implementations§
Source§impl CMTextFormatDescription
impl CMTextFormatDescription
pub fn new( format_type: CMTextFormatType, extensions: Option<&CFDictionary<CFString, CFType>>, ) -> Result<Self, OSStatus>
pub fn get_format_type(&self) -> CMTextFormatType
pub fn get_display_flags(&self) -> Result<CMTextDisplayFlags, OSStatus>
pub fn get_justification( &self, ) -> Result<(CMTextJustificationValue, CMTextJustificationValue), OSStatus>
pub fn get_default_text_box( &self, origin_is_at_top_left: bool, height_of_text_track: CGFloat, ) -> Result<CGRect, OSStatus>
pub fn get_default_style( &self, ) -> Result<(u16, bool, bool, bool, CGFloat, [CGFloat; 4]), OSStatus>
pub fn get_font_name(&self, local_font_id: u16) -> Result<CFString, OSStatus>
Trait Implementations§
Source§impl Clone for CMTextFormatDescription
impl Clone for CMTextFormatDescription
Source§fn clone(&self) -> CMTextFormatDescription
fn clone(&self) -> CMTextFormatDescription
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CMTextFormatDescription
impl Debug for CMTextFormatDescription
Source§impl Drop for CMTextFormatDescription
impl Drop for CMTextFormatDescription
Source§impl PartialEq for CMTextFormatDescription
impl PartialEq for CMTextFormatDescription
Source§impl TCFType for CMTextFormatDescription
impl TCFType for CMTextFormatDescription
Source§type Ref = *mut opaqueCMFormatDescription
type Ref = *mut opaqueCMFormatDescription
The reference type wrapped inside this type.
Source§fn as_concrete_TypeRef(&self) -> CMTextFormatDescriptionRef
fn as_concrete_TypeRef(&self) -> CMTextFormatDescriptionRef
Returns the object as its concrete
TypeRef
.Source§unsafe fn wrap_under_get_rule(reference: CMTextFormatDescriptionRef) -> Self
unsafe fn wrap_under_get_rule(reference: CMTextFormatDescriptionRef) -> Self
Returns an instance of the object, wrapping the underlying
CFTypeRef
subclass. Use this
when following Core Foundation’s “Get Rule”. The reference count is bumped.Source§fn as_CFTypeRef(&self) -> CFTypeRef
fn as_CFTypeRef(&self) -> CFTypeRef
Returns the object as a raw
CFTypeRef
. The reference count is not adjusted.Source§unsafe fn wrap_under_create_rule(reference: CMTextFormatDescriptionRef) -> Self
unsafe fn wrap_under_create_rule(reference: CMTextFormatDescriptionRef) -> Self
Returns an instance of the object, wrapping the underlying
CFTypeRef
subclass. Use this
when following Core Foundation’s “Create Rule”. The reference count is not bumped.Source§fn as_CFType(&self) -> CFType
fn as_CFType(&self) -> CFType
Returns the object as a wrapped
CFType
. The reference count is incremented by one.Source§fn into_CFType(self) -> CFTypewhere
Self: Sized,
fn into_CFType(self) -> CFTypewhere
Self: Sized,
Returns the object as a wrapped
CFType
. Consumes self and avoids changing the reference
count.Source§fn retain_count(&self) -> isize
fn retain_count(&self) -> isize
Returns the reference count of the object. It is unwise to do anything other than test
whether the return value of this method is greater than zero.
Source§fn instance_of<OtherCFType>(&self) -> boolwhere
OtherCFType: TCFType,
fn instance_of<OtherCFType>(&self) -> boolwhere
OtherCFType: TCFType,
Returns
true
if this value is an instance of another type.Source§impl TCMFormatDescription for CMTextFormatDescription
impl TCMFormatDescription for CMTextFormatDescription
fn as_buffer(&self) -> CMFormatDescription
fn into_buffer(self) -> CMFormatDescriptionwhere
Self: Sized,
Source§impl<'a> ToVoid<CMTextFormatDescription> for &'a CMTextFormatDescription
impl<'a> ToVoid<CMTextFormatDescription> for &'a CMTextFormatDescription
impl ConcreteCFType for CMTextFormatDescription
impl Eq for CMTextFormatDescription
Auto Trait Implementations§
impl Freeze for CMTextFormatDescription
impl RefUnwindSafe for CMTextFormatDescription
impl !Send for CMTextFormatDescription
impl !Sync for CMTextFormatDescription
impl Unpin for CMTextFormatDescription
impl UnwindSafe for CMTextFormatDescription
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more