cef_button_t

Type Alias cef_button_t 

Source
pub type cef_button_t = _cef_button_t;
Expand 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.

NOTE: This struct is allocated DLL-side.

Aliased Type§

#[repr(C)]
pub struct cef_button_t { pub base: _cef_view_t, pub as_label_button: Option<unsafe extern "C" fn(*mut _cef_button_t) -> *mut _cef_label_button_t>, pub set_state: Option<unsafe extern "C" fn(*mut _cef_button_t, cef_button_state_t)>, pub get_state: Option<unsafe extern "C" fn(*mut _cef_button_t) -> cef_button_state_t>, pub set_ink_drop_enabled: Option<unsafe extern "C" fn(*mut _cef_button_t, i32)>, pub set_tooltip_text: Option<unsafe extern "C" fn(*mut _cef_button_t, *const _cef_string_utf16_t)>, pub set_accessible_name: Option<unsafe extern "C" fn(*mut _cef_button_t, *const _cef_string_utf16_t)>, }

Fields§

§base: _cef_view_t

Base structure.

§as_label_button: Option<unsafe extern "C" fn(*mut _cef_button_t) -> *mut _cef_label_button_t>

Returns this Button as a LabelButton or NULL if this is not a LabelButton.

§set_state: Option<unsafe extern "C" fn(*mut _cef_button_t, cef_button_state_t)>

Sets the current display state of the Button.

§get_state: Option<unsafe extern "C" fn(*mut _cef_button_t) -> cef_button_state_t>

Returns the current display state of the Button.

§set_ink_drop_enabled: Option<unsafe extern "C" fn(*mut _cef_button_t, i32)>

Sets the Button will use an ink drop effect for displaying state changes.

§set_tooltip_text: Option<unsafe extern "C" fn(*mut _cef_button_t, *const _cef_string_utf16_t)>

Sets the tooltip text that will be displayed when the user hovers the mouse cursor over the Button.

§set_accessible_name: Option<unsafe extern "C" fn(*mut _cef_button_t, *const _cef_string_utf16_t)>

Sets the accessible name that will be exposed to assistive technology (AT).