pub struct BrowserWindowImpl { /* private fields */ }
Trait Implementations§
Source§impl BrowserWindowExt for BrowserWindowImpl
impl BrowserWindowExt for BrowserWindowImpl
Source§fn eval_js(
&self,
js: &str,
callback: fn(bw: BrowserWindowImpl, data: *mut (), result: Result<JsValue, JsEvaluationError>),
callback_data: *mut (),
)
fn eval_js( &self, js: &str, callback: fn(bw: BrowserWindowImpl, data: *mut (), result: Result<JsValue, JsEvaluationError>), 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: fn(bw: BrowserWindowImpl, data: *mut (), result: Result<JsValue, JsEvaluationError>),
callback_data: *mut (),
)
fn eval_js_threadsafe( &self, js: &str, callback: fn(bw: BrowserWindowImpl, data: *mut (), result: Result<JsValue, JsEvaluationError>), callback_data: *mut (), )
Like
eval_js
, except it can be called from any thread.fn free(&self)
Causes the browser to navigate to the given URI.
fn url<'a>(&'a self) -> Cow<'a, str>
Source§fn window(&self) -> WindowImpl
fn window(&self) -> WindowImpl
Gives a handle to the underlying window.
fn new( app: ApplicationImpl, parent: WindowImpl, source: Source, title: &str, width: Option<u32>, height: Option<u32>, window_options: &cbw_WindowOptions, browser_window_options: &cbw_BrowserWindowOptions, creation_callback: fn(bw: BrowserWindowImpl, data: *mut ()), _callback_data: *mut (), )
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 moreAuto 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