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ยง
unsafe fn webView_createWebViewWithRequest( &self, sender: Option<&WebView>, request: Option<&NSURLRequest>, mtm: MainThreadMarker ) -> Option<Retained<WebView>>
๐Deprecated
Available on crate feature
WebView
and crate feature objc2-app-kit
and macOS only.unsafe fn webViewShow(&self, sender: Option<&WebView>)
๐Deprecated
Available on crate feature
WebView
and crate feature objc2-app-kit
and macOS only.unsafe fn webView_createWebViewModalDialogWithRequest( &self, sender: Option<&WebView>, request: Option<&NSURLRequest>, mtm: MainThreadMarker ) -> Option<Retained<WebView>>
๐Deprecated
Available on crate feature
WebView
and crate feature objc2-app-kit
and macOS only.unsafe fn webViewRunModal(&self, sender: Option<&WebView>)
๐Deprecated
Available on crate feature
WebView
and crate feature objc2-app-kit
and macOS only.unsafe fn webViewClose(&self, sender: Option<&WebView>)
๐Deprecated
Available on crate feature
WebView
and crate feature objc2-app-kit
and macOS only.unsafe fn webViewFocus(&self, sender: Option<&WebView>)
๐Deprecated
Available on crate feature
WebView
and crate feature objc2-app-kit
and macOS only.unsafe fn webViewUnfocus(&self, sender: Option<&WebView>)
๐Deprecated
Available on crate feature
WebView
and crate feature objc2-app-kit
and macOS only.unsafe fn webViewFirstResponder( &self, sender: Option<&WebView>, mtm: MainThreadMarker ) -> Option<Retained<NSResponder>>
๐Deprecated
Available on crate feature
WebView
and crate feature objc2-app-kit
and macOS only.unsafe fn webView_makeFirstResponder( &self, sender: Option<&WebView>, responder: Option<&NSResponder> )
๐Deprecated
Available on crate feature
WebView
and crate feature objc2-app-kit
and macOS only.unsafe fn webView_setStatusText( &self, sender: Option<&WebView>, text: Option<&NSString> )
๐Deprecated
Available on crate feature
WebView
and crate feature objc2-app-kit
and macOS only.unsafe fn webViewStatusText( &self, sender: Option<&WebView> ) -> Option<Retained<NSString>>
๐Deprecated
Available on crate feature
WebView
and crate feature objc2-app-kit
and macOS only.unsafe fn webViewAreToolbarsVisible(&self, sender: Option<&WebView>) -> bool
๐Deprecated
Available on crate feature
WebView
and crate feature objc2-app-kit
and macOS only.unsafe fn webView_setToolbarsVisible( &self, sender: Option<&WebView>, visible: bool )
๐Deprecated
Available on crate feature
WebView
and crate feature objc2-app-kit
and macOS only.unsafe fn webViewIsStatusBarVisible(&self, sender: Option<&WebView>) -> bool
๐Deprecated
Available on crate feature
WebView
and crate feature objc2-app-kit
and macOS only.unsafe fn webView_setStatusBarVisible( &self, sender: Option<&WebView>, visible: bool )
๐Deprecated
Available on crate feature
WebView
and crate feature objc2-app-kit
and macOS only.unsafe fn webViewIsResizable(&self, sender: Option<&WebView>) -> bool
๐Deprecated
Available on crate feature
WebView
and crate feature objc2-app-kit
and macOS only.unsafe fn webView_setResizable(&self, sender: Option<&WebView>, resizable: bool)
๐Deprecated
Available on crate feature
WebView
and crate feature objc2-app-kit
and macOS only.unsafe fn webView_setFrame(&self, sender: Option<&WebView>, frame: NSRect)
๐Deprecated
Available on crate feature
WebView
and crate feature objc2-app-kit
and macOS only.unsafe fn webViewFrame(&self, sender: Option<&WebView>) -> NSRect
๐Deprecated
Available on crate feature
WebView
and crate feature objc2-app-kit
and macOS only.unsafe fn webView_runJavaScriptAlertPanelWithMessage_initiatedByFrame( &self, sender: Option<&WebView>, message: Option<&NSString>, frame: Option<&WebFrame> )
๐Deprecated
Available on crate feature
WebFrame
and crate feature WebView
and crate feature objc2-app-kit
and macOS only.unsafe fn webView_runJavaScriptConfirmPanelWithMessage_initiatedByFrame( &self, sender: Option<&WebView>, message: Option<&NSString>, frame: Option<&WebFrame> ) -> bool
๐Deprecated
Available on crate feature
WebFrame
and crate feature WebView
and crate feature objc2-app-kit
and macOS only.unsafe fn webView_runJavaScriptTextInputPanelWithPrompt_defaultText_initiatedByFrame( &self, sender: Option<&WebView>, prompt: Option<&NSString>, default_text: Option<&NSString>, frame: Option<&WebFrame> ) -> Option<Retained<NSString>>
๐Deprecated
Available on crate feature
WebFrame
and crate feature WebView
and crate feature objc2-app-kit
and macOS only.unsafe fn webView_runBeforeUnloadConfirmPanelWithMessage_initiatedByFrame( &self, sender: Option<&WebView>, message: Option<&NSString>, frame: Option<&WebFrame> ) -> bool
๐Deprecated
Available on crate feature
WebFrame
and crate feature WebView
and crate feature objc2-app-kit
and macOS only.unsafe fn webView_runOpenPanelForFileButtonWithResultListener( &self, sender: Option<&WebView>, result_listener: Option<&ProtocolObject<dyn WebOpenPanelResultListener>> )
๐Deprecated
Available on crate feature
WebView
and crate feature objc2-app-kit
and macOS only.unsafe fn webView_runOpenPanelForFileButtonWithResultListener_allowMultipleFiles( &self, sender: Option<&WebView>, result_listener: Option<&ProtocolObject<dyn WebOpenPanelResultListener>>, allow_multiple_files: bool )
๐Deprecated
Available on crate feature
WebView
and crate feature objc2-app-kit
and macOS only.unsafe fn webView_mouseDidMoveOverElement_modifierFlags( &self, sender: Option<&WebView>, element_information: Option<&NSDictionary>, modifier_flags: NSUInteger )
๐Deprecated
Available on crate feature
WebView
and crate feature objc2-app-kit
and macOS only.unsafe fn webView_contextMenuItemsForElement_defaultMenuItems( &self, sender: Option<&WebView>, element: Option<&NSDictionary>, default_menu_items: Option<&NSArray> ) -> Option<Retained<NSArray>>
๐Deprecated
Available on crate feature
WebView
and crate feature objc2-app-kit
and macOS only.unsafe fn webView_validateUserInterfaceItem_defaultValidation( &self, web_view: Option<&WebView>, item: Option<&ProtocolObject<dyn NSValidatedUserInterfaceItem>>, default_validation: bool ) -> bool
๐Deprecated
Available on crate feature
WebView
and crate feature objc2-app-kit
and macOS only.unsafe fn webView_shouldPerformAction_fromSender( &self, web_view: Option<&WebView>, action: Option<Sel>, sender: Option<&AnyObject> ) -> bool
๐Deprecated
Available on crate feature
WebView
and crate feature objc2-app-kit
and macOS only.unsafe fn webView_dragDestinationActionMaskForDraggingInfo( &self, web_view: Option<&WebView>, dragging_info: Option<&ProtocolObject<dyn NSDraggingInfo>> ) -> NSUInteger
๐Deprecated
Available on crate feature
WebView
and crate feature objc2-app-kit
and macOS only.unsafe fn webView_willPerformDragDestinationAction_forDraggingInfo( &self, web_view: Option<&WebView>, action: WebDragDestinationAction, dragging_info: Option<&ProtocolObject<dyn NSDraggingInfo>> )
๐Deprecated
Available on crate feature
WebView
and crate feature objc2-app-kit
and macOS only.unsafe fn webView_dragSourceActionMaskForPoint( &self, web_view: Option<&WebView>, point: NSPoint ) -> NSUInteger
๐Deprecated
Available on crate feature
WebView
and crate feature objc2-app-kit
and macOS only.unsafe fn webView_willPerformDragSourceAction_fromPoint_withPasteboard( &self, web_view: Option<&WebView>, action: WebDragSourceAction, point: NSPoint, pasteboard: Option<&NSPasteboard> )
๐Deprecated
Available on crate feature
WebView
and crate feature objc2-app-kit
and macOS only.unsafe fn webView_printFrameView( &self, sender: Option<&WebView>, frame_view: Option<&WebFrameView> )
๐Deprecated
Available on crate feature
WebFrameView
and crate feature WebView
and crate feature objc2-app-kit
and macOS only.unsafe fn webViewHeaderHeight(&self, sender: Option<&WebView>) -> c_float
๐Deprecated
Available on crate feature
WebView
and crate feature objc2-app-kit
and macOS only.๐Deprecated
Available on crate feature
WebView
and crate feature objc2-app-kit
and macOS only.unsafe fn webView_drawHeaderInRect( &self, sender: Option<&WebView>, rect: NSRect )
๐Deprecated
Available on crate feature
WebView
and crate feature objc2-app-kit
and macOS only.๐Deprecated
Available on crate feature
WebView
and crate feature objc2-app-kit
and macOS only.unsafe fn webView_runJavaScriptAlertPanelWithMessage( &self, sender: Option<&WebView>, message: Option<&NSString> )
๐Deprecated
Available on crate feature
WebView
and crate feature objc2-app-kit
and macOS only.unsafe fn webView_runJavaScriptConfirmPanelWithMessage( &self, sender: Option<&WebView>, message: Option<&NSString> ) -> bool
๐Deprecated
Available on crate feature
WebView
and crate feature objc2-app-kit
and macOS only.unsafe fn webView_runJavaScriptTextInputPanelWithPrompt_defaultText( &self, sender: Option<&WebView>, prompt: Option<&NSString>, default_text: Option<&NSString> ) -> Option<Retained<NSString>>
๐Deprecated
Available on crate feature
WebView
and crate feature objc2-app-kit
and macOS only.unsafe fn webView_setContentRect(&self, sender: Option<&WebView>, frame: NSRect)
๐Deprecated
Available on crate feature
WebView
and crate feature objc2-app-kit
and macOS only.unsafe fn webViewContentRect(&self, sender: Option<&WebView>) -> NSRect
๐Deprecated
Available on crate feature
WebView
and crate feature objc2-app-kit
and macOS only.