WindowInfo Class |
Namespace: CefSharp
The WindowInfo type exposes the following members.
Name | Description | |
---|---|---|
WindowInfo | Initializes a new instance of the WindowInfo class |
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 | |
---|---|---|
Create |
Create a new IWindowInfo instance
| |
Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
SetAsChild(IntPtr) |
Create the browser as a child window.
Calls GetClientRect(Hwnd) to obtain the window bounds
| |
SetAsChild(IntPtr, Rect) |
Create the browser as a child window.
| |
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.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
UnWrap |