pub struct CefRuntime<T: UserEvent = EventLoopMessage> { /* private fields */ }Trait Implementations§
Source§impl<T: UserEvent> Debug for CefRuntime<T>
impl<T: UserEvent> Debug for CefRuntime<T>
Source§impl<T: UserEvent> Runtime<T> for CefRuntime<T>
impl<T: UserEvent> Runtime<T> for CefRuntime<T>
Source§type WindowDispatcher = CefWindowDispatcher<T>
type WindowDispatcher = CefWindowDispatcher<T>
The window message dispatcher.
Source§type WebviewDispatcher = CefWebviewDispatcher<T>
type WebviewDispatcher = CefWebviewDispatcher<T>
The webview message dispatcher.
Source§type Handle = CefRuntimeHandle<T>
type Handle = CefRuntimeHandle<T>
The runtime handle type.
Source§type EventLoopProxy = EventProxy<T>
type EventLoopProxy = EventProxy<T>
The proxy type.
Source§type RuntimeWebviewAttributes = CefWebviewAttributes
type RuntimeWebviewAttributes = CefWebviewAttributes
The runtime-specific webview attributes, set on the webview builders through the runtime’s extension traits. Read more
Source§type Webview = Webview
type Webview = Webview
The platform webview handle exposed through
WebviewDispatch::with_webview. Read moreSource§type RuntimeInitAttrs = Cef
type RuntimeInitAttrs = Cef
Runtime-specific initialization attributes. Also used to select this runtime, see
RuntimeInitAttrs.Source§type WindowOpener = NewWindowOpener
type WindowOpener = NewWindowOpener
Data about the window that requested the new window for
PendingWebview::new_window_handler.Source§fn new(args: RuntimeInitArgs<Self::RuntimeInitAttrs>) -> Result<Self>
fn new(args: RuntimeInitArgs<Self::RuntimeInitAttrs>) -> Result<Self>
Creates a new webview runtime. Must be used on the main thread.
Source§fn new_any_thread(args: RuntimeInitArgs<Self::RuntimeInitAttrs>) -> Result<Self>
fn new_any_thread(args: RuntimeInitArgs<Self::RuntimeInitAttrs>) -> Result<Self>
Creates a new webview runtime on any thread.
Source§fn create_proxy(&self) -> Self::EventLoopProxy
fn create_proxy(&self) -> Self::EventLoopProxy
Creates an
EventLoopProxy that can be used to dispatch user events to the main event loop.Source§fn create_window<F: Fn(RawWindow<'_>) + Send + 'static>(
&self,
pending: PendingWindow<T, Self>,
after_window_creation: Option<F>,
) -> Result<DetachedWindow<T, Self>>
fn create_window<F: Fn(RawWindow<'_>) + Send + 'static>( &self, pending: PendingWindow<T, Self>, after_window_creation: Option<F>, ) -> Result<DetachedWindow<T, Self>>
Create a new window.
Source§fn create_webview(
&self,
window_id: WindowId,
pending: PendingWebview<T, Self>,
) -> Result<DetachedWebview<T, Self>>
fn create_webview( &self, window_id: WindowId, pending: PendingWebview<T, Self>, ) -> Result<DetachedWebview<T, Self>>
Create a new webview.
Source§fn primary_monitor(&self) -> Option<Monitor>
fn primary_monitor(&self) -> Option<Monitor>
Returns the primary monitor of the system. Read more
Source§fn monitor_from_point(&self, x: f64, y: f64) -> Option<Monitor>
fn monitor_from_point(&self, x: f64, y: f64) -> Option<Monitor>
Returns the monitor that contains the given point.
Source§fn available_monitors(&self) -> Vec<Monitor>
fn available_monitors(&self) -> 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(&mut self, filter: DeviceEventFilter)
fn set_device_event_filter(&mut self, filter: DeviceEventFilter)
Change the device event filter mode. Read more
Source§fn run_iteration<F: FnMut(RunEvent<T>) + 'static>(&mut self, callback: F)
fn run_iteration<F: FnMut(RunEvent<T>) + 'static>(&mut self, callback: F)
Runs an iteration of the runtime event loop and returns control flow to the caller.
Source§fn run_return<F: FnMut(RunEvent<T>) + 'static>(self, callback: F) -> i32
fn run_return<F: FnMut(RunEvent<T>) + 'static>(self, callback: F) -> i32
Equivalent to
Runtime::run but returns the exit code instead of exiting the process.Auto Trait Implementations§
impl<T = EventLoopMessage> !RefUnwindSafe for CefRuntime<T>
impl<T = EventLoopMessage> !Send for CefRuntime<T>
impl<T = EventLoopMessage> !Sync for CefRuntime<T>
impl<T = EventLoopMessage> !UnwindSafe for CefRuntime<T>
impl<T> Freeze for CefRuntime<T>
impl<T> Unpin for CefRuntime<T>
impl<T> UnsafeUnpin for CefRuntime<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
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.