Trait objc2_app_kit::NSTextDelegate

source ·
pub unsafe trait NSTextDelegate: NSObjectProtocol + IsMainThreadOnly {
    // Provided methods
    unsafe fn textShouldBeginEditing(&self, text_object: &NSText) -> bool
       where Self: Sized + Message { ... }
    unsafe fn textShouldEndEditing(&self, text_object: &NSText) -> bool
       where Self: Sized + Message { ... }
    unsafe fn textDidBeginEditing(&self, notification: &NSNotification)
       where Self: Sized + Message { ... }
    unsafe fn textDidEndEditing(&self, notification: &NSNotification)
       where Self: Sized + Message { ... }
    unsafe fn textDidChange(&self, notification: &NSNotification)
       where Self: Sized + Message { ... }
}
Available on crate feature NSText only.

Provided Methods§

source

unsafe fn textShouldBeginEditing(&self, text_object: &NSText) -> bool
where Self: Sized + Message,

Available on crate features NSResponder and NSView only.
source

unsafe fn textShouldEndEditing(&self, text_object: &NSText) -> bool
where Self: Sized + Message,

Available on crate features NSResponder and NSView only.
source

unsafe fn textDidBeginEditing(&self, notification: &NSNotification)
where Self: Sized + Message,

source

unsafe fn textDidEndEditing(&self, notification: &NSNotification)
where Self: Sized + Message,

source

unsafe fn textDidChange(&self, notification: &NSNotification)
where Self: Sized + Message,

Trait Implementations§

source§

impl ProtocolType for dyn NSTextDelegate

source§

const NAME: &'static str = "NSTextDelegate"

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 NSTextDelegate

Implementations on Foreign Types§

source§

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

Implementors§

source§

impl NSTextDelegate for NSOutlineView

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

impl NSTextDelegate for NSTableView

Available on crate features NSControl and NSResponder and NSView and NSTableView only.