Overview   Project   Class   Tree   Index 
CEF3 C++ API Docs - Version 75.1.4+g4210896+chromium-75.0.3770.100
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

(default)
Class CefPanel

CefBaseRefCounted
   |
   +--CefView
         |
         +--CefPanel

   in cef_panel.h
Direct Known Subclasses:
CefWindow

class CefPanel
extends CefView

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.


Method Summary
 virtual void AddChildView( CefRefPtr< CefView > view )= 0
          Add a child View.
 virtual void AddChildViewAt( CefRefPtr< CefView > view, int index )= 0
          Add a child View at the specified |index|.
 virtual CefRefPtr< CefWindow > AsWindow()= 0
          Returns this Panel as a Window or NULL if this is not a Window.
 static CefRefPtr< CefPanel > CreatePanel( CefRefPtr< CefPanelDelegate > delegate )
          Create a new Panel.
 virtual CefRefPtr< CefView > GetChildViewAt( int index )= 0
          Returns the child View at the specified |index|.
 virtual size_t GetChildViewCount()= 0
          Returns the number of child Views.
 virtual CefRefPtr< CefLayout > GetLayout()= 0
          Get the Layout.
 virtual void Layout()= 0
          Lay out the child Views (set their bounds based on sizing heuristics specific to the current Layout).
 virtual void RemoveAllChildViews()= 0
          Remove all child Views.
 virtual void RemoveChildView( CefRefPtr< CefView > view )= 0
          Remove a child View.
 virtual void ReorderChildView( CefRefPtr< CefView > view, int index )= 0
          Move the child View to the specified |index|.
 virtual CefRefPtr< CefBoxLayout > SetToBoxLayout( const CefBoxLayoutSettings& settings )= 0
          Set this Panel's Layout to BoxLayout and return the BoxLayout object.
 virtual CefRefPtr< CefFillLayout > SetToFillLayout()= 0
          Set this Panel's Layout to FillLayout and return the FillLayout object.
   
Methods inherited from class CefView
AsBrowserView, AsButton, AsPanel, AsScrollView, AsTextfield, GetTypeString, ToString, IsValid, IsAttached, IsSame, GetDelegate, GetWindow, GetID, SetID, GetGroupID, SetGroupID, GetParentView, GetViewForID, SetBounds, GetBounds, GetBoundsInScreen, SetSize, GetSize, SetPosition, GetPosition, GetPreferredSize, SizeToPreferredSize, GetMinimumSize, GetMaximumSize, GetHeightForWidth, InvalidateLayout, SetVisible, IsVisible, IsDrawn, SetEnabled, IsEnabled, SetFocusable, IsFocusable, IsAccessibilityFocusable, RequestFocus, SetBackgroundColor, GetBackgroundColor, ConvertPointToScreen, ConvertPointFromScreen, ConvertPointToWindow, ConvertPointFromWindow, ConvertPointToView, ConvertPointFromView
   
Methods inherited from class CefBaseRefCounted
AddRef, Release, HasOneRef, HasAtLeastOneRef
 

Method Detail

AddChildView

public virtual void AddChildView( CefRefPtr< CefView > view )= 0;
Add a child View.

AddChildViewAt

public virtual void AddChildViewAt( CefRefPtr< CefView > view, int index )= 0;
Add a child View at the specified |index|. If |index| matches the result of GetChildCount() then the View will be added at the end.

AsWindow

public virtual CefRefPtr< CefWindow > AsWindow()= 0;
Returns this Panel as a Window or NULL if this is not a Window.

CreatePanel

public static CefRefPtr< CefPanel > CreatePanel( CefRefPtr< CefPanelDelegate > delegate );
Create a new Panel.

GetChildViewAt

public virtual CefRefPtr< CefView > GetChildViewAt( int index )= 0;
Returns the child View at the specified |index|.

GetChildViewCount

public virtual size_t GetChildViewCount()= 0;
Returns the number of child Views.

GetLayout

public virtual CefRefPtr< CefLayout > GetLayout()= 0;
Get the Layout.

Layout

public virtual void Layout()= 0;
Lay out the child Views (set their bounds based on sizing heuristics specific to the current Layout).

RemoveAllChildViews

public virtual void RemoveAllChildViews()= 0;
Remove all child Views. The removed Views will be deleted if the client holds no references to them.

RemoveChildView

public virtual void RemoveChildView( CefRefPtr< CefView > view )= 0;
Remove a child View. The View can then be added to another Panel.

ReorderChildView

public virtual void ReorderChildView( CefRefPtr< CefView > view, int index )= 0;
Move the child View to the specified |index|. A negative value for |index| will move the View to the end.

SetToBoxLayout

public virtual CefRefPtr< CefBoxLayout > SetToBoxLayout( const CefBoxLayoutSettings& settings )= 0;
Set this Panel's Layout to BoxLayout and return the BoxLayout object.

SetToFillLayout

public virtual CefRefPtr< CefFillLayout > SetToFillLayout()= 0;
Set this Panel's Layout to FillLayout and return the FillLayout object.

 Overview   Project   Class   Tree   Index 
CEF3 C++ API Docs - Version 75.1.4+g4210896+chromium-75.0.3770.100
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

Chromium Embedded Framework (CEF) Copyright © 2016 Marshall A. Greenblatt