pub struct WebView { /* private fields */ }Available on Windows and crate feature
webview only.Implementations§
Source§impl WebView
impl WebView
pub async fn new(parent: impl AsContainer) -> Result<Self>
pub fn is_visible(&self) -> Result<bool>
pub fn set_visible(&mut self, v: bool) -> Result<()>
pub fn is_enabled(&self) -> Result<bool>
pub fn set_enabled(&mut self, v: bool) -> Result<()>
pub fn loc(&self) -> Result<Point>
pub fn set_loc(&mut self, v: Point) -> Result<()>
pub fn size(&self) -> Result<Size>
pub fn set_size(&mut self, v: Size) -> Result<()>
pub fn source(&self) -> Result<String>
pub fn set_source(&mut self, s: impl AsRef<str>) -> Result<()>
pub fn set_html(&mut self, s: impl AsRef<str>) -> Result<()>
pub fn can_go_forward(&self) -> Result<bool>
pub fn go_forward(&mut self) -> Result<()>
pub fn can_go_back(&self) -> Result<bool>
pub fn go_back(&mut self) -> Result<()>
pub fn reload(&mut self) -> Result<()>
pub fn stop(&mut self) -> Result<()>
pub fn run_javascript( &mut self, s: impl AsRef<str>, ) -> Result<impl Future<Output = Result<String>> + 'static>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for WebView
impl !UnwindSafe for WebView
impl Freeze for WebView
impl Send for WebView
impl Sync for WebView
impl Unpin for WebView
impl UnsafeUnpin for WebView
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