#[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(self_: *mut _cef_menu_button_delegate_t, menu_button: *mut _cef_menu_button_t, screen_point: *const cef_point_t, button_pressed_lock: *mut _cef_menu_button_pressed_lock_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.
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.
Trait Implementations§
Source§fn clone(&self) -> _cef_menu_button_delegate_t
fn clone(&self) -> _cef_menu_button_delegate_t
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more