Struct browser_window::prelude::BrowserWindowImpl
source · 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 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