Skip to content

CefFillLayout

Header: cef_fill_layout.h
Category: Views Framework

Overview

Browser-process UI toolkit: windows, panels, layouts, buttons, textfields, and their delegates.

CefFillLayout

Source File: include/views/cef_fill_layout.h

Process / Thread Context: Browser Process / UI Thread.

Purpose: A simple layout that causes the associated panel's single child

Usage Example

cpp
CefRefPtr<CefPanel> panel = CefPanel::CreatePanel(nullptr);
CefRefPtr<CefFillLayout> fill = panel->SetToFillLayout();
CefRefPtr<CefBrowserView> bv = CefBrowserView::CreateBrowserView(
    client, "https://example.com", CefBrowserSettings(), nullptr, nullptr, nullptr);
panel->AddChildView(bv);  // bv fills the panel

Derived from the CEF C++ headers — © Marshall A. Greenblatt, Google Inc. & contributors (BSD-style license). Not an official CEF project.