Trait objc2_app_kit::NSTextContent

source ·
pub unsafe trait NSTextContent {
    // Provided methods
    unsafe fn contentType(&self) -> Option<Id<NSTextContentType>>
       where Self: Sized + Message { ... }
    unsafe fn setContentType(&self, content_type: Option<&NSTextContentType>)
       where Self: Sized + Message { ... }
}
Available on crate feature NSTextContent only.

Provided Methods§

source

unsafe fn contentType(&self) -> Option<Id<NSTextContentType>>
where Self: Sized + Message,

source

unsafe fn setContentType(&self, content_type: Option<&NSTextContentType>)
where Self: Sized + Message,

Trait Implementations§

source§

impl ProtocolType for dyn NSTextContent

source§

const NAME: &'static str = "NSTextContent"

The name of the Objective-C protocol that this type represents.
source§

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

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

impl<T> ImplementedBy<T> for dyn NSTextContent
where T: ?Sized + Message + NSTextContent,

Implementations on Foreign Types§

source§

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

Implementors§

source§

impl NSTextContent for NSComboBox

Available on crate features NSControl and NSResponder and NSTextField and NSView and NSComboBox only.
source§

impl NSTextContent for NSSearchField

Available on crate features NSControl and NSResponder and NSTextField and NSView and NSSearchField only.
source§

impl NSTextContent for NSSecureTextField

Available on crate features NSControl and NSResponder and NSTextField and NSView and NSSecureTextField only.
source§

impl NSTextContent for NSTextField

Available on crate features NSControl and NSResponder and NSView and NSTextField only.
source§

impl NSTextContent for NSTextView

Available on crate features NSResponder and NSText and NSView and NSTextView only.
source§

impl NSTextContent for NSTokenField

Available on crate features NSControl and NSResponder and NSTextField and NSView and NSTokenField only.