Trait objc2_web_kit::WebUIDelegate

source ยท
pub unsafe trait WebUIDelegate: NSObjectProtocol {
Show 43 methods // Provided methods unsafe fn webView_createWebViewWithRequest( &self, sender: Option<&WebView>, request: Option<&NSURLRequest>, mtm: MainThreadMarker ) -> Option<Retained<WebView>> where Self: Sized + Message { ... } unsafe fn webViewShow(&self, sender: Option<&WebView>) where Self: Sized + Message { ... } unsafe fn webView_createWebViewModalDialogWithRequest( &self, sender: Option<&WebView>, request: Option<&NSURLRequest>, mtm: MainThreadMarker ) -> Option<Retained<WebView>> where Self: Sized + Message { ... } unsafe fn webViewRunModal(&self, sender: Option<&WebView>) where Self: Sized + Message { ... } unsafe fn webViewClose(&self, sender: Option<&WebView>) where Self: Sized + Message { ... } unsafe fn webViewFocus(&self, sender: Option<&WebView>) where Self: Sized + Message { ... } unsafe fn webViewUnfocus(&self, sender: Option<&WebView>) where Self: Sized + Message { ... } unsafe fn webViewFirstResponder( &self, sender: Option<&WebView>, mtm: MainThreadMarker ) -> Option<Retained<NSResponder>> where Self: Sized + Message { ... } unsafe fn webView_makeFirstResponder( &self, sender: Option<&WebView>, responder: Option<&NSResponder> ) where Self: Sized + Message { ... } unsafe fn webView_setStatusText( &self, sender: Option<&WebView>, text: Option<&NSString> ) where Self: Sized + Message { ... } unsafe fn webViewStatusText( &self, sender: Option<&WebView> ) -> Option<Retained<NSString>> where Self: Sized + Message { ... } unsafe fn webViewAreToolbarsVisible(&self, sender: Option<&WebView>) -> bool where Self: Sized + Message { ... } unsafe fn webView_setToolbarsVisible( &self, sender: Option<&WebView>, visible: bool ) where Self: Sized + Message { ... } unsafe fn webViewIsStatusBarVisible(&self, sender: Option<&WebView>) -> bool where Self: Sized + Message { ... } unsafe fn webView_setStatusBarVisible( &self, sender: Option<&WebView>, visible: bool ) where Self: Sized + Message { ... } unsafe fn webViewIsResizable(&self, sender: Option<&WebView>) -> bool where Self: Sized + Message { ... } unsafe fn webView_setResizable( &self, sender: Option<&WebView>, resizable: bool ) where Self: Sized + Message { ... } unsafe fn webView_setFrame(&self, sender: Option<&WebView>, frame: NSRect) where Self: Sized + Message { ... } unsafe fn webViewFrame(&self, sender: Option<&WebView>) -> NSRect where Self: Sized + Message { ... } unsafe fn webView_runJavaScriptAlertPanelWithMessage_initiatedByFrame( &self, sender: Option<&WebView>, message: Option<&NSString>, frame: Option<&WebFrame> ) where Self: Sized + Message { ... } unsafe fn webView_runJavaScriptConfirmPanelWithMessage_initiatedByFrame( &self, sender: Option<&WebView>, message: Option<&NSString>, frame: Option<&WebFrame> ) -> bool where Self: Sized + Message { ... } unsafe fn webView_runJavaScriptTextInputPanelWithPrompt_defaultText_initiatedByFrame( &self, sender: Option<&WebView>, prompt: Option<&NSString>, default_text: Option<&NSString>, frame: Option<&WebFrame> ) -> Option<Retained<NSString>> where Self: Sized + Message { ... } unsafe fn webView_runBeforeUnloadConfirmPanelWithMessage_initiatedByFrame( &self, sender: Option<&WebView>, message: Option<&NSString>, frame: Option<&WebFrame> ) -> bool where Self: Sized + Message { ... } unsafe fn webView_runOpenPanelForFileButtonWithResultListener( &self, sender: Option<&WebView>, result_listener: Option<&ProtocolObject<dyn WebOpenPanelResultListener>> ) where Self: Sized + Message { ... } unsafe fn webView_runOpenPanelForFileButtonWithResultListener_allowMultipleFiles( &self, sender: Option<&WebView>, result_listener: Option<&ProtocolObject<dyn WebOpenPanelResultListener>>, allow_multiple_files: bool ) where Self: Sized + Message { ... } unsafe fn webView_mouseDidMoveOverElement_modifierFlags( &self, sender: Option<&WebView>, element_information: Option<&NSDictionary>, modifier_flags: NSUInteger ) where Self: Sized + Message { ... } unsafe fn webView_contextMenuItemsForElement_defaultMenuItems( &self, sender: Option<&WebView>, element: Option<&NSDictionary>, default_menu_items: Option<&NSArray> ) -> Option<Retained<NSArray>> where Self: Sized + Message { ... } unsafe fn webView_validateUserInterfaceItem_defaultValidation( &self, web_view: Option<&WebView>, item: Option<&ProtocolObject<dyn NSValidatedUserInterfaceItem>>, default_validation: bool ) -> bool where Self: Sized + Message { ... } unsafe fn webView_shouldPerformAction_fromSender( &self, web_view: Option<&WebView>, action: Option<Sel>, sender: Option<&AnyObject> ) -> bool where Self: Sized + Message { ... } unsafe fn webView_dragDestinationActionMaskForDraggingInfo( &self, web_view: Option<&WebView>, dragging_info: Option<&ProtocolObject<dyn NSDraggingInfo>> ) -> NSUInteger where Self: Sized + Message { ... } unsafe fn webView_willPerformDragDestinationAction_forDraggingInfo( &self, web_view: Option<&WebView>, action: WebDragDestinationAction, dragging_info: Option<&ProtocolObject<dyn NSDraggingInfo>> ) where Self: Sized + Message { ... } unsafe fn webView_dragSourceActionMaskForPoint( &self, web_view: Option<&WebView>, point: NSPoint ) -> NSUInteger where Self: Sized + Message { ... } unsafe fn webView_willPerformDragSourceAction_fromPoint_withPasteboard( &self, web_view: Option<&WebView>, action: WebDragSourceAction, point: NSPoint, pasteboard: Option<&NSPasteboard> ) where Self: Sized + Message { ... } unsafe fn webView_printFrameView( &self, sender: Option<&WebView>, frame_view: Option<&WebFrameView> ) where Self: Sized + Message { ... } unsafe fn webViewHeaderHeight(&self, sender: Option<&WebView>) -> c_float where Self: Sized + Message { ... } unsafe fn webViewFooterHeight(&self, sender: Option<&WebView>) -> c_float where Self: Sized + Message { ... } unsafe fn webView_drawHeaderInRect( &self, sender: Option<&WebView>, rect: NSRect ) where Self: Sized + Message { ... } unsafe fn webView_drawFooterInRect( &self, sender: Option<&WebView>, rect: NSRect ) where Self: Sized + Message { ... } unsafe fn webView_runJavaScriptAlertPanelWithMessage( &self, sender: Option<&WebView>, message: Option<&NSString> ) where Self: Sized + Message { ... } unsafe fn webView_runJavaScriptConfirmPanelWithMessage( &self, sender: Option<&WebView>, message: Option<&NSString> ) -> bool where Self: Sized + Message { ... } unsafe fn webView_runJavaScriptTextInputPanelWithPrompt_defaultText( &self, sender: Option<&WebView>, prompt: Option<&NSString>, default_text: Option<&NSString> ) -> Option<Retained<NSString>> where Self: Sized + Message { ... } unsafe fn webView_setContentRect( &self, sender: Option<&WebView>, frame: NSRect ) where Self: Sized + Message { ... } unsafe fn webViewContentRect(&self, sender: Option<&WebView>) -> NSRect where Self: Sized + Message { ... }
}
๐Ÿ‘ŽDeprecated
Available on crate feature WebUIDelegate only.

Provided Methodsยง

source

unsafe fn webView_createWebViewWithRequest( &self, sender: Option<&WebView>, request: Option<&NSURLRequest>, mtm: MainThreadMarker ) -> Option<Retained<WebView>>
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated
Available on crate feature WebView and crate feature objc2-app-kit and macOS only.
source

unsafe fn webViewShow(&self, sender: Option<&WebView>)
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated
Available on crate feature WebView and crate feature objc2-app-kit and macOS only.
source

unsafe fn webView_createWebViewModalDialogWithRequest( &self, sender: Option<&WebView>, request: Option<&NSURLRequest>, mtm: MainThreadMarker ) -> Option<Retained<WebView>>
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated
Available on crate feature WebView and crate feature objc2-app-kit and macOS only.
source

unsafe fn webViewRunModal(&self, sender: Option<&WebView>)
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated
Available on crate feature WebView and crate feature objc2-app-kit and macOS only.
source

unsafe fn webViewClose(&self, sender: Option<&WebView>)
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated
Available on crate feature WebView and crate feature objc2-app-kit and macOS only.
source

unsafe fn webViewFocus(&self, sender: Option<&WebView>)
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated
Available on crate feature WebView and crate feature objc2-app-kit and macOS only.
source

unsafe fn webViewUnfocus(&self, sender: Option<&WebView>)
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated
Available on crate feature WebView and crate feature objc2-app-kit and macOS only.
source

unsafe fn webViewFirstResponder( &self, sender: Option<&WebView>, mtm: MainThreadMarker ) -> Option<Retained<NSResponder>>
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated
Available on crate feature WebView and crate feature objc2-app-kit and macOS only.
source

unsafe fn webView_makeFirstResponder( &self, sender: Option<&WebView>, responder: Option<&NSResponder> )
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated
Available on crate feature WebView and crate feature objc2-app-kit and macOS only.
source

unsafe fn webView_setStatusText( &self, sender: Option<&WebView>, text: Option<&NSString> )
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated
Available on crate feature WebView and crate feature objc2-app-kit and macOS only.
source

unsafe fn webViewStatusText( &self, sender: Option<&WebView> ) -> Option<Retained<NSString>>
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated
Available on crate feature WebView and crate feature objc2-app-kit and macOS only.
source

unsafe fn webViewAreToolbarsVisible(&self, sender: Option<&WebView>) -> bool
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated
Available on crate feature WebView and crate feature objc2-app-kit and macOS only.
source

unsafe fn webView_setToolbarsVisible( &self, sender: Option<&WebView>, visible: bool )
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated
Available on crate feature WebView and crate feature objc2-app-kit and macOS only.
source

unsafe fn webViewIsStatusBarVisible(&self, sender: Option<&WebView>) -> bool
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated
Available on crate feature WebView and crate feature objc2-app-kit and macOS only.
source

unsafe fn webView_setStatusBarVisible( &self, sender: Option<&WebView>, visible: bool )
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated
Available on crate feature WebView and crate feature objc2-app-kit and macOS only.
source

unsafe fn webViewIsResizable(&self, sender: Option<&WebView>) -> bool
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated
Available on crate feature WebView and crate feature objc2-app-kit and macOS only.
source

unsafe fn webView_setResizable(&self, sender: Option<&WebView>, resizable: bool)
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated
Available on crate feature WebView and crate feature objc2-app-kit and macOS only.
source

unsafe fn webView_setFrame(&self, sender: Option<&WebView>, frame: NSRect)
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated
Available on crate feature WebView and crate feature objc2-app-kit and macOS only.
source

unsafe fn webViewFrame(&self, sender: Option<&WebView>) -> NSRect
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated
Available on crate feature WebView and crate feature objc2-app-kit and macOS only.
source

unsafe fn webView_runJavaScriptAlertPanelWithMessage_initiatedByFrame( &self, sender: Option<&WebView>, message: Option<&NSString>, frame: Option<&WebFrame> )
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated
Available on crate feature WebFrame and crate feature WebView and crate feature objc2-app-kit and macOS only.
source

unsafe fn webView_runJavaScriptConfirmPanelWithMessage_initiatedByFrame( &self, sender: Option<&WebView>, message: Option<&NSString>, frame: Option<&WebFrame> ) -> bool
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated
Available on crate feature WebFrame and crate feature WebView and crate feature objc2-app-kit and macOS only.
source

unsafe fn webView_runJavaScriptTextInputPanelWithPrompt_defaultText_initiatedByFrame( &self, sender: Option<&WebView>, prompt: Option<&NSString>, default_text: Option<&NSString>, frame: Option<&WebFrame> ) -> Option<Retained<NSString>>
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated
Available on crate feature WebFrame and crate feature WebView and crate feature objc2-app-kit and macOS only.
source

unsafe fn webView_runBeforeUnloadConfirmPanelWithMessage_initiatedByFrame( &self, sender: Option<&WebView>, message: Option<&NSString>, frame: Option<&WebFrame> ) -> bool
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated
Available on crate feature WebFrame and crate feature WebView and crate feature objc2-app-kit and macOS only.
source

unsafe fn webView_runOpenPanelForFileButtonWithResultListener( &self, sender: Option<&WebView>, result_listener: Option<&ProtocolObject<dyn WebOpenPanelResultListener>> )
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated
Available on crate feature WebView and crate feature objc2-app-kit and macOS only.
source

unsafe fn webView_runOpenPanelForFileButtonWithResultListener_allowMultipleFiles( &self, sender: Option<&WebView>, result_listener: Option<&ProtocolObject<dyn WebOpenPanelResultListener>>, allow_multiple_files: bool )
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated
Available on crate feature WebView and crate feature objc2-app-kit and macOS only.
source

unsafe fn webView_mouseDidMoveOverElement_modifierFlags( &self, sender: Option<&WebView>, element_information: Option<&NSDictionary>, modifier_flags: NSUInteger )
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated
Available on crate feature WebView and crate feature objc2-app-kit and macOS only.
source

unsafe fn webView_contextMenuItemsForElement_defaultMenuItems( &self, sender: Option<&WebView>, element: Option<&NSDictionary>, default_menu_items: Option<&NSArray> ) -> Option<Retained<NSArray>>
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated
Available on crate feature WebView and crate feature objc2-app-kit and macOS only.
source

unsafe fn webView_validateUserInterfaceItem_defaultValidation( &self, web_view: Option<&WebView>, item: Option<&ProtocolObject<dyn NSValidatedUserInterfaceItem>>, default_validation: bool ) -> bool
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated
Available on crate feature WebView and crate feature objc2-app-kit and macOS only.
source

unsafe fn webView_shouldPerformAction_fromSender( &self, web_view: Option<&WebView>, action: Option<Sel>, sender: Option<&AnyObject> ) -> bool
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated
Available on crate feature WebView and crate feature objc2-app-kit and macOS only.
source

unsafe fn webView_dragDestinationActionMaskForDraggingInfo( &self, web_view: Option<&WebView>, dragging_info: Option<&ProtocolObject<dyn NSDraggingInfo>> ) -> NSUInteger
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated
Available on crate feature WebView and crate feature objc2-app-kit and macOS only.
source

unsafe fn webView_willPerformDragDestinationAction_forDraggingInfo( &self, web_view: Option<&WebView>, action: WebDragDestinationAction, dragging_info: Option<&ProtocolObject<dyn NSDraggingInfo>> )
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated
Available on crate feature WebView and crate feature objc2-app-kit and macOS only.
source

unsafe fn webView_dragSourceActionMaskForPoint( &self, web_view: Option<&WebView>, point: NSPoint ) -> NSUInteger
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated
Available on crate feature WebView and crate feature objc2-app-kit and macOS only.
source

unsafe fn webView_willPerformDragSourceAction_fromPoint_withPasteboard( &self, web_view: Option<&WebView>, action: WebDragSourceAction, point: NSPoint, pasteboard: Option<&NSPasteboard> )
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated
Available on crate feature WebView and crate feature objc2-app-kit and macOS only.
source

unsafe fn webView_printFrameView( &self, sender: Option<&WebView>, frame_view: Option<&WebFrameView> )
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated
Available on crate feature WebFrameView and crate feature WebView and crate feature objc2-app-kit and macOS only.
source

unsafe fn webViewHeaderHeight(&self, sender: Option<&WebView>) -> c_float
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated
Available on crate feature WebView and crate feature objc2-app-kit and macOS only.
source

unsafe fn webViewFooterHeight(&self, sender: Option<&WebView>) -> c_float
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated
Available on crate feature WebView and crate feature objc2-app-kit and macOS only.
source

unsafe fn webView_drawHeaderInRect( &self, sender: Option<&WebView>, rect: NSRect )
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated
Available on crate feature WebView and crate feature objc2-app-kit and macOS only.
source

unsafe fn webView_drawFooterInRect( &self, sender: Option<&WebView>, rect: NSRect )
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated
Available on crate feature WebView and crate feature objc2-app-kit and macOS only.
source

unsafe fn webView_runJavaScriptAlertPanelWithMessage( &self, sender: Option<&WebView>, message: Option<&NSString> )
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated
Available on crate feature WebView and crate feature objc2-app-kit and macOS only.
source

unsafe fn webView_runJavaScriptConfirmPanelWithMessage( &self, sender: Option<&WebView>, message: Option<&NSString> ) -> bool
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated
Available on crate feature WebView and crate feature objc2-app-kit and macOS only.
source

unsafe fn webView_runJavaScriptTextInputPanelWithPrompt_defaultText( &self, sender: Option<&WebView>, prompt: Option<&NSString>, default_text: Option<&NSString> ) -> Option<Retained<NSString>>
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated
Available on crate feature WebView and crate feature objc2-app-kit and macOS only.
source

unsafe fn webView_setContentRect(&self, sender: Option<&WebView>, frame: NSRect)
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated
Available on crate feature WebView and crate feature objc2-app-kit and macOS only.
source

unsafe fn webViewContentRect(&self, sender: Option<&WebView>) -> NSRect
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated
Available on crate feature WebView and crate feature objc2-app-kit and macOS only.

Trait Implementationsยง

sourceยง

impl ProtocolType for dyn WebUIDelegate

sourceยง

const NAME: &'static str = "WebUIDelegate"

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 WebUIDelegate
where T: ?Sized + Message + WebUIDelegate,

Implementations on Foreign Typesยง

sourceยง

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

Implementorsยง