Overview   Project   Class   Tree   Index 
CEF3 C++ API Docs - Version 80.1.4+g8927396+chromium-80.0.3987.149
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

(default)
Class CefBoxLayout

CefBaseRefCounted
   |
   +--CefLayout
         |
         +--CefBoxLayout

   in cef_box_layout.h

class CefBoxLayout
extends CefLayout

A Layout manager that arranges child views vertically or horizontally in a side-by-side fashion with spacing around and between the child views. The child views are always sized according to their preferred size. If the host's bounds provide insufficient space, child views will be clamped. Excess space will not be distributed. Methods must be called on the browser process UI thread unless otherwise indicated.


Method Summary
 virtual void ClearFlexForView( CefRefPtr< CefView > view )= 0
          Clears the flex for the given |view|, causing it to use the default flex specified via CefBoxLayoutSettings.
 virtual void SetFlexForView( CefRefPtr< CefView > view, int flex )= 0
          Set the flex weight for the given |view|.
   
Methods inherited from class CefLayout
AsBoxLayout, AsFillLayout, IsValid
   
Methods inherited from class CefBaseRefCounted
AddRef, Release, HasOneRef, HasAtLeastOneRef
 

Method Detail

ClearFlexForView

public virtual void ClearFlexForView( CefRefPtr< CefView > view )= 0;
Clears the flex for the given |view|, causing it to use the default flex specified via CefBoxLayoutSettings.default_flex.

SetFlexForView

public virtual void SetFlexForView( CefRefPtr< CefView > view, int flex )= 0;
Set the flex weight for the given |view|. Using the preferred size as the basis, free space along the main axis is distributed to views in the ratio of their flex weights. Similarly, if the views will overflow the parent, space is subtracted in these ratios. A flex of 0 means this view is not resized. Flex values must not be negative.

 Overview   Project   Class   Tree   Index 
CEF3 C++ API Docs - Version 80.1.4+g8927396+chromium-80.0.3987.149
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

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