Struct webview2_com::Microsoft::Web::WebView2::Win32::ICoreWebView2
source · [−]#[repr(transparent)]pub struct ICoreWebView2(_);
Implementations
sourceimpl ICoreWebView2
impl ICoreWebView2
pub unsafe fn Settings(&self) -> Result<ICoreWebView2Settings, Error>
pub unsafe fn Source(&self, uri: *mut PWSTR) -> Result<(), Error>
pub unsafe fn add_ContentLoading<'a, Param0>(
&self,
eventhandler: Param0,
token: *mut EventRegistrationToken
) -> Result<(), Error> where
Param0: IntoParam<'a, ICoreWebView2ContentLoadingEventHandler>,
pub unsafe fn remove_ContentLoading<'a, Param0>(
&self,
token: Param0
) -> Result<(), Error> where
Param0: IntoParam<'a, EventRegistrationToken>,
pub unsafe fn add_SourceChanged<'a, Param0>(
&self,
eventhandler: Param0,
token: *mut EventRegistrationToken
) -> Result<(), Error> where
Param0: IntoParam<'a, ICoreWebView2SourceChangedEventHandler>,
pub unsafe fn remove_SourceChanged<'a, Param0>(
&self,
token: Param0
) -> Result<(), Error> where
Param0: IntoParam<'a, EventRegistrationToken>,
pub unsafe fn add_HistoryChanged<'a, Param0>(
&self,
eventhandler: Param0,
token: *mut EventRegistrationToken
) -> Result<(), Error> where
Param0: IntoParam<'a, ICoreWebView2HistoryChangedEventHandler>,
pub unsafe fn remove_HistoryChanged<'a, Param0>(
&self,
token: Param0
) -> Result<(), Error> where
Param0: IntoParam<'a, EventRegistrationToken>,
pub unsafe fn add_ScriptDialogOpening<'a, Param0>(
&self,
eventhandler: Param0,
token: *mut EventRegistrationToken
) -> Result<(), Error> where
Param0: IntoParam<'a, ICoreWebView2ScriptDialogOpeningEventHandler>,
pub unsafe fn remove_ScriptDialogOpening<'a, Param0>(
&self,
token: Param0
) -> Result<(), Error> where
Param0: IntoParam<'a, EventRegistrationToken>,
pub unsafe fn add_PermissionRequested<'a, Param0>(
&self,
eventhandler: Param0,
token: *mut EventRegistrationToken
) -> Result<(), Error> where
Param0: IntoParam<'a, ICoreWebView2PermissionRequestedEventHandler>,
pub unsafe fn remove_PermissionRequested<'a, Param0>(
&self,
token: Param0
) -> Result<(), Error> where
Param0: IntoParam<'a, EventRegistrationToken>,
pub unsafe fn add_ProcessFailed<'a, Param0>(
&self,
eventhandler: Param0,
token: *mut EventRegistrationToken
) -> Result<(), Error> where
Param0: IntoParam<'a, ICoreWebView2ProcessFailedEventHandler>,
pub unsafe fn remove_ProcessFailed<'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, PCWSTR>,
Param1: IntoParam<'a, ICoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler>,
pub unsafe fn RemoveScriptToExecuteOnDocumentCreated<'a, Param0>(
&self,
id: Param0
) -> Result<(), Error> where
Param0: IntoParam<'a, PCWSTR>,
pub unsafe fn ExecuteScript<'a, Param0, Param1>(
&self,
javascript: Param0,
handler: Param1
) -> Result<(), Error> where
Param0: IntoParam<'a, PCWSTR>,
Param1: IntoParam<'a, ICoreWebView2ExecuteScriptCompletedHandler>,
pub unsafe fn CapturePreview<'a, Param1, Param2>(
&self,
imageformat: COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT,
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, PCWSTR>,
pub unsafe fn PostWebMessageAsString<'a, Param0>(
&self,
webmessageasstring: Param0
) -> Result<(), Error> where
Param0: IntoParam<'a, PCWSTR>,
pub unsafe fn add_WebMessageReceived<'a, Param0>(
&self,
handler: Param0,
token: *mut EventRegistrationToken
) -> Result<(), Error> where
Param0: IntoParam<'a, ICoreWebView2WebMessageReceivedEventHandler>,
pub unsafe fn remove_WebMessageReceived<'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, PCWSTR>,
Param1: IntoParam<'a, PCWSTR>,
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, PCWSTR>,
pub unsafe fn Stop(&self) -> Result<(), Error>
pub unsafe fn add_NewWindowRequested<'a, Param0>(
&self,
eventhandler: Param0,
token: *mut EventRegistrationToken
) -> Result<(), Error> where
Param0: IntoParam<'a, ICoreWebView2NewWindowRequestedEventHandler>,
pub unsafe fn remove_NewWindowRequested<'a, Param0>(
&self,
token: Param0
) -> Result<(), Error> where
Param0: IntoParam<'a, EventRegistrationToken>,
pub unsafe fn add_DocumentTitleChanged<'a, Param0>(
&self,
eventhandler: Param0,
token: *mut EventRegistrationToken
) -> Result<(), Error> where
Param0: IntoParam<'a, ICoreWebView2DocumentTitleChangedEventHandler>,
pub unsafe fn remove_DocumentTitleChanged<'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, PCWSTR>,
pub unsafe fn RemoveHostObjectFromScript<'a, Param0>(
&self,
name: Param0
) -> Result<(), Error> where
Param0: IntoParam<'a, PCWSTR>,
pub unsafe fn OpenDevToolsWindow(&self) -> Result<(), Error>
pub unsafe fn add_ContainsFullScreenElementChanged<'a, Param0>(
&self,
eventhandler: Param0,
token: *mut EventRegistrationToken
) -> Result<(), Error> where
Param0: IntoParam<'a, ICoreWebView2ContainsFullScreenElementChangedEventHandler>,
pub unsafe fn remove_ContainsFullScreenElementChanged<'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 add_WebResourceRequested<'a, Param0>(
&self,
eventhandler: Param0,
token: *mut EventRegistrationToken
) -> Result<(), Error> where
Param0: IntoParam<'a, ICoreWebView2WebResourceRequestedEventHandler>,
pub unsafe fn remove_WebResourceRequested<'a, Param0>(
&self,
token: Param0
) -> Result<(), Error> where
Param0: IntoParam<'a, EventRegistrationToken>,
pub unsafe fn AddWebResourceRequestedFilter<'a, Param0>(
&self,
uri: Param0,
resourcecontext: COREWEBVIEW2_WEB_RESOURCE_CONTEXT
) -> Result<(), Error> where
Param0: IntoParam<'a, PCWSTR>,
pub unsafe fn RemoveWebResourceRequestedFilter<'a, Param0>(
&self,
uri: Param0,
resourcecontext: COREWEBVIEW2_WEB_RESOURCE_CONTEXT
) -> Result<(), Error> where
Param0: IntoParam<'a, PCWSTR>,
pub unsafe fn add_WindowCloseRequested<'a, Param0>(
&self,
eventhandler: Param0,
token: *mut EventRegistrationToken
) -> Result<(), Error> where
Param0: IntoParam<'a, ICoreWebView2WindowCloseRequestedEventHandler>,
pub unsafe fn remove_WindowCloseRequested<'a, Param0>(
&self,
token: Param0
) -> Result<(), Error> where
Param0: IntoParam<'a, EventRegistrationToken>,
Trait Implementations
sourceimpl Clone for ICoreWebView2
impl Clone for ICoreWebView2
sourcefn clone(&self) -> ICoreWebView2
fn clone(&self) -> ICoreWebView2
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
impl Debug for ICoreWebView2
sourceimpl<'_> From<&'_ ICoreWebView2_10> for ICoreWebView2
impl<'_> From<&'_ ICoreWebView2_10> for ICoreWebView2
sourcefn from(value: &ICoreWebView2_10) -> ICoreWebView2
fn from(value: &ICoreWebView2_10) -> ICoreWebView2
Converts to this type from the input type.
sourceimpl<'_> From<&'_ ICoreWebView2_11> for ICoreWebView2
impl<'_> From<&'_ ICoreWebView2_11> for ICoreWebView2
sourcefn from(value: &ICoreWebView2_11) -> ICoreWebView2
fn from(value: &ICoreWebView2_11) -> ICoreWebView2
Converts to this type from the input type.
sourceimpl<'_> From<&'_ ICoreWebView2_12> for ICoreWebView2
impl<'_> From<&'_ ICoreWebView2_12> for ICoreWebView2
sourcefn from(value: &ICoreWebView2_12) -> ICoreWebView2
fn from(value: &ICoreWebView2_12) -> ICoreWebView2
Converts to this type from the input type.
sourceimpl<'_> From<&'_ ICoreWebView2_13> for ICoreWebView2
impl<'_> From<&'_ ICoreWebView2_13> for ICoreWebView2
sourcefn from(value: &ICoreWebView2_13) -> ICoreWebView2
fn from(value: &ICoreWebView2_13) -> ICoreWebView2
Converts to this type from the input type.
sourceimpl<'_> From<&'_ ICoreWebView2_2> for ICoreWebView2
impl<'_> From<&'_ ICoreWebView2_2> for ICoreWebView2
sourcefn from(value: &ICoreWebView2_2) -> ICoreWebView2
fn from(value: &ICoreWebView2_2) -> ICoreWebView2
Converts to this type from the input type.
sourceimpl<'_> From<&'_ ICoreWebView2_3> for ICoreWebView2
impl<'_> From<&'_ ICoreWebView2_3> for ICoreWebView2
sourcefn from(value: &ICoreWebView2_3) -> ICoreWebView2
fn from(value: &ICoreWebView2_3) -> ICoreWebView2
Converts to this type from the input type.
sourceimpl<'_> From<&'_ ICoreWebView2_4> for ICoreWebView2
impl<'_> From<&'_ ICoreWebView2_4> for ICoreWebView2
sourcefn from(value: &ICoreWebView2_4) -> ICoreWebView2
fn from(value: &ICoreWebView2_4) -> ICoreWebView2
Converts to this type from the input type.
sourceimpl<'_> From<&'_ ICoreWebView2_5> for ICoreWebView2
impl<'_> From<&'_ ICoreWebView2_5> for ICoreWebView2
sourcefn from(value: &ICoreWebView2_5) -> ICoreWebView2
fn from(value: &ICoreWebView2_5) -> ICoreWebView2
Converts to this type from the input type.
sourceimpl<'_> From<&'_ ICoreWebView2_6> for ICoreWebView2
impl<'_> From<&'_ ICoreWebView2_6> for ICoreWebView2
sourcefn from(value: &ICoreWebView2_6) -> ICoreWebView2
fn from(value: &ICoreWebView2_6) -> ICoreWebView2
Converts to this type from the input type.
sourceimpl<'_> From<&'_ ICoreWebView2_7> for ICoreWebView2
impl<'_> From<&'_ ICoreWebView2_7> for ICoreWebView2
sourcefn from(value: &ICoreWebView2_7) -> ICoreWebView2
fn from(value: &ICoreWebView2_7) -> ICoreWebView2
Converts to this type from the input type.
sourceimpl<'_> From<&'_ ICoreWebView2_8> for ICoreWebView2
impl<'_> From<&'_ ICoreWebView2_8> for ICoreWebView2
sourcefn from(value: &ICoreWebView2_8) -> ICoreWebView2
fn from(value: &ICoreWebView2_8) -> ICoreWebView2
Converts to this type from the input type.
sourceimpl<'_> From<&'_ ICoreWebView2_9> for ICoreWebView2
impl<'_> From<&'_ ICoreWebView2_9> for ICoreWebView2
sourcefn from(value: &ICoreWebView2_9) -> ICoreWebView2
fn from(value: &ICoreWebView2_9) -> ICoreWebView2
Converts to this type from the input type.
sourceimpl From<ICoreWebView2_10> for ICoreWebView2
impl From<ICoreWebView2_10> for ICoreWebView2
sourcefn from(value: ICoreWebView2_10) -> ICoreWebView2
fn from(value: ICoreWebView2_10) -> ICoreWebView2
Converts to this type from the input type.
sourceimpl From<ICoreWebView2_11> for ICoreWebView2
impl From<ICoreWebView2_11> for ICoreWebView2
sourcefn from(value: ICoreWebView2_11) -> ICoreWebView2
fn from(value: ICoreWebView2_11) -> ICoreWebView2
Converts to this type from the input type.
sourceimpl From<ICoreWebView2_12> for ICoreWebView2
impl From<ICoreWebView2_12> for ICoreWebView2
sourcefn from(value: ICoreWebView2_12) -> ICoreWebView2
fn from(value: ICoreWebView2_12) -> ICoreWebView2
Converts to this type from the input type.
sourceimpl From<ICoreWebView2_13> for ICoreWebView2
impl From<ICoreWebView2_13> for ICoreWebView2
sourcefn from(value: ICoreWebView2_13) -> ICoreWebView2
fn from(value: ICoreWebView2_13) -> ICoreWebView2
Converts to this type from the input type.
sourceimpl From<ICoreWebView2_2> for ICoreWebView2
impl From<ICoreWebView2_2> for ICoreWebView2
sourcefn from(value: ICoreWebView2_2) -> ICoreWebView2
fn from(value: ICoreWebView2_2) -> ICoreWebView2
Converts to this type from the input type.
sourceimpl From<ICoreWebView2_3> for ICoreWebView2
impl From<ICoreWebView2_3> for ICoreWebView2
sourcefn from(value: ICoreWebView2_3) -> ICoreWebView2
fn from(value: ICoreWebView2_3) -> ICoreWebView2
Converts to this type from the input type.
sourceimpl From<ICoreWebView2_4> for ICoreWebView2
impl From<ICoreWebView2_4> for ICoreWebView2
sourcefn from(value: ICoreWebView2_4) -> ICoreWebView2
fn from(value: ICoreWebView2_4) -> ICoreWebView2
Converts to this type from the input type.
sourceimpl From<ICoreWebView2_5> for ICoreWebView2
impl From<ICoreWebView2_5> for ICoreWebView2
sourcefn from(value: ICoreWebView2_5) -> ICoreWebView2
fn from(value: ICoreWebView2_5) -> ICoreWebView2
Converts to this type from the input type.
sourceimpl From<ICoreWebView2_6> for ICoreWebView2
impl From<ICoreWebView2_6> for ICoreWebView2
sourcefn from(value: ICoreWebView2_6) -> ICoreWebView2
fn from(value: ICoreWebView2_6) -> ICoreWebView2
Converts to this type from the input type.
sourceimpl From<ICoreWebView2_7> for ICoreWebView2
impl From<ICoreWebView2_7> for ICoreWebView2
sourcefn from(value: ICoreWebView2_7) -> ICoreWebView2
fn from(value: ICoreWebView2_7) -> ICoreWebView2
Converts to this type from the input type.
sourceimpl From<ICoreWebView2_8> for ICoreWebView2
impl From<ICoreWebView2_8> for ICoreWebView2
sourcefn from(value: ICoreWebView2_8) -> ICoreWebView2
fn from(value: ICoreWebView2_8) -> ICoreWebView2
Converts to this type from the input type.
sourceimpl From<ICoreWebView2_9> for ICoreWebView2
impl From<ICoreWebView2_9> for ICoreWebView2
sourcefn from(value: ICoreWebView2_9) -> ICoreWebView2
fn from(value: ICoreWebView2_9) -> ICoreWebView2
Converts to this type from the input type.
sourceimpl Interface for ICoreWebView2
impl Interface for ICoreWebView2
sourceconst IID: GUID = ::windows::core::GUID::from_u128(158079047729755318343897935413800826718)
const IID: GUID = ::windows::core::GUID::from_u128(158079047729755318343897935413800826718)
A unique identifier representing this interface.
sourceimpl PartialEq<ICoreWebView2> for ICoreWebView2
impl PartialEq<ICoreWebView2> for ICoreWebView2
sourceimpl RuntimeName for ICoreWebView2
impl RuntimeName for ICoreWebView2
impl Eq for ICoreWebView2
Auto Trait Implementations
impl RefUnwindSafe for ICoreWebView2
impl !Send for ICoreWebView2
impl !Sync for ICoreWebView2
impl Unpin for ICoreWebView2
impl UnwindSafe for ICoreWebView2
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
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.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more