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 CefViewDelegate

CefBaseRefCounted
   |
   +--CefViewDelegate

   in cef_view_delegate.h
Direct Known Subclasses:
CefBrowserViewDelegate, CefButtonDelegate, CefPanelDelegate, CefTextfieldDelegate

class CefViewDelegate
extends CefBaseRefCounted

Implement this interface to handle view events. The methods of this class will be called on the browser process UI thread unless otherwise indicated.


Method Summary
 virtual int GetHeightForWidth( CefRefPtr< CefView > view, int width )
          Return the height necessary to display |view| with the provided |width|.
 virtual CefSize GetMaximumSize( CefRefPtr< CefView > view )
          Return the maximum size for |view|.
 virtual CefSize GetMinimumSize( CefRefPtr< CefView > view )
          Return the minimum size for |view|.
 virtual CefSize GetPreferredSize( CefRefPtr< CefView > view )
          Return the preferred size for |view|.
 virtual void OnBlur( CefRefPtr< CefView > view )
          Called when |view| loses focus.
 virtual void OnChildViewChanged( CefRefPtr< CefView > view, bool added, CefRefPtr< CefView > child )
          Called when a child of |view| has changed.
 virtual void OnFocus( CefRefPtr< CefView > view )
          Called when |view| gains focus.
 virtual void OnParentViewChanged( CefRefPtr< CefView > view, bool added, CefRefPtr< CefView > parent )
          Called when the parent of |view| has changed.
   
Methods inherited from class CefBaseRefCounted
AddRef, Release, HasOneRef, HasAtLeastOneRef
 

Method Detail

GetHeightForWidth

public virtual int GetHeightForWidth( CefRefPtr< CefView > view, int width );
Return the height necessary to display |view| with the provided |width|. If not specified the result of GetPreferredSize().height will be used by default. Override if |view|'s preferred height depends upon the width (for example, with Labels).

GetMaximumSize

public virtual CefSize GetMaximumSize( CefRefPtr< CefView > view );
Return the maximum size for |view|.

GetMinimumSize

public virtual CefSize GetMinimumSize( CefRefPtr< CefView > view );
Return the minimum size for |view|.

GetPreferredSize

public virtual CefSize GetPreferredSize( CefRefPtr< CefView > view );
Return the preferred size for |view|. The Layout will use this information to determine the display size.

OnBlur

public virtual void OnBlur( CefRefPtr< CefView > view );
Called when |view| loses focus.

OnChildViewChanged

public virtual void OnChildViewChanged( CefRefPtr< CefView > view, bool added, CefRefPtr< CefView > child );
Called when a child of |view| has changed. If |child| is being added to |view| then |added| will be true. If |child| is being removed from |view| then |added| will be false. If |child| is being reparented the remove notification will be sent to the old parent before the add notification is sent to the new parent. Do not modify the view hierarchy in this callback.

OnFocus

public virtual void OnFocus( CefRefPtr< CefView > view );
Called when |view| gains focus.

OnParentViewChanged

public virtual void OnParentViewChanged( CefRefPtr< CefView > view, bool added, CefRefPtr< CefView > parent );
Called when the parent of |view| has changed. If |view| is being added to |parent| then |added| will be true. If |view| is being removed from |parent| then |added| will be false. If |view| is being reparented the remove notification will be sent before the add notification. Do not modify the view hierarchy in this callback.

 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