#[repr(C)]pub struct _cef_find_handler_t {
pub base: cef_base_ref_counted_t,
pub on_find_result: Option<unsafe extern "C" fn(self_: *mut _cef_find_handler_t, browser: *mut _cef_browser_t, identifier: c_int, count: c_int, selectionRect: *const cef_rect_t, activeMatchOrdinal: c_int, finalUpdate: c_int)>,
}Expand description
Implement this structure to handle events related to find results. The functions of this structure will be called on the UI thread.
NOTE: This struct is allocated client-side.
Fields§
§base: cef_base_ref_counted_tBase structure.
on_find_result: Option<unsafe extern "C" fn(self_: *mut _cef_find_handler_t, browser: *mut _cef_browser_t, identifier: c_int, count: c_int, selectionRect: *const cef_rect_t, activeMatchOrdinal: c_int, finalUpdate: c_int)>Called to report find results returned by cef_browser_host_t::find(). |identifer| is a unique incremental identifier for the currently active search, |count| is the number of matches currently identified, |selectionRect| is the location of where the match was found (in window coordinates), |activeMatchOrdinal| is the current position in the search results, and |finalUpdate| is true (1) if this is the last find notification.
Trait Implementations§
Source§impl Clone for _cef_find_handler_t
impl Clone for _cef_find_handler_t
Source§fn clone(&self) -> _cef_find_handler_t
fn clone(&self) -> _cef_find_handler_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_find_handler_t
impl Debug for _cef_find_handler_t
impl Copy for _cef_find_handler_t
Auto Trait Implementations§
impl Freeze for _cef_find_handler_t
impl RefUnwindSafe for _cef_find_handler_t
impl Send for _cef_find_handler_t
impl Sync for _cef_find_handler_t
impl Unpin for _cef_find_handler_t
impl UnwindSafe for _cef_find_handler_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