# Class TCefButtonRef

Description
Hierarchy
Methods

## Unit

uCEFButton

## Declaration

`type TCefButtonRef = class(TCefViewRef, ICefButton)`

## Description

A View representing a button. Depending on the specific type, the button could be implemented by a native control or custom rendered. Methods must be called on the browser process UI thread unless otherwise indicated.

<see href="https://bitbucket.org/chromiumembedded/cef/src/master/include/capi/views/cef_button_capi.h">CEF source file: /include/capi/views/cef_button_capi.h (cef_button_t))

## Hierarchy

- TInterfacedObject
- TCefBaseRefCountedRef
- TCefViewRef
- TCefButtonRef

## Overview

### Methods

Protected | `function AsLabelButton: ICefLabelButton;`
Protected | `procedure SetState(state_: TCefButtonState);`
Protected | `function GetState: TCefButtonState;`
Protected | `procedure SetInkDropEnabled(enabled_: boolean);`
Protected | `procedure SetTooltipText(const tooltip_text: ustring);`
Protected | `procedure SetAccessibleName(const name: ustring);`
Public | `class function UnWrap(data: Pointer): ICefButton;`

## Description

### Methods

Protected | `function AsLabelButton: ICefLabelButton;`
Returns this Button as a LabelButton or NULL if this is not a LabelButton.

Protected | `procedure SetState(state_: TCefButtonState);`
Sets the current display state of the Button.

Protected | `function GetState: TCefButtonState;`
Returns the current display state of the Button.

Protected | `procedure SetInkDropEnabled(enabled_: boolean);`
Sets the Button will use an ink drop effect for displaying state changes.

Protected | `procedure SetTooltipText(const tooltip_text: ustring);`
Sets the tooltip text that will be displayed when the user hovers the mouse cursor over the Button.

Protected | `procedure SetAccessibleName(const name: ustring);`
Sets the accessible name that will be exposed to assistive technology (AT).

Public | `class function UnWrap(data: Pointer): ICefButton;`
Returns a ICefButton instance using a PCefButton data pointer.

Generated by PasDoc 1.0.4.