IWindowInfo Interface |
Namespace: CefSharp
The IWindowInfo type exposes the following members.
Name | Description | |
---|---|---|
ExStyle |
Ex window style
| |
ExternalBeginFrameEnabled |
Set to true to enable the ability to issue BeginFrame requests from the
client application by calling SendExternalBeginFrame.
| |
Height |
Height
| |
ParentWindowHandle |
Parent window handle
| |
SharedTextureEnabled |
Set to true to enable shared textures for windowless rendering. Only
valid if WindowlessRenderingEnabled is also set to true. Currently
only supported on Windows (D3D11). This feature is experimental and has many bugs
at the moment.
| |
Style |
Window style
| |
Width |
Width
| |
WindowHandle |
Handle for the new browser window. Only used with windowed rendering.
| |
WindowlessRenderingEnabled |
Set to true to create the browser using windowless (off-screen) rendering.
No window will be created for the browser and all rendering will occur via the
IRenderHandler interface. The ParentWindowHandle value will be used to identify monitor info
and to act as the parent window for dialogs, context menus, etc. If |ParentWindowHandle 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.WindowlessRenderingEnabled value must be set to true.
Transparent painting is enabled by default but can be disabled by setting BackgroundColor to an opaque value.
| |
X |
X coordinate
| |
Y |
Y coordinate
|
Name | Description | |
---|---|---|
Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.) | |
SetAsChild(IntPtr) |
Create the browser as a child window.
Calls GetClientRect(Hwnd) to obtain the window bounds
| |
SetAsChild(IntPtr, Int32, Int32, Int32, Int32) |
Create the browser as a child window.
| |
SetAsPopup |
Create the browser as a popup window.
| |
SetAsWindowless |
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. This window will automatically be transparent unless a colored backgrond is set in the browser settings.
|