# Interface ICefPanel

Description
Hierarchy
Methods
Properties

## Unit

uCEFInterfaces

## Declaration

`type ICefPanel = interface(ICefView)`

## Description

A Panel is a container in the views hierarchy that can contain other Views as children. Methods must be called on the browser process UI thread unless otherwise indicated.

UNKNOWN

<see href="https://bitbucket.org/chromiumembedded/cef/src/master/include/capi/views/cef_panel_capi.h">CEF source file: /include/capi/views/cef_panel_capi.h (cef_panel_t))

## Hierarchy

- IInterface
- ICefBaseRefCounted
- ICefView
- ICefPanel

## Overview

### Methods

Public | `function GetAsWindow: ICefWindow;`
Public | `function SetToFillLayout: ICefFillLayout;`
Public | `function SetToBoxLayout(const settings: TCefBoxLayoutSettings): ICefBoxLayout;`
Public | `function GetLayout: ICefLayout;`
Public | `procedure Layout;`
Public | `procedure AddChildView(const view: ICefView);`
Public | `procedure AddChildViewAt(const view: ICefView; index: Integer);`
Public | `procedure ReorderChildView(const view: ICefView; index: Integer);`
Public | `procedure RemoveChildView(const view: ICefView);`
Public | `procedure RemoveAllChildViews;`
Public | `function GetChildViewCount: NativeUInt;`
Public | `function GetChildViewAt(index: Integer): ICefView;`

### Properties

Public | `property AsWindow : ICefWindow read GetAsWindow;`

## Description

### Methods

Public | `function GetAsWindow: ICefWindow;`
Returns this Panel as a Window or NULL if this is not a Window. ###### Attributes GUID['{6F2F680A-3637-4438-81B8-79AD6C02252D}']

Public | `function SetToFillLayout: ICefFillLayout;`
Set this Panel's Layout to FillLayout and return the FillLayout object.

Public | `function SetToBoxLayout(const settings: TCefBoxLayoutSettings): ICefBoxLayout;`
Set this Panel's Layout to BoxLayout and return the BoxLayout object.

Public | `function GetLayout: ICefLayout;`
Get the Layout.

Public | `procedure Layout;`
Lay out the child Views (set their bounds based on sizing heuristics specific to the current Layout).

Public | `procedure AddChildView(const view: ICefView);`
Add a child View.

Public | `procedure AddChildViewAt(const view: ICefView; index: Integer);`
Add a child View at the specified |index|. If |index| matches the result of GetChildCount() then the View will be added at the end.

Public | `procedure ReorderChildView(const view: ICefView; index: Integer);`
Move the child View to the specified |index|. A negative value for |index| will move the View to the end.

Public | `procedure RemoveChildView(const view: ICefView);`
Remove a child View. The View can then be added to another Panel.

Public | `procedure RemoveAllChildViews;`
Remove all child Views. The removed Views will be deleted if the client holds no references to them.

Public | `function GetChildViewCount: NativeUInt;`
Returns the number of child Views.

Public | `function GetChildViewAt(index: Integer): ICefView;`
Returns the child View at the specified |index|.

### Properties

Public | `property AsWindow : ICefWindow read GetAsWindow;`
Returns this Panel as a Window or NULL if this is not a Window.

Generated by PasDoc 1.0.4.