#[repr(C)]pub struct NSFontManager { /* private fields */ }👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitAvailable on crate features
AppKit and AppKit_NSFontManager only.Implementations§
Source§impl NSFontManager
impl NSFontManager
pub unsafe fn setFontPanelFactory( factory_id: Option<&AnyClass>, mtm: MainThreadMarker, )
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitpub unsafe fn setFontManagerFactory( factory_id: Option<&AnyClass>, mtm: MainThreadMarker, )
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kit👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitpub unsafe fn isMultiple(&self) -> bool
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitpub unsafe fn selectedFont(&self) -> Option<Id<NSFont>>
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitAvailable on crate feature
AppKit_NSFont only.pub unsafe fn setSelectedFont_isMultiple(&self, font_obj: &NSFont, flag: bool)
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitAvailable on crate feature
AppKit_NSFont only.pub unsafe fn setFontMenu(&self, new_menu: &NSMenu)
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitAvailable on crate feature
AppKit_NSMenu only.pub unsafe fn fontMenu(&self, create: bool) -> Option<Id<NSMenu>>
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitAvailable on crate feature
AppKit_NSMenu only.pub unsafe fn fontPanel(&self, create: bool) -> Option<Id<NSFontPanel>>
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitAvailable on crate feature
AppKit_NSFontPanel only.pub unsafe fn fontWithFamily_traits_weight_size( &self, family: &NSString, traits: NSFontTraitMask, weight: NSInteger, size: CGFloat, ) -> Option<Id<NSFont>>
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitAvailable on crate features
AppKit_NSFont and Foundation_NSString only.pub unsafe fn traitsOfFont(&self, font_obj: &NSFont) -> NSFontTraitMask
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitAvailable on crate feature
AppKit_NSFont only.pub unsafe fn weightOfFont(&self, font_obj: &NSFont) -> NSInteger
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitAvailable on crate feature
AppKit_NSFont only.pub unsafe fn availableFonts(&self) -> Id<NSArray<NSString>>
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitAvailable on crate features
Foundation_NSArray and Foundation_NSString only.pub unsafe fn availableFontFamilies(&self) -> Id<NSArray<NSString>>
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitAvailable on crate features
Foundation_NSArray and Foundation_NSString only.pub unsafe fn availableMembersOfFontFamily( &self, fam: &NSString, ) -> Option<Id<NSArray<NSArray>>>
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitAvailable on crate features
Foundation_NSArray and Foundation_NSString only.pub unsafe fn convertFont(&self, font_obj: &NSFont) -> Id<NSFont>
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitAvailable on crate feature
AppKit_NSFont only.pub unsafe fn convertFont_toSize( &self, font_obj: &NSFont, size: CGFloat, ) -> Id<NSFont>
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitAvailable on crate feature
AppKit_NSFont only.pub unsafe fn convertFont_toFace( &self, font_obj: &NSFont, typeface: &NSString, ) -> Option<Id<NSFont>>
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitAvailable on crate features
AppKit_NSFont and Foundation_NSString only.pub unsafe fn convertFont_toFamily( &self, font_obj: &NSFont, family: &NSString, ) -> Id<NSFont>
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitAvailable on crate features
AppKit_NSFont and Foundation_NSString only.pub unsafe fn convertFont_toHaveTrait( &self, font_obj: &NSFont, trait: NSFontTraitMask, ) -> Id<NSFont>
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitAvailable on crate feature
AppKit_NSFont only.pub unsafe fn convertFont_toNotHaveTrait( &self, font_obj: &NSFont, trait: NSFontTraitMask, ) -> Id<NSFont>
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitAvailable on crate feature
AppKit_NSFont only.pub unsafe fn convertWeight_ofFont( &self, up_flag: bool, font_obj: &NSFont, ) -> Id<NSFont>
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitAvailable on crate feature
AppKit_NSFont only.pub unsafe fn isEnabled(&self) -> bool
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitpub unsafe fn setEnabled(&self, enabled: bool)
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitpub unsafe fn action(&self) -> Sel
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitpub unsafe fn setAction(&self, action: Sel)
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitpub unsafe fn delegate(&self) -> Option<Id<AnyObject>>
👎Deprecated: NSFontManager doesn’t have any delegate method. This property should not be used.
pub unsafe fn setDelegate(&self, delegate: Option<&AnyObject>)
👎Deprecated: NSFontManager doesn’t have any delegate method. This property should not be used.
pub unsafe fn sendAction(&self) -> bool
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitpub unsafe fn localizedNameForFamily_face( &self, family: &NSString, face_key: Option<&NSString>, ) -> Id<NSString>
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitAvailable on crate feature
Foundation_NSString only.pub unsafe fn setSelectedAttributes_isMultiple( &self, attributes: &NSDictionary<NSString, AnyObject>, flag: bool, )
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitAvailable on crate features
Foundation_NSDictionary and Foundation_NSString only.pub unsafe fn convertAttributes( &self, attributes: &NSDictionary<NSString, AnyObject>, ) -> Id<NSDictionary<NSString, AnyObject>>
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitAvailable on crate features
Foundation_NSDictionary and Foundation_NSString only.pub unsafe fn availableFontNamesMatchingFontDescriptor( &self, descriptor: &NSFontDescriptor, ) -> Option<Id<NSArray>>
👎Deprecated: Use -[NSFontDescriptor matchingFontDescriptorsWithMandatoryKeys:] instead
Available on crate features
AppKit_NSFontDescriptor and Foundation_NSArray only.pub unsafe fn collectionNames(&self) -> Id<NSArray>
👎Deprecated: Use +[NSFontCollection allFontCollectionNames] instead
Available on crate feature
Foundation_NSArray only.pub unsafe fn fontDescriptorsInCollection( &self, collection_names: &NSString, ) -> Option<Id<NSArray>>
👎Deprecated: Use -[NSFontCollection matchingDescriptors] instead
Available on crate features
Foundation_NSArray and Foundation_NSString only.pub unsafe fn addCollection_options( &self, collection_name: &NSString, collection_options: NSFontCollectionOptions, ) -> bool
👎Deprecated: Use +[NSFontCollection showFontCollection:withName:visibility:name:] instead
Available on crate feature
Foundation_NSString only.pub unsafe fn removeCollection(&self, collection_name: &NSString) -> bool
👎Deprecated: Use +[NSFontCollection hideFontCollectionWithName:visibility:error:] instead
Available on crate feature
Foundation_NSString only.pub unsafe fn addFontDescriptors_toCollection( &self, descriptors: &NSArray, collection_name: &NSString, )
👎Deprecated: Use -[NSMutableFontCollection addQueryForDescriptors:] instead
Available on crate features
Foundation_NSArray and Foundation_NSString only.pub unsafe fn removeFontDescriptor_fromCollection( &self, descriptor: &NSFontDescriptor, collection: &NSString, )
👎Deprecated: Use -[NSMutableFontCollection removeQueryForDescriptors:] instead
Available on crate features
AppKit_NSFontDescriptor and Foundation_NSString only.pub unsafe fn currentFontAction(&self) -> NSFontAction
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitpub unsafe fn convertFontTraits( &self, traits: NSFontTraitMask, ) -> NSFontTraitMask
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitpub unsafe fn target(&self) -> Option<Id<AnyObject>>
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitpub unsafe fn setTarget(&self, target: Option<&AnyObject>)
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitSource§impl NSFontManager
Methods declared on superclass NSObject
impl NSFontManager
Methods declared on superclass NSObject
Source§impl NSFontManager
NSFontManagerMenuActionMethods
impl NSFontManager
NSFontManagerMenuActionMethods
pub unsafe fn fontNamed_hasTraits( &self, f_name: &NSString, some_traits: NSFontTraitMask, ) -> bool
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitAvailable on crate feature
Foundation_NSString only.pub unsafe fn availableFontNamesWithTraits( &self, some_traits: NSFontTraitMask, ) -> Option<Id<NSArray<NSString>>>
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitAvailable on crate features
Foundation_NSArray and Foundation_NSString only.pub unsafe fn addFontTrait(&self, sender: Option<&AnyObject>)
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitpub unsafe fn removeFontTrait(&self, sender: Option<&AnyObject>)
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitpub unsafe fn modifyFontViaPanel(&self, sender: Option<&AnyObject>)
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitpub unsafe fn modifyFont(&self, sender: Option<&AnyObject>)
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitpub unsafe fn orderFrontFontPanel(&self, sender: Option<&AnyObject>)
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitpub unsafe fn orderFrontStylesPanel(&self, sender: Option<&AnyObject>)
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitMethods from Deref<Target = NSObject>§
Sourcepub fn doesNotRecognizeSelector(&self, sel: Sel) -> !
Available on crate feature AuthenticationServices only.
pub fn doesNotRecognizeSelector(&self, sel: Sel) -> !
AuthenticationServices only.Handle messages the object doesn’t recognize.
See Apple’s documentation for details.
Methods from Deref<Target = AnyObject>§
Sourcepub fn class(&self) -> &'static AnyClass
pub fn class(&self) -> &'static AnyClass
Dynamically find the class of this object.
§Example
Check that an instance of NSObject has the precise class NSObject.
use objc2::ClassType;
use objc2::runtime::NSObject;
let obj = NSObject::new();
assert_eq!(obj.class(), NSObject::class());Sourcepub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
👎Deprecated: this is difficult to use correctly, use Ivar::load instead.
pub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
Ivar::load instead.Use Ivar::load instead.
§Safety
The object must have an instance variable with the given name, and it
must be of type T.
See Ivar::load_ptr for details surrounding this.
Sourcepub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
👎Deprecated: this is difficult to use correctly, use Ivar::load_mut instead.
pub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
Ivar::load_mut instead.Use Ivar::load_mut instead.
§Safety
The object must have an instance variable with the given name, and it
must be of type T.
See Ivar::load_ptr for details surrounding this.
Trait Implementations§
Source§impl AsMut<AnyObject> for NSFontManager
impl AsMut<AnyObject> for NSFontManager
Source§impl AsMut<NSFontManager> for NSFontManager
impl AsMut<NSFontManager> for NSFontManager
Source§impl AsMut<NSObject> for NSFontManager
impl AsMut<NSObject> for NSFontManager
Source§impl AsRef<AnyObject> for NSFontManager
impl AsRef<AnyObject> for NSFontManager
Source§impl AsRef<NSFontManager> for NSFontManager
impl AsRef<NSFontManager> for NSFontManager
Source§impl AsRef<NSObject> for NSFontManager
impl AsRef<NSObject> for NSFontManager
Source§impl Borrow<AnyObject> for NSFontManager
impl Borrow<AnyObject> for NSFontManager
Source§impl Borrow<NSObject> for NSFontManager
impl Borrow<NSObject> for NSFontManager
Source§impl BorrowMut<AnyObject> for NSFontManager
impl BorrowMut<AnyObject> for NSFontManager
Source§fn borrow_mut(&mut self) -> &mut AnyObject
fn borrow_mut(&mut self) -> &mut AnyObject
Mutably borrows from an owned value. Read more
Source§impl BorrowMut<NSObject> for NSFontManager
impl BorrowMut<NSObject> for NSFontManager
Source§fn borrow_mut(&mut self) -> &mut NSObject
fn borrow_mut(&mut self) -> &mut NSObject
Mutably borrows from an owned value. Read more
Source§impl ClassType for NSFontManager
impl ClassType for NSFontManager
Source§const NAME: &'static str = "NSFontManager"
const NAME: &'static str = "NSFontManager"
The name of the Objective-C class that this type represents. Read more
Source§type Mutability = MainThreadOnly
type Mutability = MainThreadOnly
Whether the type is mutable or immutable. Read more
Source§fn class() -> &'static AnyClass
fn class() -> &'static AnyClass
Get a reference to the Objective-C class that this type represents. Read more
Source§fn as_super_mut(&mut self) -> &mut Self::Super
fn as_super_mut(&mut self) -> &mut Self::Super
Get a mutable reference to the superclass.
Source§impl Debug for NSFontManager
impl Debug for NSFontManager
Source§impl Deref for NSFontManager
impl Deref for NSFontManager
Source§impl DerefMut for NSFontManager
impl DerefMut for NSFontManager
Source§impl Hash for NSFontManager
impl Hash for NSFontManager
Source§impl NSMenuItemValidation for NSFontManager
impl NSMenuItemValidation for NSFontManager
Source§unsafe fn validateMenuItem(&self, menu_item: &NSMenuItem) -> bool
unsafe fn validateMenuItem(&self, menu_item: &NSMenuItem) -> bool
👎Deprecated:
icrate::AppKit has been moved to objc2-app-kitAvailable on crate feature
AppKit_NSMenuItem only.Source§impl NSObjectProtocol for NSFontManager
impl NSObjectProtocol for NSFontManager
Source§fn isEqual(&self, other: &AnyObject) -> bool
fn isEqual(&self, other: &AnyObject) -> bool
Check whether the object is equal to an arbitrary other object. Read more
Source§fn hash(&self) -> usize
fn hash(&self) -> usize
An integer that can be used as a table address in a hash table
structure. Read more
Source§fn isKindOfClass(&self, cls: &AnyClass) -> bool
fn isKindOfClass(&self, cls: &AnyClass) -> bool
Check if the object is an instance of the class, or one of its
subclasses. Read more
Source§fn is_kind_of<T>(&self) -> bool
fn is_kind_of<T>(&self) -> bool
Check if the object is an instance of the class type, or one of its
subclasses. Read more
Source§fn isMemberOfClass(&self, cls: &AnyClass) -> bool
fn isMemberOfClass(&self, cls: &AnyClass) -> bool
Check if the object is an instance of a specific class, without
checking subclasses. Read more
Source§fn respondsToSelector(&self, aSelector: Sel) -> bool
fn respondsToSelector(&self, aSelector: Sel) -> bool
Check whether the object implements or inherits a method with the
given selector. Read more
Source§fn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
fn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
Check whether the object conforms to a given protocol. Read more
Source§fn debugDescription(&self) -> Id<NSObject>
fn debugDescription(&self) -> Id<NSObject>
A textual representation of the object to use when debugging. Read more
Source§impl PartialEq for NSFontManager
impl PartialEq for NSFontManager
Source§impl RefEncode for NSFontManager
impl RefEncode for NSFontManager
Source§const ENCODING_REF: Encoding = <NSObject as ::objc2::RefEncode>::ENCODING_REF
const ENCODING_REF: Encoding = <NSObject as ::objc2::RefEncode>::ENCODING_REF
The Objective-C type-encoding for a reference of this type. Read more
impl Eq for NSFontManager
impl Message for NSFontManager
impl StructuralPartialEq for NSFontManager
Auto Trait Implementations§
impl !Freeze for NSFontManager
impl !RefUnwindSafe for NSFontManager
impl !Send for NSFontManager
impl !Sync for NSFontManager
impl !Unpin for NSFontManager
impl !UnwindSafe for NSFontManager
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