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: unsafe fn(_: BrowserWindowImpl, _: *mut (), _: Result<String, JsEvaluationError>),
callback_data: *mut ()
)
fn eval_js( &self, js: &str, callback: unsafe fn(_: BrowserWindowImpl, _: *mut (), _: Result<String, 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: unsafe fn(_: BrowserWindowImpl, _: *mut (), _: Result<String, JsEvaluationError>),
callback_data: *mut ()
)
fn eval_js_threadsafe( &self, js: &str, callback: unsafe fn(_: BrowserWindowImpl, _: *mut (), _: Result<String, JsEvaluationError>), 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: cbw_BrowserWindowSource,
title: &str,
width: Option<u32>,
height: Option<u32>,
window_options: &cbw_WindowOptions,
browser_window_options: &cbw_BrowserWindowOptions,
handler: unsafe fn(_: BrowserWindowImpl, _: &str, _: Vec<String>),
_user_data: *mut (),
creation_callback: unsafe fn(_: BrowserWindowImpl, _: *mut ()),
_callback_data: *mut ()
)
fn new( app: ApplicationImpl, parent: WindowImpl, source: cbw_BrowserWindowSource, title: &str, width: Option<u32>, height: Option<u32>, window_options: &cbw_WindowOptions, browser_window_options: &cbw_BrowserWindowOptions, handler: unsafe fn(_: BrowserWindowImpl, _: &str, _: Vec<String>), _user_data: *mut (), creation_callback: unsafe fn(_: BrowserWindowImpl, _: *mut ()), _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 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