Trait webview2_sys::ICoreWebView2WindowFeatures[][src]

pub trait ICoreWebView2WindowFeatures: IUnknown {
    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

Specifies left and top values.

Specifiesheight and width values.

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

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

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

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

Indicates that the menu bar is displayed.

Indicates that the status bar is displayed.

Indicates that the browser toolbar is displayed.

Indicates that the scroll bars are displayed.

Trait Implementations

A COM compatible V-Table

The interface that this interface inherits from

The associated id for this interface

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

Get the vtable for a particular COM interface

Implementations on Foreign Types

Implementors