#[repr(C)]pub struct _cef_button_delegate_t {
pub base: cef_view_delegate_t,
pub on_button_pressed: Option<unsafe extern "C" fn(self_: *mut _cef_button_delegate_t, button: *mut _cef_button_t)>,
pub on_button_state_changed: Option<unsafe extern "C" fn(self_: *mut _cef_button_delegate_t, button: *mut _cef_button_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.
Fields§
§base: cef_view_delegate_tBase structure.
Called when |button| is pressed.
Called when the state of |button| changes.
Trait Implementations§
Source§fn clone(&self) -> _cef_button_delegate_t
fn clone(&self) -> _cef_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