pub unsafe trait NSObjectWebPlugInContainer:
ClassType
+ Sized
+ Sealed {
// Provided methods
unsafe fn webPlugInContainerLoadRequest_inFrame(
&self,
request: Option<&NSURLRequest>,
target: Option<&NSString>,
) { ... }
unsafe fn webPlugInContainerShowStatus(&self, message: Option<&NSString>) { ... }
unsafe fn webPlugInContainerSelectionColor(
&self,
) -> Option<Retained<NSColor>> { ... }
unsafe fn webFrame(&self) -> Option<Retained<WebFrame>> { ... }
}
WebPluginContainer
only.Expand description
Category “WebPlugInContainer” on NSObject
.
This informal protocol enables a plug-in to request that its containing application
perform certain operations.
Provided Methods§
Sourceunsafe fn webPlugInContainerLoadRequest_inFrame(
&self,
request: Option<&NSURLRequest>,
target: Option<&NSString>,
)
unsafe fn webPlugInContainerLoadRequest_inFrame( &self, request: Option<&NSURLRequest>, target: Option<&NSString>, )
Tell the application to show a URL in a target frame
Parameter request
: The request to be loaded.
Parameter target
: The target frame. If the frame with the specified target is not
found, a new window is opened and the main frame of the new window is named
with the specified target. If nil is specified, the frame that contains
the applet is targeted.
Sourceunsafe fn webPlugInContainerShowStatus(&self, message: Option<&NSString>)
unsafe fn webPlugInContainerShowStatus(&self, message: Option<&NSString>)
Tell the application to show the specified status message.
Parameter message
: The string to be shown.
Sourceunsafe fn webPlugInContainerSelectionColor(&self) -> Option<Retained<NSColor>>
Available on crate feature objc2-app-kit
and macOS only.
unsafe fn webPlugInContainerSelectionColor(&self) -> Option<Retained<NSColor>>
objc2-app-kit
and macOS only.The color that should be used for any special drawing when plug-in is selected.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.