#[repr(transparent)]
pub struct ICoreWebView2_5(_);

Implementations§

source§

impl ICoreWebView2_5

source

pub unsafe fn Settings(&self) -> Result<ICoreWebView2Settings, Error>

source

pub unsafe fn Source(&self, uri: *mut PWSTR) -> Result<(), Error>

source

pub unsafe fn Navigate<P0>(&self, uri: P0) -> Result<(), Error>where P0: IntoParam<PCWSTR, <PCWSTR as TypeKind>::TypeKind>,

source

pub unsafe fn NavigateToString<P0>(&self, htmlcontent: P0) -> Result<(), Error>where P0: IntoParam<PCWSTR, <PCWSTR as TypeKind>::TypeKind>,

source

pub unsafe fn add_NavigationStarting<P0>( &self, eventhandler: P0, token: *mut EventRegistrationToken ) -> Result<(), Error>where P0: IntoParam<ICoreWebView2NavigationStartingEventHandler, <ICoreWebView2NavigationStartingEventHandler as TypeKind>::TypeKind>,

source

pub unsafe fn remove_NavigationStarting( &self, token: EventRegistrationToken ) -> Result<(), Error>

source

pub unsafe fn add_ContentLoading<P0>( &self, eventhandler: P0, token: *mut EventRegistrationToken ) -> Result<(), Error>where P0: IntoParam<ICoreWebView2ContentLoadingEventHandler, <ICoreWebView2ContentLoadingEventHandler as TypeKind>::TypeKind>,

source

pub unsafe fn remove_ContentLoading( &self, token: EventRegistrationToken ) -> Result<(), Error>

source

pub unsafe fn add_SourceChanged<P0>( &self, eventhandler: P0, token: *mut EventRegistrationToken ) -> Result<(), Error>where P0: IntoParam<ICoreWebView2SourceChangedEventHandler, <ICoreWebView2SourceChangedEventHandler as TypeKind>::TypeKind>,

source

pub unsafe fn remove_SourceChanged( &self, token: EventRegistrationToken ) -> Result<(), Error>

source

pub unsafe fn add_HistoryChanged<P0>( &self, eventhandler: P0, token: *mut EventRegistrationToken ) -> Result<(), Error>where P0: IntoParam<ICoreWebView2HistoryChangedEventHandler, <ICoreWebView2HistoryChangedEventHandler as TypeKind>::TypeKind>,

source

pub unsafe fn remove_HistoryChanged( &self, token: EventRegistrationToken ) -> Result<(), Error>

source

pub unsafe fn add_NavigationCompleted<P0>( &self, eventhandler: P0, token: *mut EventRegistrationToken ) -> Result<(), Error>where P0: IntoParam<ICoreWebView2NavigationCompletedEventHandler, <ICoreWebView2NavigationCompletedEventHandler as TypeKind>::TypeKind>,

source

pub unsafe fn remove_NavigationCompleted( &self, token: EventRegistrationToken ) -> Result<(), Error>

source

pub unsafe fn add_FrameNavigationStarting<P0>( &self, eventhandler: P0, token: *mut EventRegistrationToken ) -> Result<(), Error>where P0: IntoParam<ICoreWebView2NavigationStartingEventHandler, <ICoreWebView2NavigationStartingEventHandler as TypeKind>::TypeKind>,

source

pub unsafe fn remove_FrameNavigationStarting( &self, token: EventRegistrationToken ) -> Result<(), Error>

source

pub unsafe fn add_FrameNavigationCompleted<P0>( &self, eventhandler: P0, token: *mut EventRegistrationToken ) -> Result<(), Error>where P0: IntoParam<ICoreWebView2NavigationCompletedEventHandler, <ICoreWebView2NavigationCompletedEventHandler as TypeKind>::TypeKind>,

source

pub unsafe fn remove_FrameNavigationCompleted( &self, token: EventRegistrationToken ) -> Result<(), Error>

source

pub unsafe fn add_ScriptDialogOpening<P0>( &self, eventhandler: P0, token: *mut EventRegistrationToken ) -> Result<(), Error>where P0: IntoParam<ICoreWebView2ScriptDialogOpeningEventHandler, <ICoreWebView2ScriptDialogOpeningEventHandler as TypeKind>::TypeKind>,

source

pub unsafe fn remove_ScriptDialogOpening( &self, token: EventRegistrationToken ) -> Result<(), Error>

source

pub unsafe fn add_PermissionRequested<P0>( &self, eventhandler: P0, token: *mut EventRegistrationToken ) -> Result<(), Error>where P0: IntoParam<ICoreWebView2PermissionRequestedEventHandler, <ICoreWebView2PermissionRequestedEventHandler as TypeKind>::TypeKind>,

source

pub unsafe fn remove_PermissionRequested( &self, token: EventRegistrationToken ) -> Result<(), Error>

source

pub unsafe fn add_ProcessFailed<P0>( &self, eventhandler: P0, token: *mut EventRegistrationToken ) -> Result<(), Error>where P0: IntoParam<ICoreWebView2ProcessFailedEventHandler, <ICoreWebView2ProcessFailedEventHandler as TypeKind>::TypeKind>,

source

pub unsafe fn remove_ProcessFailed( &self, token: EventRegistrationToken ) -> Result<(), Error>

source

pub unsafe fn AddScriptToExecuteOnDocumentCreated<P0, P1>( &self, javascript: P0, handler: P1 ) -> Result<(), Error>where P0: IntoParam<PCWSTR, <PCWSTR as TypeKind>::TypeKind>, P1: IntoParam<ICoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler, <ICoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler as TypeKind>::TypeKind>,

source

pub unsafe fn RemoveScriptToExecuteOnDocumentCreated<P0>( &self, id: P0 ) -> Result<(), Error>where P0: IntoParam<PCWSTR, <PCWSTR as TypeKind>::TypeKind>,

source

pub unsafe fn ExecuteScript<P0, P1>( &self, javascript: P0, handler: P1 ) -> Result<(), Error>where P0: IntoParam<PCWSTR, <PCWSTR as TypeKind>::TypeKind>, P1: IntoParam<ICoreWebView2ExecuteScriptCompletedHandler, <ICoreWebView2ExecuteScriptCompletedHandler as TypeKind>::TypeKind>,

source

pub unsafe fn CapturePreview<P0, P1>( &self, imageformat: COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT, imagestream: P0, handler: P1 ) -> Result<(), Error>where P0: IntoParam<IStream, <IStream as TypeKind>::TypeKind>, P1: IntoParam<ICoreWebView2CapturePreviewCompletedHandler, <ICoreWebView2CapturePreviewCompletedHandler as TypeKind>::TypeKind>,

source

pub unsafe fn Reload(&self) -> Result<(), Error>

source

pub unsafe fn PostWebMessageAsJson<P0>( &self, webmessageasjson: P0 ) -> Result<(), Error>where P0: IntoParam<PCWSTR, <PCWSTR as TypeKind>::TypeKind>,

source

pub unsafe fn PostWebMessageAsString<P0>( &self, webmessageasstring: P0 ) -> Result<(), Error>where P0: IntoParam<PCWSTR, <PCWSTR as TypeKind>::TypeKind>,

source

pub unsafe fn add_WebMessageReceived<P0>( &self, handler: P0, token: *mut EventRegistrationToken ) -> Result<(), Error>where P0: IntoParam<ICoreWebView2WebMessageReceivedEventHandler, <ICoreWebView2WebMessageReceivedEventHandler as TypeKind>::TypeKind>,

source

pub unsafe fn remove_WebMessageReceived( &self, token: EventRegistrationToken ) -> Result<(), Error>

source

pub unsafe fn CallDevToolsProtocolMethod<P0, P1, P2>( &self, methodname: P0, parametersasjson: P1, handler: P2 ) -> Result<(), Error>where P0: IntoParam<PCWSTR, <PCWSTR as TypeKind>::TypeKind>, P1: IntoParam<PCWSTR, <PCWSTR as TypeKind>::TypeKind>, P2: IntoParam<ICoreWebView2CallDevToolsProtocolMethodCompletedHandler, <ICoreWebView2CallDevToolsProtocolMethodCompletedHandler as TypeKind>::TypeKind>,

source

pub unsafe fn BrowserProcessId(&self, value: *mut u32) -> Result<(), Error>

source

pub unsafe fn CanGoBack(&self, cangoback: *mut BOOL) -> Result<(), Error>

source

pub unsafe fn CanGoForward(&self, cangoforward: *mut BOOL) -> Result<(), Error>

source

pub unsafe fn GoBack(&self) -> Result<(), Error>

source

pub unsafe fn GoForward(&self) -> Result<(), Error>

source

pub unsafe fn GetDevToolsProtocolEventReceiver<P0>( &self, eventname: P0 ) -> Result<ICoreWebView2DevToolsProtocolEventReceiver, Error>where P0: IntoParam<PCWSTR, <PCWSTR as TypeKind>::TypeKind>,

source

pub unsafe fn Stop(&self) -> Result<(), Error>

source

pub unsafe fn add_NewWindowRequested<P0>( &self, eventhandler: P0, token: *mut EventRegistrationToken ) -> Result<(), Error>where P0: IntoParam<ICoreWebView2NewWindowRequestedEventHandler, <ICoreWebView2NewWindowRequestedEventHandler as TypeKind>::TypeKind>,

source

pub unsafe fn remove_NewWindowRequested( &self, token: EventRegistrationToken ) -> Result<(), Error>

source

pub unsafe fn add_DocumentTitleChanged<P0>( &self, eventhandler: P0, token: *mut EventRegistrationToken ) -> Result<(), Error>where P0: IntoParam<ICoreWebView2DocumentTitleChangedEventHandler, <ICoreWebView2DocumentTitleChangedEventHandler as TypeKind>::TypeKind>,

source

pub unsafe fn remove_DocumentTitleChanged( &self, token: EventRegistrationToken ) -> Result<(), Error>

source

pub unsafe fn DocumentTitle(&self, title: *mut PWSTR) -> Result<(), Error>

source

pub unsafe fn AddHostObjectToScript<P0>( &self, name: P0, object: *mut VARIANT ) -> Result<(), Error>where P0: IntoParam<PCWSTR, <PCWSTR as TypeKind>::TypeKind>,

source

pub unsafe fn RemoveHostObjectFromScript<P0>( &self, name: P0 ) -> Result<(), Error>where P0: IntoParam<PCWSTR, <PCWSTR as TypeKind>::TypeKind>,

source

pub unsafe fn OpenDevToolsWindow(&self) -> Result<(), Error>

source

pub unsafe fn add_ContainsFullScreenElementChanged<P0>( &self, eventhandler: P0, token: *mut EventRegistrationToken ) -> Result<(), Error>where P0: IntoParam<ICoreWebView2ContainsFullScreenElementChangedEventHandler, <ICoreWebView2ContainsFullScreenElementChangedEventHandler as TypeKind>::TypeKind>,

source

pub unsafe fn remove_ContainsFullScreenElementChanged( &self, token: EventRegistrationToken ) -> Result<(), Error>

source

pub unsafe fn ContainsFullScreenElement( &self, containsfullscreenelement: *mut BOOL ) -> Result<(), Error>

source

pub unsafe fn add_WebResourceRequested<P0>( &self, eventhandler: P0, token: *mut EventRegistrationToken ) -> Result<(), Error>where P0: IntoParam<ICoreWebView2WebResourceRequestedEventHandler, <ICoreWebView2WebResourceRequestedEventHandler as TypeKind>::TypeKind>,

source

pub unsafe fn remove_WebResourceRequested( &self, token: EventRegistrationToken ) -> Result<(), Error>

source

pub unsafe fn AddWebResourceRequestedFilter<P0>( &self, uri: P0, resourcecontext: COREWEBVIEW2_WEB_RESOURCE_CONTEXT ) -> Result<(), Error>where P0: IntoParam<PCWSTR, <PCWSTR as TypeKind>::TypeKind>,

source

pub unsafe fn RemoveWebResourceRequestedFilter<P0>( &self, uri: P0, resourcecontext: COREWEBVIEW2_WEB_RESOURCE_CONTEXT ) -> Result<(), Error>where P0: IntoParam<PCWSTR, <PCWSTR as TypeKind>::TypeKind>,

source

pub unsafe fn add_WindowCloseRequested<P0>( &self, eventhandler: P0, token: *mut EventRegistrationToken ) -> Result<(), Error>where P0: IntoParam<ICoreWebView2WindowCloseRequestedEventHandler, <ICoreWebView2WindowCloseRequestedEventHandler as TypeKind>::TypeKind>,

source

pub unsafe fn remove_WindowCloseRequested( &self, token: EventRegistrationToken ) -> Result<(), Error>

source

pub unsafe fn add_WebResourceResponseReceived<P0>( &self, eventhandler: P0, token: *mut EventRegistrationToken ) -> Result<(), Error>where P0: IntoParam<ICoreWebView2WebResourceResponseReceivedEventHandler, <ICoreWebView2WebResourceResponseReceivedEventHandler as TypeKind>::TypeKind>,

source

pub unsafe fn remove_WebResourceResponseReceived( &self, token: EventRegistrationToken ) -> Result<(), Error>

source

pub unsafe fn NavigateWithWebResourceRequest<P0>( &self, request: P0 ) -> Result<(), Error>where P0: IntoParam<ICoreWebView2WebResourceRequest, <ICoreWebView2WebResourceRequest as TypeKind>::TypeKind>,

source

pub unsafe fn add_DOMContentLoaded<P0>( &self, eventhandler: P0, token: *mut EventRegistrationToken ) -> Result<(), Error>where P0: IntoParam<ICoreWebView2DOMContentLoadedEventHandler, <ICoreWebView2DOMContentLoadedEventHandler as TypeKind>::TypeKind>,

source

pub unsafe fn remove_DOMContentLoaded( &self, token: EventRegistrationToken ) -> Result<(), Error>

source

pub unsafe fn CookieManager(&self) -> Result<ICoreWebView2CookieManager, Error>

source

pub unsafe fn Environment(&self) -> Result<ICoreWebView2Environment, Error>

source

pub unsafe fn TrySuspend<P0>(&self, handler: P0) -> Result<(), Error>where P0: IntoParam<ICoreWebView2TrySuspendCompletedHandler, <ICoreWebView2TrySuspendCompletedHandler as TypeKind>::TypeKind>,

source

pub unsafe fn Resume(&self) -> Result<(), Error>

source

pub unsafe fn IsSuspended(&self, issuspended: *mut BOOL) -> Result<(), Error>

source

pub unsafe fn SetVirtualHostNameToFolderMapping<P0, P1>( &self, hostname: P0, folderpath: P1, accesskind: COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND ) -> Result<(), Error>where P0: IntoParam<PCWSTR, <PCWSTR as TypeKind>::TypeKind>, P1: IntoParam<PCWSTR, <PCWSTR as TypeKind>::TypeKind>,

source

pub unsafe fn ClearVirtualHostNameToFolderMapping<P0>( &self, hostname: P0 ) -> Result<(), Error>where P0: IntoParam<PCWSTR, <PCWSTR as TypeKind>::TypeKind>,

source

pub unsafe fn add_FrameCreated<P0>( &self, eventhandler: P0, token: *mut EventRegistrationToken ) -> Result<(), Error>where P0: IntoParam<ICoreWebView2FrameCreatedEventHandler, <ICoreWebView2FrameCreatedEventHandler as TypeKind>::TypeKind>,

source

pub unsafe fn remove_FrameCreated( &self, token: EventRegistrationToken ) -> Result<(), Error>

source

pub unsafe fn add_DownloadStarting<P0>( &self, eventhandler: P0, token: *mut EventRegistrationToken ) -> Result<(), Error>where P0: IntoParam<ICoreWebView2DownloadStartingEventHandler, <ICoreWebView2DownloadStartingEventHandler as TypeKind>::TypeKind>,

source

pub unsafe fn remove_DownloadStarting( &self, token: EventRegistrationToken ) -> Result<(), Error>

source

pub unsafe fn add_ClientCertificateRequested<P0>( &self, eventhandler: P0, token: *mut EventRegistrationToken ) -> Result<(), Error>where P0: IntoParam<ICoreWebView2ClientCertificateRequestedEventHandler, <ICoreWebView2ClientCertificateRequestedEventHandler as TypeKind>::TypeKind>,

source

pub unsafe fn remove_ClientCertificateRequested( &self, token: EventRegistrationToken ) -> Result<(), Error>

Trait Implementations§

source§

impl Clone for ICoreWebView2_5

source§

fn clone(&self) -> ICoreWebView2_5

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl ComInterface for ICoreWebView2_5

source§

const IID: GUID = ::windows::core::GUID::from_u128(253690791656400720084878150112000540675)

A unique identifier representing this interface.
source§

fn cast<T>(&self) -> Result<T, Error>where T: ComInterface,

Attempts to cast the current interface to another interface using QueryInterface. Read more
source§

fn downgrade(&self) -> Result<Weak<Self>, Error>

Attempts to create a Weak reference to this object.
source§

impl Debug for ICoreWebView2_5

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Interface for ICoreWebView2_5

§

type Vtable = ICoreWebView2_5_Vtbl

source§

fn as_raw(&self) -> *mut c_void

Returns the raw COM interface pointer. The resulting pointer continues to be owned by the Interface implementation.
source§

fn into_raw(self) -> *mut c_void

Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
source§

unsafe fn from_raw(raw: *mut c_void) -> Self

Creates an Interface by taking ownership of the raw COM interface pointer. Read more
source§

unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>

Creates an Interface that is valid so long as the raw COM interface pointer is valid. Read more
source§

impl PartialEq<ICoreWebView2_5> for ICoreWebView2_5

source§

fn eq(&self, other: &ICoreWebView2_5) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Eq for ICoreWebView2_5

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.