cef_button_delegate_t

Type Alias cef_button_delegate_t 

Source
pub type cef_button_delegate_t = _cef_button_delegate_t;
Expand description

Implement this structure to handle Button events. The functions of this structure will be called on the browser process UI thread unless otherwise indicated.

NOTE: This struct is allocated client-side.

Aliased Type§

#[repr(C)]
pub struct cef_button_delegate_t { pub base: _cef_view_delegate_t, pub on_button_pressed: Option<unsafe extern "C" fn(*mut _cef_button_delegate_t, *mut _cef_button_t)>, pub on_button_state_changed: Option<unsafe extern "C" fn(*mut _cef_button_delegate_t, *mut _cef_button_t)>, }

Fields§

§base: _cef_view_delegate_t

Base structure.

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

Called when |button| is pressed.

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

Called when the state of |button| changes.