pub type cef_window_info_t = _cef_window_info_t;Expand description
Class representing window information.
Aliased Type§
#[repr(C)]pub struct cef_window_info_t {
pub size: usize,
pub window_name: _cef_string_utf16_t,
pub bounds: _cef_rect_t,
pub parent_window: u64,
pub windowless_rendering_enabled: i32,
pub shared_texture_enabled: i32,
pub external_begin_frame_enabled: i32,
pub window: u64,
pub runtime_style: cef_runtime_style_t,
}Fields§
§size: usizeSize of this structure.
window_name: _cef_string_utf16_tThe initial title of the window, to be set when the window is created. Some layout managers (e.g., Compiz) can look at the window title in order to decide where to place the window when it is created. When this attribute is not empty, the window title will be set before the window is mapped to the dispay. Otherwise the title will be initially empty.
bounds: _cef_rect_tInitial window bounds.
parent_window: u64Pointer for the parent window.
windowless_rendering_enabled: i32Set to true (1) to 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_window| value will be used to identify monitor info and to act as the parent window for dialogs, context menus, etc. If |parent_window| 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.
Set to true (1) to enable shared textures for windowless rendering. Only valid if windowless_rendering_enabled above is also set to true. Currently only supported on Windows (D3D11).
external_begin_frame_enabled: i32Set to true (1) to enable the ability to issue BeginFrame requests from the client application by calling CefBrowserHost::SendExternalBeginFrame.
window: u64Pointer for the new browser window. Only used with windowed rendering.
runtime_style: cef_runtime_style_tOptionally change the runtime style. Alloy style will always be used if |windowless_rendering_enabled| is true. See cef_runtime_style_t documentation for details.