pub struct WindowInfo {
pub size: usize,
pub window_name: CefString,
pub bounds: Rect,
pub parent_window: c_ulong,
pub windowless_rendering_enabled: c_int,
pub shared_texture_enabled: c_int,
pub external_begin_frame_enabled: c_int,
pub window: c_ulong,
pub runtime_style: RuntimeStyle,
}Expand description
See _cef_window_info_t for more documentation.
Fields§
§size: usize§window_name: CefString§bounds: Rect§parent_window: c_ulong§windowless_rendering_enabled: c_int§external_begin_frame_enabled: c_int§window: c_ulong§runtime_style: RuntimeStyleImplementations§
Source§impl WindowInfo
impl WindowInfo
Sourcepub fn set_as_child(self, parent: cef_window_handle_t, bounds: &Rect) -> Self
pub fn set_as_child(self, parent: cef_window_handle_t, bounds: &Rect) -> Self
Create the browser as a child window.
Sourcepub fn set_as_windowless(self, parent: cef_window_handle_t) -> Self
pub fn set_as_windowless(self, parent: cef_window_handle_t) -> Self
Create the browser using windowless (off-screen) rendering. No window will be created for the browser and all rendering will occur via the CefRenderHandler interface. The |parent| value will be used to identify monitor info and to act as the parent window for dialogs, context menus, etc. If |parent| is not provided then the main screen monitor will be used and some functionality that requires a parent window may not function correctly. In order to create windowless browsers the CefSettings.windowless_rendering_enabled value must be set to true. Transparent painting is enabled by default but can be disabled by setting CefBrowserSettings.background_color to an opaque value.
Trait Implementations§
Source§impl Clone for WindowInfo
impl Clone for WindowInfo
Source§fn clone(&self) -> WindowInfo
fn clone(&self) -> WindowInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more