pub type cef_menu_button_delegate_t = _cef_menu_button_delegate_t;Expand description
Implement this structure to handle MenuButton 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_menu_button_delegate_t {
pub base: _cef_button_delegate_t,
pub on_menu_button_pressed: Option<unsafe extern "C" fn(*mut _cef_menu_button_delegate_t, *mut _cef_menu_button_t, *const _cef_point_t, *mut _cef_menu_button_pressed_lock_t)>,
}Fields§
§base: _cef_button_delegate_tBase structure.
Called when |button| is pressed. Call cef_menu_button_t::show_menu() to show a popup menu at |screen_point|. When showing a custom popup such as a window keep a reference to |button_pressed_lock| until the popup is hidden to maintain the pressed button state.