BrowserHost

Struct BrowserHost 

Source
pub struct BrowserHost(/* private fields */);
Expand description

See _cef_browser_host_t for more documentation.

Trait Implementations§

Source§

impl Clone for BrowserHost

Source§

fn clone(&self) -> BrowserHost

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl ConvertParam<*mut _cef_browser_host_t> for &BrowserHost

Source§

impl ConvertParam<*mut _cef_browser_host_t> for &mut BrowserHost

Source§

impl ConvertReturnValue<BrowserHost> for *mut _cef_browser_host_t

Source§

impl From<BrowserHost> for *mut _cef_browser_host_t

Source§

fn from(value: BrowserHost) -> Self

Converts to this type from the input type.
Source§

impl ImplBrowserHost for BrowserHost

Source§

fn browser(&self) -> Option<Browser>

See _cef_browser_host_t::get_browser for more documentation.
Source§

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

See _cef_browser_host_t::try_close_browser for more documentation.
Source§

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)

See _cef_browser_host_t::set_focus for more documentation.
Source§

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

Source§

fn opener_identifier(&self) -> c_int

See _cef_browser_host_t::get_opener_identifier for more documentation.
Source§

fn has_view(&self) -> c_int

See _cef_browser_host_t::has_view for more documentation.
Source§

fn client(&self) -> Option<Client>

See _cef_browser_host_t::get_client for more documentation.
Source§

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

See _cef_browser_host_t::can_zoom for more documentation.
Source§

fn zoom(&self, command: ZoomCommand)

See _cef_browser_host_t::zoom for more documentation.
Source§

fn default_zoom_level(&self) -> f64

Source§

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)

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>, )

See _cef_browser_host_t::run_file_dialog for more documentation.
Source§

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>, )

See _cef_browser_host_t::download_image for more documentation.
Source§

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>, )

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, )

See _cef_browser_host_t::find for more documentation.
Source§

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>, )

See _cef_browser_host_t::show_dev_tools for more documentation.
Source§

fn close_dev_tools(&self)

See _cef_browser_host_t::close_dev_tools for more documentation.
Source§

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

Source§

fn execute_dev_tools_method( &self, message_id: c_int, method: Option<&CefString>, params: Option<&mut DictionaryValue>, ) -> c_int

Source§

fn add_dev_tools_message_observer( &self, observer: Option<&mut DevToolsMessageObserver>, ) -> Option<Registration>

Source§

fn navigation_entries( &self, visitor: Option<&mut NavigationEntryVisitor>, current_only: c_int, )

Source§

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>)

Source§

fn is_window_rendering_disabled(&self) -> c_int

Source§

fn was_resized(&self)

See _cef_browser_host_t::was_resized for more documentation.
Source§

fn was_hidden(&self, hidden: c_int)

See _cef_browser_host_t::was_hidden for more documentation.
Source§

fn notify_screen_info_changed(&self)

Source§

fn invalidate(&self, type_: PaintElementType)

See _cef_browser_host_t::invalidate for more documentation.
Source§

fn send_external_begin_frame(&self)

Source§

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, )

Source§

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, )

Source§

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)

Source§

fn notify_move_or_resize_started(&self)

Source§

fn windowless_frame_rate(&self) -> c_int

Source§

fn set_windowless_frame_rate(&self, frame_rate: c_int)

Source§

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, )

See _cef_browser_host_t::ime_commit_text for more documentation.
Source§

fn ime_finish_composing_text(&self, keep_selection: c_int)

Source§

fn ime_cancel_composition(&self)

Source§

fn drag_target_drag_enter( &self, drag_data: Option<&mut DragData>, event: Option<&MouseEvent>, allowed_ops: DragOperationsMask, )

Source§

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)

Source§

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)

See _cef_browser_host_t::drag_source_ended_at for more documentation.
Source§

fn drag_source_system_drag_ended(&self)

Source§

fn visible_navigation_entry(&self) -> Option<NavigationEntry>

Source§

fn set_accessibility_state(&self, accessibility_state: State)

Source§

fn set_auto_resize_enabled( &self, enabled: c_int, min_size: Option<&Size>, max_size: Option<&Size>, )

Source§

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

See _cef_browser_host_t::is_audio_muted for more documentation.
Source§

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)

See _cef_browser_host_t::exit_fullscreen for more documentation.
Source§

fn can_execute_chrome_command(&self, command_id: c_int) -> c_int

Source§

fn execute_chrome_command( &self, command_id: c_int, disposition: WindowOpenDisposition, )

Source§

fn is_render_process_unresponsive(&self) -> c_int

Source§

fn runtime_style(&self) -> RuntimeStyle

See _cef_browser_host_t::get_runtime_style for more documentation.
Source§

fn get_raw(&self) -> *mut _cef_browser_host_t

Source§

impl Rc for BrowserHost

Source§

fn as_base(&self) -> &_cef_base_ref_counted_t

Get the reference of cef_base_ref_counted_t.
Source§

unsafe fn add_ref(&self)

Increase the reference count by 1. Read more
Source§

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 more
Source§

fn has_one_ref(&self) -> bool

True if the reference count is exactly 1.
Source§

fn has_at_least_one_ref(&self) -> bool

True if the reference count is larger than 0.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T, U> ConvertParam<U> for T
where T: Into<U>,

Source§

fn into_raw(self) -> U

Source§

impl<T, U> ConvertReturnValue<U> for T
where T: Into<U>,

Source§

fn wrap_result(self) -> U

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.