Struct webview2_com::Microsoft::Web::WebView2::Win32::ICoreWebView2_9
source · [−]#[repr(transparent)]pub struct ICoreWebView2_9(_);
Implementations
sourceimpl ICoreWebView2_9
impl ICoreWebView2_9
pub unsafe fn Settings(&self) -> Result<ICoreWebView2Settings, Error>
pub unsafe fn Source(&self, uri: *mut PWSTR) -> Result<(), Error>
pub unsafe fn ContentLoading<'a, Param0>(
&self,
eventhandler: Param0,
token: *mut EventRegistrationToken
) -> Result<(), Error> where
Param0: IntoParam<'a, ICoreWebView2ContentLoadingEventHandler>,
pub unsafe fn RemoveContentLoading<'a, Param0>(
&self,
token: Param0
) -> Result<(), Error> where
Param0: IntoParam<'a, EventRegistrationToken>,
pub unsafe fn SourceChanged<'a, Param0>(
&self,
eventhandler: Param0,
token: *mut EventRegistrationToken
) -> Result<(), Error> where
Param0: IntoParam<'a, ICoreWebView2SourceChangedEventHandler>,
pub unsafe fn RemoveSourceChanged<'a, Param0>(
&self,
token: Param0
) -> Result<(), Error> where
Param0: IntoParam<'a, EventRegistrationToken>,
pub unsafe fn HistoryChanged<'a, Param0>(
&self,
eventhandler: Param0,
token: *mut EventRegistrationToken
) -> Result<(), Error> where
Param0: IntoParam<'a, ICoreWebView2HistoryChangedEventHandler>,
pub unsafe fn RemoveHistoryChanged<'a, Param0>(
&self,
token: Param0
) -> Result<(), Error> where
Param0: IntoParam<'a, EventRegistrationToken>,
pub unsafe fn ScriptDialogOpening<'a, Param0>(
&self,
eventhandler: Param0,
token: *mut EventRegistrationToken
) -> Result<(), Error> where
Param0: IntoParam<'a, ICoreWebView2ScriptDialogOpeningEventHandler>,
pub unsafe fn RemoveScriptDialogOpening<'a, Param0>(
&self,
token: Param0
) -> Result<(), Error> where
Param0: IntoParam<'a, EventRegistrationToken>,
pub unsafe fn PermissionRequested<'a, Param0>(
&self,
eventhandler: Param0,
token: *mut EventRegistrationToken
) -> Result<(), Error> where
Param0: IntoParam<'a, ICoreWebView2PermissionRequestedEventHandler>,
pub unsafe fn RemovePermissionRequested<'a, Param0>(
&self,
token: Param0
) -> Result<(), Error> where
Param0: IntoParam<'a, EventRegistrationToken>,
pub unsafe fn ProcessFailed<'a, Param0>(
&self,
eventhandler: Param0,
token: *mut EventRegistrationToken
) -> Result<(), Error> where
Param0: IntoParam<'a, ICoreWebView2ProcessFailedEventHandler>,
pub unsafe fn RemoveProcessFailed<'a, Param0>(
&self,
token: Param0
) -> Result<(), Error> where
Param0: IntoParam<'a, EventRegistrationToken>,
pub unsafe fn AddScriptToExecuteOnDocumentCreated<'a, Param0, Param1>(
&self,
javascript: Param0,
handler: Param1
) -> Result<(), Error> where
Param0: IntoParam<'a, PWSTR>,
Param1: IntoParam<'a, ICoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler>,
pub unsafe fn RemoveScriptToExecuteOnDocumentCreated<'a, Param0>(
&self,
id: Param0
) -> Result<(), Error> where
Param0: IntoParam<'a, PWSTR>,
pub unsafe fn ExecuteScript<'a, Param0, Param1>(
&self,
javascript: Param0,
handler: Param1
) -> Result<(), Error> where
Param0: IntoParam<'a, PWSTR>,
Param1: IntoParam<'a, ICoreWebView2ExecuteScriptCompletedHandler>,
pub unsafe fn CapturePreview<'a, Param1, Param2>(
&self,
imageformat: i32,
imagestream: Param1,
handler: Param2
) -> Result<(), Error> where
Param1: IntoParam<'a, IStream>,
Param2: IntoParam<'a, ICoreWebView2CapturePreviewCompletedHandler>,
pub unsafe fn Reload(&self) -> Result<(), Error>
pub unsafe fn PostWebMessageAsJson<'a, Param0>(
&self,
webmessageasjson: Param0
) -> Result<(), Error> where
Param0: IntoParam<'a, PWSTR>,
pub unsafe fn PostWebMessageAsString<'a, Param0>(
&self,
webmessageasstring: Param0
) -> Result<(), Error> where
Param0: IntoParam<'a, PWSTR>,
pub unsafe fn WebMessageReceived<'a, Param0>(
&self,
handler: Param0,
token: *mut EventRegistrationToken
) -> Result<(), Error> where
Param0: IntoParam<'a, ICoreWebView2WebMessageReceivedEventHandler>,
pub unsafe fn RemoveWebMessageReceived<'a, Param0>(
&self,
token: Param0
) -> Result<(), Error> where
Param0: IntoParam<'a, EventRegistrationToken>,
pub unsafe fn CallDevToolsProtocolMethod<'a, Param0, Param1, Param2>(
&self,
methodname: Param0,
parametersasjson: Param1,
handler: Param2
) -> Result<(), Error> where
Param0: IntoParam<'a, PWSTR>,
Param1: IntoParam<'a, PWSTR>,
Param2: IntoParam<'a, ICoreWebView2CallDevToolsProtocolMethodCompletedHandler>,
pub unsafe fn BrowserProcessId(&self, value: *mut u32) -> Result<(), Error>
pub unsafe fn CanGoBack(&self, cangoback: *mut BOOL) -> Result<(), Error>
pub unsafe fn CanGoForward(&self, cangoforward: *mut BOOL) -> Result<(), Error>
pub unsafe fn GoBack(&self) -> Result<(), Error>
pub unsafe fn GoForward(&self) -> Result<(), Error>
pub unsafe fn GetDevToolsProtocolEventReceiver<'a, Param0>(
&self,
eventname: Param0
) -> Result<ICoreWebView2DevToolsProtocolEventReceiver, Error> where
Param0: IntoParam<'a, PWSTR>,
pub unsafe fn Stop(&self) -> Result<(), Error>
pub unsafe fn NewWindowRequested<'a, Param0>(
&self,
eventhandler: Param0,
token: *mut EventRegistrationToken
) -> Result<(), Error> where
Param0: IntoParam<'a, ICoreWebView2NewWindowRequestedEventHandler>,
pub unsafe fn RemoveNewWindowRequested<'a, Param0>(
&self,
token: Param0
) -> Result<(), Error> where
Param0: IntoParam<'a, EventRegistrationToken>,
pub unsafe fn DocumentTitleChanged<'a, Param0>(
&self,
eventhandler: Param0,
token: *mut EventRegistrationToken
) -> Result<(), Error> where
Param0: IntoParam<'a, ICoreWebView2DocumentTitleChangedEventHandler>,
pub unsafe fn RemoveDocumentTitleChanged<'a, Param0>(
&self,
token: Param0
) -> Result<(), Error> where
Param0: IntoParam<'a, EventRegistrationToken>,
pub unsafe fn DocumentTitle(&self, title: *mut PWSTR) -> Result<(), Error>
pub unsafe fn AddHostObjectToScript<'a, Param0>(
&self,
name: Param0,
object: *mut VARIANT
) -> Result<(), Error> where
Param0: IntoParam<'a, PWSTR>,
pub unsafe fn RemoveHostObjectFromScript<'a, Param0>(
&self,
name: Param0
) -> Result<(), Error> where
Param0: IntoParam<'a, PWSTR>,
pub unsafe fn OpenDevToolsWindow(&self) -> Result<(), Error>
pub unsafe fn ContainsFullScreenElementChanged<'a, Param0>(
&self,
eventhandler: Param0,
token: *mut EventRegistrationToken
) -> Result<(), Error> where
Param0: IntoParam<'a, ICoreWebView2ContainsFullScreenElementChangedEventHandler>,
pub unsafe fn RemoveContainsFullScreenElementChanged<'a, Param0>(
&self,
token: Param0
) -> Result<(), Error> where
Param0: IntoParam<'a, EventRegistrationToken>,
pub unsafe fn ContainsFullScreenElement(
&self,
containsfullscreenelement: *mut BOOL
) -> Result<(), Error>
pub unsafe fn WebResourceRequested<'a, Param0>(
&self,
eventhandler: Param0,
token: *mut EventRegistrationToken
) -> Result<(), Error> where
Param0: IntoParam<'a, ICoreWebView2WebResourceRequestedEventHandler>,
pub unsafe fn RemoveWebResourceRequested<'a, Param0>(
&self,
token: Param0
) -> Result<(), Error> where
Param0: IntoParam<'a, EventRegistrationToken>,
pub unsafe fn AddWebResourceRequestedFilter<'a, Param0>(
&self,
uri: Param0,
resourcecontext: i32
) -> Result<(), Error> where
Param0: IntoParam<'a, PWSTR>,
pub unsafe fn RemoveWebResourceRequestedFilter<'a, Param0>(
&self,
uri: Param0,
resourcecontext: i32
) -> Result<(), Error> where
Param0: IntoParam<'a, PWSTR>,
pub unsafe fn WindowCloseRequested<'a, Param0>(
&self,
eventhandler: Param0,
token: *mut EventRegistrationToken
) -> Result<(), Error> where
Param0: IntoParam<'a, ICoreWebView2WindowCloseRequestedEventHandler>,
pub unsafe fn RemoveWindowCloseRequested<'a, Param0>(
&self,
token: Param0
) -> Result<(), Error> where
Param0: IntoParam<'a, EventRegistrationToken>,
pub unsafe fn WebResourceResponseReceived<'a, Param0>(
&self,
eventhandler: Param0,
token: *mut EventRegistrationToken
) -> Result<(), Error> where
Param0: IntoParam<'a, ICoreWebView2WebResourceResponseReceivedEventHandler>,
pub unsafe fn RemoveWebResourceResponseReceived<'a, Param0>(
&self,
token: Param0
) -> Result<(), Error> where
Param0: IntoParam<'a, EventRegistrationToken>,
pub unsafe fn DOMContentLoaded<'a, Param0>(
&self,
eventhandler: Param0,
token: *mut EventRegistrationToken
) -> Result<(), Error> where
Param0: IntoParam<'a, ICoreWebView2DOMContentLoadedEventHandler>,
pub unsafe fn RemoveDOMContentLoaded<'a, Param0>(
&self,
token: Param0
) -> Result<(), Error> where
Param0: IntoParam<'a, EventRegistrationToken>,
pub unsafe fn CookieManager(&self) -> Result<ICoreWebView2CookieManager, Error>
pub unsafe fn Environment(&self) -> Result<ICoreWebView2Environment, Error>
pub unsafe fn TrySuspend<'a, Param0>(
&self,
handler: Param0
) -> Result<(), Error> where
Param0: IntoParam<'a, ICoreWebView2TrySuspendCompletedHandler>,
pub unsafe fn Resume(&self) -> Result<(), Error>
pub unsafe fn IsSuspended(&self, issuspended: *mut BOOL) -> Result<(), Error>
pub unsafe fn SetVirtualHostNameToFolderMapping<'a, Param0, Param1>(
&self,
hostname: Param0,
folderpath: Param1,
accesskind: i32
) -> Result<(), Error> where
Param0: IntoParam<'a, PWSTR>,
Param1: IntoParam<'a, PWSTR>,
pub unsafe fn ClearVirtualHostNameToFolderMapping<'a, Param0>(
&self,
hostname: Param0
) -> Result<(), Error> where
Param0: IntoParam<'a, PWSTR>,
pub unsafe fn FrameCreated<'a, Param0>(
&self,
eventhandler: Param0,
token: *mut EventRegistrationToken
) -> Result<(), Error> where
Param0: IntoParam<'a, ICoreWebView2FrameCreatedEventHandler>,
pub unsafe fn RemoveFrameCreated<'a, Param0>(
&self,
token: Param0
) -> Result<(), Error> where
Param0: IntoParam<'a, EventRegistrationToken>,
pub unsafe fn DownloadStarting<'a, Param0>(
&self,
eventhandler: Param0,
token: *mut EventRegistrationToken
) -> Result<(), Error> where
Param0: IntoParam<'a, ICoreWebView2DownloadStartingEventHandler>,
pub unsafe fn RemoveDownloadStarting<'a, Param0>(
&self,
token: Param0
) -> Result<(), Error> where
Param0: IntoParam<'a, EventRegistrationToken>,
pub unsafe fn ClientCertificateRequested<'a, Param0>(
&self,
eventhandler: Param0,
token: *mut EventRegistrationToken
) -> Result<(), Error> where
Param0: IntoParam<'a, ICoreWebView2ClientCertificateRequestedEventHandler>,
pub unsafe fn RemoveClientCertificateRequested<'a, Param0>(
&self,
token: Param0
) -> Result<(), Error> where
Param0: IntoParam<'a, EventRegistrationToken>,
pub unsafe fn OpenTaskManagerWindow(&self) -> Result<(), Error>
pub unsafe fn PrintToPdf<'a, Param0, Param1, Param2>(
&self,
resultfilepath: Param0,
printsettings: Param1,
handler: Param2
) -> Result<(), Error> where
Param0: IntoParam<'a, PWSTR>,
Param1: IntoParam<'a, ICoreWebView2PrintSettings>,
Param2: IntoParam<'a, ICoreWebView2PrintToPdfCompletedHandler>,
pub unsafe fn IsMutedChanged<'a, Param0>(
&self,
eventhandler: Param0,
token: *mut EventRegistrationToken
) -> Result<(), Error> where
Param0: IntoParam<'a, ICoreWebView2IsMutedChangedEventHandler>,
pub unsafe fn RemoveIsMutedChanged<'a, Param0>(
&self,
token: Param0
) -> Result<(), Error> where
Param0: IntoParam<'a, EventRegistrationToken>,
pub unsafe fn IsMuted(&self, value: *mut BOOL) -> Result<(), Error>
pub unsafe fn SetIsMuted<'a, Param0>(&self, value: Param0) -> Result<(), Error> where
Param0: IntoParam<'a, BOOL>,
pub unsafe fn IsDocumentPlayingAudioChanged<'a, Param0>(
&self,
eventhandler: Param0,
token: *mut EventRegistrationToken
) -> Result<(), Error> where
Param0: IntoParam<'a, ICoreWebView2IsDocumentPlayingAudioChangedEventHandler>,
pub unsafe fn RemoveIsDocumentPlayingAudioChanged<'a, Param0>(
&self,
token: Param0
) -> Result<(), Error> where
Param0: IntoParam<'a, EventRegistrationToken>,
pub unsafe fn IsDocumentPlayingAudio(
&self,
value: *mut BOOL
) -> Result<(), Error>
pub unsafe fn IsDefaultDownloadDialogOpenChanged<'a, Param0>(
&self,
handler: Param0,
token: *mut EventRegistrationToken
) -> Result<(), Error> where
Param0: IntoParam<'a, ICoreWebView2IsDefaultDownloadDialogOpenChangedEventHandler>,
pub unsafe fn RemoveIsDefaultDownloadDialogOpenChanged<'a, Param0>(
&self,
token: Param0
) -> Result<(), Error> where
Param0: IntoParam<'a, EventRegistrationToken>,
pub unsafe fn IsDefaultDownloadDialogOpen(
&self,
value: *mut BOOL
) -> Result<(), Error>
pub unsafe fn OpenDefaultDownloadDialog(&self) -> Result<(), Error>
pub unsafe fn CloseDefaultDownloadDialog(&self) -> Result<(), Error>
pub unsafe fn DefaultDownloadDialogCornerAlignment(
&self,
value: *mut i32
) -> Result<(), Error>
pub unsafe fn SetDefaultDownloadDialogCornerAlignment(
&self,
value: i32
) -> Result<(), Error>
pub unsafe fn DefaultDownloadDialogMargin(
&self,
value: *mut POINT
) -> Result<(), Error>
pub unsafe fn SetDefaultDownloadDialogMargin<'a, Param0>(
&self,
value: Param0
) -> Result<(), Error> where
Param0: IntoParam<'a, POINT>,
Trait Implementations
sourceimpl Clone for ICoreWebView2_9
impl Clone for ICoreWebView2_9
sourcepub fn clone(&self) -> ICoreWebView2_9
pub fn clone(&self) -> ICoreWebView2_9
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ICoreWebView2_9
impl Debug for ICoreWebView2_9
sourceimpl From<&'_ ICoreWebView2_9> for ICoreWebView2_2
impl From<&'_ ICoreWebView2_9> for ICoreWebView2_2
sourcepub fn from(value: &ICoreWebView2_9) -> ICoreWebView2_2
pub fn from(value: &ICoreWebView2_9) -> ICoreWebView2_2
Performs the conversion.
sourceimpl From<&'_ ICoreWebView2_9> for ICoreWebView2_4
impl From<&'_ ICoreWebView2_9> for ICoreWebView2_4
sourcepub fn from(value: &ICoreWebView2_9) -> ICoreWebView2_4
pub fn from(value: &ICoreWebView2_9) -> ICoreWebView2_4
Performs the conversion.
sourceimpl From<&'_ ICoreWebView2_9> for ICoreWebView2_3
impl From<&'_ ICoreWebView2_9> for ICoreWebView2_3
sourcepub fn from(value: &ICoreWebView2_9) -> ICoreWebView2_3
pub fn from(value: &ICoreWebView2_9) -> ICoreWebView2_3
Performs the conversion.
sourceimpl From<&'_ ICoreWebView2_9> for ICoreWebView2
impl From<&'_ ICoreWebView2_9> for ICoreWebView2
sourcepub fn from(value: &ICoreWebView2_9) -> ICoreWebView2
pub fn from(value: &ICoreWebView2_9) -> ICoreWebView2
Performs the conversion.
sourceimpl From<&'_ ICoreWebView2_9> for ICoreWebView2_8
impl From<&'_ ICoreWebView2_9> for ICoreWebView2_8
sourcepub fn from(value: &ICoreWebView2_9) -> ICoreWebView2_8
pub fn from(value: &ICoreWebView2_9) -> ICoreWebView2_8
Performs the conversion.
sourceimpl From<&'_ ICoreWebView2_9> for ICoreWebView2_6
impl From<&'_ ICoreWebView2_9> for ICoreWebView2_6
sourcepub fn from(value: &ICoreWebView2_9) -> ICoreWebView2_6
pub fn from(value: &ICoreWebView2_9) -> ICoreWebView2_6
Performs the conversion.
sourceimpl From<&'_ ICoreWebView2_9> for ICoreWebView2_5
impl From<&'_ ICoreWebView2_9> for ICoreWebView2_5
sourcepub fn from(value: &ICoreWebView2_9) -> ICoreWebView2_5
pub fn from(value: &ICoreWebView2_9) -> ICoreWebView2_5
Performs the conversion.
sourceimpl From<&'_ ICoreWebView2_9> for ICoreWebView2_7
impl From<&'_ ICoreWebView2_9> for ICoreWebView2_7
sourcepub fn from(value: &ICoreWebView2_9) -> ICoreWebView2_7
pub fn from(value: &ICoreWebView2_9) -> ICoreWebView2_7
Performs the conversion.
sourceimpl From<ICoreWebView2_9> for ICoreWebView2_6
impl From<ICoreWebView2_9> for ICoreWebView2_6
sourcepub fn from(value: ICoreWebView2_9) -> ICoreWebView2_6
pub fn from(value: ICoreWebView2_9) -> ICoreWebView2_6
Performs the conversion.
sourceimpl From<ICoreWebView2_9> for ICoreWebView2_3
impl From<ICoreWebView2_9> for ICoreWebView2_3
sourcepub fn from(value: ICoreWebView2_9) -> ICoreWebView2_3
pub fn from(value: ICoreWebView2_9) -> ICoreWebView2_3
Performs the conversion.
sourceimpl From<ICoreWebView2_9> for ICoreWebView2_2
impl From<ICoreWebView2_9> for ICoreWebView2_2
sourcepub fn from(value: ICoreWebView2_9) -> ICoreWebView2_2
pub fn from(value: ICoreWebView2_9) -> ICoreWebView2_2
Performs the conversion.
sourceimpl From<ICoreWebView2_9> for ICoreWebView2_7
impl From<ICoreWebView2_9> for ICoreWebView2_7
sourcepub fn from(value: ICoreWebView2_9) -> ICoreWebView2_7
pub fn from(value: ICoreWebView2_9) -> ICoreWebView2_7
Performs the conversion.
sourceimpl From<ICoreWebView2_9> for ICoreWebView2_5
impl From<ICoreWebView2_9> for ICoreWebView2_5
sourcepub fn from(value: ICoreWebView2_9) -> ICoreWebView2_5
pub fn from(value: ICoreWebView2_9) -> ICoreWebView2_5
Performs the conversion.
sourceimpl From<ICoreWebView2_9> for ICoreWebView2
impl From<ICoreWebView2_9> for ICoreWebView2
sourcepub fn from(value: ICoreWebView2_9) -> ICoreWebView2
pub fn from(value: ICoreWebView2_9) -> ICoreWebView2
Performs the conversion.
sourceimpl From<ICoreWebView2_9> for ICoreWebView2_4
impl From<ICoreWebView2_9> for ICoreWebView2_4
sourcepub fn from(value: ICoreWebView2_9) -> ICoreWebView2_4
pub fn from(value: ICoreWebView2_9) -> ICoreWebView2_4
Performs the conversion.
sourceimpl From<ICoreWebView2_9> for ICoreWebView2_8
impl From<ICoreWebView2_9> for ICoreWebView2_8
sourcepub fn from(value: ICoreWebView2_9) -> ICoreWebView2_8
pub fn from(value: ICoreWebView2_9) -> ICoreWebView2_8
Performs the conversion.
sourceimpl Interface for ICoreWebView2_9
impl Interface for ICoreWebView2_9
sourceimpl PartialEq<ICoreWebView2_9> for ICoreWebView2_9
impl PartialEq<ICoreWebView2_9> for ICoreWebView2_9
impl Eq for ICoreWebView2_9
Auto Trait Implementations
impl RefUnwindSafe for ICoreWebView2_9
impl !Send for ICoreWebView2_9
impl !Sync for ICoreWebView2_9
impl Unpin for ICoreWebView2_9
impl UnwindSafe for ICoreWebView2_9
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> DefaultType for T where
T: Interface + Clone + PartialEq<T>,
impl<T> DefaultType for T where
T: Interface + Clone + PartialEq<T>,
type DefaultType = Option<T>
sourcepub unsafe fn from_default(
value: &<T as DefaultType>::DefaultType
) -> Result<T, Error>
pub unsafe fn from_default(
value: &<T as DefaultType>::DefaultType
) -> Result<T, Error>
Safety
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more