Chromium Embedded Framework (CEF)  130.1.2+g48f3ef6+chromium-130.0.6723.44
CefButtonDelegate Class Referenceabstract

Implement this interface to handle Button events. More...

#include "include/views/cef_button_delegate.h"

Inheritance diagram for CefButtonDelegate:
CefViewDelegate CefBaseRefCounted CefMenuButtonDelegate

Public Member Functions

virtual void OnButtonPressed (CefRefPtr< CefButton > button)=0
 Called when |button| is pressed. More...
 
virtual void OnButtonStateChanged (CefRefPtr< CefButton > button)
 Called when the state of |button| changes. More...
 
- Public Member Functions inherited from CefViewDelegate
virtual CefSize GetPreferredSize (CefRefPtr< CefView > view)
 Return the preferred size for |view|. More...
 
virtual CefSize GetMinimumSize (CefRefPtr< CefView > view)
 Return the minimum size for |view|. More...
 
virtual CefSize GetMaximumSize (CefRefPtr< CefView > view)
 Return the maximum size for |view|. More...
 
virtual int GetHeightForWidth (CefRefPtr< CefView > view, int width)
 Return the height necessary to display |view| with the provided |width|. More...
 
virtual void OnParentViewChanged (CefRefPtr< CefView > view, bool added, CefRefPtr< CefView > parent)
 Called when the parent of |view| has changed. More...
 
virtual void OnChildViewChanged (CefRefPtr< CefView > view, bool added, CefRefPtr< CefView > child)
 Called when a child of |view| has changed. More...
 
virtual void OnWindowChanged (CefRefPtr< CefView > view, bool added)
 Called when |view| is added or removed from the CefWindow. More...
 
virtual void OnLayoutChanged (CefRefPtr< CefView > view, const CefRect &new_bounds)
 Called when the layout of |view| has changed. More...
 
virtual void OnFocus (CefRefPtr< CefView > view)
 Called when |view| gains focus. More...
 
virtual void OnBlur (CefRefPtr< CefView > view)
 Called when |view| loses focus. More...
 
virtual void OnThemeChanged (CefRefPtr< CefView > view)
 Called when the theme for |view| has changed, after the new theme colors have already been applied. More...
 
- Public Member Functions inherited from CefBaseRefCounted
virtual void AddRef () const =0
 Called to increment the reference count for the object. More...
 
virtual bool Release () const =0
 Called to decrement the reference count for the object. More...
 
virtual bool HasOneRef () const =0
 Returns true if the reference count is 1. More...
 
virtual bool HasAtLeastOneRef () const =0
 Returns true if the reference count is at least 1. More...
 

Additional Inherited Members

- Protected Member Functions inherited from CefBaseRefCounted
virtual ~CefBaseRefCounted ()
 

Detailed Description

Implement this interface to handle Button events.

The methods of this class will be called on the browser process UI thread unless otherwise indicated.

Member Function Documentation

◆ OnButtonPressed()

virtual void CefButtonDelegate::OnButtonPressed ( CefRefPtr< CefButton button)
pure virtual

Called when |button| is pressed.

◆ OnButtonStateChanged()

virtual void CefButtonDelegate::OnButtonStateChanged ( CefRefPtr< CefButton button)
inlinevirtual

Called when the state of |button| changes.


The documentation for this class was generated from the following file: