# Class TCefLayoutRef

Description
Hierarchy
Methods

## Unit

uCEFLayout

## Declaration

`type TCefLayoutRef = class(TCefBaseRefCountedRef, ICefLayout)`

## Description

A Layout handles the sizing of the children of a Panel according to implementation-specific heuristics. Methods must be called on the browser process UI thread unless otherwise indicated.

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

## Hierarchy

- TInterfacedObject
- TCefBaseRefCountedRef
- TCefLayoutRef

## Overview

### Methods

Protected | `function AsBoxLayout: ICefBoxLayout;`
Protected | `function AsFillLayout: ICefFillLayout;`
Protected | `function IsValid: boolean;`
Public | `class function UnWrap(data: Pointer): ICefLayout;`

## Description

### Methods

Protected | `function AsBoxLayout: ICefBoxLayout;`
Returns this Layout as a BoxLayout or NULL if this is not a BoxLayout.

Protected | `function AsFillLayout: ICefFillLayout;`
Returns this Layout as a FillLayout or NULL if this is not a FillLayout.

Protected | `function IsValid: boolean;`
Returns true (1) if this Layout is valid.

Public | `class function UnWrap(data: Pointer): ICefLayout;`
Returns a ICefLayout instance using a PCefLayout data pointer.

Generated by PasDoc 1.0.4.