Skip to main content

NSFontChanging

Trait NSFontChanging 

Source
pub unsafe trait NSFontChanging: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    fn changeFont(&self, sender: Option<&NSFontManager>)
       where Self: Sized + Message { ... }
    fn validModesForFontPanel(
        &self,
        font_panel: &NSFontPanel,
    ) -> NSFontPanelModeMask
       where Self: Sized + Message { ... }
}
Available on crate feature NSFontPanel only.
Expand description

Provided Methods§

Source

fn changeFont(&self, sender: Option<&NSFontManager>)
where Self: Sized + Message,

Available on crate feature NSFontManager only.
Source

fn validModesForFontPanel( &self, font_panel: &NSFontPanel, ) -> NSFontPanelModeMask
where Self: Sized + Message,

Available on crate features NSPanel and NSResponder and NSWindow only.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn NSFontChanging

Source§

impl ProtocolType for dyn NSFontChanging

Source§

const NAME: &'static str = "NSFontChanging"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> NSFontChanging for ProtocolObject<T>
where T: ?Sized + NSFontChanging,

Implementors§