|
CEF3 C++ API Docs - Version 80.1.4+g8927396+chromium-80.0.3987.149 | ||||||
FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
CefBaseRefCounted | +--CefView | +--CefButton | +--CefLabelButtonin cef_label_button.h
LabelButton is a button with optional text and/or icon. Methods must be called on the browser process UI thread unless otherwise indicated.
Method Summary | |
virtual CefRefPtr< CefMenuButton > |
AsMenuButton()= 0
Returns this LabelButton as a MenuButton or NULL if this is not a MenuButton. |
static CefRefPtr< CefLabelButton > |
CreateLabelButton( CefRefPtr< CefButtonDelegate > delegate, const CefString& text )
Create a new LabelButton. |
virtual CefRefPtr< CefImage > |
GetImage( cef_button_state_t button_state )= 0
Returns the image shown for |button_state|. |
virtual CefString |
GetText()= 0
Returns the text shown on the LabelButton. |
virtual void |
SetEnabledTextColors( cef_color_t color )= 0
Sets the text colors shown for the non-disabled states to |color|. |
virtual void |
SetFontList( const CefString& font_list )= 0
Sets the font list. |
virtual void |
SetHorizontalAlignment( cef_horizontal_alignment_t alignment )= 0
Sets the horizontal alignment; reversed in RTL. |
virtual void |
SetImage( cef_button_state_t button_state, CefRefPtr< CefImage > image )= 0
Sets the image shown for |button_state|. |
virtual void |
SetMaximumSize( const CefSize& size )= 0
Reset the maximum size of this LabelButton to |size|. |
virtual void |
SetMinimumSize( const CefSize& size )= 0
Reset the minimum size of this LabelButton to |size|. |
virtual void |
SetText( const CefString& text )= 0
Sets the text shown on the LabelButton. |
virtual void |
SetTextColor( cef_button_state_t for_state, cef_color_t color )= 0
Sets the text color shown for the specified button |for_state| to |color|. |
Methods inherited from class CefButton |
AsLabelButton, SetState, GetState, SetInkDropEnabled, SetTooltipText, SetAccessibleName |
Methods inherited from class CefBaseRefCounted |
AddRef, Release, HasOneRef, HasAtLeastOneRef |
Method Detail |
public virtual CefRefPtr< CefMenuButton > AsMenuButton()= 0;
public static CefRefPtr< CefLabelButton > CreateLabelButton( CefRefPtr< CefButtonDelegate > delegate, const CefString& text );
public virtual CefRefPtr< CefImage > GetImage( cef_button_state_t button_state )= 0;
public virtual CefString GetText()= 0;
public virtual void SetEnabledTextColors( cef_color_t color )= 0;
public virtual void SetFontList( const CefString& font_list )= 0;
public virtual void SetHorizontalAlignment( cef_horizontal_alignment_t alignment )= 0;
public virtual void SetImage( cef_button_state_t button_state, CefRefPtr< CefImage > image )= 0;
public virtual void SetMaximumSize( const CefSize& size )= 0;
public virtual void SetMinimumSize( const CefSize& size )= 0;
public virtual void SetText( const CefString& text )= 0;
public virtual void SetTextColor( cef_button_state_t for_state, cef_color_t color )= 0;
|
CEF3 C++ API Docs - Version 80.1.4+g8927396+chromium-80.0.3987.149 | ||||||
FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |