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; }
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
unsafe fn get_has_position(&self, value: *mut BOOL) -> HRESULT
[src]
Specifies left and top values.
unsafe fn get_has_size(&self, value: *mut BOOL) -> HRESULT
[src]
Specifiesheight and width values.
unsafe fn get_left(&self, value: *mut u32) -> HRESULT
[src]
Specifies the left position of the window. If HasPosition
is set to
FALSE
, this field is ignored.
unsafe fn get_top(&self, value: *mut u32) -> HRESULT
[src]
Specifies the top position of the window. If HasPosition
is set to
FALSE
, this field is ignored.
unsafe fn get_height(&self, value: *mut u32) -> HRESULT
[src]
Specifies the height of the window. Minimum value is 100
. If
HasSize
is set to FALSE
, this field is ignored.
unsafe fn get_width(&self, value: *mut u32) -> HRESULT
[src]
Specifies the width of the window. Minimum value is 100
. If HasSize
is set to FALSE
, this field is ignored.
unsafe fn get_should_display_menu_bar(&self, value: *mut BOOL) -> HRESULT
[src]
Indicates that the menu bar is displayed.
unsafe fn get_should_display_status(&self, value: *mut BOOL) -> HRESULT
[src]
Indicates that the status bar is displayed.
unsafe fn get_should_display_toolbar(&self, value: *mut BOOL) -> HRESULT
[src]
Indicates that the browser toolbar is displayed.
unsafe fn get_should_display_scroll_bars(&self, value: *mut BOOL) -> HRESULT
[src]
Indicates that the scroll bars are displayed.
Trait Implementations
impl ComInterface for dyn ICoreWebView2WindowFeatures
[src]
impl ComInterface for dyn ICoreWebView2WindowFeatures
[src]impl<C: ICoreWebView2WindowFeatures> ProductionComInterface<C> for dyn ICoreWebView2WindowFeatures
[src]
impl<C: ICoreWebView2WindowFeatures> ProductionComInterface<C> for dyn ICoreWebView2WindowFeatures
[src]Implementations on Foreign Types
impl<T: ICoreWebView2WindowFeatures + ComInterface + ?Sized> ICoreWebView2WindowFeatures for ComRc<T>
[src]
impl<T: ICoreWebView2WindowFeatures + ComInterface + ?Sized> ICoreWebView2WindowFeatures for ComRc<T>
[src]unsafe fn get_has_position(&self, value: *mut BOOL) -> HRESULT
[src]
unsafe fn get_has_size(&self, value: *mut BOOL) -> HRESULT
[src]
unsafe fn get_left(&self, value: *mut u32) -> HRESULT
[src]
unsafe fn get_top(&self, value: *mut u32) -> HRESULT
[src]
unsafe fn get_height(&self, value: *mut u32) -> HRESULT
[src]
unsafe fn get_width(&self, value: *mut u32) -> HRESULT
[src]
unsafe fn get_should_display_menu_bar(&self, value: *mut BOOL) -> HRESULT
[src]
unsafe fn get_should_display_status(&self, value: *mut BOOL) -> HRESULT
[src]
unsafe fn get_should_display_toolbar(&self, value: *mut BOOL) -> HRESULT
[src]
unsafe fn get_should_display_scroll_bars(&self, value: *mut BOOL) -> HRESULT
[src]
impl<T: ICoreWebView2WindowFeatures + ComInterface + ?Sized> ICoreWebView2WindowFeatures for ComPtr<T>
[src]
impl<T: ICoreWebView2WindowFeatures + ComInterface + ?Sized> ICoreWebView2WindowFeatures for ComPtr<T>
[src]