#[repr(C)]pub struct _cef_textfield_delegate_t {
pub base: cef_view_delegate_t,
pub on_key_event: Option<unsafe extern "C" fn(self_: *mut _cef_textfield_delegate_t, textfield: *mut _cef_textfield_t, event: *const cef_key_event_t) -> c_int>,
pub on_after_user_action: Option<unsafe extern "C" fn(self_: *mut _cef_textfield_delegate_t, textfield: *mut _cef_textfield_t)>,
}Expand description
Implement this structure to handle Textfield 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.
on_key_event: Option<unsafe extern "C" fn(self_: *mut _cef_textfield_delegate_t, textfield: *mut _cef_textfield_t, event: *const cef_key_event_t) -> c_int>Called when |textfield| receives a keyboard event. |event| contains information about the keyboard event. Return true (1) if the keyboard event was handled or false (0) otherwise for default handling.
on_after_user_action: Option<unsafe extern "C" fn(self_: *mut _cef_textfield_delegate_t, textfield: *mut _cef_textfield_t)>Called after performing a user action that may change |textfield|.
Trait Implementations§
Source§impl Clone for _cef_textfield_delegate_t
impl Clone for _cef_textfield_delegate_t
Source§fn clone(&self) -> _cef_textfield_delegate_t
fn clone(&self) -> _cef_textfield_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 moreSource§impl Debug for _cef_textfield_delegate_t
impl Debug for _cef_textfield_delegate_t
impl Copy for _cef_textfield_delegate_t
Auto Trait Implementations§
impl Freeze for _cef_textfield_delegate_t
impl RefUnwindSafe for _cef_textfield_delegate_t
impl Send for _cef_textfield_delegate_t
impl Sync for _cef_textfield_delegate_t
impl Unpin for _cef_textfield_delegate_t
impl UnwindSafe for _cef_textfield_delegate_t
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