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>,
mtm: MainThreadMarker,
) -> Option<Retained<NSUndoManager>>
where Self: Sized + Message { ... }
}👎Deprecated
Available on crate feature
WebEditingDelegate only.Expand description
Provided Methods§
Sourceunsafe fn webView_shouldBeginEditingInDOMRange(
&self,
web_view: Option<&WebView>,
range: Option<&DOMRange>,
) -> bool
👎DeprecatedAvailable on macOS and crate feature DOMObject and crate feature DOMRange and crate feature objc2-app-kit and crate feature WebScriptObject and crate feature WebView only.
unsafe fn webView_shouldBeginEditingInDOMRange( &self, web_view: Option<&WebView>, range: Option<&DOMRange>, ) -> bool
DOMObject and crate feature DOMRange and crate feature objc2-app-kit and crate feature WebScriptObject and crate feature WebView only.§Safety
web_viewmight not allowNone.rangemight not allowNone.
Sourceunsafe fn webView_shouldEndEditingInDOMRange(
&self,
web_view: Option<&WebView>,
range: Option<&DOMRange>,
) -> bool
👎DeprecatedAvailable on macOS and crate feature DOMObject and crate feature DOMRange and crate feature objc2-app-kit and crate feature WebScriptObject and crate feature WebView only.
unsafe fn webView_shouldEndEditingInDOMRange( &self, web_view: Option<&WebView>, range: Option<&DOMRange>, ) -> bool
DOMObject and crate feature DOMRange and crate feature objc2-app-kit and crate feature WebScriptObject and crate feature WebView only.§Safety
web_viewmight not allowNone.rangemight not allowNone.
Sourceunsafe fn webView_shouldInsertNode_replacingDOMRange_givenAction(
&self,
web_view: Option<&WebView>,
node: Option<&DOMNode>,
range: Option<&DOMRange>,
action: WebViewInsertAction,
) -> bool
👎DeprecatedAvailable on macOS and crate feature DOMNode and crate feature DOMObject and crate feature DOMRange and crate feature objc2-app-kit and crate feature WebScriptObject and crate feature WebView only.
unsafe fn webView_shouldInsertNode_replacingDOMRange_givenAction( &self, web_view: Option<&WebView>, node: Option<&DOMNode>, range: Option<&DOMRange>, action: WebViewInsertAction, ) -> bool
DOMNode and crate feature DOMObject and crate feature DOMRange and crate feature objc2-app-kit and crate feature WebScriptObject and crate feature WebView only.§Safety
web_viewmight not allowNone.nodemight not allowNone.rangemight not allowNone.
Sourceunsafe fn webView_shouldInsertText_replacingDOMRange_givenAction(
&self,
web_view: Option<&WebView>,
text: Option<&NSString>,
range: Option<&DOMRange>,
action: WebViewInsertAction,
) -> bool
👎DeprecatedAvailable on macOS and crate feature DOMObject and crate feature DOMRange and crate feature objc2-app-kit and crate feature WebScriptObject and crate feature WebView only.
unsafe fn webView_shouldInsertText_replacingDOMRange_givenAction( &self, web_view: Option<&WebView>, text: Option<&NSString>, range: Option<&DOMRange>, action: WebViewInsertAction, ) -> bool
DOMObject and crate feature DOMRange and crate feature objc2-app-kit and crate feature WebScriptObject and crate feature WebView only.§Safety
web_viewmight not allowNone.textmight not allowNone.rangemight not allowNone.
Sourceunsafe fn webView_shouldDeleteDOMRange(
&self,
web_view: Option<&WebView>,
range: Option<&DOMRange>,
) -> bool
👎DeprecatedAvailable on macOS and crate feature DOMObject and crate feature DOMRange and crate feature objc2-app-kit and crate feature WebScriptObject and crate feature WebView only.
unsafe fn webView_shouldDeleteDOMRange( &self, web_view: Option<&WebView>, range: Option<&DOMRange>, ) -> bool
DOMObject and crate feature DOMRange and crate feature objc2-app-kit and crate feature WebScriptObject and crate feature WebView only.§Safety
web_viewmight not allowNone.rangemight not allowNone.
Sourceunsafe 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
👎DeprecatedAvailable on macOS and crate feature DOMObject and crate feature DOMRange and crate feature objc2-app-kit and crate feature WebScriptObject and crate feature WebView only.
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
DOMObject and crate feature DOMRange and crate feature objc2-app-kit and crate feature WebScriptObject and crate feature WebView only.§Safety
web_viewmight not allowNone.current_rangemight not allowNone.proposed_rangemight not allowNone.
Sourceunsafe fn webView_shouldApplyStyle_toElementsInDOMRange(
&self,
web_view: Option<&WebView>,
style: Option<&DOMCSSStyleDeclaration>,
range: Option<&DOMRange>,
) -> bool
👎DeprecatedAvailable on macOS and crate feature DOMCSSStyleDeclaration and crate feature DOMObject and crate feature DOMRange and crate feature objc2-app-kit and crate feature WebScriptObject and crate feature WebView only.
unsafe fn webView_shouldApplyStyle_toElementsInDOMRange( &self, web_view: Option<&WebView>, style: Option<&DOMCSSStyleDeclaration>, range: Option<&DOMRange>, ) -> bool
DOMCSSStyleDeclaration and crate feature DOMObject and crate feature DOMRange and crate feature objc2-app-kit and crate feature WebScriptObject and crate feature WebView only.§Safety
web_viewmight not allowNone.stylemight not allowNone.rangemight not allowNone.
Sourceunsafe fn webView_shouldChangeTypingStyle_toStyle(
&self,
web_view: Option<&WebView>,
current_style: Option<&DOMCSSStyleDeclaration>,
proposed_style: Option<&DOMCSSStyleDeclaration>,
) -> bool
👎DeprecatedAvailable on macOS and crate feature DOMCSSStyleDeclaration and crate feature DOMObject and crate feature objc2-app-kit and crate feature WebScriptObject and crate feature WebView only.
unsafe fn webView_shouldChangeTypingStyle_toStyle( &self, web_view: Option<&WebView>, current_style: Option<&DOMCSSStyleDeclaration>, proposed_style: Option<&DOMCSSStyleDeclaration>, ) -> bool
DOMCSSStyleDeclaration and crate feature DOMObject and crate feature objc2-app-kit and crate feature WebScriptObject and crate feature WebView only.§Safety
web_viewmight not allowNone.current_stylemight not allowNone.proposed_stylemight not allowNone.
Sourceunsafe fn webView_doCommandBySelector(
&self,
web_view: Option<&WebView>,
selector: Option<Sel>,
) -> bool
👎DeprecatedAvailable on macOS and crate feature objc2-app-kit and crate feature WebView only.
unsafe fn webView_doCommandBySelector( &self, web_view: Option<&WebView>, selector: Option<Sel>, ) -> bool
objc2-app-kit and crate feature WebView only.§Safety
web_viewmight not allowNone.selectormust be a valid selector.
Sourceunsafe fn webViewDidBeginEditing(&self, notification: Option<&NSNotification>)
👎Deprecated
unsafe fn webViewDidBeginEditing(&self, notification: Option<&NSNotification>)
§Safety
notification might not allow None.
Sourceunsafe fn webViewDidChange(&self, notification: Option<&NSNotification>)
👎Deprecated
unsafe fn webViewDidChange(&self, notification: Option<&NSNotification>)
§Safety
notification might not allow None.
Sourceunsafe fn webViewDidEndEditing(&self, notification: Option<&NSNotification>)
👎Deprecated
unsafe fn webViewDidEndEditing(&self, notification: Option<&NSNotification>)
§Safety
notification might not allow None.
Sourceunsafe fn webViewDidChangeTypingStyle(
&self,
notification: Option<&NSNotification>,
)
👎Deprecated
unsafe fn webViewDidChangeTypingStyle( &self, notification: Option<&NSNotification>, )
§Safety
notification might not allow None.
Sourceunsafe fn webViewDidChangeSelection(
&self,
notification: Option<&NSNotification>,
)
👎Deprecated
unsafe fn webViewDidChangeSelection( &self, notification: Option<&NSNotification>, )
§Safety
notification might not allow None.
Sourceunsafe fn undoManagerForWebView(
&self,
web_view: Option<&WebView>,
mtm: MainThreadMarker,
) -> Option<Retained<NSUndoManager>>
👎DeprecatedAvailable on macOS and crate feature objc2-app-kit and crate feature WebView only.
unsafe fn undoManagerForWebView( &self, web_view: Option<&WebView>, mtm: MainThreadMarker, ) -> Option<Retained<NSUndoManager>>
objc2-app-kit and crate feature WebView only.§Safety
web_view might not allow None.
Trait Implementations§
impl<T> ImplementedBy<T> for dyn WebEditingDelegate
Source§impl ProtocolType for dyn WebEditingDelegate
impl ProtocolType for dyn WebEditingDelegate
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".