ICoreWebView2WindowFeatures

Trait ICoreWebView2WindowFeatures 

Source
pub trait ICoreWebView2WindowFeatures: IUnknown {
    // Required methods
    unsafe fn get_has_position(&self, value: *mut BOOL) -> HRESULT;
    unsafe fn get_has_size(&self, value: *mut BOOL) -> HRESULT;
    unsafe fn get_left(&self, value: *mut u32) -> HRESULT;
    unsafe fn get_top(&self, value: *mut u32) -> HRESULT;
    unsafe fn get_height(&self, value: *mut u32) -> HRESULT;
    unsafe fn get_width(&self, value: *mut u32) -> HRESULT;
    unsafe fn get_should_display_menu_bar(&self, value: *mut BOOL) -> HRESULT;
    unsafe fn get_should_display_status(&self, value: *mut BOOL) -> HRESULT;
    unsafe fn get_should_display_toolbar(&self, value: *mut BOOL) -> HRESULT;
    unsafe fn get_should_display_scroll_bars(&self, value: *mut BOOL) -> HRESULT;
}
Expand description

The window features for a WebView popup window. The fields match the windowFeatures passed to window.open as specified in [Window features][MdnDocsWebApiWindowOpenWindowFeatures] on MDN. There is no requirement for you to respect the values. If your app does not have corresponding UI features (for example, no toolbar) or if all instance of WebView are opened in tabs and do not have distinct size or positions, then your app does not respect the values. You may want to respect values, but perhaps only some apply to the UI of you app. Accordingly, you may respect all, some, or none of the properties as appropriate for your app. For all numeric properties, if the value that is passed to window.open is outside the range of an unsigned 32bit int, the resulting value is the absolute value of the maximum for unsigned 32bit integer. If you are not able to parse the value an integer, it is considered 0. If the value is a floating point value, it is rounded down to an integer.

[MdnDocsWebApiWindowOpenWindowFeatures]: https://developer.mozilla.org/docs/Web/API/Window/open#Window_features “Window features - Window.open() | MDN”

Required Methods§

Source

unsafe fn get_has_position(&self, value: *mut BOOL) -> HRESULT

Specifies left and top values.

Source

unsafe fn get_has_size(&self, value: *mut BOOL) -> HRESULT

Specifiesheight and width values.

Source

unsafe fn get_left(&self, value: *mut u32) -> HRESULT

Specifies the left position of the window. If HasPosition is set to FALSE, this field is ignored.

Source

unsafe fn get_top(&self, value: *mut u32) -> HRESULT

Specifies the top position of the window. If HasPosition is set to FALSE, this field is ignored.

Source

unsafe fn get_height(&self, value: *mut u32) -> HRESULT

Specifies the height of the window. Minimum value is 100. If HasSize is set to FALSE, this field is ignored.

Source

unsafe fn get_width(&self, value: *mut u32) -> HRESULT

Specifies the width of the window. Minimum value is 100. If HasSize is set to FALSE, this field is ignored.

Source

unsafe fn get_should_display_menu_bar(&self, value: *mut BOOL) -> HRESULT

Indicates that the menu bar is displayed.

Source

unsafe fn get_should_display_status(&self, value: *mut BOOL) -> HRESULT

Indicates that the status bar is displayed.

Source

unsafe fn get_should_display_toolbar(&self, value: *mut BOOL) -> HRESULT

Indicates that the browser toolbar is displayed.

Source

unsafe fn get_should_display_scroll_bars(&self, value: *mut BOOL) -> HRESULT

Indicates that the scroll bars are displayed.

Trait Implementations§

Source§

impl ComInterface for dyn ICoreWebView2WindowFeatures

Source§

const IID: IID = IID_ICORE_WEB_VIEW2_WINDOW_FEATURES

The associated id for this interface
Source§

type VTable = ICoreWebView2WindowFeaturesVTable

A COM compatible V-Table
Source§

type Super = dyn IUnknown

The interface that this interface inherits from
Source§

fn is_iid_in_inheritance_chain(riid: &GUID) -> bool

Check whether a given IID is in the inheritance hierarchy of this interface
Source§

impl<C: ICoreWebView2WindowFeatures> ProductionComInterface<C> for dyn ICoreWebView2WindowFeatures

Source§

fn vtable<O: Offset>() -> Self::VTable

Get the vtable for a particular COM interface

Implementations on Foreign Types§

Source§

impl<T: ICoreWebView2WindowFeatures + ComInterface + ?Sized> ICoreWebView2WindowFeatures for ComPtr<T>

Source§

unsafe fn get_has_position(&self, value: *mut BOOL) -> HRESULT

Source§

unsafe fn get_has_size(&self, value: *mut BOOL) -> HRESULT

Source§

unsafe fn get_left(&self, value: *mut u32) -> HRESULT

Source§

unsafe fn get_top(&self, value: *mut u32) -> HRESULT

Source§

unsafe fn get_height(&self, value: *mut u32) -> HRESULT

Source§

unsafe fn get_width(&self, value: *mut u32) -> HRESULT

Source§

unsafe fn get_should_display_menu_bar(&self, value: *mut BOOL) -> HRESULT

Source§

unsafe fn get_should_display_status(&self, value: *mut BOOL) -> HRESULT

Source§

unsafe fn get_should_display_toolbar(&self, value: *mut BOOL) -> HRESULT

Source§

unsafe fn get_should_display_scroll_bars(&self, value: *mut BOOL) -> HRESULT

Source§

impl<T: ICoreWebView2WindowFeatures + ComInterface + ?Sized> ICoreWebView2WindowFeatures for ComRc<T>

Source§

unsafe fn get_has_position(&self, value: *mut BOOL) -> HRESULT

Source§

unsafe fn get_has_size(&self, value: *mut BOOL) -> HRESULT

Source§

unsafe fn get_left(&self, value: *mut u32) -> HRESULT

Source§

unsafe fn get_top(&self, value: *mut u32) -> HRESULT

Source§

unsafe fn get_height(&self, value: *mut u32) -> HRESULT

Source§

unsafe fn get_width(&self, value: *mut u32) -> HRESULT

Source§

unsafe fn get_should_display_menu_bar(&self, value: *mut BOOL) -> HRESULT

Source§

unsafe fn get_should_display_status(&self, value: *mut BOOL) -> HRESULT

Source§

unsafe fn get_should_display_toolbar(&self, value: *mut BOOL) -> HRESULT

Source§

unsafe fn get_should_display_scroll_bars(&self, value: *mut BOOL) -> HRESULT

Implementors§