Trait objc2_web_kit::WebEditingDelegate

source ·
pub unsafe trait WebEditingDelegate: NSObjectProtocol {
Show 15 methods // Provided methods unsafe fn webView_shouldBeginEditingInDOMRange( &self, web_view: Option<&WebView>, range: Option<&DOMRange> ) -> bool where Self: Sized + Message { ... } unsafe fn webView_shouldEndEditingInDOMRange( &self, web_view: Option<&WebView>, range: Option<&DOMRange> ) -> bool where Self: Sized + Message { ... } unsafe fn webView_shouldInsertNode_replacingDOMRange_givenAction( &self, web_view: Option<&WebView>, node: Option<&DOMNode>, range: Option<&DOMRange>, action: WebViewInsertAction ) -> bool where Self: Sized + Message { ... } unsafe fn webView_shouldInsertText_replacingDOMRange_givenAction( &self, web_view: Option<&WebView>, text: Option<&NSString>, range: Option<&DOMRange>, action: WebViewInsertAction ) -> bool where Self: Sized + Message { ... } unsafe fn webView_shouldDeleteDOMRange( &self, web_view: Option<&WebView>, range: Option<&DOMRange> ) -> bool where Self: Sized + Message { ... } unsafe fn webView_shouldChangeSelectedDOMRange_toDOMRange_affinity_stillSelecting( &self, web_view: Option<&WebView>, current_range: Option<&DOMRange>, proposed_range: Option<&DOMRange>, selection_affinity: NSSelectionAffinity, flag: bool ) -> bool where Self: Sized + Message { ... } unsafe fn webView_shouldApplyStyle_toElementsInDOMRange( &self, web_view: Option<&WebView>, style: Option<&DOMCSSStyleDeclaration>, range: Option<&DOMRange> ) -> bool where Self: Sized + Message { ... } unsafe fn webView_shouldChangeTypingStyle_toStyle( &self, web_view: Option<&WebView>, current_style: Option<&DOMCSSStyleDeclaration>, proposed_style: Option<&DOMCSSStyleDeclaration> ) -> bool where Self: Sized + Message { ... } unsafe fn webView_doCommandBySelector( &self, web_view: Option<&WebView>, selector: Option<Sel> ) -> bool where Self: Sized + Message { ... } unsafe fn webViewDidBeginEditing( &self, notification: Option<&NSNotification> ) where Self: Sized + Message { ... } unsafe fn webViewDidChange(&self, notification: Option<&NSNotification>) where Self: Sized + Message { ... } unsafe fn webViewDidEndEditing(&self, notification: Option<&NSNotification>) where Self: Sized + Message { ... } unsafe fn webViewDidChangeTypingStyle( &self, notification: Option<&NSNotification> ) where Self: Sized + Message { ... } unsafe fn webViewDidChangeSelection( &self, notification: Option<&NSNotification> ) where Self: Sized + Message { ... } unsafe fn undoManagerForWebView( &self, web_view: Option<&WebView> ) -> Option<Id<NSUndoManager>> where Self: Sized + Message { ... }
}
👎Deprecated
Available on crate feature WebEditingDelegate only.

Provided Methods§

source

unsafe fn webView_shouldBeginEditingInDOMRange( &self, web_view: Option<&WebView>, range: Option<&DOMRange> ) -> bool
where Self: Sized + Message,

👎Deprecated
Available on crate features DOMObject and DOMRange and WebScriptObject and WebView and objc2-app-kit only.
source

unsafe fn webView_shouldEndEditingInDOMRange( &self, web_view: Option<&WebView>, range: Option<&DOMRange> ) -> bool
where Self: Sized + Message,

👎Deprecated
Available on crate features DOMObject and DOMRange and WebScriptObject and WebView and objc2-app-kit only.
source

unsafe fn webView_shouldInsertNode_replacingDOMRange_givenAction( &self, web_view: Option<&WebView>, node: Option<&DOMNode>, range: Option<&DOMRange>, action: WebViewInsertAction ) -> bool
where Self: Sized + Message,

👎Deprecated
Available on crate features DOMNode and DOMObject and DOMRange and WebScriptObject and WebView and objc2-app-kit only.
source

unsafe fn webView_shouldInsertText_replacingDOMRange_givenAction( &self, web_view: Option<&WebView>, text: Option<&NSString>, range: Option<&DOMRange>, action: WebViewInsertAction ) -> bool
where Self: Sized + Message,

👎Deprecated
Available on crate features DOMObject and DOMRange and WebScriptObject and WebView and objc2-app-kit only.
source

unsafe fn webView_shouldDeleteDOMRange( &self, web_view: Option<&WebView>, range: Option<&DOMRange> ) -> bool
where Self: Sized + Message,

👎Deprecated
Available on crate features DOMObject and DOMRange and WebScriptObject and WebView and objc2-app-kit only.
source

unsafe fn webView_shouldChangeSelectedDOMRange_toDOMRange_affinity_stillSelecting( &self, web_view: Option<&WebView>, current_range: Option<&DOMRange>, proposed_range: Option<&DOMRange>, selection_affinity: NSSelectionAffinity, flag: bool ) -> bool
where Self: Sized + Message,

👎Deprecated
Available on crate features DOMObject and DOMRange and WebScriptObject and WebView and objc2-app-kit only.
source

unsafe fn webView_shouldApplyStyle_toElementsInDOMRange( &self, web_view: Option<&WebView>, style: Option<&DOMCSSStyleDeclaration>, range: Option<&DOMRange> ) -> bool
where Self: Sized + Message,

👎Deprecated
Available on crate features DOMCSSStyleDeclaration and DOMObject and DOMRange and WebScriptObject and WebView and objc2-app-kit only.
source

unsafe fn webView_shouldChangeTypingStyle_toStyle( &self, web_view: Option<&WebView>, current_style: Option<&DOMCSSStyleDeclaration>, proposed_style: Option<&DOMCSSStyleDeclaration> ) -> bool
where Self: Sized + Message,

👎Deprecated
Available on crate features DOMCSSStyleDeclaration and DOMObject and WebScriptObject and WebView and objc2-app-kit only.
source

unsafe fn webView_doCommandBySelector( &self, web_view: Option<&WebView>, selector: Option<Sel> ) -> bool
where Self: Sized + Message,

👎Deprecated
Available on crate features WebView and objc2-app-kit only.
source

unsafe fn webViewDidBeginEditing(&self, notification: Option<&NSNotification>)
where Self: Sized + Message,

👎Deprecated
source

unsafe fn webViewDidChange(&self, notification: Option<&NSNotification>)
where Self: Sized + Message,

👎Deprecated
source

unsafe fn webViewDidEndEditing(&self, notification: Option<&NSNotification>)
where Self: Sized + Message,

👎Deprecated
source

unsafe fn webViewDidChangeTypingStyle( &self, notification: Option<&NSNotification> )
where Self: Sized + Message,

👎Deprecated
source

unsafe fn webViewDidChangeSelection( &self, notification: Option<&NSNotification> )
where Self: Sized + Message,

👎Deprecated
source

unsafe fn undoManagerForWebView( &self, web_view: Option<&WebView> ) -> Option<Id<NSUndoManager>>
where Self: Sized + Message,

👎Deprecated
Available on crate features WebView and objc2-app-kit only.

Trait Implementations§

source§

impl ProtocolType for dyn WebEditingDelegate

source§

const NAME: &'static str = "WebEditingDelegate"

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 WebEditingDelegate

Implementations on Foreign Types§

source§

impl<T> WebEditingDelegate for ProtocolObject<T>

Implementors§