cef_textfield_delegate_t

Type Alias cef_textfield_delegate_t 

Source
pub type cef_textfield_delegate_t = _cef_textfield_delegate_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.

Aliased Type§

#[repr(C)]
pub struct cef_textfield_delegate_t { pub base: _cef_view_delegate_t, pub on_key_event: Option<unsafe extern "C" fn(*mut _cef_textfield_delegate_t, *mut _cef_textfield_t, *const _cef_key_event_t) -> i32>, pub on_after_user_action: Option<unsafe extern "C" fn(*mut _cef_textfield_delegate_t, *mut _cef_textfield_t)>, }

Fields§

§base: _cef_view_delegate_t

Base structure.

§on_key_event: Option<unsafe extern "C" fn(*mut _cef_textfield_delegate_t, *mut _cef_textfield_t, *const _cef_key_event_t) -> i32>

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(*mut _cef_textfield_delegate_t, *mut _cef_textfield_t)>

Called after performing a user action that may change |textfield|.