pub struct KeyboardHandler(/* private fields */);Expand description
See _cef_keyboard_handler_t for more documentation.
Implementations§
Source§impl KeyboardHandler
impl KeyboardHandler
pub fn new<T>(interface: T) -> Selfwhere
T: WrapKeyboardHandler,
Trait Implementations§
Source§impl Clone for KeyboardHandler
impl Clone for KeyboardHandler
Source§fn clone(&self) -> KeyboardHandler
fn clone(&self) -> KeyboardHandler
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 ConvertParam<*mut _cef_keyboard_handler_t> for &KeyboardHandler
impl ConvertParam<*mut _cef_keyboard_handler_t> for &KeyboardHandler
fn into_raw(self) -> *mut _cef_keyboard_handler_t
Source§impl ConvertParam<*mut _cef_keyboard_handler_t> for &mut KeyboardHandler
impl ConvertParam<*mut _cef_keyboard_handler_t> for &mut KeyboardHandler
fn into_raw(self) -> *mut _cef_keyboard_handler_t
Source§impl ConvertReturnValue<KeyboardHandler> for *mut _cef_keyboard_handler_t
impl ConvertReturnValue<KeyboardHandler> for *mut _cef_keyboard_handler_t
fn wrap_result(self) -> KeyboardHandler
Source§impl From<KeyboardHandler> for *mut _cef_keyboard_handler_t
impl From<KeyboardHandler> for *mut _cef_keyboard_handler_t
Source§fn from(value: KeyboardHandler) -> Self
fn from(value: KeyboardHandler) -> Self
Converts to this type from the input type.
Source§impl ImplKeyboardHandler for KeyboardHandler
impl ImplKeyboardHandler for KeyboardHandler
Source§fn on_pre_key_event(
&self,
browser: Option<&mut Browser>,
event: Option<&KeyEvent>,
os_event: Option<&mut XEvent>,
is_keyboard_shortcut: Option<&mut c_int>,
) -> c_int
fn on_pre_key_event( &self, browser: Option<&mut Browser>, event: Option<&KeyEvent>, os_event: Option<&mut XEvent>, is_keyboard_shortcut: Option<&mut c_int>, ) -> c_int
See
_cef_keyboard_handler_t::on_pre_key_event for more documentation.Source§fn on_key_event(
&self,
browser: Option<&mut Browser>,
event: Option<&KeyEvent>,
os_event: Option<&mut XEvent>,
) -> c_int
fn on_key_event( &self, browser: Option<&mut Browser>, event: Option<&KeyEvent>, os_event: Option<&mut XEvent>, ) -> c_int
See
_cef_keyboard_handler_t::on_key_event for more documentation.fn get_raw(&self) -> *mut _cef_keyboard_handler_t
fn init_methods(object: &mut _cef_keyboard_handler_t)
Source§impl Rc for KeyboardHandler
impl Rc for KeyboardHandler
Source§fn as_base(&self) -> &_cef_base_ref_counted_t
fn as_base(&self) -> &_cef_base_ref_counted_t
Get the reference of cef_base_ref_counted_t.
Source§unsafe fn release(&self) -> bool
unsafe fn release(&self) -> bool
Decrease reference count by 1 and release the value if the count meets 0.
Reuturn
True if it is released. Read moreSource§fn has_one_ref(&self) -> bool
fn has_one_ref(&self) -> bool
True if the reference count is exactly 1.Source§fn has_at_least_one_ref(&self) -> bool
fn has_at_least_one_ref(&self) -> bool
True if the reference count is larger than 0.Auto Trait Implementations§
impl Freeze for KeyboardHandler
impl RefUnwindSafe for KeyboardHandler
impl Send for KeyboardHandler
impl Sync for KeyboardHandler
impl Unpin for KeyboardHandler
impl UnwindSafe for KeyboardHandler
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