pub struct BrowserHost(/* private fields */);Expand description
See _cef_browser_host_t for more documentation.
Trait Implementations§
Source§impl Clone for BrowserHost
impl Clone for BrowserHost
Source§fn clone(&self) -> BrowserHost
fn clone(&self) -> BrowserHost
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_browser_host_t> for &BrowserHost
impl ConvertParam<*mut _cef_browser_host_t> for &BrowserHost
fn into_raw(self) -> *mut _cef_browser_host_t
Source§impl ConvertParam<*mut _cef_browser_host_t> for &mut BrowserHost
impl ConvertParam<*mut _cef_browser_host_t> for &mut BrowserHost
fn into_raw(self) -> *mut _cef_browser_host_t
Source§impl ConvertReturnValue<BrowserHost> for *mut _cef_browser_host_t
impl ConvertReturnValue<BrowserHost> for *mut _cef_browser_host_t
fn wrap_result(self) -> BrowserHost
Source§impl From<BrowserHost> for *mut _cef_browser_host_t
impl From<BrowserHost> for *mut _cef_browser_host_t
Source§fn from(value: BrowserHost) -> Self
fn from(value: BrowserHost) -> Self
Converts to this type from the input type.
Source§impl ImplBrowserHost for BrowserHost
impl ImplBrowserHost for BrowserHost
Source§fn browser(&self) -> Option<Browser>
fn browser(&self) -> Option<Browser>
See
_cef_browser_host_t::get_browser for more documentation.Source§fn close_browser(&self, force_close: c_int)
fn close_browser(&self, force_close: c_int)
See
_cef_browser_host_t::close_browser for more documentation.Source§fn try_close_browser(&self) -> c_int
fn try_close_browser(&self) -> c_int
See
_cef_browser_host_t::try_close_browser for more documentation.Source§fn is_ready_to_be_closed(&self) -> c_int
fn is_ready_to_be_closed(&self) -> c_int
See
_cef_browser_host_t::is_ready_to_be_closed for more documentation.Source§fn set_focus(&self, focus: c_int)
fn set_focus(&self, focus: c_int)
See
_cef_browser_host_t::set_focus for more documentation.Source§fn window_handle(&self) -> cef_window_handle_t
fn window_handle(&self) -> cef_window_handle_t
See
_cef_browser_host_t::get_window_handle for more documentation.Source§fn opener_window_handle(&self) -> cef_window_handle_t
fn opener_window_handle(&self) -> cef_window_handle_t
See
_cef_browser_host_t::get_opener_window_handle for more documentation.Source§fn opener_identifier(&self) -> c_int
fn opener_identifier(&self) -> c_int
See
_cef_browser_host_t::get_opener_identifier for more documentation.Source§fn has_view(&self) -> c_int
fn has_view(&self) -> c_int
See
_cef_browser_host_t::has_view for more documentation.Source§fn client(&self) -> Option<Client>
fn client(&self) -> Option<Client>
See
_cef_browser_host_t::get_client for more documentation.Source§fn request_context(&self) -> Option<RequestContext>
fn request_context(&self) -> Option<RequestContext>
See
_cef_browser_host_t::get_request_context for more documentation.Source§fn can_zoom(&self, command: ZoomCommand) -> c_int
fn can_zoom(&self, command: ZoomCommand) -> c_int
See
_cef_browser_host_t::can_zoom for more documentation.Source§fn zoom(&self, command: ZoomCommand)
fn zoom(&self, command: ZoomCommand)
See
_cef_browser_host_t::zoom for more documentation.Source§fn default_zoom_level(&self) -> f64
fn default_zoom_level(&self) -> f64
See
_cef_browser_host_t::get_default_zoom_level for more documentation.Source§fn zoom_level(&self) -> f64
fn zoom_level(&self) -> f64
See
_cef_browser_host_t::get_zoom_level for more documentation.Source§fn set_zoom_level(&self, zoom_level: f64)
fn set_zoom_level(&self, zoom_level: f64)
See
_cef_browser_host_t::set_zoom_level for more documentation.Source§fn run_file_dialog(
&self,
mode: FileDialogMode,
title: Option<&CefString>,
default_file_path: Option<&CefString>,
accept_filters: Option<&mut CefStringList>,
callback: Option<&mut RunFileDialogCallback>,
)
fn run_file_dialog( &self, mode: FileDialogMode, title: Option<&CefString>, default_file_path: Option<&CefString>, accept_filters: Option<&mut CefStringList>, callback: Option<&mut RunFileDialogCallback>, )
See
_cef_browser_host_t::run_file_dialog for more documentation.Source§fn start_download(&self, url: Option<&CefString>)
fn start_download(&self, url: Option<&CefString>)
See
_cef_browser_host_t::start_download for more documentation.Source§fn download_image(
&self,
image_url: Option<&CefString>,
is_favicon: c_int,
max_image_size: u32,
bypass_cache: c_int,
callback: Option<&mut DownloadImageCallback>,
)
fn download_image( &self, image_url: Option<&CefString>, is_favicon: c_int, max_image_size: u32, bypass_cache: c_int, callback: Option<&mut DownloadImageCallback>, )
See
_cef_browser_host_t::download_image for more documentation.Source§fn print(&self)
fn print(&self)
See
_cef_browser_host_t::print for more documentation.Source§fn print_to_pdf(
&self,
path: Option<&CefString>,
settings: Option<&PdfPrintSettings>,
callback: Option<&mut PdfPrintCallback>,
)
fn print_to_pdf( &self, path: Option<&CefString>, settings: Option<&PdfPrintSettings>, callback: Option<&mut PdfPrintCallback>, )
See
_cef_browser_host_t::print_to_pdf for more documentation.Source§fn find(
&self,
search_text: Option<&CefString>,
forward: c_int,
match_case: c_int,
find_next: c_int,
)
fn find( &self, search_text: Option<&CefString>, forward: c_int, match_case: c_int, find_next: c_int, )
See
_cef_browser_host_t::find for more documentation.Source§fn stop_finding(&self, clear_selection: c_int)
fn stop_finding(&self, clear_selection: c_int)
See
_cef_browser_host_t::stop_finding for more documentation.Source§fn show_dev_tools(
&self,
window_info: Option<&WindowInfo>,
client: Option<&mut Client>,
settings: Option<&BrowserSettings>,
inspect_element_at: Option<&Point>,
)
fn show_dev_tools( &self, window_info: Option<&WindowInfo>, client: Option<&mut Client>, settings: Option<&BrowserSettings>, inspect_element_at: Option<&Point>, )
See
_cef_browser_host_t::show_dev_tools for more documentation.Source§fn close_dev_tools(&self)
fn close_dev_tools(&self)
See
_cef_browser_host_t::close_dev_tools for more documentation.Source§fn has_dev_tools(&self) -> c_int
fn has_dev_tools(&self) -> c_int
See
_cef_browser_host_t::has_dev_tools for more documentation.Source§fn send_dev_tools_message(&self, message: Option<&[u8]>) -> c_int
fn send_dev_tools_message(&self, message: Option<&[u8]>) -> c_int
See
_cef_browser_host_t::send_dev_tools_message for more documentation.Source§fn execute_dev_tools_method(
&self,
message_id: c_int,
method: Option<&CefString>,
params: Option<&mut DictionaryValue>,
) -> c_int
fn execute_dev_tools_method( &self, message_id: c_int, method: Option<&CefString>, params: Option<&mut DictionaryValue>, ) -> c_int
See
_cef_browser_host_t::execute_dev_tools_method for more documentation.Source§fn add_dev_tools_message_observer(
&self,
observer: Option<&mut DevToolsMessageObserver>,
) -> Option<Registration>
fn add_dev_tools_message_observer( &self, observer: Option<&mut DevToolsMessageObserver>, ) -> Option<Registration>
See
_cef_browser_host_t::add_dev_tools_message_observer for more documentation.See
_cef_browser_host_t::get_navigation_entries for more documentation.Source§fn replace_misspelling(&self, word: Option<&CefString>)
fn replace_misspelling(&self, word: Option<&CefString>)
See
_cef_browser_host_t::replace_misspelling for more documentation.Source§fn add_word_to_dictionary(&self, word: Option<&CefString>)
fn add_word_to_dictionary(&self, word: Option<&CefString>)
See
_cef_browser_host_t::add_word_to_dictionary for more documentation.Source§fn is_window_rendering_disabled(&self) -> c_int
fn is_window_rendering_disabled(&self) -> c_int
See
_cef_browser_host_t::is_window_rendering_disabled for more documentation.Source§fn was_resized(&self)
fn was_resized(&self)
See
_cef_browser_host_t::was_resized for more documentation.See
_cef_browser_host_t::was_hidden for more documentation.Source§fn notify_screen_info_changed(&self)
fn notify_screen_info_changed(&self)
See
_cef_browser_host_t::notify_screen_info_changed for more documentation.Source§fn invalidate(&self, type_: PaintElementType)
fn invalidate(&self, type_: PaintElementType)
See
_cef_browser_host_t::invalidate for more documentation.Source§fn send_external_begin_frame(&self)
fn send_external_begin_frame(&self)
See
_cef_browser_host_t::send_external_begin_frame for more documentation.Source§fn send_key_event(&self, event: Option<&KeyEvent>)
fn send_key_event(&self, event: Option<&KeyEvent>)
See
_cef_browser_host_t::send_key_event for more documentation.Source§fn send_mouse_click_event(
&self,
event: Option<&MouseEvent>,
type_: MouseButtonType,
mouse_up: c_int,
click_count: c_int,
)
fn send_mouse_click_event( &self, event: Option<&MouseEvent>, type_: MouseButtonType, mouse_up: c_int, click_count: c_int, )
See
_cef_browser_host_t::send_mouse_click_event for more documentation.Source§fn send_mouse_move_event(&self, event: Option<&MouseEvent>, mouse_leave: c_int)
fn send_mouse_move_event(&self, event: Option<&MouseEvent>, mouse_leave: c_int)
See
_cef_browser_host_t::send_mouse_move_event for more documentation.Source§fn send_mouse_wheel_event(
&self,
event: Option<&MouseEvent>,
delta_x: c_int,
delta_y: c_int,
)
fn send_mouse_wheel_event( &self, event: Option<&MouseEvent>, delta_x: c_int, delta_y: c_int, )
See
_cef_browser_host_t::send_mouse_wheel_event for more documentation.Source§fn send_touch_event(&self, event: Option<&TouchEvent>)
fn send_touch_event(&self, event: Option<&TouchEvent>)
See
_cef_browser_host_t::send_touch_event for more documentation.Source§fn send_capture_lost_event(&self)
fn send_capture_lost_event(&self)
See
_cef_browser_host_t::send_capture_lost_event for more documentation.Source§fn notify_move_or_resize_started(&self)
fn notify_move_or_resize_started(&self)
See
_cef_browser_host_t::notify_move_or_resize_started for more documentation.Source§fn windowless_frame_rate(&self) -> c_int
fn windowless_frame_rate(&self) -> c_int
See
_cef_browser_host_t::get_windowless_frame_rate for more documentation.Source§fn set_windowless_frame_rate(&self, frame_rate: c_int)
fn set_windowless_frame_rate(&self, frame_rate: c_int)
See
_cef_browser_host_t::set_windowless_frame_rate for more documentation.Source§fn ime_set_composition(
&self,
text: Option<&CefString>,
underlines_count: usize,
underlines: Option<&CompositionUnderline>,
replacement_range: Option<&Range>,
selection_range: Option<&Range>,
)
fn ime_set_composition( &self, text: Option<&CefString>, underlines_count: usize, underlines: Option<&CompositionUnderline>, replacement_range: Option<&Range>, selection_range: Option<&Range>, )
See
_cef_browser_host_t::ime_set_composition for more documentation.Source§fn ime_commit_text(
&self,
text: Option<&CefString>,
replacement_range: Option<&Range>,
relative_cursor_pos: c_int,
)
fn ime_commit_text( &self, text: Option<&CefString>, replacement_range: Option<&Range>, relative_cursor_pos: c_int, )
See
_cef_browser_host_t::ime_commit_text for more documentation.Source§fn ime_finish_composing_text(&self, keep_selection: c_int)
fn ime_finish_composing_text(&self, keep_selection: c_int)
See
_cef_browser_host_t::ime_finish_composing_text for more documentation.Source§fn ime_cancel_composition(&self)
fn ime_cancel_composition(&self)
See
_cef_browser_host_t::ime_cancel_composition for more documentation.Source§fn drag_target_drag_enter(
&self,
drag_data: Option<&mut DragData>,
event: Option<&MouseEvent>,
allowed_ops: DragOperationsMask,
)
fn drag_target_drag_enter( &self, drag_data: Option<&mut DragData>, event: Option<&MouseEvent>, allowed_ops: DragOperationsMask, )
See
_cef_browser_host_t::drag_target_drag_enter for more documentation.Source§fn drag_target_drag_over(
&self,
event: Option<&MouseEvent>,
allowed_ops: DragOperationsMask,
)
fn drag_target_drag_over( &self, event: Option<&MouseEvent>, allowed_ops: DragOperationsMask, )
See
_cef_browser_host_t::drag_target_drag_over for more documentation.Source§fn drag_target_drag_leave(&self)
fn drag_target_drag_leave(&self)
See
_cef_browser_host_t::drag_target_drag_leave for more documentation.Source§fn drag_target_drop(&self, event: Option<&MouseEvent>)
fn drag_target_drop(&self, event: Option<&MouseEvent>)
See
_cef_browser_host_t::drag_target_drop for more documentation.Source§fn drag_source_ended_at(&self, x: c_int, y: c_int, op: DragOperationsMask)
fn drag_source_ended_at(&self, x: c_int, y: c_int, op: DragOperationsMask)
See
_cef_browser_host_t::drag_source_ended_at for more documentation.Source§fn drag_source_system_drag_ended(&self)
fn drag_source_system_drag_ended(&self)
See
_cef_browser_host_t::drag_source_system_drag_ended for more documentation.See
_cef_browser_host_t::get_visible_navigation_entry for more documentation.Source§fn set_accessibility_state(&self, accessibility_state: State)
fn set_accessibility_state(&self, accessibility_state: State)
See
_cef_browser_host_t::set_accessibility_state for more documentation.Source§fn set_auto_resize_enabled(
&self,
enabled: c_int,
min_size: Option<&Size>,
max_size: Option<&Size>,
)
fn set_auto_resize_enabled( &self, enabled: c_int, min_size: Option<&Size>, max_size: Option<&Size>, )
See
_cef_browser_host_t::set_auto_resize_enabled for more documentation.Source§fn set_audio_muted(&self, mute: c_int)
fn set_audio_muted(&self, mute: c_int)
See
_cef_browser_host_t::set_audio_muted for more documentation.Source§fn is_audio_muted(&self) -> c_int
fn is_audio_muted(&self) -> c_int
See
_cef_browser_host_t::is_audio_muted for more documentation.Source§fn is_fullscreen(&self) -> c_int
fn is_fullscreen(&self) -> c_int
See
_cef_browser_host_t::is_fullscreen for more documentation.Source§fn exit_fullscreen(&self, will_cause_resize: c_int)
fn exit_fullscreen(&self, will_cause_resize: c_int)
See
_cef_browser_host_t::exit_fullscreen for more documentation.Source§fn can_execute_chrome_command(&self, command_id: c_int) -> c_int
fn can_execute_chrome_command(&self, command_id: c_int) -> c_int
See
_cef_browser_host_t::can_execute_chrome_command for more documentation.Source§fn execute_chrome_command(
&self,
command_id: c_int,
disposition: WindowOpenDisposition,
)
fn execute_chrome_command( &self, command_id: c_int, disposition: WindowOpenDisposition, )
See
_cef_browser_host_t::execute_chrome_command for more documentation.Source§fn is_render_process_unresponsive(&self) -> c_int
fn is_render_process_unresponsive(&self) -> c_int
See
_cef_browser_host_t::is_render_process_unresponsive for more documentation.Source§fn runtime_style(&self) -> RuntimeStyle
fn runtime_style(&self) -> RuntimeStyle
See
_cef_browser_host_t::get_runtime_style for more documentation.fn get_raw(&self) -> *mut _cef_browser_host_t
Source§impl Rc for BrowserHost
impl Rc for BrowserHost
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 BrowserHost
impl RefUnwindSafe for BrowserHost
impl Send for BrowserHost
impl Sync for BrowserHost
impl Unpin for BrowserHost
impl UnwindSafe for BrowserHost
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