pub struct CefRenderer { /* private fields */ }Implementations§
Source§impl CefRenderer
impl CefRenderer
Trait Implementations§
Source§impl Renderer for CefRenderer
impl Renderer for CefRenderer
Source§fn create_window(&mut self, config: &WindowConfig) -> Result<WindowHandle>
fn create_window(&mut self, config: &WindowConfig) -> Result<WindowHandle>
Create a new window with the given configuration.
Source§fn load_url(&self, w: WindowHandle, url: &str) -> Result<()>
fn load_url(&self, w: WindowHandle, url: &str) -> Result<()>
Load a URL in the specified window.
Source§fn eval_script(&self, w: WindowHandle, script: &str) -> Result<()>
fn eval_script(&self, w: WindowHandle, script: &str) -> Result<()>
Execute JavaScript in the specified window.
Source§fn set_ipc_handler(&mut self, h: Box<dyn IpcHandler>)
fn set_ipc_handler(&mut self, h: Box<dyn IpcHandler>)
Set the IPC handler for messages from the frontend.
Source§fn send_to_frontend(&self, w: WindowHandle, msg: &str) -> Result<()>
fn send_to_frontend(&self, w: WindowHandle, msg: &str) -> Result<()>
Send a message to the frontend JavaScript.
Source§fn set_resizable(&self, _w: WindowHandle, _r: bool) -> Result<()>
fn set_resizable(&self, _w: WindowHandle, _r: bool) -> Result<()>
Set whether the window is resizable.
Source§fn set_visible(&self, _w: WindowHandle, _v: bool) -> Result<()>
fn set_visible(&self, _w: WindowHandle, _v: bool) -> Result<()>
Show or hide the window.
Source§fn close_window(&mut self, _w: WindowHandle) -> Result<()>
fn close_window(&mut self, _w: WindowHandle) -> Result<()>
Close a window.
Source§fn minimize_window(&self, _w: WindowHandle) -> Result<()>
fn minimize_window(&self, _w: WindowHandle) -> Result<()>
Minimize the window.
Source§fn maximize_window(&self, _w: WindowHandle) -> Result<()>
fn maximize_window(&self, _w: WindowHandle) -> Result<()>
Toggle maximize/restore.
Source§fn is_maximized(&self, _w: WindowHandle) -> Result<bool>
fn is_maximized(&self, _w: WindowHandle) -> Result<bool>
Check whether the window is currently maximized.
Source§fn set_fullscreen(&self, _w: WindowHandle, _f: bool) -> Result<()>
fn set_fullscreen(&self, _w: WindowHandle, _f: bool) -> Result<()>
Toggle fullscreen mode.
Source§fn is_fullscreen(&self, _w: WindowHandle) -> Result<bool>
fn is_fullscreen(&self, _w: WindowHandle) -> Result<bool>
Check whether the window is currently fullscreen.
Source§fn start_drag(&self, _w: WindowHandle) -> Result<()>
fn start_drag(&self, _w: WindowHandle) -> Result<()>
Begin an interactive window drag. Read more
Source§fn start_resize(&self, _w: WindowHandle, _e: ResizeEdge) -> Result<()>
fn start_resize(&self, _w: WindowHandle, _e: ResizeEdge) -> Result<()>
Begin an interactive window resize. Read more
Source§fn set_decorations(&self, _w: WindowHandle, _d: bool) -> Result<()>
fn set_decorations(&self, _w: WindowHandle, _d: bool) -> Result<()>
Set whether the window has OS decorations (title bar + borders).
Source§fn set_always_on_top(&self, _w: WindowHandle, _a: bool) -> Result<()>
fn set_always_on_top(&self, _w: WindowHandle, _a: bool) -> Result<()>
Set the window’s always-on-top state.
Source§fn run(self: Box<Self>) -> Result<()>
fn run(self: Box<Self>) -> Result<()>
Run the main event loop. This blocks until the application exits.
Source§fn kind(&self) -> RendererKind
fn kind(&self) -> RendererKind
Get the renderer kind.
Source§fn load_html_with_base_url(
&self,
window: WindowHandle,
html: &str,
base_url: &str,
) -> Result<(), RdesktopError>
fn load_html_with_base_url( &self, window: WindowHandle, html: &str, base_url: &str, ) -> Result<(), RdesktopError>
Load HTML content with a document base URL for relative assets. Read more
Source§fn set_click_through(
&self,
_window: WindowHandle,
_enabled: bool,
) -> Result<(), RdesktopError>
fn set_click_through( &self, _window: WindowHandle, _enabled: bool, ) -> Result<(), RdesktopError>
Enable or disable click-through: when enabled, pointer events fall
through the window to whatever is behind it (used by wallpaper and
click-through overlays). Applied at window creation by default; this
method allows toggling it at runtime where the platform supports it. Read more
Auto Trait Implementations§
impl !Freeze for CefRenderer
impl !RefUnwindSafe for CefRenderer
impl !Sync for CefRenderer
impl !UnwindSafe for CefRenderer
impl Send for CefRenderer
impl Unpin for CefRenderer
impl UnsafeUnpin for CefRenderer
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