pub struct CefRuntimeHandle<T: UserEvent> { /* private fields */ }Trait Implementations§
Source§impl<T: UserEvent> RuntimeHandle<T> for CefRuntimeHandle<T>
impl<T: UserEvent> RuntimeHandle<T> for CefRuntimeHandle<T>
Source§fn custom_scheme_url(&self, scheme: &str, https: bool) -> String
fn custom_scheme_url(&self, scheme: &str, https: bool) -> String
Returns the URL for a custom scheme.
CEF always uses http://<scheme>.localhost or https://<scheme>.localhost.
type Runtime = CefRuntime<T>
Source§fn create_proxy(&self) -> <Self::Runtime as Runtime<T>>::EventLoopProxy
fn create_proxy(&self) -> <Self::Runtime as Runtime<T>>::EventLoopProxy
Creates an
EventLoopProxy that can be used to dispatch user events to the main event loop.Source§fn webview_version(&self) -> Result<String>
fn webview_version(&self) -> Result<String>
Returns the version of the underlying webview engine.
Source§fn create_window<F: Fn(RawWindow<'_>) + Send + 'static>(
&self,
pending: PendingWindow<T, Self::Runtime>,
after_window_creation: Option<F>,
) -> Result<DetachedWindow<T, Self::Runtime>>
fn create_window<F: Fn(RawWindow<'_>) + Send + 'static>( &self, pending: PendingWindow<T, Self::Runtime>, after_window_creation: Option<F>, ) -> Result<DetachedWindow<T, Self::Runtime>>
Create a new window.
Source§fn create_webview(
&self,
window_id: WindowId,
pending: PendingWebview<T, Self::Runtime>,
) -> Result<DetachedWebview<T, Self::Runtime>>
fn create_webview( &self, window_id: WindowId, pending: PendingWebview<T, Self::Runtime>, ) -> Result<DetachedWebview<T, Self::Runtime>>
Create a new webview.
Source§fn run_on_main_thread<F: FnOnce() + Send + 'static>(&self, f: F) -> Result<()>
fn run_on_main_thread<F: FnOnce() + Send + 'static>(&self, f: F) -> Result<()>
Run a task on the main thread.
Source§fn display_handle(&self) -> Result<DisplayHandle<'_>, HandleError>
fn display_handle(&self) -> Result<DisplayHandle<'_>, HandleError>
Get a handle to the display controller of the windowing system.
Source§fn primary_monitor(&self) -> Result<Option<Monitor>>
fn primary_monitor(&self) -> Result<Option<Monitor>>
Returns the primary monitor of the system. Read more
Source§fn monitor_from_point(&self, x: f64, y: f64) -> Result<Option<Monitor>>
fn monitor_from_point(&self, x: f64, y: f64) -> Result<Option<Monitor>>
Returns the monitor that contains the given point.
Source§fn available_monitors(&self) -> Result<Vec<Monitor>>
fn available_monitors(&self) -> Result<Vec<Monitor>>
Returns the list of all the monitors available on the system.
Source§fn cursor_position(&self) -> Result<PhysicalPosition<f64>>
fn cursor_position(&self) -> Result<PhysicalPosition<f64>>
Get the cursor position relative to the top-left hand corner of the desktop.
Source§fn set_device_event_filter(&self, filter: DeviceEventFilter)
fn set_device_event_filter(&self, filter: DeviceEventFilter)
Change the device event filter mode. Read more
Auto Trait Implementations§
impl<T> !RefUnwindSafe for CefRuntimeHandle<T>
impl<T> !UnwindSafe for CefRuntimeHandle<T>
impl<T> Freeze for CefRuntimeHandle<T>where
RuntimeContext<T>: Freeze,
impl<T> Send for CefRuntimeHandle<T>where
RuntimeContext<T>: Send,
impl<T> Sync for CefRuntimeHandle<T>where
RuntimeContext<T>: Sync,
impl<T> Unpin for CefRuntimeHandle<T>where
RuntimeContext<T>: Unpin,
impl<T> UnsafeUnpin for CefRuntimeHandle<T>where
RuntimeContext<T>: UnsafeUnpin,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, U> ConvertReturnValue<U> for Twhere
T: Into<U>,
impl<T, U> ConvertReturnValue<U> for Twhere
T: Into<U>,
fn wrap_result(self) -> U
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.