pub struct BrowserWindowImpl { /* private fields */ }
Trait Implementations§
Source§impl BrowserWindowExt for BrowserWindowImpl
impl BrowserWindowExt for BrowserWindowImpl
Source§fn eval_js(&self, js: &str, callback: EvalJsCallbackFn, callback_data: *mut ())
fn eval_js(&self, js: &str, callback: EvalJsCallbackFn, callback_data: *mut ())
Executes the given JavaScript string.
The result will be provided by invoking the callback function.
Source§fn eval_js_threadsafe(
&self,
js: &str,
callback: EvalJsCallbackFn,
callback_data: *mut (),
)
fn eval_js_threadsafe( &self, js: &str, callback: EvalJsCallbackFn, callback_data: *mut (), )
Like
eval_js
, except it can be called from any thread.Causes the browser to navigate to the given URI.
Source§fn new(
app: ApplicationImpl,
parent: WindowImpl,
source: Source,
title: &str,
width: Option<u32>,
height: Option<u32>,
window_options: &WindowOptions,
browser_window_options: &BrowserWindowOptions,
handler: ExternalInvocationHandlerFn,
_user_data: *mut (),
creation_callback: CreationCallbackFn,
_callback_data: *mut (),
)
fn new( app: ApplicationImpl, parent: WindowImpl, source: Source, title: &str, width: Option<u32>, height: Option<u32>, window_options: &WindowOptions, browser_window_options: &BrowserWindowOptions, handler: ExternalInvocationHandlerFn, _user_data: *mut (), creation_callback: CreationCallbackFn, _callback_data: *mut (), )
Creates a new browser window asynchronously.
The
BrowserWindowImpl
handle to the new browser window will be passed via a callback. Read morefn user_data(&self) -> *mut ()
fn url<'a>(&'a self) -> Cow<'a, str>
Source§fn window(&self) -> WindowImpl
fn window(&self) -> WindowImpl
Gives a handle to the underlying window.
Source§impl Clone for BrowserWindowImpl
impl Clone for BrowserWindowImpl
Source§fn clone(&self) -> BrowserWindowImpl
fn clone(&self) -> BrowserWindowImpl
Returns a copy 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 moreimpl Copy for BrowserWindowImpl
Auto Trait Implementations§
impl Freeze for BrowserWindowImpl
impl RefUnwindSafe for BrowserWindowImpl
impl !Send for BrowserWindowImpl
impl !Sync for BrowserWindowImpl
impl Unpin for BrowserWindowImpl
impl UnwindSafe for BrowserWindowImpl
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