# Class TCEFWindowInfoWrapper

Description
Hierarchy
Fields
Methods
Properties

## Unit

uCEFWindowInfoWrapper

## Declaration

`type TCEFWindowInfoWrapper = class(TObject)`

## Description

Wrapper class used to initialize a TCEFWindowInfo record.

<see href="https://bitbucket.org/chromiumembedded/cef/src/master/include/internal/cef_win.h">CEF source file: /include/internal/cef_win.h (CefWindowInfo))

<see href="https://bitbucket.org/chromiumembedded/cef/src/master/include/internal/cef_mac.h">CEF source file: /include/internal/cef_mac.h (CefWindowInfo))

<see href="https://bitbucket.org/chromiumembedded/cef/src/master/include/internal/cef_linux.h">CEF source file: /include/internal/cef_linux.h (CefWindowInfo))

## Hierarchy

- TObject
- TCEFWindowInfoWrapper

## Overview

### Fields

Protected | `FWindowInfo: TCEFWindowInfo;`

### Methods

Protected | `function GetWindowName: ustring;`
Protected | `function GetBounds: TCefRect;`
Protected | `function GetParentWindow: TCefWindowHandle;`
Protected | `function GetWindowlessRenderingEnabled: boolean;`
Protected | `function GetSharedTextureEnabled: boolean;`
Protected | `function GetExternalBeginFrameEnabled: boolean;`
Protected | `function GetWindow: TCefWindowHandle;`
Protected | `function GetRuntimeStyle: TCefRuntimeStyle;`
Protected | `function GetExStyle: DWORD;`
Protected | `function GetStyle: DWORD;`
Protected | `function GetMenu: HMENU;`
Protected | `procedure SetWindowName(const aValue : ustring);`
Protected | `procedure SetBounds(const aValue : TCefRect);`
Protected | `procedure SetParentWindow(aValue : TCefWindowHandle);`
Protected | `procedure SetWindowlessRenderingEnabled(aValue : boolean);`
Protected | `procedure SetSharedTextureEnabled(aValue : boolean);`
Protected | `procedure SetExternalBeginFrameEnabled(aValue : boolean);`
Protected | `procedure SetWindow(aValue : TCefWindowHandle);`
Protected | `procedure SetRuntimeStyle(aValue : TCefRuntimeStyle);`
Protected | `procedure SetExStyle(aValue : DWORD);`
Protected | `procedure SetStyle(aValue : DWORD);`
Protected | `procedure SetMenu(aValue : HMENU);`
Public | `constructor Create;`
Public | `procedure CopyFromWindowInfo(const aSrcWindowInfo: TCEFWindowInfo);`
Public | `class procedure AsChild(var aWindowInfo: TCEFWindowInfo; aParent : TCefWindowHandle; aWindowBounds : TRect);`
Public | `procedure SetAsChild(aParent : TCefWindowHandle; aWindowBounds : TRect);`
Public | `class procedure AsPopup(var aWindowInfo: TCEFWindowInfo; aParent : TCefWindowHandle; const aWindowName : ustring);`
Public | `procedure SetAsPopup(aParent : TCefWindowHandle; const aWindowName : ustring);`
Public | `class procedure AsWindowless(var aWindowInfo: TCEFWindowInfo; aParent : TCefWindowHandle);`
Public | `procedure SetAsWindowless(aParent : TCefWindowHandle);`

### Properties

Public | `property WindowInfoRecord : TCEFWindowInfo read FWindowInfo write FWindowInfo;`
Public | `property WindowName : ustring read GetWindowName write SetWindowName;`
Public | `property Bounds : TCefRect read GetBounds write SetBounds;`
Public | `property WindowlessRenderingEnabled : boolean read GetWindowlessRenderingEnabled write SetWindowlessRenderingEnabled;`
Public | `property SharedTextureEnabled : boolean read GetSharedTextureEnabled write SetSharedTextureEnabled;`
Public | `property ExternalBeginFrameEnabled : boolean read GetExternalBeginFrameEnabled write SetExternalBeginFrameEnabled;`
Public | `property RuntimeStyle : TCefRuntimeStyle read GetRuntimeStyle write SetRuntimeStyle;`
Public | `property ExStyle : DWORD read GetExStyle write SetExStyle;`
Public | `property Style : DWORD read GetStyle write SetStyle;`
Public | `property Menu : HMENU read GetMenu write SetMenu;`
Public | `property ParentWindow : TCefWindowHandle read GetParentWindow write SetParentWindow;`
Public | `property Window : TCefWindowHandle read GetWindow write SetWindow;`

## Description

### Fields

Protected | `FWindowInfo: TCEFWindowInfo;`
This item has no description.

### Methods

Protected | `function GetWindowName: ustring;`
This item has no description.

Protected | `function GetBounds: TCefRect;`
This item has no description.

Protected | `function GetParentWindow: TCefWindowHandle;`
This item has no description.

Protected | `function GetWindowlessRenderingEnabled: boolean;`
This item has no description.

Protected | `function GetSharedTextureEnabled: boolean;`
This item has no description.

Protected | `function GetExternalBeginFrameEnabled: boolean;`
This item has no description.

Protected | `function GetWindow: TCefWindowHandle;`
This item has no description.

Protected | `function GetRuntimeStyle: TCefRuntimeStyle;`
This item has no description.

Protected | `function GetExStyle: DWORD;`
This item has no description.

Protected | `function GetStyle: DWORD;`
This item has no description.

Protected | `function GetMenu: HMENU;`
This item has no description.

Protected | `procedure SetWindowName(const aValue : ustring);`
This item has no description.

Protected | `procedure SetBounds(const aValue : TCefRect);`
This item has no description.

Protected | `procedure SetParentWindow(aValue : TCefWindowHandle);`
This item has no description.

Protected | `procedure SetWindowlessRenderingEnabled(aValue : boolean);`
This item has no description.

Protected | `procedure SetSharedTextureEnabled(aValue : boolean);`
This item has no description.

Protected | `procedure SetExternalBeginFrameEnabled(aValue : boolean);`
This item has no description.

Protected | `procedure SetWindow(aValue : TCefWindowHandle);`
This item has no description.

Protected | `procedure SetRuntimeStyle(aValue : TCefRuntimeStyle);`
This item has no description.

Protected | `procedure SetExStyle(aValue : DWORD);`
This item has no description.

Protected | `procedure SetStyle(aValue : DWORD);`
This item has no description.

Protected | `procedure SetMenu(aValue : HMENU);`
This item has no description.

Public | `constructor Create;`
This item has no description.

Public | `procedure CopyFromWindowInfo(const aSrcWindowInfo: TCEFWindowInfo);`
Copy the information from an external TCEFWindowInfo instance

Public | `class procedure AsChild(var aWindowInfo: TCEFWindowInfo; aParent : TCefWindowHandle; aWindowBounds : TRect);`
Create the browser as a child window.

Public | `procedure SetAsChild(aParent : TCefWindowHandle; aWindowBounds : TRect);`
Create the browser as a child window.

Public | `class procedure AsPopup(var aWindowInfo: TCEFWindowInfo; aParent : TCefWindowHandle; const aWindowName : ustring);`
Create the browser as a popup window.

Public | `procedure SetAsPopup(aParent : TCefWindowHandle; const aWindowName : ustring);`
Create the browser as a popup window.

Public | `class procedure AsWindowless(var aWindowInfo: TCEFWindowInfo; aParent : TCefWindowHandle);`
Create the browser using windowless (off-screen) rendering. No window will be created for the browser and all rendering will occur via the ICefRenderHandler 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 TCefSettings.windowless_rendering_enabled value must be set to true. Transparent painting is enabled by default but can be disabled by setting ICefBrowserSettings.background_color to an opaque value.

Public | `procedure SetAsWindowless(aParent : TCefWindowHandle);`
Create the browser using windowless (off-screen) rendering. No window will be created for the browser and all rendering will occur via the ICefRenderHandler 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 TCefSettings.windowless_rendering_enabled value must be set to true. Transparent painting is enabled by default but can be disabled by setting ICefBrowserSettings.background_color to an opaque value.

### Properties

Public | `property WindowInfoRecord : TCEFWindowInfo read FWindowInfo write FWindowInfo;`
Internal TCEFWindowInfo instance

Public | `property WindowName : ustring read GetWindowName write SetWindowName;`
The 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.

Public | `property Bounds : TCefRect read GetBounds write SetBounds;`
Initial window bounds.

Public | `property WindowlessRenderingEnabled : boolean read GetWindowlessRenderingEnabled write SetWindowlessRenderingEnabled;`
Set 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 ICefRenderHandler 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 TCefSettings.windowless_rendering_enabled value must be set to true. Transparent painting is enabled by default but can be disabled by setting TCefBrowserSettings.background_color to an opaque value.

Public | `property SharedTextureEnabled : boolean read GetSharedTextureEnabled write SetSharedTextureEnabled;`
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).

Public | `property ExternalBeginFrameEnabled : boolean read GetExternalBeginFrameEnabled write SetExternalBeginFrameEnabled;`
Set to true (1) to enable the ability to issue BeginFrame requests from the client application by calling ICefBrowserHost.SendExternalBeginFrame.

Public | `property RuntimeStyle : TCefRuntimeStyle read GetRuntimeStyle write SetRuntimeStyle;`
Optionally change the runtime style. Alloy style will always be used if |windowless_rendering_enabled| is true. See TCefRuntimeStyle documentation for details.

Public | `property ExStyle : DWORD read GetExStyle write SetExStyle;`
Standard parameters required by CreateWindowEx(). Used as the dwExStyle parameter in CreateWindowEx. <see href="https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-createwindowexw">Read the CreateWindowExW article.)

Public | `property Style : DWORD read GetStyle write SetStyle;`
Used as the dwStyle parameter in CreateWindowEx. <see href="https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-createwindowexw">Read the CreateWindowExW article.)

Public | `property Menu : HMENU read GetMenu write SetMenu;`
Used as the hMenu parameter in CreateWindowEx. <see href="https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-createwindowexw">Read the CreateWindowExW article.)

Public | `property ParentWindow : TCefWindowHandle read GetParentWindow write SetParentWindow;`
Used as the hWndParent parameter in CreateWindowEx. <see href="https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-createwindowexw">Read the CreateWindowExW article.)

Public | `property Window : TCefWindowHandle read GetWindow write SetWindow;`
Handle for the new browser window. Only used with windowed rendering.

Generated by PasDoc 1.0.4.